From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30515 invoked by alias); 20 Dec 2001 09:14:37 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 30494 invoked from network); 20 Dec 2001 09:14:36 -0000 Received: from unknown (HELO zwingli.cygnus.com) (208.245.165.35) by sources.redhat.com with SMTP; 20 Dec 2001 09:14:36 -0000 Received: by zwingli.cygnus.com (Postfix, from userid 442) id CC62F5E9D8; Thu, 20 Dec 2001 04:15:56 -0500 (EST) To: Eli Zaretskii Cc: gdb-patches@sources.redhat.com Subject: Re: RFA: char is unsigned on some architectures References: <20011219224516.AA8665E9D8@zwingli.cygnus.com> <3C218E4C.C92FF822@is.elta.co.il> From: Jim Blandy Date: Thu, 20 Dec 2001 01:14:00 -0000 In-Reply-To: Eli Zaretskii's message of Thu, 20 Dec 2001 09:07:56 +0200 Message-ID: X-Mailer: Gnus v5.3/Emacs 19.34 X-SW-Source: 2001-12/txt/msg00508.txt.bz2 Eli Zaretskii writes: > > 2001-12-19 Jim Blandy > > > > * gdbarch.sh (TARGET_CHAR_SIGNED): New macro. > > This new macro should be documented in gdbint.texinfo, I think. Certainly. How is this? Index: gdbint.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v retrieving revision 1.48 diff -c -c -b -F'^(' -r1.48 gdbint.texinfo *** gdbint.texinfo 2001/12/15 16:53:24 1.48 --- gdbint.texinfo 2001/12/20 09:13:22 *************** *** 3501,3506 **** --- 3501,3517 ---- @findex TARGET_CHAR_BIT Number of bits in a char; defaults to 8. + @item TARGET_CHAR_SIGNED + @findex TARGET_CHAR_SIGNED + Non-zero if @code{char} is normally signed on this architecture; zero if + it should be unsigned. + + The ISO C standard requires the compiler to treat @code{char} as + equivalent to either @code{signed char} or @code{unsigned char}; any + character in the standard execution set is supposed to be positive. + Most compilers treat @code{char} as signed, but @code{char} is unsigned + on the IBM S/390, RS6000, and PowerPC targets. + @item TARGET_COMPLEX_BIT @findex TARGET_COMPLEX_BIT Number of bits in a complex number; defaults to @code{2 * TARGET_FLOAT_BIT}.