* [Bug tree-optimization/43220] [4.3/4.4/4.5 Regression] Paritially optimized __builtin_save_stack/__builtin_restore_stack causes segmentation fault
2010-03-01 14:07 [Bug tree-optimization/43220] New: Paritially optimized __builtin_save_stack/__builtin_restore_stack causes segmentation fault bmei at broadcom dot com
@ 2010-03-01 15:00 ` rguenth at gcc dot gnu dot org
2010-03-01 15:16 ` rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-01 15:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2010-03-01 14:59 -------
Confirmed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |wrong-code
Known to fail| |4.3.4 4.4.3 4.5.0
Known to work| |4.2.4
Last reconfirmed|0000-00-00 00:00:00 |2010-03-01 14:59:56
date| |
Summary|Paritially optimized |[4.3/4.4/4.5 Regression]
|__builtin_save_stack/__built|Paritially optimized
|in_restore_stack causes |__builtin_save_stack/__built
|segmentation fault |in_restore_stack causes
| |segmentation fault
Target Milestone|--- |4.3.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43220
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/43220] [4.3/4.4/4.5 Regression] Paritially optimized __builtin_save_stack/__builtin_restore_stack causes segmentation fault
2010-03-01 14:07 [Bug tree-optimization/43220] New: Paritially optimized __builtin_save_stack/__builtin_restore_stack causes segmentation fault bmei at broadcom dot com
2010-03-01 15:00 ` [Bug tree-optimization/43220] [4.3/4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
@ 2010-03-01 15:16 ` rguenth at gcc dot gnu dot org
2010-03-01 16:57 ` [Bug tree-optimization/43220] [4.3/4.4 " rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-01 15:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2010-03-01 15:16 -------
The code doesn't do what it says it does. I have a patch.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2010-03-01 14:59:56 |2010-03-01 15:16:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43220
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/43220] [4.3/4.4 Regression] Paritially optimized __builtin_save_stack/__builtin_restore_stack causes segmentation fault
2010-03-01 14:07 [Bug tree-optimization/43220] New: Paritially optimized __builtin_save_stack/__builtin_restore_stack causes segmentation fault bmei at broadcom dot com
2010-03-01 15:00 ` [Bug tree-optimization/43220] [4.3/4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
2010-03-01 15:16 ` rguenth at gcc dot gnu dot org
@ 2010-03-01 16:57 ` rguenth at gcc dot gnu dot org
2010-03-01 16:57 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-01 16:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2010-03-01 16:57 -------
Subject: Bug 43220
Author: rguenth
Date: Mon Mar 1 16:57:02 2010
New Revision: 157149
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157149
Log:
2010-03-01 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43220
* tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
* gcc.c-torture/execute/pr43220.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.c-torture/execute/pr43220.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-ccp.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43220
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/43220] [4.3/4.4 Regression] Paritially optimized __builtin_save_stack/__builtin_restore_stack causes segmentation fault
2010-03-01 14:07 [Bug tree-optimization/43220] New: Paritially optimized __builtin_save_stack/__builtin_restore_stack causes segmentation fault bmei at broadcom dot com
` (2 preceding siblings ...)
2010-03-01 16:57 ` [Bug tree-optimization/43220] [4.3/4.4 " rguenth at gcc dot gnu dot org
@ 2010-03-01 16:57 ` rguenth at gcc dot gnu dot org
2010-03-02 7:44 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-01 16:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2010-03-01 16:57 -------
Fixed for 4.5 sofar.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|4.3.4 4.4.3 4.5.0 |4.3.4 4.4.3
Known to work|4.2.4 |4.2.4 4.5.0
Summary|[4.3/4.4/4.5 Regression] |[4.3/4.4 Regression]
|Paritially optimized |Paritially optimized
|__builtin_save_stack/__built|__builtin_save_stack/__built
|in_restore_stack causes |in_restore_stack causes
|segmentation fault |segmentation fault
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43220
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/43220] [4.3/4.4 Regression] Paritially optimized __builtin_save_stack/__builtin_restore_stack causes segmentation fault
2010-03-01 14:07 [Bug tree-optimization/43220] New: Paritially optimized __builtin_save_stack/__builtin_restore_stack causes segmentation fault bmei at broadcom dot com
` (3 preceding siblings ...)
2010-03-01 16:57 ` rguenth at gcc dot gnu dot org
@ 2010-03-02 7:44 ` jakub at gcc dot gnu dot org
2010-03-02 7:47 ` [Bug tree-optimization/43220] [4.3 " jakub at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-03-02 7:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jakub at gcc dot gnu dot org 2010-03-02 07:44 -------
Subject: Bug 43220
Author: jakub
Date: Tue Mar 2 07:44:03 2010
New Revision: 157160
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157160
Log:
Backport from mainline:
2010-03-01 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43220
* tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
* gcc.c-torture/execute/pr43220.c: New testcase.
Added:
branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/execute/pr43220.c
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
branches/gcc-4_4-branch/gcc/tree-ssa-ccp.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43220
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/43220] [4.3 Regression] Paritially optimized __builtin_save_stack/__builtin_restore_stack causes segmentation fault
2010-03-01 14:07 [Bug tree-optimization/43220] New: Paritially optimized __builtin_save_stack/__builtin_restore_stack causes segmentation fault bmei at broadcom dot com
` (4 preceding siblings ...)
2010-03-02 7:44 ` jakub at gcc dot gnu dot org
@ 2010-03-02 7:47 ` jakub at gcc dot gnu dot org
2010-04-20 14:25 ` rguenth at gcc dot gnu dot org
2010-04-20 14:25 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-03-02 7:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jakub at gcc dot gnu dot org 2010-03-02 07:47 -------
Fixed also on 4.4 branch.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work|4.2.4 4.5.0 |4.2.4 4.4.4 4.5.0
Summary|[4.3/4.4 Regression] |[4.3 Regression] Paritially
|Paritially optimized |optimized
|__builtin_save_stack/__built|__builtin_save_stack/__built
|in_restore_stack causes |in_restore_stack causes
|segmentation fault |segmentation fault
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43220
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/43220] [4.3 Regression] Paritially optimized __builtin_save_stack/__builtin_restore_stack causes segmentation fault
2010-03-01 14:07 [Bug tree-optimization/43220] New: Paritially optimized __builtin_save_stack/__builtin_restore_stack causes segmentation fault bmei at broadcom dot com
` (5 preceding siblings ...)
2010-03-02 7:47 ` [Bug tree-optimization/43220] [4.3 " jakub at gcc dot gnu dot org
@ 2010-04-20 14:25 ` rguenth at gcc dot gnu dot org
2010-04-20 14:25 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-20 14:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from rguenth at gcc dot gnu dot org 2010-04-20 14:25 -------
Subject: Bug 43220
Author: rguenth
Date: Tue Apr 20 14:24:39 2010
New Revision: 158561
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158561
Log:
2010-04-20 Richard Guenther <rguenther@suse.de>
Backport from mainline:
2010-03-01 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43220
* tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
* gcc.c-torture/execute/pr43220.c: New testcase.
2008-12-03 Jakub Jelinek <jakub@redhat.com>
PR middle-end/38360
* tree-ssa-ccp.c (ccp_fold_builtin): Bail out if the builtin doesn't
have the right number of arguments.
* gcc.c-torture/compile/pr38360.c: New test.
Added:
branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/compile/pr38360.c
branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/execute/pr43220.c
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
branches/gcc-4_3-branch/gcc/tree-ssa-ccp.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43220
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/43220] [4.3 Regression] Paritially optimized __builtin_save_stack/__builtin_restore_stack causes segmentation fault
2010-03-01 14:07 [Bug tree-optimization/43220] New: Paritially optimized __builtin_save_stack/__builtin_restore_stack causes segmentation fault bmei at broadcom dot com
` (6 preceding siblings ...)
2010-04-20 14:25 ` rguenth at gcc dot gnu dot org
@ 2010-04-20 14:25 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-20 14:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2010-04-20 14:24 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43220
^ permalink raw reply [flat|nested] 9+ messages in thread