* stor-layout.c (variable_size): Do not issue errors.
From-SVN: r173381
This commit is contained in:
parent
7fc2f86b5f
commit
a2d4293158
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue