diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2025-01-27 10:16:39 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2025-01-29 16:56:48 +0000 |
commit | 72fff4b4c153b7b7a762cec70a098b178557b4d3 (patch) | |
tree | 5f4d2ad5970a69b5e6961d22c918f9e90323e267 | |
parent | ac84285fa8cd56744dd4542980b0453ca280b15f (diff) |
-rw-r--r-- | lang/gcc14-devel/Makefile | 4 | ||||
-rw-r--r-- | lang/gcc14-devel/files/patch-clang-vec_step | 21 |
2 files changed, 21 insertions, 4 deletions
diff --git a/lang/gcc14-devel/Makefile b/lang/gcc14-devel/Makefile index 70c71457e0a5..8e76d6209e27 100644 --- a/lang/gcc14-devel/Makefile +++ b/lang/gcc14-devel/Makefile @@ -79,10 +79,6 @@ CONFIGURE_TARGET= x86_64-portbld-${OPSYS:tl}${OSREL} .elif ${ARCH} == powerpc64 CONFIGURE_ARGS+= --with-abi=elfv2 -USE_GCC= yes - -.elif ${ARCH} == powerpc64le -USE_GCC= yes .endif .if ${ARCH} == i386 diff --git a/lang/gcc14-devel/files/patch-clang-vec_step b/lang/gcc14-devel/files/patch-clang-vec_step new file mode 100644 index 000000000000..00607540eb2a --- /dev/null +++ b/lang/gcc14-devel/files/patch-clang-vec_step @@ -0,0 +1,21 @@ +https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239266 reports how +clang unfortunately poisons user namespace by default (without any +special options). + +Until that changes (or GCC changes) we need to avoid using vec_step +as a variable. + +--- UTC +Index: gcc/tree-vect-loop.cc +=================================================================== +--- gcc/tree-vect-loop.cc (revision 273856) ++++ gcc/tree-vect-loop.cc (working copy) +@@ -55,6 +55,8 @@ along with GCC; see the file COPYING3. If not see + #include "vec-perm-indices.h" + #include "tree-eh.h" + ++#define vec_step vec_step_ ++ + /* Loop Vectorization Pass. + + This pass tries to vectorize loops. |