svn commit: r557833 - head/lang/gcc10/files
Piotr Kubaj
pkubaj at FreeBSD.org
Sat Dec 12 16:11:28 UTC 2020
Author: pkubaj
Date: Sat Dec 12 16:11:28 2020
New Revision: 557833
URL: https://svnweb.freebsd.org/changeset/ports/557833
Log:
lang/gcc10: fix build on powerpc64 with CPUTYPE=power8 or power9, also a partial fix for powerpc64le
Backport of https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=d00b1b023ecfc3ddc3fe952c0063dab7529d5f7a
PR: 251670
Approved by: gerald (maintainer)
Added:
head/lang/gcc10/files/patch-libcpp_lex.c (contents, props changed)
Added: head/lang/gcc10/files/patch-libcpp_lex.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/lang/gcc10/files/patch-libcpp_lex.c Sat Dec 12 16:11:28 2020 (r557833)
@@ -0,0 +1,16 @@
+--- 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 *
More information about the svn-ports-all
mailing list