Re: Bootstrap problems for asm

2002-06-25 Thread Alexander Kabaev
I just copied the relevant example from IBM developerWorks site. I guess they have a thing or two to learn on the topic they were trying to teach :) On Mon, 24 Jun 2002 15:30:51 -0700 (PDT) John Polstra [EMAIL PROTECTED] wrote: Your patch isn't quite right. It's true that matching

Bootstrap problems for asm

2002-06-24 Thread Robert Watson
I'm attempting to build a modern world on a box from about a month ago (specifically, the head of the trustedbsd_mac branch, which I'd like to integ), and keep bumping into problems associated with the compiler upgrade. What's odd is that it seems to me that at the point where the build breaks,

Re: Bootstrap problems for asm

2002-06-24 Thread John Polstra
In article [EMAIL PROTECTED], Robert Watson [EMAIL PROTECTED] wrote: I'm attempting to build a modern world on a box from about a month ago (specifically, the head of the trustedbsd_mac branch, which I'd like to integ), and keep bumping into problems associated with the compiler upgrade.

Re: Bootstrap problems for asm

2002-06-24 Thread Robert Watson
On Mon, 24 Jun 2002, John Polstra wrote: /cboss/freebsd/commit/src/libexec/rtld-elf/rtld.c: In function `atomic_decr_int': /cboss/freebsd/commit/src/libexec/rtld-elf/i386/rtld_machdep.h:58: inconsistent operand constraints in an `asm' *** Error code 1 There is a problem at the

Re: Bootstrap problems for asm

2002-06-24 Thread John Polstra
In article [EMAIL PROTECTED], Robert Watson [EMAIL PROTECTED] wrote: On Mon, 24 Jun 2002, John Polstra wrote: /cboss/freebsd/commit/src/libexec/rtld-elf/rtld.c: In function `atomic_decr_int': /cboss/freebsd/commit/src/libexec/rtld-elf/i386/rtld_machdep.h:58: inconsistent operand

Re: Bootstrap problems for asm

2002-06-24 Thread Robert Watson
On Mon, 24 Jun 2002, John Polstra wrote: There is a problem at the moment in compiling that file without -O. Is your /etc/make.conf standard, or did you specifically ask for no optimization? I haven't made any explicit changes to the optimization level; on the other hand,

Re: Bootstrap problems for asm

2002-06-24 Thread Robert Watson
s/real-time/run-time/ s/rwatson/rmoron/ :-) (Thanks to Scott Long for pointing this out) Robert N M Watson FreeBSD Core Team, TrustedBSD Projects [EMAIL PROTECTED] Network Associates Laboratories On Mon, 24 Jun 2002, Robert Watson wrote: On Mon, 24 Jun 2002, John Polstra

Re: Bootstrap problems for asm

2002-06-24 Thread John Polstra
In article [EMAIL PROTECTED], Robert Watson [EMAIL PROTECTED] wrote: Do you mind if I add an entry to UPDATING: 20020624: Building the real time loader (rtld) currently requires optimization to be enabled for the build. If you override CFLAGS in make.conf, make sure that

Re: Bootstrap problems for asm

2002-06-24 Thread David O'Brien
On Mon, Jun 24, 2002 at 08:24:06AM -0700, John Polstra wrote: /cboss/freebsd/commit/src/libexec/rtld-elf/i386/rtld_machdep.h:58: inconsistent operand constraints in an `asm' *** Error code 1 There is a problem at the moment in compiling that file without -O. Is your /etc/make.conf

Re: Bootstrap problems for asm

2002-06-24 Thread John Polstra
In article [EMAIL PROTECTED], Alexander Kabaev [EMAIL PROTECTED] wrote: I am not an inline assembler guru, but here is the patch I think get the job done. If I understannd things correcly, GCC accepts matching constraints only for parameters for which registers are allowed. Any

Re: Bootstrap problems for asm

2002-06-24 Thread Alexander Kabaev
I am not an inline assembler guru, but here is the patch I think get the job done. If I understannd things correcly, GCC accepts matching constraints only for parameters for which registers are allowed. Any constructive critique is appreciated. Don't supose you are bored enough to tweak the