diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-04 16:48:18 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-04 16:48:18 +0000 |
commit | f682b737a6c594c0b9e4187ce252994f7e6408a2 (patch) | |
tree | bdd3eaec425f4cda86367246e382cdd8793a0670 /gcc/stor-layout.c | |
parent | 000a44cf5aa86eb259de9785df2080d151690fda (diff) | |
download | gcc-f682b737a6c594c0b9e4187ce252994f7e6408a2.tar.gz |
* stor-layout.c (variable_size): Do not issue errors.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173381 138bc75d-0d04-0410-961f-82ee72b054a4
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 37865a75d6b..88c090b4681 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; |