add bootstrap target, don't set frame_type to fixed layout, lower_compound_calls...
authorMatthias Braun <matze@braunis.de>
Fri, 15 Feb 2008 22:30:46 +0000 (22:30 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 15 Feb 2008 22:30:46 +0000 (22:30 +0000)
[r18871]

Makefile
ast2firm.c

index 4749e6a..9edc88a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -52,6 +52,7 @@ OBJECTS = $(SOURCES:%.c=build/%.o)
 
 SPLINTS = $(addsuffix .splint, $(SOURCES))
 CPARSERS = $(addsuffix .cparser, $(SOURCES))
+CPARSEROS = $(SOURCES:%.c=build/cpb/%.o)
 
 Q = @
 
@@ -85,6 +86,8 @@ splint: $(SPLINTS)
 
 selfcheck: $(CPARSERS)
 
+bootstrap: build/cpb build/cpb/adt build/cpb/driver $(CPARSEROS)
+
 %.c.splint: %.c
        @echo '===> SPLINT $<'
        $(Q)splint $(CPPFLAGS) $<
@@ -93,10 +96,14 @@ selfcheck: $(CPARSERS)
        @echo '===> CPARSER $<'
        $(Q)./cparser $(CPPFLAGS) -fsyntax-only $<
 
-build/adt build/driver:
+build/adt build/driver build/cpb build/cpb/adt build/cpb/driver:
        @echo "===> MKDIR $@"
        $(Q)mkdir -p $@
 
+build/cpb/%.o: %.c
+       @echo '===> CPARSER $<'
+       $(Q)./cparser $(CPPFLAGS) -Wall -c $< -o $@
+
 build/%.o: %.c
        @echo '===> CC $<'
 #-$(Q)build/cparser $(CPPFLAGS) $(CFLAGS) -fsyntax-only $<
index 5a12c4b..debae68 100644 (file)
@@ -4559,7 +4559,6 @@ static void create_function(declaration_t *declaration)
        }
        set_type_size_bytes(frame_type, offset);
        set_type_alignment_bytes(frame_type, align_all);
-       set_type_state(frame_type, layout_fixed);
 
        irg_vrfy(irg);
 }