[C++ PATCH] Fix one of the recently introduced regressions

Steven Bosscher s.bosscher@student.tudelft.nl
Sat Sep 13 00:08:00 GMT 2003


Op za 13-09-2003, om 01:00 schreef Richard Henderson:
> I'm trying to reproduce these with a clean tree.  I don't expect
> this will be difficult to track down.

I believe here's one part you need for the main1.C failure, which simply
aborts in cgraph_finalize_function without this patch, because
TREE_ASM_WRITTEN is set for the second function called "main()".

I think we shouldn't try to defer or expand function that have
TREE_ASM_WRITTEN set... Bootstrapped and regtested c++ on
i686-pc-linux-gnu, gives one FAIL less, 6 to go :)  OK?

All the other new regressions all seem to be caused by one more bug.

Gr.
Steven

	* semantics.c (expand_or_defer_fn): Don't try to expand or defer
	functions that seem to have been written out already.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-patch
Size: 781 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030913/da45f0c0/attachment.bin>


More information about the Gcc-patches mailing list