diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-12-12 16:11:28 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-12-12 16:11:28 +0000 |
commit | 09a07f80eb0be19484bdcc8b3d5d18ad882962e5 (patch) | |
tree | d253486d919cdad4e756313d9048f48f644c9481 /lang | |
parent | 8fdae33a4d03043ac9750328d0ea01afba59bd4c (diff) |
Notes
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gcc10/files/patch-libcpp_lex.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lang/gcc10/files/patch-libcpp_lex.c b/lang/gcc10/files/patch-libcpp_lex.c new file mode 100644 index 000000000000..3ab93a04b304 --- /dev/null +++ b/lang/gcc10/files/patch-libcpp_lex.c @@ -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 * |