From patchwork Thu Oct 20 00:03:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 120710 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 B4406B6F8E for ; Thu, 20 Oct 2011 11:03:56 +1100 (EST) Received: (qmail 26785 invoked by alias); 20 Oct 2011 00:03:53 -0000 Received: (qmail 26758 invoked by uid 22791); 20 Oct 2011 00:03:52 -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; Thu, 20 Oct 2011 00:03:36 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RGg6g-0002LB-WA from joseph_myers@mentor.com ; Wed, 19 Oct 2011 17:03:35 -0700 Received: from digraph.polyomino.org.uk ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 20 Oct 2011 01:03:31 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.74) (envelope-from ) id 1RGg6c-0006DO-Vc; Thu, 20 Oct 2011 00:03:30 +0000 Date: Thu, 20 Oct 2011 00:03:30 +0000 (UTC) From: "Joseph S. Myers" To: gcc-patches@gcc.gnu.org cc: cgf@gcc.gnu.org, ktietz@redhat.com, dave.korn.cygwin@gmail.com, ro@CeBiTec.Uni-Bielefeld.DE, mikestump@comcast.net Subject: Avoid -mno-accumulate-outgoing-args in tests on Windows target 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 The -mno-accumulate-outgoing-args option does not work with the stack probing used on Windows targets, giving a warning and so causing tests using that option to fail. This patch makes three tests not use that option on affected targets, like sse-10.c (see for the introduction of the warning and the sse-10.c change). Tested with cross to i686-mingw32. OK to commit? 2011-10-19 Joseph Myers * gcc.target/i386/pr40906-1.c, gcc.target/i386/pr40906-2.c, gcc.target/i386/pr46226.c: Do not use -mno-accumulate-outgoing-args. Index: gcc/testsuite/gcc.target/i386/pr40906-2.c =================================================================== --- gcc/testsuite/gcc.target/i386/pr40906-2.c (revision 180200) +++ gcc/testsuite/gcc.target/i386/pr40906-2.c (working copy) @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target ia32 } */ /* { dg-options "-O2 -Wno-psabi -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args -mno-accumulate-outgoing-args -m128bit-long-double" } */ +/* { dg-options "-O2 -Wno-psabi -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args -m128bit-long-double" { target *-*-mingw* *-*-cygwin* } } */ void abort (void); Index: gcc/testsuite/gcc.target/i386/pr46226.c =================================================================== --- gcc/testsuite/gcc.target/i386/pr46226.c (revision 180200) +++ gcc/testsuite/gcc.target/i386/pr46226.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-options "-Os -fomit-frame-pointer -mno-accumulate-outgoing-args -fno-asynchronous-unwind-tables" } */ +/* { dg-options "-Os -fomit-frame-pointer -fno-asynchronous-unwind-tables" { target *-*-mingw* *-*-cygwin* } } */ extern void abort(void); Index: gcc/testsuite/gcc.target/i386/pr40906-1.c =================================================================== --- gcc/testsuite/gcc.target/i386/pr40906-1.c (revision 180200) +++ gcc/testsuite/gcc.target/i386/pr40906-1.c (working copy) @@ -1,6 +1,7 @@ /* { dg-do run } */ /* { dg-require-effective-target ia32 } */ /* { dg-options "-O2 -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args -mno-accumulate-outgoing-args" } */ +/* { dg-options "-O2 -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpush-args" { target *-*-mingw* *-*-cygwin* } } */ void abort (void);