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: [Committed] Fix PR middle-end/26022


> 
> --%--multipart-mixed-boundary-1.2038.1141225966--%
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> 
> The problem here is that fold_ternary cannot keep track
> of CALL_EXPR_RETURN_SLOT_OPT on the CALL_EXPR so we lose
> it and that causes an ICE because expand wants to know the
> size of the struct but the front-end says nope, you cannot
> do that.  Anyways I just committed the revert of __MY__
> patch to move the folding of OBJ_TYPE_REF to fold_ternary
> which fixes the issue.
> 
> 
> Committed as per the rules I can commit a reversional of
> my patch as obvious after a couple of bootstraps and tests
> on x86_64-linux-gnu with no regressions.
> 
> Thanks,
> Andrew Pinski
> 
> 2006-01-23  Andrew Pinski  <pinskia@physics.uc.edu>
> 
> 	PR middle-end/26022
> 	Revert:
> 	PR middle-end/24437
> 	* tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
> 	with a call expr to ...
> 	* fold-const.c (fold_ternary) <case CALL_EXPR>: Here.

Forgot the changelog part of the testsuite:
2006-02-28  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/26022
        * g++.dg/opt/return-slot1.C: New test.

-- Pinski


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