PR sanitizer/80067
commite4a4e01f6333b3c0f6657f0d3a5767f6adbb7bae
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Mar 2017 08:13:04 +0000 (28 08:13 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Mar 2017 08:13:04 +0000 (28 08:13 +0000)
tree9cace1daa7a9728317f6e23bdfbed367ec88efcb
parentadc10b0c963f1273f9309303338cfe7481f53a45
PR sanitizer/80067
* fold-const.c (fold_comparison): Use protected_set_expr_location
instead of SET_EXPR_LOCATION.

* c-c++-common/ubsan/shift-10.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246521 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/shift-10.c [new file with mode: 0644]