From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20627 invoked by alias); 11 Nov 2011 15:43:03 -0000 Received: (qmail 20618 invoked by uid 22791); 11 Nov 2011 15:43:03 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mtagate7.uk.ibm.com (HELO mtagate7.uk.ibm.com) (194.196.100.167) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Nov 2011 15:42:49 +0000 Received: from d06nrmr1307.portsmouth.uk.ibm.com (d06nrmr1307.portsmouth.uk.ibm.com [9.149.38.129]) by mtagate7.uk.ibm.com (8.13.1/8.13.1) with ESMTP id pABFglHV013277 for ; Fri, 11 Nov 2011 15:42:47 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1307.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pABFglOQ2515174 for ; Fri, 11 Nov 2011 15:42:47 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pABFglFU021126 for ; Fri, 11 Nov 2011 08:42:47 -0700 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with SMTP id pABFgk4N021026; Fri, 11 Nov 2011 08:42:46 -0700 Message-Id: <201111111542.pABFgk4N021026@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Fri, 11 Nov 2011 16:42:46 +0100 Subject: Re: Mark objects death@end of scope To: matz@suse.de (Michael Matz) Date: Fri, 11 Nov 2011 16:20:00 -0000 From: "Ulrich Weigand" Cc: richard.guenther@gmail.com (Richard Guenther), gcc-patches@gcc.gnu.org In-Reply-To: from "Michael Matz" at Nov 07, 2011 04:57:08 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-11/txt/msg01519.txt.bz2 Michael Matz wrote: > * gimplify.c (gimplify_bind_expr): Add clobbers for all variables > that go out of scope and live in memory. This seems to have completely broken SPU exception handling (note that SPU is currently completely broken anyway due to the libgcc move). What happens is that with that patch, some of the core internal routines of the unwinder itself, including _Unwind_SjLj_Resume, themselves get exception regions. While the DWARF unwinder may be able to cope with this, the SjLj unwinder - which SPU uses - appears to get totally confused by this. We end up in an endless loop where _Unwind_SjLj_Resumes "resumes" to a location within itself. One reason why this happens is that the unwind*.c files are specifically built with -fexception. I think this is for the benefit of the DWARF unwinder, to ensure CFI records are available for those routines. But for the SjLj unwinder, it's a bit counter-productive ... Any thoughts how to fix this? Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com