This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [TESTSUITE] assert (char == signed char)
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Michael Snyder <msnyder at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 14 Aug 2002 23:06:50 +0100
- Subject: Re: [TESTSUITE] assert (char == signed char)
- References: <3D5AC6F4.8D119BF4@redhat.com>
Michael Snyder wrote:-
> There seem to be some tests in the testsuite that are
> based on the assumption that chars are signed, and that
> will fail if they are unsigned.
>
> Eg:
> sizeof.exp: check valueof ((int) (char)) -1 == -1
> (prints 255 if char == unsigned)
>
> pointers.exp: ptype pC
> (outputs "unsigned char *" if char == unsigned)
>
> Any thoughts? Should these be regularized to accept unsigned?
> Should it be based on a configure variable?
I'd pass -fsigned-char; that's done in some other tests.
Neil.