From d614f4abdb1f523a38837575c15a2a0c186301ae Mon Sep 17 00:00:00 2001 From: nickc Date: Thu, 24 Apr 2003 10:22:34 +0000 Subject: [PATCH] Add '+' and '-' as valid symbol characters for PPC port. --- gas/config/tc-ppc.c | 4 ++++ gas/config/tc-ppc.h | 3 +++ 2 files changed, 7 insertions(+) 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 */ -- 2.11.0