summaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-04-24 10:22:35 +0000
committerNick Clifton <nickc@redhat.com>2003-04-24 10:22:35 +0000
commit31461b76e229a942fe32c5a19088759c2d080469 (patch)
tree1f7c4fdef27c23e7858f8578a80fa2a0d5d2cdc2 /gas
parentde0902d75c46433b244f716bc002eadd4b8fdc62 (diff)
downloadbinutils-redhat-31461b76e229a942fe32c5a19088759c2d080469.tar.gz
Add '+' and '-' as valid symbol characters for PPC port.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-ppc.c4
-rw-r--r--gas/config/tc-ppc.h3
3 files changed, 12 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index ac6ac66ccf..fde70eda32 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-24 Nick Clifton <nickc@redhat.com>
+
+ * config/tc-ppc.c (ppc_symbol_chars): Define.
+ * config/tc-ppc.h (tc_symbol_chars): Define.
+
2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
* config/tc-sh.c: Amend comment to refer to SuperH.
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index 7436fbdd37..f65f144fcb 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -182,6 +182,10 @@ const char EXP_CHARS[] = "eE";
/* 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. */
diff --git a/gas/config/tc-ppc.h b/gas/config/tc-ppc.h
index f4f8ab517d..2bac481e92 100644
--- a/gas/config/tc-ppc.h
+++ b/gas/config/tc-ppc.h
@@ -206,6 +206,9 @@ do { \
#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 */