mark allocated fields constant

This commit is contained in:
Bill Currie 2002-09-12 18:34:17 +00:00
parent d7eea11c91
commit 090e65bc09

View file

@ -270,6 +270,7 @@ get_def (type_t *type, const char *name, scope_t *scope,
if (storage == st_global || storage == st_static) { if (storage == st_global || storage == st_static) {
G_INT (def->ofs) = new_location (type->aux_type, pr.entity_data); G_INT (def->ofs) = new_location (type->aux_type, pr.entity_data);
reloc_def_field (def, def->ofs); reloc_def_field (def, def->ofs);
def->constant = 1;
} }
if (type->aux_type->type == ev_vector) { if (type->aux_type->type == ev_vector) {