From patchwork Wed Oct 26 21:18:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 122015 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 BF5F91007D2 for ; Thu, 27 Oct 2011 08:18:45 +1100 (EST) Received: (qmail 27231 invoked by alias); 26 Oct 2011 21:18:43 -0000 Received: (qmail 27215 invoked by uid 22791); 26 Oct 2011 21:18:42 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL, BAYES_00, FROM_12LTRDOM X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 26 Oct 2011 21:18:16 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RJArX-000397-Bj from joseph_myers@mentor.com for gcc-patches@gcc.gnu.org; Wed, 26 Oct 2011 14:18:15 -0700 Received: from digraph.polyomino.org.uk ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 26 Oct 2011 22:18:13 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.74) (envelope-from ) id 1RJArU-0000xB-KV for gcc-patches@gcc.gnu.org; Wed, 26 Oct 2011 21:18:12 +0000 Date: Wed, 26 Oct 2011 21:18:12 +0000 (UTC) From: "Joseph S. Myers" To: gcc-patches@gcc.gnu.org Subject: Skip gcc.target/i386/pad-4.c for Windows targets Message-ID: MIME-Version: 1.0 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 gcc.target/i386/pad-4.c expects particular results from PIC code generation - PIC in the sense of a GOT and a PLT, which is different from the sense in which Windows code is always PIC. This patch arranges for it to be skipped on Windows targets, similarly to other tests such as gcc.target/i386/pic-1.c. Tested with cross to i686-mingw32. OK to commit? 2011-10-26 Joseph Myers * gcc.target/i386/pad-4.c: Skip for Windows targets. Index: gcc.target/i386/pad-4.c =================================================================== --- gcc.target/i386/pad-4.c (revision 180200) +++ gcc.target/i386/pad-4.c (working copy) @@ -2,6 +2,7 @@ /* { dg-require-effective-target ia32 } */ /* { dg-require-effective-target fpic } */ /* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=atom" } } */ +/* { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin } { "*" } { "" } } */ /* { dg-options "-O2 -fomit-frame-pointer -march=atom -fPIC" } */ /* { dg-final { scan-assembler-times "nop" 8 } } */ /* { dg-final { scan-assembler-not "rep" } } */