g++ uses -pedantic-errors when compiling g++.dg/abi/bitfield4.C.  When newlib is
being used its limits.h file ends with #include_next <limits.h> to get GCC's own
limits.h information.  This causes the error 'include_next is a GCC extension'
so the test fails to build.

This is probably a problem with the way include files are passed to the compiler
in the testsuite, but it may also be a CPP problem.

The command-line used to compile the test is:

/work/rearnsha/gnu/gcc-4.0/gcc/testsuite/../g++
-B/work/rearnsha/gnu/gcc-4.0/gcc/testsuite/../
/home/rearnsha/gnusrc/gcc-4.0-cross/gcc/testsuite/g++.dg/abi/bitfield4.C
g++_tg.o -nostdinc++
-I/work/rearnsha/gnu/gcc-4.0/arm-elf/libstdc++-v3/include/arm-elf
-I/work/rearnsha/gnu/gcc-4.0/arm-elf/libstdc++-v3/include
-I/home/rearnsha/gnusrc/gcc-4.0-cross/libstdc++-v3/libsupc++
-I/home/rearnsha/gnusrc/gcc-4.0-cross/libstdc++-v3/include/backward
-I/home/rearnsha/gnusrc/gcc-4.0-cross/libstdc++-v3/testsuite -fmessage-length=0
-ansi -pedantic-errors -Wno-long-long
-I/work/rearnsha/gnu/gcc-4.0/arm-elf/./newlib/targ-include
-I/home/rearnsha/gnusrc/gcc-4.0-cross/newlib/libc/include
-B/work/rearnsha/gnu/gcc-4.0/arm-elf/./libgloss/arm/
-L/work/rearnsha/gnu/gcc-4.0/arm-elf/./libgloss/arm
-L/home/rearnsha/gnusrc/gcc-4.0-cross/libgloss/arm
-L/work/rearnsha/gnu/gcc-4.0/ld -B/work/rearnsha/gnu/gcc-4.0/arm-elf/./newlib/
-L/work/rearnsha/gnu/gcc-4.0/arm-elf/./newlib
-L/work/rearnsha/gnu/gcc-4.0/arm-elf/./libstdc++-v3/src/.libs
-L/work/rearnsha/gnu/gcc-4.0/arm-elf/./libiberty -Wl,-wrap,exit -Wl,-wrap,_exit
-Wl,-wrap,main -Wl,-wrap,abort -lm -o ./bitfield4.exe

-- 
           Summary: g++ -pedantic-errors + newlib => failed test
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: testsuite
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rearnsha at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: arm-elf


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23559

Reply via email to