From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25999 invoked by alias); 24 Apr 2003 10:21:49 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 25980 invoked from network); 24 Apr 2003 10:21:34 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 24 Apr 2003 10:21:34 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h3OALYD10918 for ; Thu, 24 Apr 2003 06:21:34 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h3OALYq04043 for ; Thu, 24 Apr 2003 06:21:34 -0400 Received: from localhost.localdomain.redhat.com (vpnuser6.stuttgart.redhat.com [172.16.4.6]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h3OALVk05656 for ; Thu, 24 Apr 2003 06:21:33 -0400 To: binutils@sources.redhat.com Subject: ppc-gas: Add '+' and '-' to symbol chars list From: Nick Clifton Date: Thu, 24 Apr 2003 10:21:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-04/txt/msg00481.txt.bz2 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 * 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 */