Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@zwingli.cygnus.com>
To: Eli Zaretskii <eliz@is.elta.co.il>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: char is unsigned on some architectures
Date: Thu, 20 Dec 2001 01:14:00 -0000	[thread overview]
Message-ID: <npbsguxneb.fsf@zwingli.cygnus.com> (raw)
In-Reply-To: Eli Zaretskii's message of Thu, 20 Dec 2001 09:07:56 +0200


Eli Zaretskii <eliz@is.elta.co.il> writes:
> > 2001-12-19  Jim Blandy  <jimb@redhat.com>
> > 
> >         * 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}.


  reply	other threads:[~2001-12-20  9:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-19 14:43 Jim Blandy
2001-12-19 14:48 ` Andrew Cagney
2001-12-19 19:11   ` Jim Blandy
2001-12-19 19:26   ` Jim Blandy
2001-12-20  0:44   ` Lars Brinkhoff
2001-12-20 12:24     ` Jim Blandy
2002-01-07  9:13   ` Richard Earnshaw
2001-12-19 23:04 ` Eli Zaretskii
2001-12-20  1:14   ` Jim Blandy [this message]
2001-12-20  3:10     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=npbsguxneb.fsf@zwingli.cygnus.com \
    --to=jimb@zwingli.cygnus.com \
    --cc=eliz@is.elta.co.il \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox