diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2021-03-10 21:54:36 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2021-03-10 21:54:36 +0000 |
commit | a10a3e08ce64501858b7fe082ca6ff4cd2e471ec (patch) | |
tree | d9f80531883474afa4abd2cae766e55fa6136569 /devel/freebsd-gcc6/files | |
parent | ef4b7d3e011335fa639a5431d1c0a80970624fb0 (diff) | |
download | ports-a10a3e08ce64501858b7fe082ca6ff4cd2e471ec.tar.gz ports-a10a3e08ce64501858b7fe082ca6ff4cd2e471ec.zip |
devel/freebsd-gcc6: fix build on powerpc64le
Same issue as other GCC ports.
Notes
Notes:
svn path=/head/; revision=568048
Diffstat (limited to 'devel/freebsd-gcc6/files')
-rw-r--r-- | devel/freebsd-gcc6/files/patch-libcpp_lex.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/devel/freebsd-gcc6/files/patch-libcpp_lex.c b/devel/freebsd-gcc6/files/patch-libcpp_lex.c new file mode 100644 index 000000000000..05ad28872d11 --- /dev/null +++ b/devel/freebsd-gcc6/files/patch-libcpp_lex.c @@ -0,0 +1,25 @@ +This is + + commit cd547f0ddcd3a54e5b73bcda5ac0f0c46808db8b + Author: Jakub Jelinek <jakub@redhat.com> + Date: Sat Sep 26 10:07:41 2020 +0200 + +which is on the GCC 10 release branch and thus part of lang/gcc10-devel; +we should automatically get it with GCC 10.3. + +--- libcpp/lex.c.orig 2020-11-02 10:24:50 UTC ++++ libcpp/lex.c +@@ -531,11 +531,11 @@ init_vectorized_lexer (void) + search_line_fast = impl; + } + +-#elif defined(_ARCH_PWR8) && defined(__ALTIVEC__) ++#elif (GCC_VERSION >= 4005) && defined(_ARCH_PWR8) && defined(__ALTIVEC__) + + /* A vection of the fast scanner using AltiVec vectorized byte compares + and VSX unaligned loads (when VSX is available). This is otherwise +- the same as the pre-GCC 5 version. */ ++ the same as the AltiVec version. */ + + ATTRIBUTE_NO_SANITIZE_UNDEFINED + static const uchar * |