From patchwork Mon Dec 5 18:02:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 129389 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 53B691007D4 for ; Tue, 6 Dec 2011 05:02:35 +1100 (EST) Received: (qmail 5742 invoked by alias); 5 Dec 2011 18:02:25 -0000 Received: (qmail 5678 invoked by uid 22791); 5 Dec 2011 18:02:19 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, TW_ZJ X-Spam-Check-By: sourceware.org Received: from mail-yw0-f47.google.com (HELO mail-yw0-f47.google.com) (209.85.213.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 05 Dec 2011 18:02:02 +0000 Received: by ywb20 with SMTP id 20so4949361ywb.20 for ; Mon, 05 Dec 2011 10:02:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.93.4 with SMTP id k4mr6036744yhf.114.1323108121621; Mon, 05 Dec 2011 10:02:01 -0800 (PST) Received: by 10.146.137.4 with HTTP; Mon, 5 Dec 2011 10:02:01 -0800 (PST) Date: Mon, 5 Dec 2011 19:02:01 +0100 Message-ID: Subject: [PATCH, testsuite]: Fix PR 51128, scan failures with -fno-fat-lto-objects From: Uros Bizjak To: gcc-patches@gcc.gnu.org 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 Hello! Just skip these tests when -fno-fat-lto-objects was added to options. 2011-12-05 Uros Bizjak PR testsuite/51128 * gcc.dg/torture/pr23821.c: Skip if -fno-fat-lto-objects was passed. * gcc.dg/torture/pr39074.c: Ditto. * gcc.dg/torture/pr39074-2.c: Ditto. * gcc.dg/torture/pr42898.c: Ditto. * gcc.dg/torture/pr42898-2.c: Ditto. * gcc.dg/torture/pr45704.c: Ditto. * gcc.dg/torture/pr50472.c: Ditto. * gcc.dg/torture/pta-callused-1.c: Ditto. * gcc.dg/torture/pta-ptrarith-1.c: Ditto. * gcc.dg/torture/pta-ptrarith-2.c: Ditto. * gcc.dg/torture/pta-ptrarith-3.c: Ditto. * gcc.dg/torture/pta-escape-1.c: Ditto. * gcc.dg/torture/ipa-pta-1.c: Ditto. * gcc.dg/torture/ssa-pta-fn-1.c: Ditto. Tested on x86_64-pc-linux-gnu {, -m32}, committed to mainline SVN. Uros. Index: gcc.dg/torture/pta-ptrarith-1.c =================================================================== --- gcc.dg/torture/pta-ptrarith-1.c (revision 182010) +++ gcc.dg/torture/pta-ptrarith-1.c (working copy) @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-fdump-tree-alias" } */ -/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */ struct Foo { int *p; Index: gcc.dg/torture/pta-ptrarith-2.c =================================================================== --- gcc.dg/torture/pta-ptrarith-2.c (revision 182010) +++ gcc.dg/torture/pta-ptrarith-2.c (working copy) @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-fdump-tree-alias" } */ -/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */ struct Foo { int **p; Index: gcc.dg/torture/pr23821.c =================================================================== --- gcc.dg/torture/pr23821.c (revision 182010) +++ gcc.dg/torture/pr23821.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */ /* At -O1 DOM threads a jump in a non-optimal way which leads to the bogus propagation. */ /* { dg-skip-if "" { *-*-* } { "-O1" } { "" } } */ Index: gcc.dg/torture/pta-ptrarith-3.c =================================================================== --- gcc.dg/torture/pta-ptrarith-3.c (revision 182010) +++ gcc.dg/torture/pta-ptrarith-3.c (working copy) @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-fdump-tree-alias" } */ -/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */ extern void abort (void); struct X { Index: gcc.dg/torture/pr45704.c =================================================================== --- gcc.dg/torture/pr45704.c (revision 182010) +++ gcc.dg/torture/pr45704.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-fdump-tree-optimized" } */ +/* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */ struct st { int ptr; Index: gcc.dg/torture/pr50472.c =================================================================== --- gcc.dg/torture/pr50472.c (revision 182010) +++ gcc.dg/torture/pr50472.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-fdump-tree-optimized" } */ +/* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */ static const unsigned int foo = 1; unsigned int test( void ) Index: gcc.dg/torture/ipa-pta-1.c =================================================================== --- gcc.dg/torture/ipa-pta-1.c (revision 182010) +++ gcc.dg/torture/ipa-pta-1.c (working copy) @@ -1,6 +1,6 @@ /* { dg-do compile { target { nonpic } } } */ /* { dg-options "-fipa-pta -fdump-ipa-pta" } */ -/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */ struct X { char x; char y; }; Index: gcc.dg/torture/pta-callused-1.c =================================================================== --- gcc.dg/torture/pta-callused-1.c (revision 182010) +++ gcc.dg/torture/pta-callused-1.c (working copy) @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-fdump-tree-alias" } */ -/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */ volatile int i; int ** __attribute__((noinline,pure)) foo(int **p) { i; return p; } Index: gcc.dg/torture/pr39074-2.c =================================================================== --- gcc.dg/torture/pr39074-2.c (revision 182010) +++ gcc.dg/torture/pr39074-2.c (working copy) @@ -1,7 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target stdint_types } */ /* { dg-options "-fdump-tree-alias" } */ -/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */ #include Index: gcc.dg/torture/pr39074.c =================================================================== --- gcc.dg/torture/pr39074.c (revision 182010) +++ gcc.dg/torture/pr39074.c (working copy) @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-fdump-tree-alias" } */ -/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */ typedef __PTRDIFF_TYPE__ intptr_t; Index: gcc.dg/torture/pr42898-2.c =================================================================== --- gcc.dg/torture/pr42898-2.c (revision 182010) +++ gcc.dg/torture/pr42898-2.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-fdump-tree-optimized" } */ +/* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */ struct hardware { int parm1:8; Index: gcc.dg/torture/pr42898.c =================================================================== --- gcc.dg/torture/pr42898.c (revision 182010) +++ gcc.dg/torture/pr42898.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-fdump-tree-optimized" } */ +/* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */ struct hardware { int parm1:8; Index: gcc.dg/torture/pta-escape-1.c =================================================================== --- gcc.dg/torture/pta-escape-1.c (revision 182010) +++ gcc.dg/torture/pta-escape-1.c (working copy) @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-fdump-tree-alias" } */ -/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */ int *p; void __attribute__((noinline,noclone)) Index: gcc.dg/torture/ssa-pta-fn-1.c =================================================================== --- gcc.dg/torture/ssa-pta-fn-1.c (revision 182010) +++ gcc.dg/torture/ssa-pta-fn-1.c (working copy) @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-fdump-tree-alias" } */ -/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */ extern void abort (void); int *glob;