From 232650f8b3a786e82071c12a1ee8eea60684279a Mon Sep 17 00:00:00 2001 From: grischka Date: Wed, 15 Sep 2010 13:25:19 +0200 Subject: [PATCH] tccgen: reset aligned attribute for next type Basically, with: typedef __attribute__((aligned(16))) struct _xyz { ... } xyz, *pxyz; we want the struct aligned but not the pointer. FIXME: This patch is a hack, waiting for someone in the knowledge of correct __attribute__ semantics. --- tccgen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tccgen.c b/tccgen.c index 35d5aaaa..fe4a0706 100644 --- a/tccgen.c +++ b/tccgen.c @@ -5738,6 +5738,7 @@ static int decl0(int l, int is_for_loop_init) } next(); } + ad.aligned = 0; } } return 0;