From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15623 invoked by alias); 20 Jun 2011 15:57:05 -0000 Received: (qmail 15609 invoked by uid 22791); 20 Jun 2011 15:57:03 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 20 Jun 2011 15:56:49 +0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/49260] cpp0x/lambda/lambda-eh2.C fails execution X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 20 Jun 2011 15:57:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg01783.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49260 --- Comment #6 from Eric Botcazou 2011-06-20 15:55:38 UTC --- > The output of the FDE initial location happens in dwarf2out.c > (output_call_frame_info). If I step throught that function, I see that > the FDEs are only emitted if fde_needed_for_eh_p (fde). For the two > missing ones, I see that this function returns false due to this test: > > /* If exceptions are enabled, we have collected nothrow info. */ > if (flag_exceptions && (fde->all_throwers_are_sibcalls || fde->nothrow)) > return false; > > Here, both fde->all_throwers_are_sibcalls and fde->nothrow are 1. > > I cannot say if this is wrong or the tests in fde_needed_for_eh_p > needs to be augmented. The former I presume: on the SPARC, in the assembly file, there is a call from main::{lambda()#1}::_FUN() to main::{lambda()#1}::operator()() const and the latter calls __cxa_throw. And this isn't a sibcall (we're at -O0). Both flags are set to 1 initially in set_nothrow_function_flags but should be properly computed later in the function.