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