This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/17529] [4.0 Regression] ICE in get_indirect_ref_operands


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]