diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-03 19:05:50 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-03 19:05:50 +0000 |
commit | 71e4c29dc237254efda1e81e0a1b62953e5bf4a9 (patch) | |
tree | 4144e64f059393820bb109f796c40aea5536220a /libcpp | |
parent | aeaccb7530380aec7f83b46c1f35ca5048d03f59 (diff) | |
download | gcc-71e4c29dc237254efda1e81e0a1b62953e5bf4a9.tar.gz |
* lex.c (search_line_sse42): Correctly advance the pointer to an
aligned address.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229718 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 9 | ||||
-rw-r--r-- | libcpp/lex.c | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 295124e2480..61b0177dd51 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -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> diff --git a/libcpp/lex.c b/libcpp/lex.c index 0aa10905752..7e97bc2b289 100644 --- a/libcpp/lex.c +++ b/libcpp/lex.c @@ -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. */ |