This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: inline labels
- To: Dave Klint <davek at ca dot mgisoft dot com>
- Subject: Re: inline labels
- From: Alexandre Oliva <aoliva at cygnus dot com>
- Date: 24 May 2000 03:19:21 -0300
- Cc: gcc-help at gcc dot gnu dot org
- Organization: Cygnus Solutions, a Red Hat Company
- References: <392B71BD.172C5CC7@ca.mgisoft.com>
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