]> gcc.gnu.org Git - gcc.git/commitdiff
struct-layout-1.h: Don't include complex.h nor stdint.h.
authorJakub Jelinek <jakub@redhat.com>
Fri, 15 Oct 2004 17:02:58 +0000 (17:02 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Fri, 15 Oct 2004 17:02:58 +0000 (17:02 +0000)
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
gcc/testsuite/gcc.dg/compat/struct-layout-1.h
gcc/testsuite/gcc.dg/compat/struct-layout-1_x1.h

index ebee9627548a6ac61c95f418a0919c2508aa7350..29c6e2c0ed47cf3f8dfac0eab166a33fabe38a9f 100644 (file)
@@ -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
index 3cadceb8565eff930a16e9e86713d19b1475323f..e50d4fb58339f06e67cec9f4f6e63aeeedad7fc5 100644 (file)
@@ -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"
index a553e223a35cb23d88e6eec1ae7e3562d62e5471..0c7696fa7dbe65f4a55fe37b82b8839d9a4fa906 100644 (file)
@@ -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                                                          \
This page took 0.093391 seconds and 5 git commands to generate.