Eliminate cleaning step for individual %.bc files created by our gcc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1211 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2001-11-08 18:42:08 +00:00
parent f87fc32e35
commit 19560c3fd3
2 changed files with 4 additions and 6 deletions

View File

@ -52,6 +52,7 @@ ifdef PROG
$(PROG).linked.bc: $(BCOBJS) $(PROG).linked.bc: $(BCOBJS)
$(LLINK) -f $(BCOBJS) -o $(PROG).tmp.bc $(LLINK) -f $(BCOBJS) -o $(PROG).tmp.bc
$(LOPT) -cleangcc -raise -constprop -dce $(PROG).tmp.bc -o $@ $(LOPT) -cleangcc -raise -constprop -dce $(PROG).tmp.bc -o $@
$(RM) $(PROG).tmp.bc
$(PROG).native: $(OBJS:.o=.c) $(PROG).native: $(OBJS:.o=.c)
gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@ gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@
@ -81,9 +82,7 @@ clean :
## $(LCC) $(LCFLAGS) -S $< -o $*.ll ## $(LCC) $(LCFLAGS) -S $< -o $*.ll
%.bc: %.c %.bc: %.c
$(LCC) $(LCFLAGS) -c $< -o $*.tmp.bc $(LCC) $(LCFLAGS) -c $< -o $@
$(LOPT) -cleangcc -raise -constprop -dce $*.tmp.bc -o $@
$(RM) $*.tmp.bc
%.bc: %.ll %.bc: %.ll
$(LAS) -f $< $(LAS) -f $<

View File

@ -52,6 +52,7 @@ ifdef PROG
$(PROG).linked.bc: $(BCOBJS) $(PROG).linked.bc: $(BCOBJS)
$(LLINK) -f $(BCOBJS) -o $(PROG).tmp.bc $(LLINK) -f $(BCOBJS) -o $(PROG).tmp.bc
$(LOPT) -cleangcc -raise -constprop -dce $(PROG).tmp.bc -o $@ $(LOPT) -cleangcc -raise -constprop -dce $(PROG).tmp.bc -o $@
$(RM) $(PROG).tmp.bc
$(PROG).native: $(OBJS:.o=.c) $(PROG).native: $(OBJS:.o=.c)
gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@ gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@
@ -81,9 +82,7 @@ clean :
## $(LCC) $(LCFLAGS) -S $< -o $*.ll ## $(LCC) $(LCFLAGS) -S $< -o $*.ll
%.bc: %.c %.bc: %.c
$(LCC) $(LCFLAGS) -c $< -o $*.tmp.bc $(LCC) $(LCFLAGS) -c $< -o $@
$(LOPT) -cleangcc -raise -constprop -dce $*.tmp.bc -o $@
$(RM) $*.tmp.bc
%.bc: %.ll %.bc: %.ll
$(LAS) -f $< $(LAS) -f $<