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 PR 18299, ICE in gimple-lower.c


Andrew Pinski <pinskia@physics.uc.edu> writes:

> The problem is that we changing a MODIFY_EXPR, "t = t" into the DECL
> "t" which is no longer gimple and so we get an ICE in gimple-lower
> saying that a VAR_DECL is not handled.  This patch changes the tree
> inliner to create a empty statement instead of putting the DECL
> into the instruction stream.
>
> OK? Bootstrapped and tested on ppc-darwin with no regressions.
>
> Thanks,
> Andrew Pinski
>
> ChangeLog:
>
> 	* tree-inline.c (copy_body_r): Change "t = t" to empty
> 	statement instead of "t".

OK.  Don't forget to add a test case.

zw


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