This is the mail archive of the
mailing list for the GCC project.
Re: [m68k] asm regression with 3.3/3.4/3.5
Ian Lance Taylor <email@example.com> writes:
> Specifying register asm() only means that any reference to that
> variable will use the specified register. It doesn't mean that gcc
> can't eliminate use of that variable. Read the documentation about
> local register variables. In particular, note this:
> This option does not guarantee that GCC will generate code that
> has this variable in the register you specify at all times. You
> may not code an explicit reference to this register in an `asm'
> statement and assume it will always refer to this variable.
Glibc depends heavily on being able to force a specific register to be
able to do inline syscalls.
Andreas Schwab, SuSE Labs, firstname.lastname@example.org
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."