Set the default storage class for local vars.

This commit is contained in:
Bill Currie 2011-01-28 21:56:17 +09:00
parent bc7d42d176
commit 2cce903cc9

View file

@ -237,6 +237,7 @@ subprogram_declaration
: subprogram_head ';'
{
$<storage>$ = current_storage;
current_storage = st_local;
current_func = begin_function ($1, 0, current_symtab);
current_symtab = current_func->symtab;
}