re PR tree-optimization/90387 (__builtin_constant_p and -Warray-bounds warnings)
authorRichard Biener <rguenther@suse.de>
Wed, 11 Sep 2019 11:16:54 +0000 (11:16 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 11 Sep 2019 11:16:54 +0000 (11:16 +0000)
commit46dfa8ad6c18feb45d35734eae38798edb7c38cd
tree827937264473170139a5e038754a1bbde166a92c
parent0a237a94c206b53eb73baad2d75fbcca518df65e
re PR tree-optimization/90387 (__builtin_constant_p and -Warray-bounds warnings)

2019-09-11  Richard Biener  <rguenther@suse.de>

PR tree-optimization/90387
* vr-values.c (vr_values::extract_range_basic): After inlining
simplify non-constant __builtin_constant_p to false.

* gcc.dg/Warray-bounds-44.c: New testcase.

From-SVN: r275639
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Warray-bounds-44.c [new file with mode: 0644]
gcc/vr-values.c