Skip to content

Commit

Permalink
lang/gcc13-devel: switch to using clang, as with other stable GCC bra…
Browse files Browse the repository at this point in the history
…nches and remove ELFv1 support
  • Loading branch information
pkubaj committed Jan 5, 2024
1 parent 2d58920 commit 56fe1f8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
6 changes: 1 addition & 5 deletions lang/gcc13-devel/Makefile
Expand Up @@ -76,12 +76,8 @@ CXXFLAGS:= ${CFLAGS:S/mcpu=g/mcpu=G/}
.if ${ARCH} == amd64
CONFIGURE_TARGET= x86_64-portbld-${OPSYS:tl}${OSREL}

.elif defined(PPC_ABI) && ${PPC_ABI} == ELFv2
.elif ${ARCH} == powerpc64
CONFIGURE_ARGS+= --with-abi=elfv2
USE_GCC= yes

.elif ${ARCH} == powerpc64le
USE_GCC= yes
.endif

LANGUAGES:= c,c++,objc,fortran,jit
Expand Down
21 changes: 21 additions & 0 deletions lang/gcc13-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.

0 comments on commit 56fe1f8

Please sign in to comment.