Re: [PATCH] configure: Require C++11 for building code generation tools

2020-08-20 Thread Vaseeharan Vinayagamoorthy
Hi Tobias, This patch fixes the issue that I was seeing, thanks. I will also now try your updated patch from https://gcc.gnu.org/pipermail/gcc-patches/2020-August/552330.html Kind Regards Vasee On 20/08/2020, 17:29, "Tobias Burnus" wrote: Hi, how about my (unreviewed) patch for PR

Re: [PATCH] configure: Require C++11 for building code generation tools

2020-08-20 Thread Richard Earnshaw (lists)
On 20/08/2020 18:07, Vaseeharan Vinayagamoorthy wrote: > Hi Szabolcs, > > In the top level gcc config.log, I see: > > configure:5541: checking whether aarch64-none-linux-gnu-g++ supports C++11 > features by default > configure:5837: aarch64-none-linux-gnu-g++ -c -g -O2 conftest.cpp >&5 >

Re: [PATCH] configure: Require C++11 for building code generation tools

2020-08-20 Thread Vaseeharan Vinayagamoorthy
Hi Szabolcs, In the top level gcc config.log, I see: configure:5541: checking whether aarch64-none-linux-gnu-g++ supports C++11 features by default configure:5837: aarch64-none-linux-gnu-g++ -c -g -O2 conftest.cpp >&5 configure:5837: $? = 0 configure:5844: result: yes configure:6542: checking

Re: [PATCH] configure: Require C++11 for building code generation tools

2020-08-20 Thread Tobias Burnus
Hi, how about my (unreviewed) patch for PR 96612 at https://gcc.gnu.org/pipermail/gcc-patches/2020-August/551900.html ? That one also tries to solve the CXX_FOR_BUILD issue with an older GCC. Would that solve your issue as well? Tobias On 8/20/20 4:19 PM, Ilya Leoshkevich via Gcc-patches

Re: [PATCH] configure: Require C++11 for building code generation tools

2020-08-20 Thread Szabolcs Nagy
The 08/20/2020 13:59, Vasee Vinayagamoorthy wrote: > +# Also require C++11 for building code generation tools. > +# Do nothing if "${build}" = "${host}", because in this case > +# CXX_FOR_BUILD="\$(CXX)", and $CXX is already set to the correct value > above. > +if test "${build}" != "${host}";

Re: [PATCH] configure: Require C++11 for building code generation tools

2020-08-20 Thread Ilya Leoshkevich via Gcc-patches
On Thu, 2020-08-20 at 13:59 +0100, Vasee Vinayagamoorthy wrote: > Hello, > > After commit [1] ("Redefine NULL to nullptr"), building gcc > fails when $CXX_FOR_BUILD is not using C++11 mode by default. > This happens with gcc-4.8 which is still supported. > > This patch fixes this by adding

[PATCH] configure: Require C++11 for building code generation tools

2020-08-20 Thread Vasee Vinayagamoorthy
Hello, After commit [1] ("Redefine NULL to nullptr"), building gcc fails when $CXX_FOR_BUILD is not using C++11 mode by default. This happens with gcc-4.8 which is still supported. This patch fixes this by adding -std=c++11 or its equivalent to $CXX_FOR_BUILD using AX_CXX_COMPILE_STDCXX(11).