public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/39713] New: [4.4/4.5 Regression] ICE in get_expr_value_id
@ 2009-04-10 11:37 jakub at gcc dot gnu dot org
2009-04-10 11:38 ` [Bug tree-optimization/39713] " jakub at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-04-10 11:37 UTC (permalink / raw)
To: gcc-bugs
Since r141534 (PR37542), the following testcase segfaults during fre at -O1 and
higher:
template <typename To, typename From>
static inline To
bitwise_cast (From from)
{
union
{
From f;
To t;
} u;
u.f = from;
return u.t;
}
extern void foo (unsigned char *);
double
bar ()
{
unsigned char b[sizeof (unsigned long long)];
foo (b);
return bitwise_cast<double> (*(unsigned long long *) b);
}
--
Summary: [4.4/4.5 Regression] ICE in get_expr_value_id
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39713
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/39713] [4.4/4.5 Regression] ICE in get_expr_value_id
2009-04-10 11:37 [Bug tree-optimization/39713] New: [4.4/4.5 Regression] ICE in get_expr_value_id jakub at gcc dot gnu dot org
@ 2009-04-10 11:38 ` jakub at gcc dot gnu dot org
2009-04-10 18:31 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-04-10 11:38 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39713
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/39713] [4.4/4.5 Regression] ICE in get_expr_value_id
2009-04-10 11:37 [Bug tree-optimization/39713] New: [4.4/4.5 Regression] ICE in get_expr_value_id jakub at gcc dot gnu dot org
2009-04-10 11:38 ` [Bug tree-optimization/39713] " jakub at gcc dot gnu dot org
@ 2009-04-10 18:31 ` rguenth at gcc dot gnu dot org
2009-04-10 18:43 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-10 18:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-04-10 18:31 -------
I will have a looksee.
--
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|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-04-10 18:31:30
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39713
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/39713] [4.4/4.5 Regression] ICE in get_expr_value_id
2009-04-10 11:37 [Bug tree-optimization/39713] New: [4.4/4.5 Regression] ICE in get_expr_value_id jakub at gcc dot gnu dot org
2009-04-10 11:38 ` [Bug tree-optimization/39713] " jakub at gcc dot gnu dot org
2009-04-10 18:31 ` rguenth at gcc dot gnu dot org
@ 2009-04-10 18:43 ` rguenth at gcc dot gnu dot org
2009-04-11 7:34 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-10 18:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2009-04-10 18:43 -------
I am testing the following
Index: tree-ssa-sccvn.c
===================================================================
--- tree-ssa-sccvn.c (revision 145876)
+++ tree-ssa-sccvn.c (working copy)
@@ -257,9 +257,10 @@ vn_get_expr_for (tree name)
switch (TREE_CODE_CLASS (gimple_assign_rhs_code (def_stmt)))
{
case tcc_reference:
- if (gimple_assign_rhs_code (def_stmt) == VIEW_CONVERT_EXPR
- || gimple_assign_rhs_code (def_stmt) == REALPART_EXPR
- || gimple_assign_rhs_code (def_stmt) == IMAGPART_EXPR)
+ if ((gimple_assign_rhs_code (def_stmt) == VIEW_CONVERT_EXPR
+ || gimple_assign_rhs_code (def_stmt) == REALPART_EXPR
+ || gimple_assign_rhs_code (def_stmt) == IMAGPART_EXPR)
+ && TREE_CODE (gimple_assign_rhs1 (def_stmt)) == SSA_NAME)
expr = fold_build1 (gimple_assign_rhs_code (def_stmt),
gimple_expr_type (def_stmt),
TREE_OPERAND (gimple_assign_rhs1 (def_stmt), 0));
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39713
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/39713] [4.4/4.5 Regression] ICE in get_expr_value_id
2009-04-10 11:37 [Bug tree-optimization/39713] New: [4.4/4.5 Regression] ICE in get_expr_value_id jakub at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-04-10 18:43 ` rguenth at gcc dot gnu dot org
@ 2009-04-11 7:34 ` rguenth at gcc dot gnu dot org
2009-04-11 7:43 ` rguenth at gcc dot gnu dot org
2009-04-11 7:44 ` rguenth at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-11 7:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2009-04-11 07:34 -------
Subject: Bug 39713
Author: rguenth
Date: Sat Apr 11 07:34:09 2009
New Revision: 145951
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145951
Log:
2009-04-11 Richard Guenther <rguenther@suse.de>
PR tree-optimization/39713
* tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
reference trees have SSA_NAME operands.
* g++.dg/torture/pr39713.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr39713.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-sccvn.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39713
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/39713] [4.4/4.5 Regression] ICE in get_expr_value_id
2009-04-10 11:37 [Bug tree-optimization/39713] New: [4.4/4.5 Regression] ICE in get_expr_value_id jakub at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-04-11 7:34 ` rguenth at gcc dot gnu dot org
@ 2009-04-11 7:43 ` rguenth at gcc dot gnu dot org
2009-04-11 7:44 ` rguenth at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-11 7:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2009-04-11 07:43 -------
Subject: Bug 39713
Author: rguenth
Date: Sat Apr 11 07:42:52 2009
New Revision: 145952
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145952
Log:
2009-04-11 Richard Guenther <rguenther@suse.de>
PR tree-optimization/39713
* tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
reference trees have SSA_NAME operands.
* g++.dg/torture/pr39713.C: New testcase.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/torture/pr39713.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-sccvn.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39713
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/39713] [4.4/4.5 Regression] ICE in get_expr_value_id
2009-04-10 11:37 [Bug tree-optimization/39713] New: [4.4/4.5 Regression] ICE in get_expr_value_id jakub at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-04-11 7:43 ` rguenth at gcc dot gnu dot org
@ 2009-04-11 7:44 ` rguenth at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-11 7:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2009-04-11 07:44 -------
Fixe.d
--
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=39713
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-04-11 7:44 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-10 11:37 [Bug tree-optimization/39713] New: [4.4/4.5 Regression] ICE in get_expr_value_id jakub at gcc dot gnu dot org
2009-04-10 11:38 ` [Bug tree-optimization/39713] " jakub at gcc dot gnu dot org
2009-04-10 18:31 ` rguenth at gcc dot gnu dot org
2009-04-10 18:43 ` rguenth at gcc dot gnu dot org
2009-04-11 7:34 ` rguenth at gcc dot gnu dot org
2009-04-11 7:43 ` rguenth at gcc dot gnu dot org
2009-04-11 7:44 ` rguenth at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).