Summary: | VIEW_CONVERT_EXPR use for mismatched prevailing decl replacement doesn't work | ||
---|---|---|---|
Product: | gcc | Reporter: | Richard Biener <rguenth> |
Component: | lto | Assignee: | Richard Biener <rguenth> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gcc-bugs |
Priority: | P3 | Keywords: | ice-on-valid-code |
Version: | 4.5.0 | ||
Target Milestone: | 4.5.0 | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2009-10-15 12:41:57 |
Description
Richard Biener
2009-10-15 12:39:49 UTC
Mine. It's not exactly clear how to avoid this the easies - probably keeping some state what we are walking in lto_fixup_*. In theory we'd only need to fixup the decl pointers in the reader cache so reading of the IL will pickup the VIEW_CONVERT_EXPRs. Subject: Bug 41715 Author: rguenth Date: Fri Oct 16 14:23:22 2009 New Revision: 152903 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152903 Log: 2009-10-16 Richard Guenther <rguenther@suse.de> PR lto/41715 * lto-streamer-in.c (lto_input_tree_ref): Revert last change. (maybe_fixup_handled_component): New function. (input_gimple_stmt): Fixup mismatched decl replacements. lto/ * lto.c (lto_fixup_tree): Revert last change. * gfortran.dg/lto/20091015-1_0.f: New testcase. * gfortran.dg/lto/20091015-1_1.f: Likewise. * gfortran.dg/lto/20091015-1_2.f: Likewise. Added: trunk/gcc/testsuite/gfortran.dg/lto/20091015-1_0.f trunk/gcc/testsuite/gfortran.dg/lto/20091015-1_1.f trunk/gcc/testsuite/gfortran.dg/lto/20091015-1_2.f Modified: trunk/gcc/ChangeLog trunk/gcc/lto-streamer-in.c trunk/gcc/lto/ChangeLog trunk/gcc/lto/lto.c trunk/gcc/testsuite/ChangeLog Fixed. |