Until at least 2.15 as accepted a macro like this:
.macro foo size,arg,arg2
move\size \arg,\arg2
.endm
foo.l %d0,%d1
Sometimes after that the syntax changed to include the dot into the name and
this breaks code that was working nicely before. The Linux/m68k uses the macro
like this.
Currently I use this simple patch to work around the problem:
diff -u -p -r1.44 macro.c
--- macro.c 7 Jun 2006 11:27:57 -0000 1.44
+++ macro.c 26 Jun 2006 22:07:33 -0000
@@ -1202,7 +1202,7 @@ check_macro (const char *line, sb *expan
return 0;
s = line + 1;
- while (is_part_of_name (*s))
+ while (is_part_of_name (*s) && *s != '.')
++s;
if (is_name_ender (*s))
++s;
Another alternative is to restore the old behaviour, which only accepts
alphanumeric characters and '_'/'$'.
--
Summary: macro name syntax changed
Product: binutils
Version: 2.18 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: zippel at linux-m68k dot org
CC: bug-binutils at gnu dot org
GCC build triplet: m68k-linux
GCC host triplet: m68k-linux
GCC target triplet: m68k-linux
http://sourceware.org/bugzilla/show_bug.cgi?id=2848
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils