Skip to content

Commit

Permalink
lang/gcc11: build with clang on powerpc64le
Browse files Browse the repository at this point in the history
Copy the patch used for other gcc versions.
  • Loading branch information
pkubaj committed Apr 19, 2022
1 parent 3d1ba1a commit 165af9b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lang/gcc11/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ CONFIGURE_ENV+= UNAME_m="powerpc64"
CONFIGURE_ARGS+= --with-abi=elfv2
. endif
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/gcc11/files/patch-clang-vec_step
Original file line number Diff line number Diff line change
@@ -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.c
===================================================================
--- gcc/tree-vect-loop.c (revision 273856)
+++ gcc/tree-vect-loop.c (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 165af9b

Please sign in to comment.