* [patch testsuite]: Fix some tests for LLP64 targets
@ 2013-03-06 18:01 Kai Tietz
2013-03-06 18:05 ` Janis Johnson
2013-03-07 10:30 ` Andreas Schwab
0 siblings, 2 replies; 3+ messages in thread
From: Kai Tietz @ 2013-03-06 18:01 UTC (permalink / raw)
To: GCC Patches
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;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch testsuite]: Fix some tests for LLP64 targets
2013-03-06 18:01 [patch testsuite]: Fix some tests for LLP64 targets Kai Tietz
@ 2013-03-06 18:05 ` Janis Johnson
2013-03-07 10:30 ` Andreas Schwab
1 sibling, 0 replies; 3+ messages in thread
From: Janis Johnson @ 2013-03-06 18:05 UTC (permalink / raw)
To: Kai Tietz; +Cc: GCC Patches
On 03/06/2013 10:00 AM, Kai Tietz wrote:
> 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
OK.
Janis
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch testsuite]: Fix some tests for LLP64 targets
2013-03-06 18:01 [patch testsuite]: Fix some tests for LLP64 targets Kai Tietz
2013-03-06 18:05 ` Janis Johnson
@ 2013-03-07 10:30 ` Andreas Schwab
1 sibling, 0 replies; 3+ messages in thread
From: Andreas Schwab @ 2013-03-07 10:30 UTC (permalink / raw)
To: Kai Tietz; +Cc: GCC Patches
Committed.
Andreas.
* gcc.dg/pr31490.c: Fix last change.
diff --git a/gcc/testsuite/gcc.dg/pr31490.c b/gcc/testsuite/gcc.dg/pr31490.c
index 396ec26..37731b3 100644
--- a/gcc/testsuite/gcc.dg/pr31490.c
+++ b/gcc/testsuite/gcc.dg/pr31490.c
@@ -7,4 +7,4 @@ __extension__ typedef __UINTPTR_TYPE__ uintptr_t;
int cpu (void *attr) {}
const uintptr_t x __attribute__((section("foo"))) = (uintptr_t)&cpu;
-const uintptr g __attribute__((section("foo"))) = 0;
+const uintptr_t g __attribute__((section("foo"))) = 0;
--
1.8.1.5
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-07 10:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-06 18:01 [patch testsuite]: Fix some tests for LLP64 targets Kai Tietz
2013-03-06 18:05 ` Janis Johnson
2013-03-07 10:30 ` Andreas Schwab
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).