re PR tree-optimization/44061 (Warns about out-of-bounds array access inside __builti...
authorRichard Guenther <rguenther@suse.de>
Fri, 11 Jan 2013 10:20:02 +0000 (10:20 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 11 Jan 2013 10:20:02 +0000 (10:20 +0000)
commitc7ab25306dd8672e44b23414ebd2cf590c9fa63e
treecf7a483327f831613f65e779338a6b9783f8fd9e
parent8549adbd32fa9fdcb30e70cc3ff9cd9875e22d34
re PR tree-optimization/44061 (Warns about out-of-bounds array access inside __builtin_constant_p guarded section)

2012-01-11  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/44061
* tree-vrp.c (extract_range_basic): Compute zero as
value-range for __builtin_constant_p of function parameters.

* gcc.dg/pr44061.c: New testcase.

From-SVN: r195103
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr44061.c [new file with mode: 0644]
gcc/tree-vrp.c