Re: c99 stdint.h question

2009-04-10 Thread Joseph S. Myers
On Fri, 10 Apr 2009, Steve Ellcey wrote: > $ cat x.c > typedef unsigned char uint8_t; > void test_exact (void) > { > __typeof__(((255u))) a; > __typeof__((uint8_t)0 + 0) *b = &a; > } > > $ gcc -std=iso9899:1999 -pedantic-errors -fhosted -c x.c > x.c: In function 'test_exact': > x.c:5: error:

c99 stdint.h question

2009-04-10 Thread Steve Ellcey
I am working on changing GCC for HP-UX to use the 'wrap' method for stdint and doing the fixincludes work to make the system header more c99 compliant and see if I can get the various c99-stdint-*.c tests to pass. I have made some good progress but am currently running into this problem cutdown f