Hi! On 2023-12-13T17:12:11+0100, Filip Kastl <fka...@suse.cz> wrote: > --- /dev/null > +++ b/gcc/gimple-ssa-sccopy.cc
> +#include <algorithm> Pushed to master branch commit 65e41f4fbfc539c5cc429c684176f8ea39f4b8f2 "In 'gcc/gimple-ssa-sccopy.cc', '#define INCLUDE_ALGORITHM' instead of '#include <algorithm>'", see attached. Grüße Thomas ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955
>From 65e41f4fbfc539c5cc429c684176f8ea39f4b8f2 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge <tho...@codesourcery.com> Date: Thu, 14 Dec 2023 14:12:45 +0100 Subject: [PATCH] In 'gcc/gimple-ssa-sccopy.cc', '#define INCLUDE_ALGORITHM' instead of '#include <algorithm>' ... to avoid issues such as: In file included from [...]/lib/gcc/i686-pc-linux-gnu/5.2.0/include/xmmintrin.h:34:0, from [...]/lib/gcc/i686-pc-linux-gnu/5.2.0/include/x86intrin.h:31, from [...]/i686-pc-linux-gnu/include/c++/5.2.0/i686-pc-linux-gnu/64/bits/opt_random.h:33, from [...]/i686-pc-linux-gnu/include/c++/5.2.0/random:50, from [...]/i686-pc-linux-gnu/include/c++/5.2.0/bits/stl_algo.h:66, from [...]/i686-pc-linux-gnu/include/c++/5.2.0/algorithm:62, from [...]/source-gcc/gcc/gimple-ssa-sccopy.cc:32: [...]/lib/gcc/i686-pc-linux-gnu/5.2.0/include/mm_malloc.h:42:12: error: attempt to use poisoned "malloc" return malloc (size); ^ make[2]: *** [Makefile:1197: gimple-ssa-sccopy.o] Error 1 Minor fix-up for commit cd794c3961017703a4d2ca0e854ea23b3d4b6373 "A new copy propagation and PHI elimination pass". gcc/ * gimple-ssa-sccopy.cc: '#define INCLUDE_ALGORITHM' instead of '#include <algorithm>'. --- gcc/gimple-ssa-sccopy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/gimple-ssa-sccopy.cc b/gcc/gimple-ssa-sccopy.cc index ac5ec32eb32..7ebb6c05caf 100644 --- a/gcc/gimple-ssa-sccopy.cc +++ b/gcc/gimple-ssa-sccopy.cc @@ -18,6 +18,7 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ +#define INCLUDE_ALGORITHM #include "config.h" #include "system.h" #include "coretypes.h" @@ -29,7 +30,6 @@ along with GCC; see the file COPYING3. If not see #include "gimple-iterator.h" #include "vec.h" #include "hash-set.h" -#include <algorithm> #include "ssa-iterators.h" #include "gimple-fold.h" #include "gimplify.h" -- 2.34.1