Re: [PATCH] RISC-V: fix build issue with gcc 4.9.x

2023-05-02 Thread Romain Naour via Gcc-patches
Hi Kito, Le 02/05/2023 à 17:51, Kito Cheng a écrit : >>> Pushed to trunk, thanks for catching that, that's definitely should >>> use log2 no matter C++03 or C++11, >>> but I think GCC allows the usage of C++11 according to >>> https://gcc.gnu.org/install/prerequisites.html :P >> Yes, we should be

[PATCH] RISC-V: fix build issue with gcc 4.9.x

2023-05-02 Thread Romain Naour via Gcc-patches
GCC should still build with GCC 4.8.3 or newer [1] using C++03 by default. But a recent change in RISC-V port introduced a C++11 feature "std::log2" [2]. Use log2 from the C header, without the namespace [3]. [1] https://gcc.gnu.org/install/prerequisites.html [2] https://gcc.gnu.org/git/?p=gcc.g

Re: [PATCH] gcc/Makefile.in: move SELFTEST_DEPS before including language makefile fragments

2020-07-08 Thread Romain Naour via Gcc-patches
Le 03/06/2020 à 22:24, Jeff Law a écrit : > On Wed, 2020-06-03 at 21:56 +0200, Romain Naour wrote: >> Hi Jeff, >> >> Le 03/06/2020 à 20:33, Jeff Law a écrit : >>> On Thu, 2020-05-21 at 17:35 +0200, Romain Naour via Gcc-patches wrote: >>>> As reported by

Re: [PATCH] gcc/Makefile.in: move SELFTEST_DEPS before including language makefile fragments

2020-06-03 Thread Romain Naour via Gcc-patches
Hi Jeff, Le 03/06/2020 à 20:33, Jeff Law a écrit : > On Thu, 2020-05-21 at 17:35 +0200, Romain Naour via Gcc-patches wrote: >> As reported by several Buildroot users [1][2][3], the gcc build >> may fail while running selftests makefile target. >> >> The problem only

Re: [PATCH] gcc/Makefile.in: move SELFTEST_DEPS before including language makefile fragments

2020-05-30 Thread Romain Naour via Gcc-patches
Hi Jeff, Le 21/05/2020 à 19:41, Jeff Law a écrit : > On Thu, 2020-05-21 at 19:31 +0200, Richard Biener via Gcc-patches wrote: >> On May 21, 2020 5:35:19 PM GMT+02:00, Romain Naour via Gcc-patches < >> gcc-patches@gcc.gnu.org> wrote: >>> As reported by several Buil

Re: [PATCH] gcc/Makefile.in: move SELFTEST_DEPS before including language makefile fragments

2020-05-27 Thread Romain Naour via Gcc-patches
Hi All, Le 22/05/2020 à 00:13, David Malcolm a écrit : > On Thu, 2020-05-21 at 17:35 +0200, Romain Naour wrote: >> As reported by several Buildroot users [1][2][3], the gcc build >> may fail while running selftests makefile target. >> >> The problem only occurs when ccache is used with gcc 9 and 1

[PATCH] gcc/Makefile.in: move SELFTEST_DEPS before including language makefile fragments

2020-05-21 Thread Romain Naour via Gcc-patches
As reported by several Buildroot users [1][2][3], the gcc build may fail while running selftests makefile target. The problem only occurs when ccache is used with gcc 9 and 10, probably due to a race condition. While debuging with "make -p" we can notice that s-selftest-c target contain only "cc1