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]

Re: [windows][rft] regparm vs stack probe fix


----- Original Message -----
From: "Richard Henderson"
> It would appear that we can just save and restore eax around the
> stack probe routine.  This looks good to my eye, but I don't have
> things set up to do testing on windows anywhere.
>
>
> r~
>
>
>
> * i386.c (ix86_eax_live_at_start_p): New.
> (ix86_expand_prologue): Save and restore eax around stack probe
> if it's live.
>


Yes, this seems to do it.  I've tested with attached  testcase using
gcc -O[1-3],

Bootstrap in progress on mingw32.

Thanks for following this up.

Danny

Attachment: stack_probe.c
Description: Text document


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