Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com Message-ID: <3DDBDE09.4010906@freesurf.ch> Date: Wed, 20 Nov 2002 20:10:01 +0100 From: Charles Werner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cygwin@cygwin.com Subject: compile with -fomit-frame-pointer and gcc Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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/