aboutsummaryrefslogtreecommitdiff
path: root/lang/gcc9
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@FreeBSD.org>2019-08-24 11:04:34 +0000
committerGerald Pfeifer <gerald@FreeBSD.org>2019-08-24 11:04:34 +0000
commite30b9893dd840f7cb9901b92213119d2b4267065 (patch)
tree1af0d3e7025d6f28cd7bdb94556dcc9168eeb88d /lang/gcc9
parentc55c2fd15fbe083b3b8bf6894c905a5abe1c8933 (diff)
downloadports-e30b9893dd840f7cb9901b92213119d2b4267065.tar.gz
ports-e30b9893dd840f7cb9901b92213119d2b4267065.zip
clang on rs6000/powerpc* unfortunately poisons user namespace by default
(without any special options or include files being required). Until that changes (or GCC changes) we need to avoid using vec_step as a variable name. PR: 239266
Notes
Notes: svn path=/head/; revision=509717
Diffstat (limited to 'lang/gcc9')
-rw-r--r--lang/gcc9/patch-clang-vec_step21
1 files changed, 21 insertions, 0 deletions
diff --git a/lang/gcc9/patch-clang-vec_step b/lang/gcc9/patch-clang-vec_step
new file mode 100644
index 000000000000..68fbeedad582
--- /dev/null
+++ b/lang/gcc9/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.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.