lex.c (search_line_sse42): Correctly advance the pointer to an aligned address.

* lex.c (search_line_sse42): Correctly advance the pointer to an
	aligned address.

From-SVN: r229718
This commit is contained in:
Uros Bizjak 2015-11-03 20:05:50 +01:00
parent c85158dec6
commit 49445904cf
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2015-11-03 Uros Bizjak <ubizjak@gmail.com>
* lex.c (search_line_sse42): Correctly advance the pointer to an
aligned address.
2015-11-02 David Malcolm <dmalcolm@redhat.com>
* include/line-map.h (source_location): In the table in the
@ -486,8 +491,8 @@
2014-12-02 Manuel López-Ibáñez <manu@gcc.gnu.org>
* line-map.c (linemap_add): Fix typo.
(linemap_line_start): Fix whitespace.
* line-map.c (linemap_add): Fix typo.
(linemap_line_start): Fix whitespace.
2014-11-29 John Schmerge <jbschmerge@gmail.com>

View File

@ -447,7 +447,7 @@ search_line_sse42 (const uchar *s, const uchar *end)
/* Advance the pointer to an aligned address. We will re-scan a
few bytes, but we no longer need care for reading past the
end of a page, since we're guaranteed a match. */
s = (const uchar *)((si + 16) & -16);
s = (const uchar *)((si + 15) & -16);
}
/* Main loop, processing 16 bytes at a time. */