From patchwork Sat Apr 9 00:00:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Stump X-Patchwork-Id: 90443 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 56154B6F85 for ; Sat, 9 Apr 2011 10:01:04 +1000 (EST) Received: (qmail 7764 invoked by alias); 9 Apr 2011 00:01:02 -0000 Received: (qmail 7750 invoked by uid 22791); 9 Apr 2011 00:01:01 -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 qmta09.emeryville.ca.mail.comcast.net (HELO qmta09.emeryville.ca.mail.comcast.net) (76.96.30.96) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 09 Apr 2011 00:00:55 +0000 Received: from omta22.emeryville.ca.mail.comcast.net ([76.96.30.89]) by qmta09.emeryville.ca.mail.comcast.net with comcast id VC0L1g0061vN32cA9C0vaE; Sat, 09 Apr 2011 00:00:55 +0000 Received: from up.mrs.kithrup.com ([24.4.193.8]) by omta22.emeryville.ca.mail.comcast.net with comcast id VC0t1g00Q0BKwT48iC0u3M; Sat, 09 Apr 2011 00:00:54 +0000 From: Mike Stump Subject: fix testsuite/48506 Date: Fri, 8 Apr 2011 17:00:53 -0700 Message-Id: <4AD5EDE8-FA87-4DB7-86CE-A3387389ED8D@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 I've checked in this to avoid problems with ports that default to -fno-common. I've also checked it into 4.6.x. PR testsuite/48506 * gcc.dg/tree-ssa/ssa-ccp-17.c: Robustify against ports that default to fno-common. Index: gcc.dg/tree-ssa/ssa-ccp-17.c =================================================================== --- gcc.dg/tree-ssa/ssa-ccp-17.c (revision 172125) +++ gcc.dg/tree-ssa/ssa-ccp-17.c (working copy) @@ -18,7 +18,7 @@ return ((struct Foo *)p)->i; } -const struct Foo g; +extern const struct Foo g; int foobar(void) {