This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How to figure out whether function is nested from the type?
- From: Jan Hubicka <jh at suse dot cz>
- To: rth at cygnus dot com, gcc at gcc dot gnu dot org
- Date: Tue, 21 Jan 2003 13:20:59 +0100
- Subject: How to figure out whether function is nested from the type?
Hi,
I've noticed that currently we misscompile nested functions with
regparm(3) attribute as ecx is used for both - static chain register and
3rd argument end up in the same.
Is there any way to catch this in init_cumulative_args and lower
regparm? Probably not.
We probably should prohibit regparm(3) for nested functions as
trampolines won't work as well. How this can be best done?
Honza