public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* ppc-gas: Add '+' and '-' to symbol chars list
@ 2003-04-24 10:21 Nick Clifton
  2003-04-24 15:15 ` H. J. Lu
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Nick Clifton @ 2003-04-24 10:21 UTC (permalink / raw)
  To: binutils

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@redhat.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[] = "+-";
  \f
  /* 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 */

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2003-04-30  8:51 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-24 10:21 ppc-gas: Add '+' and '-' to symbol chars list Nick Clifton
2003-04-24 15:15 ` H. J. Lu
2003-04-24 17:03   ` Nick Clifton
2003-04-24 23:16 ` Alan Modra
2003-04-27 23:44 ` Alan Modra
2003-04-28  4:24   ` H. J. Lu
2003-04-28  8:35     ` Nick Clifton
2003-04-29  5:30       ` Alan Modra
2003-04-29 11:55         ` Nick Clifton
2003-04-29 16:06           ` H. J. Lu
2003-04-29 23:33             ` Alan Modra
2003-04-30  0:39               ` Daniel Jacobowitz
2003-04-30  4:55                 ` H. J. Lu
2003-04-30  8:46                   ` Alan Modra
2003-04-30  8:51                 ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).