[gnu.gcc.bug] "&" applied to arg of inline function

edler@JAN.ULTRA.NYU.EDU (Jan Edler) (06/16/89)

(I'm looking at gcc-1.35.)

If you take the address of a variable, it won't be put in a register,
even if all you do with it is pass it to an inline function.

I notice that in the documentation, it says you can force a variable to
be not allocated to a register by simply taking its address, even if
you don't use it.  The example given is just a single useless
statement, something like "&var;".  So I guess this is treated as a
pretty serious condition in the compiler.

This is unfortunate, although I can't say it's crucial.

Jan