[parisc-linux] [PATCH] hppa-linux-gas binutils patch
Helge Deller
deller at gmx.de
Thu Nov 23 14:41:56 MST 2006
hppa-linux-gnu-gas only allows one type of ".equ" pseudo-op syntax:
symbol: .equ value
The following patch allows hppa-gas to understand
.equ symbol,value
as well, which seems to be pretty standard for other gas-targets as well.
I didn't found any problems yet with this patch, and it allows even the
src/binutils/testsuite/binutils-all/localize-hidden-1.s
gas test to compile.
Comments ?
If OK, would somebody with write-access to binutils submit it upstream ?
Helge
Index: gas/config/tc-hppa.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-hppa.c,v
retrieving revision 1.133
diff -u -r1.133 tc-hppa.c
--- gas/config/tc-hppa.c 30 Oct 2006 01:09:18 -0000 1.133
+++ gas/config/tc-hppa.c 23 Nov 2006 21:32:49 -0000
@@ -3262,7 +3262,7 @@
return;
}
- /* Look up the opcode in the has table. */
+ /* Look up the opcode in the hash table. */
if ((insn = (struct pa_opcode *) hash_find (op_hash, str)) == NULL)
{
as_bad ("Unknown opcode: `%s'", str);
@@ -6397,8 +6397,11 @@
{
if (reg)
as_bad (_(".REG must use a label"));
- else
- as_bad (_(".EQU must use a label"));
+ else {
+ /* Try gas' standard ".equ X,Y" pseudo opcode. */
+ s_set(0);
+ return;
+ }
}
pa_undefine_label ();
More information about the parisc-linux
mailing list