diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2011-05-04 16:48:18 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2011-05-04 16:48:18 +0000 |
commit | a2d429315808d17638a4e3500a9ccb9ffe547d23 (patch) | |
tree | bdd3eaec425f4cda86367246e382cdd8793a0670 /gcc/stor-layout.c | |
parent | 7fc2f86b5fb801c7b2c46a764e9d0594cbcb73b9 (diff) | |
download | gcc-a2d429315808d17638a4e3500a9ccb9ffe547d23.zip gcc-a2d429315808d17638a4e3500a9ccb9ffe547d23.tar.gz gcc-a2d429315808d17638a4e3500a9ccb9ffe547d23.tar.bz2 |
* stor-layout.c (variable_size): Do not issue errors.
From-SVN: r173381
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 37865a7..88c090b 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -152,16 +152,6 @@ variable_size (tree size) that determine sizes for variable size objects. Trust it. */ return size; - if (lang_hooks.decls.global_bindings_p ()) - { - if (TREE_CONSTANT (size)) - error ("type size can%'t be explicitly evaluated"); - else - error ("variable-size type declared outside of any function"); - - return size_one_node; - } - put_pending_size (save); return size; |