From patchwork Thu Apr 7 20:57:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Stump X-Patchwork-Id: 90232 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 49C83B6F7C for ; Fri, 8 Apr 2011 06:57:24 +1000 (EST) Received: (qmail 1738 invoked by alias); 7 Apr 2011 20:57:22 -0000 Received: (qmail 1728 invoked by uid 22791); 7 Apr 2011 20:57:21 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RFC_ABUSE_POST, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from qmta12.emeryville.ca.mail.comcast.net (HELO qmta12.emeryville.ca.mail.comcast.net) (76.96.27.227) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 07 Apr 2011 20:57:17 +0000 Received: from omta04.emeryville.ca.mail.comcast.net ([76.96.30.35]) by qmta12.emeryville.ca.mail.comcast.net with comcast id Ukjy1g0040lTkoCACkxHLn; Thu, 07 Apr 2011 20:57:17 +0000 Received: from up.mrs.kithrup.com ([24.4.193.8]) by omta04.emeryville.ca.mail.comcast.net with comcast id UkxF1g00L0BKwT48QkxGut; Thu, 07 Apr 2011 20:57:16 +0000 From: Mike Stump Subject: fix non-local-goto-5.c Date: Thu, 7 Apr 2011 13:57:15 -0700 Message-Id: <14601764-6717-49B6-92E2-6C78B2AFD2AA@comcast.net> To: gcc-patches Patches Mime-Version: 1.0 (Apple Message framework v1084) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This fixes non-local-goto-5.c on targets that don't have trampolines. Noticed in the 4.6.0 release. 2011-04-07 Mike Stump * gcc.dg/torture/stackalign/non-local-goto-5.c: Fix for targets with no trampolines. Index: gcc.dg/torture/stackalign/non-local-goto-5.c =================================================================== --- gcc.dg/torture/stackalign/non-local-goto-5.c (revision 172125) +++ gcc.dg/torture/stackalign/non-local-goto-5.c (working copy) @@ -1,8 +1,8 @@ /* { dg-do run } */ +extern void exit (int); #if !defined (NO_LABEL_VALUES) && !defined (NO_TRAMPOLINES) extern void abort (void); -extern void exit (int); int s(i){if(i>0){__label__ l1;int f(int i){if(i==2)goto l1;return 0;}return f(i);l1:;}return 1;} int x(){return s(0)==1&&s(1)==0&&s(2)==1;} int main(){if(x()!=1)abort();exit(0);}