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 constr

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

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 c

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.co

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

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 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 > > ot

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: > > > in

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

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 > up