inline labels

Alexandre Oliva aoliva@cygnus.com
Tue May 23 23:19:00 GMT 2000


On May 24, 2000, Dave Klint <davek@ca.mgisoft.com> wrote:

> When compiling using the -O3, gcc will decide that some functions
> can be inlined and expands them.  This is all well and good, but
> when there's an asm() statement in the function with a label in
> it, it causes the label to be defined more than once.  Is there
> any way around this without reworking the assembly?

The GCC manual talks about local labels in assembly statements.  You
may also look for `%='; it's described in the section about output
templates; I'm not sure it can be used in asm statements, though.

-- 
Alexandre Oliva    Enjoy Guaraná, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me



More information about the Gcc-help mailing list