re PR sanitizer/80067 (ICE in fold_comparison with -fsanitize=undefined)
authorMarek Polacek <polacek@redhat.com>
Tue, 28 Mar 2017 08:13:04 +0000 (08:13 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 28 Mar 2017 08:13:04 +0000 (08:13 +0000)
commit72785f26600ba08db98c6f169e59e66fe09a81f3
tree9cace1daa7a9728317f6e23bdfbed367ec88efcb
parentb1bd91584338e543ae7f6e7be707e6a2333f0c6d
re PR sanitizer/80067 (ICE in fold_comparison with -fsanitize=undefined)

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.

From-SVN: r246521
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/shift-10.c [new file with mode: 0644]