From 06d493cf7c865514909e880863e515416f008a88 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Sun, 8 Mar 2009 10:47:24 +0000 Subject: [PATCH] - do not expand the frame size for inner functions, they are NOT living on the outer frame [r25631] --- driver/firm_opt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/driver/firm_opt.c b/driver/firm_opt.c index 22b4d8e..9028537 100644 --- a/driver/firm_opt.c +++ b/driver/firm_opt.c @@ -643,6 +643,10 @@ static int compute_type_size(ir_type *ty) ir_type *ent_ty = get_entity_type(ent); unsigned align, misalign; + /* inner functions do not expand the frame */ + if (is_Method_type(ent_ty) && is_frame_type(ty)) + continue; + /* compute member types */ if (! compute_type_size(ent_ty)) return 0; -- 2.20.1