From a2d429315808d17638a4e3500a9ccb9ffe547d23 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Wed, 4 May 2011 16:48:18 +0000 Subject: [PATCH] * stor-layout.c (variable_size): Do not issue errors. From-SVN: r173381 --- gcc/ChangeLog | 4 ++++ gcc/stor-layout.c | 10 ---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 58c35b397af..5412506d9db 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-05-04 Eric Botcazou + + * stor-layout.c (variable_size): Do not issue errors. + 2011-05-04 Richard Guenther * coverage.c (tree_coverage_counter_ref): Use integer_type_node 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; -- 2.30.2