Commit 78feaa1f by Ulrich Weigand Committed by Ulrich Weigand

titype-1.c: Enable TImode on __SPU__.

	* gcc.dg/titype-1.c: Enable TImode on __SPU__.
	* gcc.dg/torture/fp-int-convert.h: Likewise.
	* gcc.dg/tree-ssa/ivopts-1.c: Likewise.
	* gcc.dg/uninit-C.c: Likewise.
	* gcc.dg/uninit-C-O0.c: Likewise.
	* gcc.dg/format/unnamed-1.c: Likewise.
	* gcc.dg/format/ms_unnamed-1.c: Likewise.

From-SVN: r167995
parent ce99f498
2010-12-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gcc.dg/titype-1.c: Enable TImode on __SPU__.
* gcc.dg/torture/fp-int-convert.h: Likewise.
* gcc.dg/tree-ssa/ivopts-1.c: Likewise.
* gcc.dg/uninit-C.c: Likewise.
* gcc.dg/uninit-C-O0.c: Likewise.
* gcc.dg/format/unnamed-1.c: Likewise.
* gcc.dg/format/ms_unnamed-1.c: Likewise.
2010-12-17 Jason Merrill <jason@redhat.com> 2010-12-17 Jason Merrill <jason@redhat.com>
PR c++/46670 PR c++/46670
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
/* Definition of TItype follows same logic as in gcc.dg/titype-1.c, /* Definition of TItype follows same logic as in gcc.dg/titype-1.c,
but must be a #define to avoid giving the type a name. */ but must be a #define to avoid giving the type a name. */
#if defined(__LP64__) && !defined(__hppa__) #if (defined(__LP64__) && !defined(__hppa__)) || defined(__SPU__)
#define TItype int __attribute__ ((mode (TI))) #define TItype int __attribute__ ((mode (TI)))
#else #else
#define TItype long #define TItype long
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
/* Definition of TItype follows same logic as in gcc.dg/titype-1.c, /* Definition of TItype follows same logic as in gcc.dg/titype-1.c,
but must be a #define to avoid giving the type a name. */ but must be a #define to avoid giving the type a name. */
#if defined(__LP64__) && !defined(__hppa__) #if (defined(__LP64__) && !defined(__hppa__)) || defined(__SPU__)
#define TItype int __attribute__ ((mode (TI))) #define TItype int __attribute__ ((mode (TI)))
#else #else
#define TItype long #define TItype long
......
/* { dg-do run } */ /* { dg-do run } */
/* Not all platforms support TImode integers. */ /* Not all platforms support TImode integers. */
#if (defined(__LP64__) && !defined(__hppa__)) || defined(_WIN64) #if (defined(__LP64__) && !defined(__hppa__)) || defined(_WIN64) || defined(__SPU__)
typedef int TItype __attribute__ ((mode (TI))); typedef int TItype __attribute__ ((mode (TI)));
#else #else
typedef long TItype; typedef long TItype;
......
...@@ -7,7 +7,7 @@ extern void exit (int); ...@@ -7,7 +7,7 @@ extern void exit (int);
/* Not all platforms support TImode integers; logic as in /* Not all platforms support TImode integers; logic as in
gcc.dg/titype-1.c. */ gcc.dg/titype-1.c. */
#if (defined(__LP64__) && !defined(__hppa__)) || defined(_WIN64) #if (defined(__LP64__) && !defined(__hppa__)) || defined(_WIN64) || defined(__SPU__)
typedef int TItype __attribute__ ((mode (TI))); typedef int TItype __attribute__ ((mode (TI)));
typedef unsigned int UTItype __attribute__ ((mode (TI))); typedef unsigned int UTItype __attribute__ ((mode (TI)));
#else #else
......
/* { dg-do compile } */ /* { dg-do compile } */
/* Not all platforms support TImode integers. */ /* Not all platforms support TImode integers. */
#if defined(__LP64__) && !defined(__hppa__) #if (defined(__LP64__) && !defined(__hppa__)) || defined(__SPU__)
typedef int TItype __attribute__ ((mode (TI))); typedef int TItype __attribute__ ((mode (TI)));
#else #else
typedef long TItype; typedef long TItype;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* { dg-options "-Wuninitialized" } */ /* { dg-options "-Wuninitialized" } */
/* Not all platforms support TImode integers. */ /* Not all platforms support TImode integers. */
#if defined(__LP64__) && !defined(__hppa__) #if (defined(__LP64__) && !defined(__hppa__)) || defined(__SPU__)
typedef int TItype __attribute__ ((mode (TI))); typedef int TItype __attribute__ ((mode (TI)));
#else #else
typedef long TItype; typedef long TItype;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* { dg-options "-O -Wuninitialized" } */ /* { dg-options "-O -Wuninitialized" } */
/* Not all platforms support TImode integers. */ /* Not all platforms support TImode integers. */
#if defined(__LP64__) && !defined(__hppa__) #if (defined(__LP64__) && !defined(__hppa__)) || defined(__SPU__)
typedef int TItype __attribute__ ((mode (TI))); typedef int TItype __attribute__ ((mode (TI)));
#else #else
typedef long TItype; typedef long TItype;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment