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
This commit is contained in:
Jakub Jelinek 2004-10-15 17:02:58 +00:00 committed by Steve Ellcey
parent b08fd659ae
commit 1ebfb3cf38
3 changed files with 9 additions and 3 deletions

View 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

View 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"

View 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 \