[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/669] Macro Expansion is broken
From: |
emcvicker at earthlink dot net |
Subject: |
[Bug gas/669] Macro Expansion is broken |
Date: |
7 Feb 2005 19:37:21 -0000 |
------- Additional Comments From emcvicker at earthlink dot net 2005-02-07
19:37 -------
Subject: Re: Macro Expansion is broken
I am not able to do that. The expansion is done VIA the GNU C compiler, so it
adds all of the associated whitespace to the macro expansion. Unless there's a
magical way that I can get the GNU compiler to not pad macro expansions with
whitespace it's outside of my hands.
Thanks,
-Eric
-----Original Message-----
From: nickc at redhat dot com <address@hidden>
Sent: Feb 7, 2005 10:26 AM
To: address@hidden
Subject: [Bug gas/669] Macro Expansion is broken
------- Additional Comments From nickc at redhat dot com 2005-02-07 17:26
-------
Subject: Re: New: Macro Expansion is broken
Hi mcvick_e,
[The sourceware bugzilla web site appears to be down at the moment,
so I am emailing this directly to you as well as the mailing list].
> During a regression build suite (since migrating from 2.14), it was found
> that
> the macro expansion within gas is not working properly. The reason being is
> whitespace.
I am not sure that this is strictly speaking a bug, since GAS macros are
supposed to use whitespace to separate their arguments. What has
happened is that in 2.15 the code has been tightened up to enforce this
rule whereas in 2.14 the code was more lax. This may not help you of
course.
> LADDR r3, ((((((0x00380000 + 4096) + 256) + 256) + 256) + 49152) +
> 4096)
Are you able to arrange your macros so that either the white space is
eliminated or else the entire argument is enclosed within quotations ? eg:
LADDR r3, "((((((0x00380000 + 4096) + 256) + 256) + 256) + 49152) + 4096)"
Alternatively can you use a .set directive to cause the expression to be
evaluated before it is used by the macro ? ie:
.set val,((((((0x00380000 + 4096) + 256) + 256) + 256) + 49152) + 4096)
LADDR r3, val
Cheers
Nick
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=669
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.