aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 \