Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Dec 2020 16:11:28 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r557833 - head/lang/gcc10/files
Message-ID:  <202012121611.0BCGBS50083908@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 *



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012121611.0BCGBS50083908>