From 1ebfb3cf38bc13fd23a8763b7354537729682242 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 15 Oct 2004 17:02:58 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 8 ++++++++ gcc/testsuite/gcc.dg/compat/struct-layout-1.h | 2 -- gcc/testsuite/gcc.dg/compat/struct-layout-1_x1.h | 2 +- 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 + + 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 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 #include #include #include #include -#include #include #include #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 \ -- 2.7.4