some storage and obj file fixes

This commit is contained in:
Bill Currie 2002-07-02 23:08:44 +00:00
parent 1478dcd9c9
commit 211b11c8ae
2 changed files with 4 additions and 0 deletions

View file

@ -150,6 +150,7 @@ set_storage_bits (def_t *def, storage_class_t storage)
case st_local:
break;
}
def->initialized = 0;
}
static const char *vector_component_names[] = {"%s_x", "%s_y", "%s_z"};
@ -248,6 +249,8 @@ get_def (type_t *type, const char *name, scope_t *scope,
}
}
set_storage_bits (def, storage);
if (storage == st_extern || storage == st_static)
def_initialized (def);
return def;
}

View file

@ -190,6 +190,7 @@ setup_data (void)
func->line_info = LittleLong (f->aux->line_info);
func->num_parms = LittleLong (function_parms (f, func->parm_size));
func->relocs = LittleLong (reloc - relocs);
func->num_relocs = LittleLong (count_relocs (f->refs));
write_relocs (f->refs, &reloc);
if (f->scope)