From patchwork Wed Apr 24 08:20:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 239078 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 02C8E2C00F2 for ; Wed, 24 Apr 2013 18:20:38 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=joYYsg4WbCt/+URv+l8sO8cHYZRK93yinTvBVwH5Dm1ymZaX4nlr/ vgR25oJiZsIWqn1bFmdmZA7Y2009TfLI+ZHPehJ7JjILm5DrU5QtnR0Vbz41oVnK 2VqUw/W0M9/ljkqHv4/Bkqi4QyxFeLVmSAZksIcKHT16xRgFOxMfH8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=hlqw4dFpcQkSfcixCwbMyhPSblc=; b=tgGQctpzB1x26CucKs+u yoQNmaM0KgyF3cNNR/uyLJNPwj4G5T5iaMu702TnxdaEx9bW8pdDn9TQ4ixZ3hyS 3H+We4BhUZJR3h8UHaaRKvQVgiH3g6Oq8Gi3suMjkgAUNtdVK7E27HMFhquCgltt RLYzKgfv4NWOhbVVFmAzuJ8= Received: (qmail 28269 invoked by alias); 24 Apr 2013 08:20:32 -0000 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 Received: (qmail 28258 invoked by uid 89); 24 Apr 2013 08:20:31 -0000 X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, TW_GJ autolearn=ham version=3.3.1 Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 24 Apr 2013 08:20:28 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 7B841A4EB7 for ; Wed, 24 Apr 2013 10:20:26 +0200 (CEST) Date: Wed, 24 Apr 2013 10:20:26 +0200 (CEST) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] Maybe fix PR57050 Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 This avoids sigjmp_buf use which maybe fixes newlib targets. Tested on x86_64-unknown-linux-gnu, applied. Richard. 2013-04-24 Richard Biener PR testsuite/57050 * gcc.c-torture/execute/pr56982.c: Avoid sigjmp_buf use. Index: gcc/testsuite/gcc.c-torture/execute/pr56982.c =================================================================== --- gcc/testsuite/gcc.c-torture/execute/pr56982.c (revision 198216) +++ gcc/testsuite/gcc.c-torture/execute/pr56982.c (working copy) @@ -1,8 +1,10 @@ -#include #include -static sigjmp_buf env; -void *stderr; +extern void abort (void); +extern void exit (int); + +static jmp_buf env; + void baz (void) { __asm__ volatile ("" : : : "memory");