From e5852cffc21b02142c084c451360688bf3bbb019 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 20 Oct 1994 09:41:46 -0400 Subject: [PATCH] (variable_size): Return SIZE if it contains a PLACEHOLDER_EXPR. From-SVN: r8318 --- gcc/stor-layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 9fdc65100d6..834e96d392b 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -88,8 +88,8 @@ variable_size (size) { /* If the language-processor is to take responsibility for variable-sized items (e.g., languages which have elaboration procedures like Ada), - just return SIZE unchanged. */ - if (global_bindings_p () < 0) + just return SIZE unchanged. Likewise for self-referential sizes. */ + if (global_bindings_p () < 0 || contains_placeholder_p (size)) return size; size = save_expr (size); -- 2.30.2