[llvm-commits] CVS: llvm/test/Programs/Makefile.programs

Chris Lattner lattner at cs.uiuc.edu
Sun Feb 8 13:55:01 PST 2004


Changes in directory llvm/test/Programs:

Makefile.programs updated: 1.110 -> 1.111

---
Log message:

if a test requires EH support, make sure to pass -enable-correct-eh-support
to LLI and LLC.


---
Diffs of the changes:  (+13 -0)

Index: llvm/test/Programs/Makefile.programs
diff -u llvm/test/Programs/Makefile.programs:1.110 llvm/test/Programs/Makefile.programs:1.111
--- llvm/test/Programs/Makefile.programs:1.110	Tue Feb  3 16:51:05 2004
+++ llvm/test/Programs/Makefile.programs	Sun Feb  8 13:54:33 2004
@@ -244,6 +244,12 @@
 Output/%.cbe: Output/%.cbe.c
 	-$(CC) $< $(LDFLAGS) $(CFLAGS) -fno-strict-aliasing -O2 -o $@
 
+# If the program requires exception handling support, enable (potentially
+# expensive) support for it.
+ifdef REQUIRES_EH_SUPPORT
+LLCFLAGS += -enable-correct-eh-support
+endif
+
 #
 # Compile a linked program to machine code with LLC.
 #
@@ -282,6 +288,13 @@
 LLI_OPTS = -force-interpreter=true $(EXTRA_LLI_OPTS)
 JIT_OPTS = -force-interpreter=false $(EXTRA_LLI_OPTS)
 JIT_LS_OPTS = -force-interpreter=false -regalloc=linearscan $(EXTRA_LLI_OPTS)
+
+
+# If the program requires exception handling support, enable (potentially
+# expensive) support for it.
+ifdef REQUIRES_EH_SUPPORT
+JIT_OPTS += -enable-correct-eh-support
+endif
 
 native: $(PROGRAMS_TO_TEST:%=Output/%.native)
 stripped-bytecode:: $(PROGRAMS_TO_TEST:%=Output/%.llvm.stripped.bc)





More information about the llvm-commits mailing list