This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3] revamp header pedantic testing
On Thu, 2009-08-13 at 19:49 +0100, Jonathan Wakely wrote:
> 2009/8/13 Steve Ellcey:
> >
> > Following up on my own email, it looks like the reason I get this error
> > when running the testsuite from the build location and not from the
> > installed location is that we use -I to include the new C++ header files
> > from the building locaion intead of -isystem. -isystem would suppress
> > these messages (even if -pedantic-errors is used) and allow the tests to
> > pass. I am going to test a change to libstdc++-v3/acinclude.m4 to use
> > -isystem instead of -I.
>
> IIUC we don't want to suppress errors from -pedantic-errors, I thought
> the whole point of those new tests is to catch such problems.
>
> Apologies if I've misunderstood the change you mean, or the purpose of
> the new tests.
>
> Jonathan
I am not sure if the use of -I instead of -isystem is intentional or
not. FYI: The errors I get with -pedantic-errors are:
In file included
from /proj/opensrc/nightly/build-ia64-hp-hpux11.23-trunk/obj_gcc/ia64-hp-hpux11.23/libstdc++-v3/include/ext/extptr_allocator.h:39:0,
from /proj/opensrc/nightly/build-ia64-hp-hpux11.23-trunk/obj_gcc/ia64-hp-hpux11.23/libstdc++-v3/include/ia64-hp-hpux11.23/bits/extc++.h:40,
from x.cc:1:
/proj/opensrc/nightly/build-ia64-hp-hpux11.23-trunk/obj_gcc/ia64-hp-hpux11.23/libstdc++-v3/include/ext/pointer.h:481:48: error: invoking macro _GCC_CXX_POINTER_COMPARISON_OPERATION_SET argument 2: empty macro arguments are undefined in ISO C90 and ISO C++98
(lots of replications on line 481, 482, etc)
In file included
from /proj/opensrc/nightly/build-ia64-hp-hpux11.23-trunk/obj_gcc/ia64-hp-hpux11.23/libstdc++-v3/include/ext/extptr_allocator.h:39:0,
from /proj/opensrc/nightly/build-ia64-hp-hpux11.23-trunk/obj_gcc/ia64-hp-hpux11.23/libstdc++-v3/include/ia64-hp-hpux11.23/bits/extc++.h:40,
from x.cc:1:
/proj/opensrc/nightly/build-ia64-hp-hpux11.23-trunk/obj_gcc/ia64-hp-hpux11.23/libstdc++-v3/include/ext/pointer.h:138:18: error: ISO C++ 1998 does not support 'long long'
/proj/opensrc/nightly/build-ia64-hp-hpux11.23-trunk/obj_gcc/ia64-hp-hpux11.23/libstdc++-v3/include/ext/pointer.h:186:18: error: ISO C++ 1998 does not support 'long long'