aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/stor-layout.c10
2 files changed, 4 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 58c35b3..5412506 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
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;