From patchwork Fri Aug 5 22:38:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 108746 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 EA779B6F76 for ; Sat, 6 Aug 2011 08:38:49 +1000 (EST) Received: (qmail 6435 invoked by alias); 5 Aug 2011 22:38:46 -0000 Received: (qmail 6422 invoked by uid 22791); 5 Aug 2011 22:38:45 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL, BAYES_00, NO_DNS_FOR_FROM, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga03.intel.com (HELO mga03.intel.com) (143.182.124.21) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 05 Aug 2011 22:38:32 +0000 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 05 Aug 2011 15:38:31 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by azsmga001.ch.intel.com with ESMTP; 05 Aug 2011 15:38:31 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id 0B8D9C0240; Fri, 5 Aug 2011 15:38:31 -0700 (PDT) Date: Fri, 5 Aug 2011 15:38:30 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Subject: PATCH: Add a testcase for PR target/47369 Message-ID: <20110805223830.GA18198@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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 Hi, I checked in this patch to add a testcase for PR target/47369. H.J. Index: gcc.dg/pr47369-1.c =================================================================== --- gcc.dg/pr47369-1.c (revision 0) +++ gcc.dg/pr47369-1.c (revision 0) @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target fpic } */ +/* { dg-options "-O2 -fPIC" } */ + +struct FILE +{ + int x; +}; +extern struct FILE __sF[]; +extern void bar (struct FILE *); +void dlmalloc_stats() { + bar ((&__sF[2])); +} Index: ChangeLog =================================================================== --- ChangeLog (revision 177489) +++ ChangeLog (working copy) @@ -1,5 +1,10 @@ 2011-08-05 H.J. Lu + PR target/47369 + * gcc.dg/pr47369-1.c: New. + +2011-08-05 H.J. Lu + PR middle-end/47364 * gcc.dg/torture/pr47364-1.c: New. * gcc.c-torture/compile/pr47364-1.c: Likewise.