From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 436 invoked by alias); 3 Jun 2009 21:47:50 -0000 Received: (qmail 32751 invoked by uid 48); 3 Jun 2009 21:47:25 -0000 Date: Wed, 03 Jun 2009 21:47:00 -0000 Message-ID: <20090603214725.32750.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/10901] non-local goto's don't work on darwin In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fxcoudert at gcc dot gnu dot org" 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: 2009-06/txt/msg00169.txt.bz2 ------- Comment #19 from fxcoudert at gcc dot gnu dot org 2009-06-03 21:47 ------- Still fails on both ppc-darwin and i386-darwin, for 4.3.2, 4.4.0 and current trunk: $ cat a.c extern int puts (const char *); extern void abort (void); int main () { __label__ l1; void foo () { void bar () { puts ("goto l1"); goto l1; } bar (); } foo (); abort (); l1: puts ("label l1"); return 0; } $ gcc -O3 a.c && ./a.out goto l1 label l1 $ gcc -O0 a.c && ./a.out goto l1 (It also fails with Apple's gcc.) -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- GCC target triplet|powerpc-darwin |darwin Known to fail| |4.2.0 4.3.2 4.4.0 4.5.0 Last reconfirmed|2005-12-10 05:32:24 |2009-06-03 21:47:19 date| | Summary|non-local goto's don't work |non-local goto's don't work |on powerpc-darwin |on darwin http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10901