summaryrefslogtreecommitdiff
path: root/gnu/egcs/gcc/stmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/egcs/gcc/stmt.c')
-rw-r--r--gnu/egcs/gcc/stmt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/egcs/gcc/stmt.c b/gnu/egcs/gcc/stmt.c
index 7f8a571c4d1..26950fbafd4 100644
--- a/gnu/egcs/gcc/stmt.c
+++ b/gnu/egcs/gcc/stmt.c
@@ -3598,6 +3598,9 @@ expand_decl (decl)
{
rtx address, size;
+ if (warn_variable_decl)
+ warning ("variable-sized declaration");
+
/* Record the stack pointer on entry to block, if have
not already done so. */
if (thisblock->data.block.stack_level == 0)