This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/36502] i386/darwin generates unnecessary stack ops in every function
- From: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Aug 2010 18:20:30 -0000
- Subject: [Bug target/36502] i386/darwin generates unnecessary stack ops in every function
- References: <bug-36502-10175@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rth at gcc dot gnu dot org 2010-08-30 18:20 -------
It's caused by this:
config/i386/darwin.h:#define STACK_BOUNDARY 128
I think you want to delete that and allow STACK_BOUNDARY to be defined
by i386.h to UNITS_PER_WORD. Non-leaf functions should be handled by
#define MIN_STACK_BOUNDARY 128
which should get you your ABI minimum for the callee.
--
rth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36502