public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Kai Tietz <ktietz70@googlemail.com>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: [patch testsuite]: Fix some tests for LLP64 targets
Date: Wed, 06 Mar 2013 18:01:00 -0000	[thread overview]
Message-ID: <CAEwic4an3BpT3+N5b-Ge3hv3dZQyKz4rSfvbNJCB-3pOtE23UQ@mail.gmail.com> (raw)

Hello,

this patch fixes some regressions in testsuite for x64-targets.

ChangeLog

2013-03-06  Kai Tietz  <ktietz@redhat.com>

	* 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;

             reply	other threads:[~2013-03-06 18:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-06 18:01 Kai Tietz [this message]
2013-03-06 18:05 ` Janis Johnson
2013-03-07 10:30 ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEwic4an3BpT3+N5b-Ge3hv3dZQyKz4rSfvbNJCB-3pOtE23UQ@mail.gmail.com \
    --to=ktietz70@googlemail.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).