aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2007-04-30 21:13:58 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2007-04-30 21:13:58 +0000
commit813ba481e7f6dae3a4cfcfb361d2b57b4a8dfa24 (patch)
tree13238be06aaea38b78dd00acd2aac80c77897078
parent18452a7da99e0d2b4eca60e820941fc0d1c930a3 (diff)
downloadgcc-813ba481e7f6dae3a4cfcfb361d2b57b4a8dfa24.zip
gcc-813ba481e7f6dae3a4cfcfb361d2b57b4a8dfa24.tar.gz
gcc-813ba481e7f6dae3a4cfcfb361d2b57b4a8dfa24.tar.bz2
20000320-1.c: Use __LONG_LONG_MAX__ and its friends instead of those supplied by limits.h.
* gcc.c-torture/execute/ieee/20000320-1.c: Use __LONG_LONG_MAX__ and its friends instead of those supplied by limits.h. From-SVN: r124306
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.c5
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index efe44a6..2bfc6ae 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2007-04-30 Kazu Hirata <kazu@codesourcery.com>
+
+ * gcc.c-torture/execute/ieee/20000320-1.c: Use
+ __LONG_LONG_MAX__ and its friends instead of those supplied by
+ limits.h.
+
2007-04-30 Andrew pinski <andrew_pinski@playstation.sony.com>
PR C++/31721
diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.c b/gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.c
index 5f1768c..873a17d 100644
--- a/gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.c
@@ -1,11 +1,10 @@
#if defined(__mips__) && defined(__sgi__)
#include <sys/fpu.h>
#endif /* defined(__mips__) && defined(__sgi__) */
-#include <limits.h>
-#if UINT_MAX != 4294967295u || (ULONG_LONG_MAX != 18446744073709551615ull && ULONG_MAX != 18446744073709551615ull)
+#if __INT_MAX__ != 2147483647 || (__LONG_LONG_MAX__ != 9223372036854775807ll && __LONG_MAX__ != 9223372036854775807ll)
int main(void) { exit (0); }
#else
-#if ULONG_MAX != 18446744073709551615ull
+#if __LONG_MAX__ != 9223372036854775807ll
typedef unsigned long long ull;
#else
typedef unsigned long ull;