This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: inline labels


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]