[hackers] [scc] Do not emit incomplete types || Roberto E. Vargas Caballero
commit afa1555b80132365d5b97ccea7b476d8efc82029
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Aug 14 07:16:57 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Aug 14 07:16:57 2015 +0200
Do not emit incomplete types
In this case we don't have the enough information
to emit the type, so it is better in cc2 mark as
incomplete all the unknow types.
diff --git a/cc1/code.c b/cc1/code.c
index 94c822d..2d8cf6e 100644
--- a/cc1/code.c
+++ b/cc1/code.c
_AT_@ -227,7 +227,7 @@ emittype(Type *tp)
Type **vp;
Symbol **sp;
- if (tp->printed)
+ if (tp->printed || !tp->defined)
return;
tp->printed = 1;
Received on Fri Aug 14 2015 - 07:25:08 CEST
This archive was generated by hypermail 2.3.0
: Fri Aug 14 2015 - 07:36:13 CEST