This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
compile with -fomit-frame-pointer and gcc
- From: Charles Werner <clw2 at freesurf dot ch>
- To: cygwin at cygwin dot com
- Date: Wed, 20 Nov 2002 20:10:01 +0100
- Subject: compile with -fomit-frame-pointer and gcc
I have the following to report, perhaps it is a bug in gcc for Cygwin.
I wrote a C subroutine that allocated 60000 integers on the stack each time it
was called. Under Cygwin gcc 2.95x this worked fine. However, when compiled with
the current gcc 3.2 it fails if compiled using the -fomit-frame-pointer
optimization (default from configure).
Without this optimization turned on all is well. Declaring the array static
cleared up this problem and the program can be compiled and run sucessfully
using -fomit-frame-pointer.
Cheers,
Charles Werner
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/