ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
authorMarek Polacek <polacek@redhat.com>
Tue, 4 Nov 2014 09:30:47 +0000 (09:30 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 4 Nov 2014 09:30:47 +0000 (09:30 +0000)
commit74e3d997b38dcecab32c463edbdb8a494ac2e7f3
tree4cb0ce930a7598c0aee3133908b9ccb02592c9f6
parent107bdb31ee4fea0600ebbea67171b6a43a47011d
ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.

* ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
testsuite/
* c-c++-common/ubsan/object-size-10.c: New test.

From-SVN: r217071
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/object-size-10.c [new file with mode: 0644]
gcc/ubsan.c