|
From: | nickc at redhat dot com |
Subject: | [Bug binutils/25750] GNU as has inconsistent behavior when expanding .macro that takes as input directives with arguments |
Date: | Wed, 01 Apr 2020 13:50:21 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25750 --- Comment #1 from Nick Clifton <nickc at redhat dot com> --- Hi caij, Which version of the binutils are you using for these tests ? When I tried to reproduce the problem using the current development sources I received the message "Error: too many positional arguments" for each invocation of foo. I did however find a variation that worked and did not have any behavioural inconsistencies: .macro foo insn:vararg \insn .endm foo .word (XXX) foo .word 0x1234 foo .section sec1 Using the :vararg suffix to tell the macro processor to use all of the text as a single argument (inside the macro) preserves spaces and results in the output that you would expect. Cheers Nick -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |