[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug gas/37] New: [intel_syntax] can't reference global symbols havi
Brian R. Gaeke
Re: [Bug gas/37] New: [intel_syntax] can't reference global symbols having certain names
Tue, 9 Mar 2004 00:52:22 -0600
I tried the Microsoft assembler I have here at home, apparently of
2000 vintage, and it definitely rejects 'byte' as a symbol. Bummer!
(VC++ wants void byte() to be the symbol '_byte', not 'byte'.)
I guess you're right and the right thing to do is issue a good error
And then spake Diego Novillo, as follows:
> On Mon, 2004-03-08 at 06:18, Nick Clifton wrote:
> > 2004-03-08 Nick Clifton <address@hidden>
> > * config/tc-i386.c (intel_get_token): If the token also
> > matches a defined symbol, prefer the defined symbol.
> Hmm, I can't seem to find the MASM documentation that I used to
> implement the parser. My recollection is that reserved words could not
> be used as symbols, but it's been a while.
> For the time being, I would suggest testing the input code on MS
> assembler (sorry, I don't have one). If it compiles, then let's go with
> the patch. If it doesn't, we could issue a more descriptive error
> message instead.