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] |
No, that's not right. This patch was for a problem found on ARM targets, and it is contiguous. The problem is that the space is "pretend". It's allocated by the called function, not by the caller, so it must be cleaned up before we leave this function or the stack pointer will be corrupted. Therefore it can not be used for outgoing arguments.
Therefore the existing comment is right. It could be extended to: /* If this function requires more stack slots than the current function, we cannot change it into a sibling call. current_function_pretend_args_size is not part of the stack allocated by our caller. */
OK with that change instead?
-- Mark Mitchell CodeSourcery, LLC mark@codesourcery.com (916) 791-8304
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |