aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-10-15 17:02:58 +0000
committerSteve Ellcey <sje@gcc.gnu.org>2004-10-15 17:02:58 +0000
commit1ebfb3cf38bc13fd23a8763b7354537729682242 (patch)
treec856ddb3067d76db0bf3f4c005dc8ea786fbf5b9 /gcc
parentb08fd659aedf77f3a031985affc88b4cf7be7a95 (diff)
downloadgcc-1ebfb3cf38bc13fd23a8763b7354537729682242.zip
gcc-1ebfb3cf38bc13fd23a8763b7354537729682242.tar.gz
gcc-1ebfb3cf38bc13fd23a8763b7354537729682242.tar.bz2
struct-layout-1.h: Don't include complex.h nor stdint.h.
other/16820 * gcc.dg/compat/struct-layout-1.h: Don't include complex.h nor stdint.h. * gcc.dg/compat/struct-layout-1_x1.h (TX): Cast to long instead of uintptr_t. From-SVN: r89105
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog8
-rw-r--r--gcc/testsuite/gcc.dg/compat/struct-layout-1.h2
-rw-r--r--gcc/testsuite/gcc.dg/compat/struct-layout-1_x1.h2
3 files changed, 9 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ebee962..29c6e2c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+004-10-15 Jakub Jelinek <jakub@redhat.com>
+
+ PR other/16820
+ * gcc.dg/compat/struct-layout-1.h: Don't include complex.h nor
+ stdint.h.
+ * gcc.dg/compat/struct-layout-1_x1.h (TX): Cast to long instead of
+ uintptr_t.
+
2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/16301
diff --git a/gcc/testsuite/gcc.dg/compat/struct-layout-1.h b/gcc/testsuite/gcc.dg/compat/struct-layout-1.h
index 3cadceb..e50d4fb 100644
--- a/gcc/testsuite/gcc.dg/compat/struct-layout-1.h
+++ b/gcc/testsuite/gcc.dg/compat/struct-layout-1.h
@@ -1,9 +1,7 @@
-#include <complex.h>
#include <limits.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
-#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "compat-common.h"
diff --git a/gcc/testsuite/gcc.dg/compat/struct-layout-1_x1.h b/gcc/testsuite/gcc.dg/compat/struct-layout-1_x1.h
index a553e22..0c7696f 100644
--- a/gcc/testsuite/gcc.dg/compat/struct-layout-1_x1.h
+++ b/gcc/testsuite/gcc.dg/compat/struct-layout-1_x1.h
@@ -56,7 +56,7 @@ void test##n (void) \
info.als = __alignof__ (s##n); \
info.ala0 = __alignof__ (a##n[0]); \
info.ala3 = __alignof__ (a##n[3]); \
- if (((uintptr_t) &a##n[3]) & (info.als - 1)) \
+ if (((long) &a##n[3]) & (info.als - 1)) \
FAIL (n, 1); \
i = 0; j = 0; \
ops \