* [Bug middle-end/51761] [4.7 Regression] ICE in verify_gimple_stmt, at tree-cfg.c:4241
2012-01-05 10:59 [Bug middle-end/51761] New: [4.7 Regression] ICE in verify_gimple_stmt, at tree-cfg.c:4241 rguenth at gcc dot gnu.org
@ 2012-01-05 11:00 ` rguenth at gcc dot gnu.org
2012-01-05 11:09 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-05 11:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51761
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.7.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/51761] [4.7 Regression] ICE in verify_gimple_stmt, at tree-cfg.c:4241
2012-01-05 10:59 [Bug middle-end/51761] New: [4.7 Regression] ICE in verify_gimple_stmt, at tree-cfg.c:4241 rguenth at gcc dot gnu.org
2012-01-05 11:00 ` [Bug middle-end/51761] " rguenth at gcc dot gnu.org
@ 2012-01-05 11:09 ` jakub at gcc dot gnu.org
2012-01-05 11:22 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-05 11:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51761
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-01-05
CC| |jakub at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-05 11:08:25 UTC ---
Started with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181332
Reducing...
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/51761] [4.7 Regression] ICE in verify_gimple_stmt, at tree-cfg.c:4241
2012-01-05 10:59 [Bug middle-end/51761] New: [4.7 Regression] ICE in verify_gimple_stmt, at tree-cfg.c:4241 rguenth at gcc dot gnu.org
2012-01-05 11:00 ` [Bug middle-end/51761] " rguenth at gcc dot gnu.org
2012-01-05 11:09 ` jakub at gcc dot gnu.org
@ 2012-01-05 11:22 ` jakub at gcc dot gnu.org
2012-01-05 12:02 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-05 11:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51761
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-05 11:21:38 UTC ---
Reduced testcase (-O -m32):
struct S { unsigned int len; };
struct S foo (struct S);
struct S
bar (struct S x)
{
return ({ struct S a = x; foo (a); });
}
The C FE isn't inserting CLEANUP_POINT_EXPRs everywhere, so I wonder if the
r181332 change to add the clobber must not be limited to C++ or if e.g.
gimplify_cleanup_point_expr shouldn't set some (new) flag in *gimplify_ctxp for
the duration of the embedded gimplify_stmt call (and restore it from previous
value afterwards) and use this flag to decide whether to add the cleanup or
not.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/51761] [4.7 Regression] ICE in verify_gimple_stmt, at tree-cfg.c:4241
2012-01-05 10:59 [Bug middle-end/51761] New: [4.7 Regression] ICE in verify_gimple_stmt, at tree-cfg.c:4241 rguenth at gcc dot gnu.org
` (2 preceding siblings ...)
2012-01-05 11:22 ` jakub at gcc dot gnu.org
@ 2012-01-05 12:02 ` jakub at gcc dot gnu.org
2012-01-05 14:04 ` jason at redhat dot com
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-05 12:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51761
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org
|gnu.org |
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-05 12:02:13 UTC ---
Created attachment 26249
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26249
gcc47-pr51761.patch
Untested fix. With the exception of C++/Obj-C++ FEs I'm afraid other FEs don't
add all the needed CPEs.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/51761] [4.7 Regression] ICE in verify_gimple_stmt, at tree-cfg.c:4241
2012-01-05 10:59 [Bug middle-end/51761] New: [4.7 Regression] ICE in verify_gimple_stmt, at tree-cfg.c:4241 rguenth at gcc dot gnu.org
` (3 preceding siblings ...)
2012-01-05 12:02 ` jakub at gcc dot gnu.org
@ 2012-01-05 14:04 ` jason at redhat dot com
2012-01-05 15:10 ` jakub at gcc dot gnu.org
2012-01-05 15:21 ` jakub at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jason at redhat dot com @ 2012-01-05 14:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51761
--- Comment #4 from Jason Merrill <jason at redhat dot com> 2012-01-05 14:03:22 UTC ---
OK.
Jason
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/51761] [4.7 Regression] ICE in verify_gimple_stmt, at tree-cfg.c:4241
2012-01-05 10:59 [Bug middle-end/51761] New: [4.7 Regression] ICE in verify_gimple_stmt, at tree-cfg.c:4241 rguenth at gcc dot gnu.org
` (4 preceding siblings ...)
2012-01-05 14:04 ` jason at redhat dot com
@ 2012-01-05 15:10 ` jakub at gcc dot gnu.org
2012-01-05 15:21 ` jakub at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-05 15:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51761
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-05 15:10:36 UTC ---
Author: jakub
Date: Thu Jan 5 15:10:26 2012
New Revision: 182914
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182914
Log:
PR middle-end/51761
* gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr
field.
* gimplify.c (gimplify_cleanup_point_expr): Save and set
in_cleanup_point_expr before gimplify_stmt call and restore it
afterwards.
(gimplify_target_expr): Don't add {CLOBBER} cleanup if
in_cleanup_point_expr is false.
* gcc.c-torture/compile/pr51761.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr51761.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimple.h
trunk/gcc/gimplify.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/51761] [4.7 Regression] ICE in verify_gimple_stmt, at tree-cfg.c:4241
2012-01-05 10:59 [Bug middle-end/51761] New: [4.7 Regression] ICE in verify_gimple_stmt, at tree-cfg.c:4241 rguenth at gcc dot gnu.org
` (5 preceding siblings ...)
2012-01-05 15:10 ` jakub at gcc dot gnu.org
@ 2012-01-05 15:21 ` jakub at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-05 15:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51761
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-05 15:20:17 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread