This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix sign extension in cpplex.c
Zack Weinberg <zack@codesourcery.com> writes:
> On Thu, Nov 22, 2001 at 12:57:25PM +0100, Andreas Jaeger wrote:
>>
>>
>> * cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
>> extension.
>
> OK if you also add a test case.
The testcase I used is the following:
int
main (void)
{
signed char c = '\xff';
unsigned char d = '\xff';
return 0;
}
Ok to add this as gcc.c-torture/compile/<today>.c? Or where should it
get added?
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj