commit f332bea5b7c3758acad57042f620fd1663ab4f29
parent 80b8ac00bc997d13b4391d6d58f9f35c44c81be5
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Wed, 10 Aug 2016 08:31:07 +0200
Revert "[cc1] Reemit array variables with incomplete type"
This reverts commit 137e6e88fc39d5fffdd3423e09967f586f39887c.
Diffstat:
1 file changed, 0 insertions(+), 13 deletions(-)
diff --git a/cc1/decl.c b/cc1/decl.c
@@ -710,19 +710,6 @@ redcl(Symbol *sym, Type *tp, Symbol **pars, int sclass)
break;
}
sym->flags = flags;
- if (tp->op == ARY &&
- !(sym->type->prop&TDEFINED) &&
- tp->prop&TDEFINED) {
- /*
- * The symbol was already emitted, but in case of being an
- * array it was emitted with an incorrect type, so the most
- * simple solution is to emit twice the symbol, and let to
- * the second declaration to have the correct type.
- */
- sym->type = tp;
- sym->flags &= ~SEMITTED;
- emit(ODECL, sym);
- }
return sym;