diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-18 23:20:34 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-18 23:20:34 +0000 |
commit | dc9236d15283e0cef0227fb0025b6b5686b03aa7 (patch) | |
tree | b44878831e38694f241f432fbcfe480ab1d17aa4 /gcc | |
parent | 3f64b52655c2300a20fbf2d8fce9d097c70e8ee9 (diff) | |
download | gcc-dc9236d15283e0cef0227fb0025b6b5686b03aa7.tar.gz |
* gcc.dg/compat/struct-align-2_x.c: Include <limits.h>.
Use INT_MAX instead of __INT_MAX__.
* gcc.dg/compat/struct-align-2_y.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83371 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/compat/struct-align-2_x.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/compat/struct-align-2_y.c | 6 |
3 files changed, 12 insertions, 6 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c948f43c2cb..c29b49fa94a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2004-06-19 Jakub Jelinek <jakub@redhat.com> + * gcc.dg/compat/struct-align-2_x.c: Include <limits.h>. + Use INT_MAX instead of __INT_MAX__. + * gcc.dg/compat/struct-align-2_y.c: Likewise. + * gcc.dg/compat/compat-common.h (CINT, CDBL): Define. * gcc.dg/compat/scalar-return-3_x.c: Use it. * gcc.dg/compat/scalar-return-3_y.c: Use it. @@ -10,8 +14,6 @@ * gcc.dg/compat/scalar-by-value-4_x.c: Use it. * gcc.dg/compat/scalar-by-value-4_y.c: Use it. -2004-06-19 Jakub Jelinek <jakub@redhat.com> - * gcc.dg/range-test-1.c: New test. * g++.dg/opt/range-test-1.C: New test. diff --git a/gcc/testsuite/gcc.dg/compat/struct-align-2_x.c b/gcc/testsuite/gcc.dg/compat/struct-align-2_x.c index 47f32d443ec..2a4ae586b76 100644 --- a/gcc/testsuite/gcc.dg/compat/struct-align-2_x.c +++ b/gcc/testsuite/gcc.dg/compat/struct-align-2_x.c @@ -1,6 +1,8 @@ /* Disable this test for 16-bit targets. */ -#if !(defined __GNUC__) || (__INT_MAX__ > 32767) +#include <limits.h> + +#if !(defined __GNUC__) || (INT_MAX > 32767) #include "compat-common.h" #include "struct-align-2.h" @@ -80,4 +82,4 @@ struct_align_2_x (void) void struct_align_2_x (void) {} -#endif /* __INT_MAX__ */ +#endif /* INT_MAX */ diff --git a/gcc/testsuite/gcc.dg/compat/struct-align-2_y.c b/gcc/testsuite/gcc.dg/compat/struct-align-2_y.c index 15b684f453c..0ca2e40c4c1 100644 --- a/gcc/testsuite/gcc.dg/compat/struct-align-2_y.c +++ b/gcc/testsuite/gcc.dg/compat/struct-align-2_y.c @@ -1,6 +1,8 @@ /* Disable this test for 16-bit targets. */ -#if !(defined __GNUC__) || (__INT_MAX__ > 32767) +#include <limits.h> + +#if !(defined __GNUC__) || (INT_MAX > 32767) #include "compat-common.h" #include "struct-align-2.h" @@ -68,4 +70,4 @@ TEST (pdata8) int i; /* prevent compiling an empty file */ -#endif /* __INT_MAX__ */ +#endif /* INT_MAX */ |