[Bug 2038] C99 integer type mismatch in GCC and Newlib

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Wed Mar 14 11:02:29 UTC 2012


https://www.rtems.org/bugzilla/show_bug.cgi?id=2038

--- Comment #3 from Sebastian Huber <sebastian.huber at embedded-brains.de> 2012-03-14 06:02:29 CDT ---
(In reply to comment #2)
> Created attachment 1459 [details]
> Honor __[U]INTPTR_TYPE__ for [u]intptr_t.
> 
> Sebastian, could you please try this patch with GCC's testsuite?
> 
> It's an initial attempt towards 2. from my previous comment.

The previous failures are now fixed, but the

gcc/testsuite/gcc.dg/c99-stdint-1.c

fails now:

Executing on host: /home/sh/rtems-testing/gcc/b-arm-gcc/gcc/xgcc
-B/home/sh/rtems-testing/gcc/b-arm-gcc/gcc/
/home/sh/archive/gcc-4.7.0-RC-20120302/gcc/testsuite/gcc.dg/c99-stdint-1.c   
-std=iso9899:1999 -pedantic-errors -fhosted -DSTACK_SIZE=2048 -S  -isystem
/home/sh/rtems-testing/gcc/b-arm-gcc/arm-rtemseabi4.11/./newlib/targ-include
-isystem /home/sh/archive/gcc-4.7.0-RC-20120302/newlib/libc/include
-mcpu=arm7tdmi
-B/home/sh/install-4.7.0-RC-20120302/arm-rtemseabi4.11/edb7312/lib/ -specs
bsp_specs -qrtems  -o c99-stdint-1.s    (timeout = 300)
spawn /home/sh/rtems-testing/gcc/b-arm-gcc/gcc/xgcc
-B/home/sh/rtems-testing/gcc/b-arm-gcc/gcc/
/home/sh/archive/gcc-4.7.0-RC-20120302/gcc/testsuite/gcc.dg/c99-stdint-1.c
-std=iso9899:1999 -pedantic-errors -fhosted -DSTACK_SIZE=2048 -S -isystem
/home/sh/rtems-testing/gcc/b-arm-gcc/arm-rtemseabi4.11/./newlib/targ-include
-isystem /home/sh/archive/gcc-4.7.0-RC-20120302/newlib/libc/include
-mcpu=arm7tdmi
-B/home/sh/install-4.7.0-RC-20120302/arm-rtemseabi4.11/edb7312/lib/ -specs
bsp_specs -qrtems -o c99-stdint-1.s

/home/sh/archive/gcc-4.7.0-RC-20120302/gcc/testsuite/gcc.dg/c99-stdint-1.c: In
function 'test_ptr':

/home/sh/archive/gcc-4.7.0-RC-20120302/gcc/testsuite/gcc.dg/c99-stdint-1.c:188:3:
error: initialization from incompatible pointer type

/home/sh/archive/gcc-4.7.0-RC-20120302/gcc/testsuite/gcc.dg/c99-stdint-1.c:188:3:
error: initialization from incompatible pointer type

/home/sh/archive/gcc-4.7.0-RC-20120302/gcc/testsuite/gcc.dg/c99-stdint-1.c:191:3:
error: initialization from incompatible pointer type

compiler exited with status 1
output is:
/home/sh/archive/gcc-4.7.0-RC-20120302/gcc/testsuite/gcc.dg/c99-stdint-1.c: In
function 'test_ptr':

/home/sh/archive/gcc-4.7.0-RC-20120302/gcc/testsuite/gcc.dg/c99-stdint-1.c:188:3:
error: initialization from incompatible pointer type

/home/sh/archive/gcc-4.7.0-RC-20120302/gcc/testsuite/gcc.dg/c99-stdint-1.c:188:3:
error: initialization from incompatible pointer type

/home/sh/archive/gcc-4.7.0-RC-20120302/gcc/testsuite/gcc.dg/c99-stdint-1.c:191:3:
error: initialization from incompatible pointer type


PASS: gcc.dg/c99-stdint-1.c ptrdiff is 16bits (test for bogus messages, line
218)
FAIL: gcc.dg/c99-stdint-1.c (test for excess errors)
Excess errors:
/home/sh/archive/gcc-4.7.0-RC-20120302/gcc/testsuite/gcc.dg/c99-stdint-1.c:188:3:
error: initialization from incompatible pointer type
/home/sh/archive/gcc-4.7.0-RC-20120302/gcc/testsuite/gcc.dg/c99-stdint-1.c:188:3:
error: initialization from incompatible pointer type
/home/sh/archive/gcc-4.7.0-RC-20120302/gcc/testsuite/gcc.dg/c99-stdint-1.c:191:3:
error: initialization from incompatible pointer type

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list