diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1994-10-20 09:41:46 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1994-10-20 09:41:46 -0400 |
commit | e5852cffc21b02142c084c451360688bf3bbb019 (patch) | |
tree | c7767b76164a5ed0626a49573c473e2e43a8b90d /gcc | |
parent | 90d326bda21dc222166c937bb01c68945ef10382 (diff) | |
download | gcc-e5852cffc21b02142c084c451360688bf3bbb019.zip gcc-e5852cffc21b02142c084c451360688bf3bbb019.tar.gz gcc-e5852cffc21b02142c084c451360688bf3bbb019.tar.bz2 |
(variable_size): Return SIZE if it contains a PLACEHOLDER_EXPR.
From-SVN: r8318
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/stor-layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 9fdc651..834e96d 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); |