[llvm-commits] [test-suite] r126329 - in /test-suite/trunk: Makefile.programs TEST.dbgopt.Makefile

Devang Patel dpatel at apple.com
Wed Feb 23 11:59:17 PST 2011


Author: dpatel
Date: Wed Feb 23 13:59:17 2011
New Revision: 126329

URL: http://llvm.org/viewvc/llvm-project?rev=126329&view=rev
Log:
Adopt clang as the compiler.
Stay within 80 cols.

Modified:
    test-suite/trunk/Makefile.programs
    test-suite/trunk/TEST.dbgopt.Makefile

Modified: test-suite/trunk/Makefile.programs
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/Makefile.programs?rev=126329&r1=126328&r2=126329&view=diff
==============================================================================
--- test-suite/trunk/Makefile.programs (original)
+++ test-suite/trunk/Makefile.programs Wed Feb 23 13:59:17 2011
@@ -988,8 +988,8 @@
 	@echo " information."
 	@echo " "
 	@echo " Run following commands to investigate failures."
-	@echo " prompt> llvm-gcc -g -fdebug-disable-debug-info-print -Os -S foo.c -o foo.first.s"
-	@echo " prompt> llvm-gcc -Os -S foo.c -o foo.second.s"
+	@echo " prompt> clang -g -fdebug-disable-debug-info-print -Os -S foo.c -o foo.first.s"
+	@echo " prompt> clang -Os -S foo.c -o foo.second.s"
 	@echo " prompt> diff foo.first.s foo.second.s"
 	@echo "***************************************************************"
 

Modified: test-suite/trunk/TEST.dbgopt.Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/TEST.dbgopt.Makefile?rev=126329&r1=126328&r2=126329&view=diff
==============================================================================
--- test-suite/trunk/TEST.dbgopt.Makefile (original)
+++ test-suite/trunk/TEST.dbgopt.Makefile Wed Feb 23 13:59:17 2011
@@ -3,8 +3,9 @@
 # This test checks whether presense of debugging information influences
 # the optimizer or not. 
 #
-# $ llvm-gcc -g -fdebug-disable-debug-info-print -Os -S foo.c -o foo.first.s
-# $ llvm-gcc -Os -S foo.c -o foo.second.s
+# $ clang -fno-verbose-asm -g -mllvm --disable-debug-info-print -Os \
+#      -S foo.c -o foo.first.s
+# $ clang -fno-verbose-asm -Os -S foo.c -o foo.second.s
 # $ diff foo.first.s foo.second.s
 #
 ##===----------------------------------------------------------------------===##
@@ -16,8 +17,11 @@
 test.$(TEST).%: Output/%.diff
 
 Output/%.s: %.c Output/.dir $(INCLUDES)
-	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os -fdebug-disable-debug-info-print -S ${PROJ_SRC_DIR}/$*.c -o Output/$*.first.s
-	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S ${PROJ_SRC_DIR}/$*.c -o Output/$*.second.s
+	-$(LLVMCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os \
+	  -fno-verbose-asm -mllvm --disable-debug-info-print \
+	  -S ${PROJ_SRC_DIR}/$*.c -o Output/$*.first.s
+	-$(LLVMCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os \
+	  -fno-verbose-asm -S ${PROJ_SRC_DIR}/$*.c -o Output/$*.second.s
 	@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
 	 echo "--------- TEST-PASS: $*" > Output/$*.dbgopt.report.txt; \
 	else \
@@ -25,8 +29,11 @@
 	fi
 
 Output/%.s: %.cpp Output/.dir $(INCLUDES)
-	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os -fdebug-disable-debug-info-print -S ${PROJ_SRC_DIR}/$*.cpp -o Output/$*.first.s
-	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S ${PROJ_SRC_DIR}/$*.cpp -o Output/$*.second.s
+	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os \
+	  -fno-verbose-asm -mllvm --disable-debug-info-print \
+	  -S ${PROJ_SRC_DIR}/$*.cpp -o Output/$*.first.s
+	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S \
+	  -fno-verbose-asm ${PROJ_SRC_DIR}/$*.cpp -o Output/$*.second.s
 	@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
 	 echo "--------- TEST-PASS: $*" > Output/$*.dbgopt.report.txt; \
 	else \
@@ -34,8 +41,11 @@
 	fi
 
 Output/%.s: %.cc Output/.dir $(INCLUDES)
-	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os -fdebug-disable-debug-info-print -S ${PROJ_SRC_DIR}/$*.cc -o Output/$*.first.s
-	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S ${PROJ_SRC_DIR}/$*.cc -o Output/$*.second.s
+	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os \
+	  -fno-verbose-asm -mllvm -disable-debug-info-print \
+	  -S ${PROJ_SRC_DIR}/$*.cc -o Output/$*.first.s
+	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S \
+	  -fno-verbose-asm ${PROJ_SRC_DIR}/$*.cc -o Output/$*.second.s
 	@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
 	 echo "--------- TEST-PASS: $*" > Output/$*.dbgopt.report.txt; \
 	else \
@@ -43,8 +53,11 @@
 	fi
 
 Output/%.s: %.m Output/.dir $(INCLUDES)
-	-$(LLVMGCC) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os -fdebug-disable-debug-info-print -S ${PROJ_SRC_DIR}/$*.m -o Output/$*.first.s
-	-$(LLVMGCC) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S ${PROJ_SRC_DIR}/$*.m -o Output/$*.second.s
+	-$(LLVMGCC) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os \
+	  -fno-verbose-asm -mllvm --disable-debug-info-print \
+	  -S ${PROJ_SRC_DIR}/$*.m -o Output/$*.first.s
+	-$(LLVMGCC) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S \
+	  -fno-verbose-asm ${PROJ_SRC_DIR}/$*.m -o Output/$*.second.s
 	@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
 	 echo "--------- TEST-PASS: $*" > Output/$*.dbgopt.report.txt; \
 	else \
@@ -52,8 +65,11 @@
 	fi
 
 Output/%.s: %.mm Output/.dir $(INCLUDES)
-	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os -fdebug-disable-debug-info-print -S ${PROJ_SRC_DIR}/$*.mm -o Output/$*.first.s
-	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S ${PROJ_SRC_DIR}/$*.mm -o Output/$*.second.s
+	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os \
+	  -fno-verbose-asm -mllvm --disable-debug-info-print \
+	  -S ${PROJ_SRC_DIR}/$*.mm -o Output/$*.first.s
+	-$(LLVMGCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S \
+	  -fno-verbose-asm ${PROJ_SRC_DIR}/$*.mm -o Output/$*.second.s
 	@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
 	 echo "--------- TEST-PASS: $*" > Output/$*.dbgopt.report.txt; \
 	else \





More information about the llvm-commits mailing list