This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++ test case ext/headers.cc failed on arm-none-eabi
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: "Bin.Cheng" <amker dot cheng at gmail dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 7 Aug 2013 12:05:24 +0100
- Subject: Re: libstdc++ test case ext/headers.cc failed on arm-none-eabi
- References: <CAHFci282xzqC07Nu03Az+VuwOjm2b3gzDr4Oty-OBW6NKa5ekg at mail dot gmail dot com>
You'll have more luck asking the libstdc++ list so I've redirected this there.
On 7 August 2013 11:22, Bin.Cheng wrote:
> Hi,
> I spotted case ext/headers.cc failed on arm-none-eabi with below information:
>
> In file included from
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr.h:148:0,
> from
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/ext/atomicity.h:33,
> from
> /home/build/work/src/gcc/libstdc++-v3/testsuite/ext/headers.cc:28:
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
> #define __GTHREAD_MUTEX_INIT 0
> ^
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
> #define __GTHREAD_MUTEX_INIT 0
> ^
> output is:
> In file included from
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr.h:148:0,
> from
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/ext/atomicity.h:33,
> from
> /home/build/work/src/gcc/libstdc++-v3/testsuite/ext/headers.cc:28:
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
> #define __GTHREAD_MUTEX_INIT 0
> ^
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
> #define __GTHREAD_MUTEX_INIT 0
> ^
>
> FAIL: ext/headers.cc (test for excess errors)
> Excess errors:
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
>
> The cases failed both on trunk and 4.8, but ok for 4.7.
>
> Any ideas? Thanks.
There's not enough context to see what happened, the diagnostic is
crap, only showing the macro not where it's used. The macro is not
used as a non-static data member initializers except in C++11 mode, so
I don't know how that could happen.