From d3be60db35f50fd45541133cb39486ac53ef0a01 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Mon, 5 Nov 2001 00:35:56 +0000 Subject: [PATCH] Make gcc generate assembly files (%.ll) until Chris has a stable version of his gccas. Plus another dumb bug fix (the bug, not the fix). llvm-svn: 1134 --- llvm/test/Makefile.target | 10 ++++++++-- llvm/test/Makefile.tests | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/llvm/test/Makefile.target b/llvm/test/Makefile.target index c9f1e3882e69..7e54ccc555f5 100644 --- a/llvm/test/Makefile.target +++ b/llvm/test/Makefile.target @@ -1,3 +1,8 @@ +## -*-Makefile-*- +##------------------------------------------------------------------------ +## Common rules for generating, linking, and compiling via LLVM. +##------------------------------------------------------------------------ + .PHONY: clean default ## Special targets to build a program from multiple source files @@ -20,7 +25,7 @@ LLINK = $(TOOLS)/link LLCFLAGS = LCC = /home/vadve/lattner/cvs/gcc_install/bin/gcc -LCFLAGS = -DTORONTO -O2 $(LOCAL_CFLAGS) -Wall +LCFLAGS = -O2 $(LOCAL_CFLAGS) -Wall LLCLIB = $(LEVEL)/test/runtime.o LIBS = $(LLCLIB) $(LOCAL_LIBS) @@ -58,7 +63,8 @@ clean : $(LLC) -f -trace $(LLCFLAGS) $< %.o: %.c - $(LCC) $(LCFLAGS) -c $< + $(LCC) $(LCFLAGS) -S -o $*.ll $< + $(LAS) -o $@ $*.ll %.bc: %.ll $(LAS) -f $< diff --git a/llvm/test/Makefile.tests b/llvm/test/Makefile.tests index c9f1e3882e69..7e54ccc555f5 100644 --- a/llvm/test/Makefile.tests +++ b/llvm/test/Makefile.tests @@ -1,3 +1,8 @@ +## -*-Makefile-*- +##------------------------------------------------------------------------ +## Common rules for generating, linking, and compiling via LLVM. +##------------------------------------------------------------------------ + .PHONY: clean default ## Special targets to build a program from multiple source files @@ -20,7 +25,7 @@ LLINK = $(TOOLS)/link LLCFLAGS = LCC = /home/vadve/lattner/cvs/gcc_install/bin/gcc -LCFLAGS = -DTORONTO -O2 $(LOCAL_CFLAGS) -Wall +LCFLAGS = -O2 $(LOCAL_CFLAGS) -Wall LLCLIB = $(LEVEL)/test/runtime.o LIBS = $(LLCLIB) $(LOCAL_LIBS) @@ -58,7 +63,8 @@ clean : $(LLC) -f -trace $(LLCFLAGS) $< %.o: %.c - $(LCC) $(LCFLAGS) -c $< + $(LCC) $(LCFLAGS) -S -o $*.ll $< + $(LAS) -o $@ $*.ll %.bc: %.ll $(LAS) -f $< -- GitLab