From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26655 invoked by alias); 8 Jul 2011 10:56:48 -0000 Received: (qmail 26646 invoked by uid 22791); 8 Jul 2011 10:56:47 -0000 X-SWARE-Spam-Status: No, hits=-2.9 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; Fri, 08 Jul 2011 10:56:34 +0000 From: "mikpe at it dot uu.se" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/47918] [4.6/4.7 Regression] noreturn discovery broke non local gotos on m68k and i386 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mikpe at it dot uu.se X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.2 X-Bugzilla-Changed-Fields: Target Known to work Summary Known to fail 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: Fri, 08 Jul 2011 10:56: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-07/txt/msg00596.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47918 Mikael Pettersson changed: What |Removed |Added ---------------------------------------------------------------------------- Target|m68k-linux |m68k-linux, | |i686-pc-linux-gnu Known to work| |4.5.3 Summary|[4.6/4.7 Regression] |[4.6/4.7 Regression] |noreturn discovery broke |noreturn discovery broke |non local gotos on m68k |non local gotos on m68k and | |i386 Known to fail| |4.6.1 --- Comment #7 from Mikael Pettersson 2011-07-08 10:56:32 UTC --- I don't even have to tweak the i386 backend to trigger the error on i386, just make the nested function y() regparm(0) --- non-local-goto-4.c.~1~ 2011-07-07 20:04:29.000000000 +0200 +++ non-local-goto-4.c 2011-07-08 12:49:36.000000000 +0200 @@ -15,7 +15,7 @@ int x(a) { __label__ xlab; - void y(a) + void __attribute__((regparm(0))) y(a) { if (a==0) goto xlab; and compile with options to force the use of PUSH for parameter passing: > gcc -O3 -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args -mno-accumulate-outgoing-args non-local-goto-4.c > ./a.out Abort