This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Adjust ieee/20000320-1.c (Take 2)


Hi,

Attached is a revised patch to adjust ieee/20000320-1.c.

For motivation behind this patch, please see the previous iteration:

  http://gcc.gnu.org/ml/gcc-patches/2007-03/msg01693.html

This iteration incorporates Jakub's suggestion to use __LONG_MAX__ and
__LONG_LONG_MAX__.  I've also replaced all macros from limits.h with
those supplied by gcc.  (Is there a good reason to stick to limits.h
when gcc provides all these macros?)

Tested on i686-pc-linux-gnu.  OK to apply?

Kazu Hirata

2007-04-25  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.

Index: gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.c
===================================================================
--- gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.c	(revision 124154)
+++ gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.c	(working copy)
@@ -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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]