shithub: scc

Download patch

ref: afa1555b80132365d5b97ccea7b476d8efc82029
parent: 3e1a3035dc3e9959cdbba2cc3d658eacbf62d761
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Aug 14 03:16:57 EDT 2015

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.

--- a/cc1/code.c
+++ b/cc1/code.c
@@ -227,7 +227,7 @@
 	Type **vp;
 	Symbol **sp;
 
-	if (tp->printed)
+	if (tp->printed || !tp->defined)
 		return;
 	tp->printed = 1;