* [Bug tree-optimization/44061] [4.5/4.6 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section
[not found] <bug-44061-4@http.gcc.gnu.org/bugzilla/>
@ 2010-12-16 13:18 ` rguenth at gcc dot gnu.org
2011-04-28 15:39 ` [Bug tree-optimization/44061] [4.5/4.6/4.7 " rguenth at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-12-16 13:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44061
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.5.2 |4.5.3
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-12-16 13:03:35 UTC ---
GCC 4.5.2 is being released, adjusting target milestone.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/44061] [4.5/4.6/4.7 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section
[not found] <bug-44061-4@http.gcc.gnu.org/bugzilla/>
2010-12-16 13:18 ` [Bug tree-optimization/44061] [4.5/4.6 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section rguenth at gcc dot gnu.org
@ 2011-04-28 15:39 ` rguenth at gcc dot gnu.org
2012-07-02 12:05 ` [Bug tree-optimization/44061] [4.5/4.6/4.7/4.8 " rguenth at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-28 15:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44061
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.5.3 |4.5.4
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-28 14:51:48 UTC ---
GCC 4.5.3 is being released, adjusting target milestone.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/44061] [4.5/4.6/4.7/4.8 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section
[not found] <bug-44061-4@http.gcc.gnu.org/bugzilla/>
2010-12-16 13:18 ` [Bug tree-optimization/44061] [4.5/4.6 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section rguenth at gcc dot gnu.org
2011-04-28 15:39 ` [Bug tree-optimization/44061] [4.5/4.6/4.7 " rguenth at gcc dot gnu.org
@ 2012-07-02 12:05 ` rguenth at gcc dot gnu.org
2012-12-11 10:36 ` [Bug tree-optimization/44061] [4.6/4.7/4.8 " rguenth at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-02 12:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44061
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.5.4 |4.6.4
--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-02 12:05:20 UTC ---
The 4.5 branch is being closed, adjusting target milestone.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/44061] [4.6/4.7/4.8 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section
[not found] <bug-44061-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2012-07-02 12:05 ` [Bug tree-optimization/44061] [4.5/4.6/4.7/4.8 " rguenth at gcc dot gnu.org
@ 2012-12-11 10:36 ` rguenth at gcc dot gnu.org
2013-01-10 15:36 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-12-11 10:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44061
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> 2012-12-11 10:35:29 UTC ---
Created attachment 28925
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28925
patch I was not happy with
Old patch attached for reference.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/44061] [4.6/4.7/4.8 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section
[not found] <bug-44061-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2012-12-11 10:36 ` [Bug tree-optimization/44061] [4.6/4.7/4.8 " rguenth at gcc dot gnu.org
@ 2013-01-10 15:36 ` rguenth at gcc dot gnu.org
2013-01-11 10:20 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-01-10 15:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44061
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> 2013-01-10 15:35:40 UTC ---
I'm updating and testing the patch.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/44061] [4.6/4.7/4.8 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section
[not found] <bug-44061-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2013-01-10 15:36 ` rguenth at gcc dot gnu.org
@ 2013-01-11 10:20 ` rguenth at gcc dot gnu.org
2013-01-11 10:21 ` [Bug tree-optimization/44061] [4.6/4.7 " rguenth at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-01-11 10:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44061
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> 2013-01-11 10:20:13 UTC ---
Author: rguenth
Date: Fri Jan 11 10:20:02 2013
New Revision: 195103
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195103
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/pr44061.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vrp.c
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/44061] [4.6/4.7 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section
[not found] <bug-44061-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2013-01-11 10:20 ` rguenth at gcc dot gnu.org
@ 2013-01-11 10:21 ` rguenth at gcc dot gnu.org
2013-02-04 15:50 ` [Bug tree-optimization/44061] [4.6 " rguenth at gcc dot gnu.org
2013-02-04 15:50 ` [Bug tree-optimization/44061] [4.6/4.7 " rguenth at gcc dot gnu.org
8 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-01-11 10:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44061
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.8.0
Summary|[4.6/4.7/4.8 Regression] |[4.6/4.7 Regression] Warns
|Warns about out-of-bounds |about out-of-bounds array
|array access inside |access inside
|__builtin_constant_p |__builtin_constant_p
|guarded section |guarded section
Known to fail|4.8.0 |4.7.2
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> 2013-01-11 10:21:04 UTC ---
Fixed on trunk sofar.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/44061] [4.6 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section
[not found] <bug-44061-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2013-01-11 10:21 ` [Bug tree-optimization/44061] [4.6/4.7 " rguenth at gcc dot gnu.org
@ 2013-02-04 15:50 ` rguenth at gcc dot gnu.org
2013-02-04 15:50 ` [Bug tree-optimization/44061] [4.6/4.7 " rguenth at gcc dot gnu.org
8 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-02-04 15:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44061
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to work| |4.7.3
Resolution| |FIXED
Target Milestone|4.6.4 |4.7.3
Summary|[4.6/4.7 Regression] Warns |[4.6 Regression] Warns
|about out-of-bounds array |about out-of-bounds array
|access inside |access inside
|__builtin_constant_p |__builtin_constant_p
|guarded section |guarded section
--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-04 15:50:21 UTC ---
And 4.7. Not backporting further.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/44061] [4.6/4.7 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section
[not found] <bug-44061-4@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2013-02-04 15:50 ` [Bug tree-optimization/44061] [4.6 " rguenth at gcc dot gnu.org
@ 2013-02-04 15:50 ` rguenth at gcc dot gnu.org
8 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-02-04 15:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44061
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-04 15:49:29 UTC ---
Author: rguenth
Date: Mon Feb 4 15:49:18 2013
New Revision: 195718
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195718
Log:
2013-02-04 Richard Biener <rguenther@suse.de>
Backport from mainline
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.
2013-01-08 Jakub Jelinek <jakub@redhat.com>
PR middle-end/55890
* tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_class_p.
* gcc.dg/torture/pr55890-3.c: New test.
Added:
branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/pr44061.c
branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr55890-3.c
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
branches/gcc-4_7-branch/gcc/tree-ssa-ccp.c
branches/gcc-4_7-branch/gcc/tree-vrp.c
^ permalink raw reply [flat|nested] 9+ messages in thread