This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/26781] [4.2 Regression] ICE in tree-ssa-pre.c at create_component_ref_by_piec
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Mar 2006 16:26:37 -0000
- Subject: [Bug tree-optimization/26781] [4.2 Regression] ICE in tree-ssa-pre.c at create_component_ref_by_piec
- References: <bug-26781-11706@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from pinskia at gcc dot gnu dot org 2006-03-21 16:26 -------
I am testing the following patch:
Index: tree-ssa-pre.c
===================================================================
--- tree-ssa-pre.c (revision 112250)
+++ tree-ssa-pre.c (working copy)
@@ -2246,6 +2246,7 @@ create_component_ref_by_pieces (basic_bl
case PARM_DECL:
case RESULT_DECL:
case SSA_NAME:
+ case STRING_CST:
return genop;
default:
gcc_unreachable ();
It works for the two simplified testcase (and the orginal one) but I would like
some comments from Daniel about this patch before submitting it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26781