https://sourceware.org/bugzilla/show_bug.cgi?id=33691
Bug ID: 33691
Summary: unable to override macro argument default to <nothing>
Product: binutils
Version: 2.46 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: jbeulich at suse dot com
Target Milestone: ---
With
.macro m arg1=1, arg2=2, arg3=3
.print ""
.print "1: '\arg1\()'"
.print "2: '\arg2\()'"
.print "3: '\arg3\()'"
.endm
I can maybe see that positional argument specification is okay as-is, even if
in
m "", 7, 8
m ,,
the desire for certain arguments to be empty is pretty clearly expressed, but
then even with keyword arguments passing an empty argument isn't possible:
m arg2=
m arg3=""
Nothing like this is said in documentation. Am I overlooking anything? Would
making at least the latter work cause backwards compatibility concerns?
As an aside, because it's nicely visible from the macro definition above: Why
is it that a single quote following an argument reference would be discarded?
One can work around that by using \() as above, but this feels bogus as well.
--
You are receiving this mail because:
You are on the CC list for the bug.