delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/04/22:16:34

Xref: news2.mv.net comp.os.msdos.djgpp:5675
From: "F.G." <arcanix AT pop DOT erols DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Redefined labels in GAS
Date: 4 Jul 1996 23:11:05 GMT
Organization: None
Lines: 12
Message-ID: <4rhj29$8ca@news7.erols.com>
NNTP-Posting-Host: as6s59.erols.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I've run into a small snag with a section of my program written for GAS. 
 In it, I use a macro which contains a label.  Later in the code I call 
the macro 8 times as part of an unrolled loop. Not surprisingly, it gives 
me an error telling me that the label has already been defined.  I 
believe that TASM has a directive called "local" which allows labels to 
be placed in macros and cause the lables to act as if they were 
in functions.  In other words, using the macro multiple times in the 
program will not yield "redefined label" errors.  Since GAS does not 
directly support macros AFAIK, there seems to be no such directive.  Is 
there any way to get around my problem?
Thanks in advance.

- Raw text -


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