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]

[PATCH] Fix PR10060


Here is a fix for the ICE in PR10060 by using tail-recursion for the common case
of "ee" in reset_used_flags and copy_rtx_if_shared.


In fact this fixes it on Darwin with a default stacksize of 512K
(I know this looks low but there have been reports of this being low).
In fact this should speed up the compiler but I have not done the timings.


This testcase does not fail on i686-pc-linux-gnu because the
stack does not grow that much there.

Bootstrapped on powerpc-apple-darwin6.6.
Bootstrapped and tested (with no regressions) on i686-unknown-openbsd3.1.


ChangeLog:
2003-07-13  Andrew Pinski  <pinskia@physics.uc.edu>

	PR middle-end/10060
	* emit-rtl.c (copy_rtx_if_shared): Split out into ...
	(copy_rtx_if_shared_1): here and add common case of "ee".
	(reset_used_flags): optimize common case of "ee".


Patch:

Attachment: fixPR10060.diff.txt
Description: Text document



Thanks,
Andrew Pinski

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