aboutsummaryrefslogtreecommitdiffstats
path: root/community/gcc6/fix-ppc64le-coercion-r261621.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/gcc6/fix-ppc64le-coercion-r261621.patch')
-rw-r--r--community/gcc6/fix-ppc64le-coercion-r261621.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/gcc6/fix-ppc64le-coercion-r261621.patch b/community/gcc6/fix-ppc64le-coercion-r261621.patch
new file mode 100644
index 0000000000..bd321ca4ab
--- /dev/null
+++ b/community/gcc6/fix-ppc64le-coercion-r261621.patch
@@ -0,0 +1,11 @@
+--- a/libcpp/lex.c
++++ b/libcpp/lex.c
+@@ -568,7 +568,7 @@
+ {
+ vc m_nl, m_cr, m_bs, m_qm;
+
+- data = *((const vc *)s);
++ data = __builtin_vec_vsx_ld (0, s);
+ s += 16;
+
+ m_nl = (vc) __builtin_vec_cmpeq(data, repl_nl);