bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/25750] GNU as has inconsistent behavior when expanding .ma


From: i at maskray dot me
Subject: [Bug binutils/25750] GNU as has inconsistent behavior when expanding .macro that takes as input directives with arguments
Date: Tue, 14 Apr 2020 15:55:51 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=25750

--- Comment #14 from Fangrui Song <i at maskray dot me> ---
Yes. I would hope do_scrub_chars() did not squeeze a sequence of spaces or
dropped spaces before '(', but making such a change would just be disruptive
now, see
https://lore.kernel.org/linux-arm-kernel/address@hidden/

Linux kernel between 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bca8f17f57bd76ddf2bbd2527eb890d6f588853e
(2016) til now relies on `.inst (...)` scrubbed by do_scrub_chars() as
`.inst(...)`

Not making the change will keep the nuance regarding spaces but that may be
bearable.

% cat a.s
.macro foo a:vararg
.ascii "\a"
.endm
foo a  b  (c  d)
% aarch64-linux-gnu-as a.s && objdump -s
...
 0000 61206228 63206429                    a b(c d)

% as a.s && objdump -s                                                          
...
 0000 61206220 28632064 29                 a b (c d)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]