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]

Format checking testcases fix


This patch fixes two format checking testcases to use
__LONG_LONG_MAX__, unconditionally defined by GCC's <limits.h>, rather
than LLONG_MAX, defined only in C99 mode which these testcases
specifically aren't in.  OK to commit?

2000-10-11  Joseph S. Myers  <jsm28@cam.ac.uk>

	* gcc.dg/c90-printf-2.c, gcc.dg/c90-scanf-2.c: Use
	__LONG_LONG_MAX__ instead of LLONG_MAX.

Index: c90-printf-2.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/gcc.dg/c90-printf-2.c,v
retrieving revision 1.3
diff -u -r1.3 c90-printf-2.c
--- c90-printf-2.c	2000/10/08 21:20:45	1.3
+++ c90-printf-2.c	2000/10/11 22:55:39
@@ -14,9 +14,9 @@
    should be used.
 */
 #include <limits.h>
-#if INT_MAX == LLONG_MAX
+#if INT_MAX == __LONG_LONG_MAX__
 typedef int intmax_t;
-#elif LONG_MAX == LLONG_MAX
+#elif LONG_MAX == __LONG_LONG_MAX__
 typedef long intmax_t;
 #else
 __extension__ typedef long long intmax_t;
Index: c90-scanf-2.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/gcc.dg/c90-scanf-2.c,v
retrieving revision 1.3
diff -u -r1.3 c90-scanf-2.c
--- c90-scanf-2.c	2000/10/08 21:20:45	1.3
+++ c90-scanf-2.c	2000/10/11 22:55:39
@@ -14,9 +14,9 @@
    should be used.
 */
 #include <limits.h>
-#if INT_MAX == LLONG_MAX
+#if INT_MAX == __LONG_LONG_MAX__
 typedef int intmax_t;
-#elif LONG_MAX == LLONG_MAX
+#elif LONG_MAX == __LONG_LONG_MAX__
 typedef long intmax_t;
 #else
 __extension__ typedef long long intmax_t;

-- 
Joseph S. Myers
jsm28@cam.ac.uk


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