This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Patch for isdigit/isalpha/etc. macro arguments
- From: Daniel Jacobowitz <drow at false dot org>
- To: Steve Ellcey <sje at cup dot hp dot com>
- Cc: schwab at suse dot de, eliz at gnu dot org, mark dot kettenis at xs4all dot nl, gdb-patches at sourceware dot org
- Date: Tue, 10 Apr 2007 17:21:25 -0400
- Subject: Re: Patch for isdigit/isalpha/etc. macro arguments
- References: <20070408141051.GA13486@caradoc.them.org> <200704102116.OAA21675@hpsje.cup.hp.com>
On Tue, Apr 10, 2007 at 02:16:16PM -0700, Steve Ellcey wrote:
> Well, this discussion was very interesting but I am not sure it led
> anywhere. If casting to '(int)' is unacceptable, double casting to
> '(int) (unsigned char)' is probably even less acceptable so I would like
> to check in the following patch that turns off the warnings so I can
> build on HPPA HP-UX.
>
> Tested by building on HPPA HP-UX.
>
> OK to checkin?
I think we should decide whether this constitutes a Real Problem,
and whether we care about it, before we do this. It seems that
passing a char to isfoo is not portable, although I could not tell for
sure from the discussion whether ISO C requires it to work.
--
Daniel Jacobowitz
CodeSourcery