From 63a84713eee3585f8e000a912f9c1799b13f09bd Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Fri, 22 Nov 2013 00:13:05 +0800 Subject: [PATCH] Correctly identify homogeneous float aggregate First related symbol of a structure justs indicate its size. This first member is the second related symbol. --- arm-gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm-gen.c b/arm-gen.c index 0fa2eb0..dd79c99 100644 --- a/arm-gen.c +++ b/arm-gen.c @@ -776,7 +776,7 @@ static int is_hgen_float_aggr(CType *type) struct Sym *ref; int btype, nb_fields = 0; - ref = type->ref; + ref = type->ref->next; btype = ref->type.t & VT_BTYPE; if (btype == VT_FLOAT || btype == VT_DOUBLE) { for(; ref && btype == (ref->type.t & VT_BTYPE); ref = ref->next, nb_fields++);