This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: fix ICE while producing libgcc/_muldi3.o
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: sandra at codesourcery dot com (Sandra Loosemore)
- Cc: gcc-patches at gcc dot gnu dot org (GCC Patches)
- Date: Tue, 30 Jan 2007 20:07:20 -0500 (EST)
- Subject: Re: PATCH: fix ICE while producing libgcc/_muldi3.o
>
> Mainline gcc configured with --enable-checking=all has been failing lately with
> an ICE in fold_checksum_tree while trying to produce libgcc/_muldi3.o. I
> tracked it down to a reference to TREE_TYPE on a GIMPLE_MODIFY_STMT object,
> which does not have a type field. Here's a patch to fix this by making
> fold_checksum_tree skip over tcc_gimple_stmt expressions. Is this the Right
> Thing To Do, or is the bug that an expression containing a GIMPLE_MODIFY_STMT is
> making it to the constant-folding code in the first place?
The biggest place where GIMPLE_MODIFY_STMT shows up because of folding of memcpy
to GIMPLE_MODIFY_STMT.
-- Pinski