This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Testsuite: Prevent limits.h from using #include_next instrict ANSI mode

On Wed, 10 Nov 2004, Nick Clifton wrote:

>   The problem was that a GCC version of the system header file
>   <limits.h> was being included, and this header used the
>   #include_next <> preprocessor operation to chain on to the next
>   version of the header file.  This causes failures when the test file
>   concerned is being compiled in a strict ANSI mode, since
>   #include_next is a GCC extension.

As I said before <>, the 
system headers provided by GCC should be included by the testsuite harness 
with -isystem, please fix the bug there instead.  The tests are correct; 
it is correct to include <limits.h> in strict ANSI mode and not worry 
about its internals.  The problems was tracked to DejaGnu in the previous 
thread; and indeed it is fixed in DejaGnu 1.4.4 (documented in 
install.texi as the minimum required version), probably by

2002-11-12  Hans-Peter Nilsson  <>

        * lib/libgloss.exp (newlib_include_flags): Use -isystem, not -I.
        (libio_include_flags, g++_include_flags, libstdc++_include_flags,
        winsup_include_flags): Ditto.

Joseph S. Myers      (personal mail) (CodeSourcery mail) (Bugzilla assignments and CCs)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]