Commit a2d42931 by Eric Botcazou Committed by Eric Botcazou

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

From-SVN: r173381
parent 7fc2f86b
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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment