Expand divisions into libcalls
[oota-llvm.git] / Makefile.rules
index 9324fe62fbaff1584ff8146554261297f5eb8865..6658edce0471aafc4c38a9ba89434388f0b486d2 100644 (file)
@@ -247,8 +247,8 @@ ifeq ($(ENABLE_OPTIMIZED),1)
   endif
 
   # Darwin requires -fstrict-aliasing to be explicitly enabled.
-  # Avoid -O3 on Darwin for now, there are unresolved issues with
-  # -fstrict-aliasing and ipa-type-escape radr://6756684
+  # Avoid -fstrict-aliasing on Darwin for now, there are unresolved issues
+  # with -fstrict-aliasing and ipa-type-escape radr://6756684
   #ifeq ($(OS),Darwin)
   #  EXTRA_OPTIONS += -fstrict-aliasing -Wstrict-aliasing
   #endif
@@ -1466,7 +1466,8 @@ endif # TARGET
 
 ifdef LLVMC_BUILD_AUTOGENERATED_INC
 
-LLVMCPluginSrc := $(strip $(wildcard $(PROJ_SRC_DIR)/*.td))
+LLVMCPluginSrc := $(sort $(strip $(wildcard $(PROJ_SRC_DIR)/*.td)) \
+       $(strip $(wildcard $(PROJ_OBJ_DIR)/*.td)))
 
 TDFiles := $(LLVMCPluginSrc) \
        $(strip $(wildcard $(LLVM_SRC_ROOT)/include/llvm/CompilerDriver/*.td))