This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
ppc-gas: Add '+' and '-' to symbol chars list
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: 24 Apr 2003 11:19:18 +0100
- Subject: ppc-gas: Add '+' and '-' to symbol chars list
Hi Guys,
The recent patches to app.c have broken GAS for the PPC. This is
because the assembler is now stricter about deciding when it has
encountered a symbol and the PPC port can have opcodes which include
the '+' or '-' characters. (eg "blt-") This patch fixes this
problem by adding these characters to the ppc specific symbol list.
Cheers
Nick
2003-04-24 Nick Clifton <nickc at redhat dot com>
* config/tc-ppc.c (ppc_symbol_chars): Define.
* config/tc-ppc.h (tc_symbol_chars): Define.
Index: gas/config/tc-ppc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ppc.c,v
retrieving revision 1.67
diff -c -3 -p -w -r1.67 tc-ppc.c
*** gas/config/tc-ppc.c 8 Apr 2003 23:01:47 -0000 1.67
--- gas/config/tc-ppc.c 24 Apr 2003 10:12:58 -0000
*************** const char EXP_CHARS[] = "eE";
*** 182,187 ****
--- 182,191 ----
/* Characters which mean that a number is a floating point constant,
as in 0d1.0. */
const char FLT_CHARS[] = "dD";
+
+ /* '+' and '-' can be used as postfix predicate predictors for conditional
+ branches. So they need to be accepted as symbol characters. */
+ const char ppc_symbol_chars[] = "+-";
/* The target specific pseudo-ops which we support. */
Index: gas/config/tc-ppc.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ppc.h,v
retrieving revision 1.20
diff -c -3 -p -w -r1.20 tc-ppc.h
*** gas/config/tc-ppc.h 5 Sep 2002 00:01:18 -0000 1.20
--- gas/config/tc-ppc.h 24 Apr 2003 10:13:03 -0000
*************** do { \
*** 206,211 ****
--- 206,214 ----
#endif /* OBJ_XCOFF */
+ extern const char ppc_symbol_chars[];
+ #define tc_symbol_chars ppc_symbol_chars
+
#ifdef OBJ_ELF
/* Support for SHF_EXCLUDE and SHT_ORDERED */