This is the mail archive of the gcc-patches@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]

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


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