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: [PATCH][MIPS] mwarn-framesize= option


Seongbae Park (ëìë, ææå) wrote:

I can give a shot.

That's very kind.


One way to do it, is the adding a new target hook, something like,
target_get_frame_size() which will return the actual frame size of a function
(the hook will work only after prologue and epilogue are generated of course).
This means targets will have to independently remember the frame size somehow,
or be able to calculate it.
If the target doesn't implement one, we can fall back to
get_frame_size() in function.c.

That was what I imagined would make the most sense. I suppose the existing -mwarn-framesize options (in S390, and Maxim's draft patch for MIPS) might give you some sense of how feasible this is. Hopefully, those functions would become the body of the hook.


Thanks,

--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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