This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/6810: GCC 3.1 win32 generates incorrect code if -O2 -fomit-frame-pointer are specified WORKAROUND
- From: "Mathias Schroeder" <sl41n3 at gmx dot de>
- To: <gcc-bugs at gcc dot gnu dot org>
- Date: Thu, 27 Jun 2002 03:58:27 +0200
- Subject: Re: optimization/6810: GCC 3.1 win32 generates incorrect code if -O2 -fomit-frame-pointer are specified WORKAROUND
For release builds one can use the following workaround options:
-fomit-frame-pointer -no-stack-arg-probe -Xlinker --stack=100000,100000
This disables the generation __alloca calls which interfere
with -fomit-frame-pointer. Be sure to include the linker args because
without __alloca the stack must completely exist in physical (comitted)
memory (second argument to --stack). You also get an extra speed benefit at
the expense of the stack memory due to the stack memory not needing to be
paged in via __alloca. If your application unexpectedly exits you may need
to
increase comitted stack size.
Regards
Mathias