More dead code removal.

I have no idea why this hung around. It appears to be old array/struct
initialization.
This commit is contained in:
Bill Currie 2018-10-15 22:12:40 +09:00
parent ff5c1cd4c2
commit 607ec3124e

View file

@ -512,17 +512,7 @@ initialize_def (symbol_t *sym, expr_t *init, defspace_t *space,
sym->sy_type = sy_var; sym->sy_type = sy_var;
if (!sym->table) if (!sym->table)
symtab_addsymbol (current_symtab, sym); symtab_addsymbol (current_symtab, sym);
// if (storage == sc_global && init && is_scalar (type)) {
// sym->sy_type = sy_const;
// memset (&sym->s.value, 0, sizeof (&sym->s.value));
// if (init->type != ex_value) { //FIXME arrays/structs
// error (0, "non-constant initializier");
// } else {
// sym->s.value = init->e.value;
// convert_value (&sym->s.value, sym->type);
// }
// return;
// }
if (sym->s.def && sym->s.def->external) { if (sym->s.def && sym->s.def->external) {
//FIXME this really is not the right way //FIXME this really is not the right way
relocs = sym->s.def->relocs; relocs = sym->s.def->relocs;