This is the mail archive of the gcc@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]

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


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