* stor-layout.c (variable_size): Do not issue errors.

From-SVN: r173381
This commit is contained in:
Eric Botcazou 2011-05-04 16:48:18 +00:00 committed by Eric Botcazou
parent 7fc2f86b5f
commit a2d4293158
2 changed files with 4 additions and 10 deletions

View File

@ -1,3 +1,7 @@
2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
* stor-layout.c (variable_size): Do not issue errors.
2011-05-04 Richard Guenther <rguenther@suse.de>
* coverage.c (tree_coverage_counter_ref): Use integer_type_node

View File

@ -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;