git: 72fff4b4c153 - main - lang/gcc14-devel: switch to using clang on powerpc64*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 29 Jan 2025 16:58:08 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=72fff4b4c153b7b7a762cec70a098b178557b4d3 commit 72fff4b4c153b7b7a762cec70a098b178557b4d3 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2025-01-27 10:16:39 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2025-01-29 16:56:48 +0000 lang/gcc14-devel: switch to using clang on powerpc64* --- lang/gcc14-devel/Makefile | 4 ---- 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.