delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Wed, 24 Nov 2004 21:09:52 +1300 |
From: | Danny Smith <dannysmith AT clear DOT net DOT nz> |
Subject: | Re: stdcall lib functions with exception throwing callbacks vs Dwarf2 EH |
To: | Richard Henderson <rth AT redhat DOT com> |
Cc: | gcc AT gcc DOT gnu DOT org, Cygwin <cygwin AT cygwin DOT com>, |
mingw-dvlpr <mingw-dvlpr AT lists DOT sourceforge DOT net> | |
Reply-to: | Danny Smith <dannysmith AT users DOT sourceforge DOT net> |
Message-id: | <000401c4d1fd$112d9eb0$8c4861cb@DANNY> |
MIME-version: | 1.0 |
References: | <001701c4d1ab$949322e0$0a6d65da AT DANNY> <20041124003240 DOT GA6028 AT redhat DOT com> |
Richard Henderson wrote: > On Wed, Nov 24, 2004 at 11:27:11AM +1300, Danny Smith wrote: >> Before I pull any more hair out trying, does any one have any hints >> on how to use an MD_FALLBACK_FRAME_STATE_FOR to workaround ... > > That would be wrong. > > I think the most likely explanation is that there's a bug in the > dwarf2 generator for stdcall functions with -fomit-frame-pointer, > and the problem should be attacked there. > There does seem to be a problem in the frame-pointer handling see: http://gcc.gnu.org/ml/gcc/2002-11/msg00149.html With this testcase: void __attribute__((stdcall)) test( int a) { a; } void snafu( void) { test( 666); throw 999; } int main( void) { try { snafu( ); return 0; } catch( ...) { return 1; } } I get (today): g++ -fno-omit-frame-pointer PASS (at all optimisation levels). g++ -O{0|1|2} -fomit-frame-pointer -maccumulate-outgoing-args PASS. g++ -O0 -mtune=i686 -mno-accumulate-outgoing-args -fomit-frame-pointer FAIL g++ -O{1,2} -mtune=i686 -mno-accumulate-outgoing-args -fomit-frame-poi nter PASS The optimisation flags that cause failure has changed since the original gcc report. Danny -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |