scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit afa1555b80132365d5b97ccea7b476d8efc82029
parent 3e1a3035dc3e9959cdbba2cc3d658eacbf62d761
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 14 Aug 2015 07:16:57 +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.

Diffstat:
Mcc1/code.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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