Don't set the space for external defs.

This commit is contained in:
Bill Currie 2011-01-29 09:55:14 +09:00
parent d80a3413e5
commit afc6605739

View file

@ -108,9 +108,9 @@ new_def (const char *name, type_t *type, defspace_t *space,
def->name = name ? save_string (name) : 0; def->name = name ? save_string (name) : 0;
def->type = type; def->type = type;
def->space = space;
if (storage != st_extern) { if (storage != st_extern) {
def->space = space;
*space->def_tail = def; *space->def_tail = def;
space->def_tail = &def->next; space->def_tail = &def->next;
def->offset = defspace_new_loc (space, type_size (type)); def->offset = defspace_new_loc (space, type_size (type));