[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/11829] consecutive ampersands collapsed during macro expansion
From: |
konrad dot schwarz at siemens dot com |
Subject: |
[Bug gas/11829] consecutive ampersands collapsed during macro expansion (&& changed to &) |
Date: |
22 Jul 2010 11:05:35 -0000 |
------- Additional Comments From konrad dot schwarz at siemens dot com
2010-07-22 11:05 -------
(In reply to comment #4)
> You need to double & for every level of expansion. .irp introduces another
> such
> level.
I tried using 8 ampersands (&&&&&&&&). The code now works. It also works with
7, 6, and 5 ampersands. It does not work with 4, 3, or 2 ampersands, nor with 9
ampersands.
I find this pretty erratic behavior, especially since I wasn't even using
alternate macro mode at the relevant point, but if you feel this is not a bug,
then so be it.
However, I would like doubling ampersands to be documented, e.g.,
"To get an ampersand in the expansion of the macro, double it." in
(as.info)Macro.
I don't understand the interaction between .irp and & properly, so I can't give
a suggestion on how to document it.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
http://sourceware.org/bugzilla/show_bug.cgi?id=11829
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug gas/11829] New: consecutive ampersands collapsed during macro expansion (&& changed to &), konrad dot schwarz at siemens dot com, 2010/07/22
- [Bug gas/11829] consecutive ampersands collapsed during macro expansion (&& changed to &), schwab at linux-m68k dot org, 2010/07/22
- [Bug gas/11829] consecutive ampersands collapsed during macro expansion (&& changed to &), konrad dot schwarz at siemens dot com, 2010/07/22
- [Bug gas/11829] consecutive ampersands collapsed during macro expansion (&& changed to &), konrad dot schwarz at siemens dot com, 2010/07/22
- [Bug gas/11829] consecutive ampersands collapsed during macro expansion (&& changed to &), schwab at linux-m68k dot org, 2010/07/22
- [Bug gas/11829] consecutive ampersands collapsed during macro expansion (&& changed to &),
konrad dot schwarz at siemens dot com <=
- [Bug gas/11829] consecutive ampersands collapsed during macro expansion (&& changed to &), schwab at linux-m68k dot org, 2010/07/22