------- Comment #3 from jamborm at gcc dot gnu dot org 2009-10-26 21:53 ------- Created an attachment (id=18903) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18903&action=view) Proposed fix
Indeed, the users of build_ref_for_offset in ipa-prop.c and ipa-cp.c do not unshare the base expressions they should. I have looked at all other users and found that they either pass declarations or do their own unsharing and so decided to move the unsharing to build_ref_for_offset itself. The attached patch fixes the ICE when compiling the testcase, I am currently bootstrapping it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41775