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]

[patch 2nd ping][cft] aligning main's stack frame: take 2



http://gcc.gnu.org/ml/gcc-patches/2006-03/msg00085.html


On Mar 1, 2006, at 3:47 PM, Stuart Hastings wrote:

A small patch that extends self-aligning stackframes from "just main ()" to "any function."

Here's the original RTH patch, including a suggested exercise for the student ("I don't do it here, but it *would* be possible to add an attribute to enable this for any random function, or even (gasp) a command-line flag..."):

http://gcc.gnu.org/ml/gcc-patches/2005-10/msg00931.html

My original patch adding the attribute RTH spoke of, and two testcases:

http://gcc.gnu.org/ml/gcc-patches/2006-02/msg00854.html

My second patch, adding (gasp) a command-line flag and two more testcases:

http://gcc.gnu.org/ml/gcc-patches/2006-02/msg01073.html

I'd appreciate any feedback on the question I posed in the latter:

Q: The attribute takes its name from a GCC internal field ("force_align_arg_pointer").
Should it be renamed to be consistent with the commandline option ("-mstackrealign")?


I'd like to settle this promptly; I already have one customer using this feature, and I expect others soon.

stuart hastings
Apple Computer


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