From 607ec3124ec2191fc43408bb2b2d94d7d458efa9 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 15 Oct 2018 22:12:40 +0900 Subject: [PATCH] More dead code removal. I have no idea why this hung around. It appears to be old array/struct initialization. --- tools/qfcc/source/def.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tools/qfcc/source/def.c b/tools/qfcc/source/def.c index 2f5d97c5d..1bc1faf81 100644 --- a/tools/qfcc/source/def.c +++ b/tools/qfcc/source/def.c @@ -512,17 +512,7 @@ initialize_def (symbol_t *sym, expr_t *init, defspace_t *space, sym->sy_type = sy_var; if (!sym->table) 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) { //FIXME this really is not the right way relocs = sym->s.def->relocs;