This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17529] [4.0 Regression] ICE in get_indirect_ref_operands
- 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: 15 Oct 2004 14:42:19 -0000
- Subject: [Bug tree-optimization/17529] [4.0 Regression] ICE in get_indirect_ref_operands
- References: <20040916224714.17529.steven@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-15 14:42 -------
Yes it is the same bug (or at least a related one). The testcase I gave only fails yesterday between the
time I patched remove_useless_statement and revert that patch because it caused other problems.
The problem is that fold does not know how to fold *&a (where a is array type) but fold_stmt does.
And since we call fold_stmt with my patch to r_u_s reverted on the MODIFY_EXPR unlike the ASM_EXPR
where we don't.
Hopefully this explains what is going on.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17529