aboutsummaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2011-05-04 16:48:18 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2011-05-04 16:48:18 +0000
commita2d429315808d17638a4e3500a9ccb9ffe547d23 (patch)
treebdd3eaec425f4cda86367246e382cdd8793a0670 /gcc/stor-layout.c
parent7fc2f86b5fb801c7b2c46a764e9d0594cbcb73b9 (diff)
downloadgcc-a2d429315808d17638a4e3500a9ccb9ffe547d23.zip
gcc-a2d429315808d17638a4e3500a9ccb9ffe547d23.tar.gz
gcc-a2d429315808d17638a4e3500a9ccb9ffe547d23.tar.bz2
* stor-layout.c (variable_size): Do not issue errors.
From-SVN: r173381
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r--gcc/stor-layout.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 37865a7..88c090b 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;