From patchwork Wed Mar 6 18:00:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai Tietz X-Patchwork-Id: 225564 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 941BB2C0376 for ; Thu, 7 Mar 2013 05:01:36 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1363197696; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Date:Message-ID:Subject:From:To: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=dJ8CVQo uwJeCDqgn7xkMYo9Vmmc=; b=og3jGVUCXe+yKAN/2/YsHxV6q/Uko35qY01BIYx Rp7hkptMP7Dt8mcJbzN4PETg/FHsQE9hZanhH1hIhM7hx2Bb4mczhY8SbwhsLCzh LDkMYP3iIORkcH3sPI2iMk5ludXIYca1aLsON+sG/cPtgz7+YcHdnjIP9C7VLj/Z C0u8= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:MIME-Version:X-Received:Received:Date:Message-ID:Subject:From:To:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=uI3Fq2XNhGMcKgHj97iLJacE0mTFa4zPF1Vh3gnCH0T1wPunewi7Oy4p7KI+EH b5dw0j1j8RtvwYLkohs50nSZKRKLxLnS1nMn/aWiGla7p+ZuxgJ4tlWxNZ/KLUX3 nhzQF5aQI/chOOxm3osfOs1mS4zrg/oiE1zsZwHmjpg6k=; Received: (qmail 9256 invoked by alias); 6 Mar 2013 18:01:22 -0000 Received: (qmail 9240 invoked by uid 22791); 6 Mar 2013 18:01:18 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-ie0-f174.google.com (HELO mail-ie0-f174.google.com) (209.85.223.174) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Mar 2013 18:00:44 +0000 Received: by mail-ie0-f174.google.com with SMTP id k10so9688969iea.19 for ; Wed, 06 Mar 2013 10:00:44 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.50.196.165 with SMTP id in5mr11498332igc.99.1362592844186; Wed, 06 Mar 2013 10:00:44 -0800 (PST) Received: by 10.64.231.200 with HTTP; Wed, 6 Mar 2013 10:00:44 -0800 (PST) Date: Wed, 6 Mar 2013 19:00:44 +0100 Message-ID: Subject: [patch testsuite]: Fix some tests for LLP64 targets From: Kai Tietz To: GCC Patches 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 Hello, this patch fixes some regressions in testsuite for x64-targets. ChangeLog 2013-03-06 Kai Tietz * gcc.dg/lto/20090914-2_0.c: Skip for mingw and cygwin targets. * gcc.dg/lto/20091013-1_1.c: Set x64-mingw as xfail. * gcc.dg/lto/20091013-1_2.c: Likewise. * gcc.dg/pr31490.c: Adjust for LLP64 targets. Ok for apply? Regards, Kai Index: gcc.dg/lto/20090914-2_0.c =================================================================== --- gcc.dg/lto/20090914-2_0.c (Revision 196485) +++ gcc.dg/lto/20090914-2_0.c (Arbeitskopie) @@ -1,6 +1,7 @@ /* { dg-lto-do run } */ /* { dg-skip-if "x86 only" { ! { x86_64-*-* i?86-*-* } } { "*" } { "" } } */ /* { dg-skip-if "no .type" { *-*-darwin* } { "*" } { "" } } */ +/* { dg-skip-if "no @function" { *-*-mingw* *-*-cygwin* } { "*" } { "" } } */ /* Doesn't work without this dummy function with -fwhopr. */ int foo(void) { } Index: gcc.dg/lto/20091013-1_1.c =================================================================== --- gcc.dg/lto/20091013-1_1.c (Revision 196485) +++ gcc.dg/lto/20091013-1_1.c (Arbeitskopie) @@ -1,4 +1,4 @@ -/* { dg-xfail-if "cast to pointer of different size" { "avr-*-*" } { "*" } { "" } } */ +/* { dg-xfail-if "cast to pointer of different size" { "avr-*-*" x86_64-*-mingw* } { "*" } { "" } } */ typedef struct HDC__ { int unused; } *HDC; typedef struct HFONT__ { int unused; } *HFONT; Index: gcc.dg/lto/20091013-1_2.c =================================================================== --- gcc.dg/lto/20091013-1_2.c (Revision 196485) +++ gcc.dg/lto/20091013-1_2.c (Arbeitskopie) @@ -1,4 +1,4 @@ -/* { dg-xfail-if "cast to pointer of different size" { "avr-*-*" } { "*" } { "" } } */ +/* { dg-xfail-if "cast to pointer of different size" { "avr-*-*" x86_64-*-mingw* } { "*" } { "" } } */ typedef struct HDC__ { int unused; } *HDC; typedef struct HFONT__ { int unused; } *HFONT; Index: gcc.dg/pr31490.c =================================================================== --- gcc.dg/pr31490.c (Revision 196485) +++ gcc.dg/pr31490.c (Arbeitskopie) @@ -3,6 +3,8 @@ /* { dg-require-named-sections "" } */ /* { dg-require-effective-target ptr32plus } */ +__extension__ typedef __UINTPTR_TYPE__ uintptr_t; + int cpu (void *attr) {} -const unsigned long x __attribute__((section("foo"))) = (unsigned long)&cpu; -const unsigned long g __attribute__((section("foo"))) = 0; +const uintptr_t x __attribute__((section("foo"))) = (uintptr_t)&cpu; +const uintptr g __attribute__((section("foo"))) = 0;