Fix external function declarations.

Use spec.storage rather than current_storage.
This commit is contained in:
Bill Currie 2011-03-01 11:07:38 +09:00
parent cce6838e16
commit b584a22d6b

View file

@ -865,7 +865,7 @@ non_code_func
symbol_t *sym = $<symbol>0;
specifier_t spec = $<spec>-1;
if (sym->type->type != ev_field) {
make_function (sym, 0, sym->table->space, current_storage);
make_function (sym, 0, sym->table->space, spec.storage);
} else {
initialize_def (sym, sym->type, 0, current_symtab->space,
spec.storage);