Do not always reset current_storage.

resetting current_storage in external_def_list's empty rule breaks the
block storage scopes (extern { ... } etc);
This commit is contained in:
Bill Currie 2012-12-25 13:43:52 +09:00
parent e414117fe8
commit 1e3154ecd5

View file

@ -271,7 +271,6 @@ external_def_list
: /* empty */
{
current_symtab = pr.symtab;
current_storage = sc_global;
}
| external_def_list external_def
| external_def_list obj_def