From patchwork Sat Jul 14 22:41:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Stump X-Patchwork-Id: 171030 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 DC97C2C00C0 for ; Sun, 15 Jul 2012 08:41:59 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1342910520; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: From:Content-Type:Subject:Date:Message-Id:To:Mime-Version: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=sh7GW6UPbj5eslkk21Dt bvLYTEI=; b=Nn42TnW3obmuFHCWA9kVMz1HralhWovq3pY3KEcr0g1ZNvvr+ktd ZPJ2vHYDFZRck9HAzNkzioDt5LU/qlppe15sVpQIr/wlhhovARBs++YJyYIRnhyS zAFlEjDlTq/SVo/9H7nSwcr3xp3XXa5E+sqKAVrKYhlQcRIctL+fAg0= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:From:Content-Type:Subject:Date:Message-Id:To:Mime-Version:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=iheoF5z/jIgKrrR8Rh5GM4y6NjrrI3aoT+5FVE4+CKnFNIOn0ytOhWdNxtZI4D na6TksvrLccsiEfgLlZQNIHy3rBXlMtTX0w/f3vCo+S23xkbLnOkB6vICap+OvsU cA/q7JIlxHwkcFOxzzSJJ2psuyV9qb6SYV3kxXTXh3kCM=; Received: (qmail 18338 invoked by alias); 14 Jul 2012 22:41:55 -0000 Received: (qmail 18330 invoked by uid 22791); 14 Jul 2012 22:41:54 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_HOSTKARMA_NO, RCVD_IN_HOSTKARMA_YE, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from qmta01.westchester.pa.mail.comcast.net (HELO qmta01.westchester.pa.mail.comcast.net) (76.96.62.16) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 14 Jul 2012 22:41:41 +0000 Received: from omta02.westchester.pa.mail.comcast.net ([76.96.62.19]) by qmta01.westchester.pa.mail.comcast.net with comcast id aNcW1j0020QuhwU51NhjDW; Sat, 14 Jul 2012 22:41:43 +0000 Received: from bag6-1-pt.tunnel.tserv3.fmt2.ipv6.he.net ([IPv6:2001:470:1f04:ae1::2]) by omta02.westchester.pa.mail.comcast.net with comcast id aNha1j0010P3DwE3NNhbbe; Sat, 14 Jul 2012 22:41:35 +0000 From: Mike Stump Subject: fix gcc.dg/pr53849.c Date: Sat, 14 Jul 2012 15:41:39 -0700 Message-Id: <88E2ACCF-CA41-4743-90DB-F66CA04F8C6C@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 test requires pthreads, so, I've copied bits from another testcase that uses -pthreads in the same way. Checked it in. diff --git a/gcc/testsuite/gcc.dg/pr53849.c b/gcc/testsuite/gcc.dg/pr53849.c index 3b67010..eddc45f 100644 --- a/gcc/testsuite/gcc.dg/pr53849.c +++ b/gcc/testsuite/gcc.dg/pr53849.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target pthread } */ /* { dg-options "-O2 -ftree-parallelize-loops=2 -fno-tree-loop-im" } */ extern int *b, *e[8], d;