Skip to content

Commit

Permalink
Partial backport r256656
Browse files Browse the repository at this point in the history
2018-06-15  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2018-01-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>

	* lex.c (search_line_fast): Remove illegal coercion of an
	unaligned pointer value to vector pointer type and replace with
	use of __builtin_vec_vsx_ld () built-in function, which operates
	on unaligned pointer values.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@261621 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
marxin committed Jun 15, 2018
1 parent f20adcf commit 765527a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions libcpp/ChangeLog
@@ -1,3 +1,15 @@
2018-06-15 Martin Liska <mliska@suse.cz>

PR bootstrap/86162

Backport from mainline
2018-01-10 Kelvin Nilsen <kelvin@gcc.gnu.org>

* lex.c (search_line_fast): Remove illegal coercion of an
unaligned pointer value to vector pointer type and replace with
use of __builtin_vec_vsx_ld () built-in function, which operates
on unaligned pointer values.

2017-07-04 Release Manager

* GCC 6.4.0 released.
Expand Down
2 changes: 1 addition & 1 deletion libcpp/lex.c
Expand Up @@ -568,7 +568,7 @@ search_line_fast (const uchar *s, const uchar *end ATTRIBUTE_UNUSED)
{
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);
Expand Down

0 comments on commit 765527a

Please sign in to comment.