]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/lex.c
Fix PR65261
authortrippels <trippels@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Mar 2015 17:28:56 +0000 (17:28 +0000)
committertrippels <trippels@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Mar 2015 17:28:56 +0000 (17:28 +0000)
commit45e87ca9abf8edb4e36ab704e9fdae03ea2fe94c
tree7ce90b82daec105b46dc60b65c6c3e744d05dd89
parent36e549211c43f8bb653897505be3cd6e75bc461b
Fix PR65261

Running bootstrap-ubsan on ppc64le shows many instances of:

  libcpp/lex.c:552:30: runtime error: load of misaligned address
  0x01001f31d37a for type 'const uchar', which requires 16 byte alignment

But the unaligned vector loads are intended in this case, because they
are preferable to forced-alignment on POWER8. So just silence the ubsan
errors.

2015-03-02  Markus Trippelsdorf  <markus@trippelsdorf.de>

include/
PR target/65261
* ansidecl.h (ATTRIBUTE_NO_SANITIZE_UNDEFINED): New macro.

libcpp/
PR target/65261
* lex.c (search_line_fast): Silence ubsan errors.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221190 138bc75d-0d04-0410-961f-82ee72b054a4
include/ChangeLog
include/ansidecl.h
libcpp/ChangeLog
libcpp/lex.c