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]

[Committed] Fix PR middle-end/26022


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.

Attachment: fixPR26022.diff.txt
Description: ASCII C program text


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