[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug gas/669] New: Macro Expansion is broken
From: |
Nick Clifton |
Subject: |
Re: [Bug gas/669] New: Macro Expansion is broken |
Date: |
Mon, 07 Feb 2005 16:40:37 +0000 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20041206) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Bug gas/669] New: Macro Expansion is broken,
Nick Clifton <=