This is the mail archive of the gcc-patches@gcc.gnu.org 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: [v3] cleanup testsuite for newlib targets


On 3/23/07, Richard Guenther <richard.guenther@gmail.com> wrote> On
3/23/07, Benjamin Kosnik <bkoz@redhat.com> wrote:
>
> > Ah, the offender seems to be (I overlooked that):
> >
> > /gcc/spec/sb-vangelis-head-64/x86_64/install-200703230136/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/c++0x_warning.h:36:2:
> >
> > error: #error This file requires compiler and library support for the
> > upcoming ISO C++ standard, C++0x. This support is currently
> > experimental, and must be enabled with the -std=c++0x or -std=gnu++0x
> > compiler options.
>
> Ok, well let me know if -std=gnu++0x works, if not I'll back out the
> Makefile.am bits.

Yes, -std=gnu++0x works, but why should I now need this to include fenv.h?

I suppose the compatibility fenv.h should instead of


#include <cfenv>

#ifndef _GLIBCXX_FENV_H
#define _GLIBCXX_FENV_H 1

#endif

look like

#ifdef __GXX_EXPERIMENTAL_CXX0X__
#include <cfenv>
#else
#include_next <fenv.h>
#endif

Richard.


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