This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r259167 - in /trunk/gcc: ChangeLog fold-const.c...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 06 Apr 2018 11:24:37 -0000
- Subject: r259167 - in /trunk/gcc: ChangeLog fold-const.c...
Author: jakub
Date: Fri Apr 6 11:24:36 2018
New Revision: 259167
URL: https://gcc.gnu.org/viewcvs?rev=259167&root=gcc&view=rev
Log:
PR sanitizer/85213
* fold-const.c (twoval_comparison_p): Remove SAVE_P argument and don't
look through SAVE_EXPRs with non-side-effects argument. Adjust
recursive calls.
(fold_comparison): Adjust twoval_comparison_p caller, don't handle
save_p here.
* c-c++-common/ubsan/pr85213.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/ubsan/pr85213.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog