delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/22/23:47:03

Mime-Version: 1.0
To: jasonp AT Glue DOT umd DOT edu (Jason Stratos Papadopoulos), djgpp AT delorie DOT com
From: Nate Eldredge <nate AT cartsys DOT com>
Subject: Re: Q: local labels in inline asm
Date: Fri, 22 May 1998 20:42:38 -0700
Message-ID: <19980523034225.AAG10307@ppp110.cartsys.com>

At 05:48  5/22/1998 GMT, Jason Stratos Papadopoulos wrote:
>Hello. I was wondering: is there a way to make labels inside
>an inline asm block so that if the code is inlined multiple
>times the labels will all have different names? e.g. if
>
>void foo() {
>   asm( something that has labels in it );
>}
>
>gets used several times in a program, can you name the labels
>somehow so that if you compile with -O3 and foo() gets inlined
>everywhere the labels will all be different from each other?

See my posting on the thread "gcc bug (when optimizing)". You use local
labels (info as symbols "Symbol Names").

Nate Eldredge
nate AT cartsys DOT com



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019