Add interface for section override. Use this for Sparc, since it should use named...
[oota-llvm.git] / Makefile.rules
index e28ccf187aa494fe0d074e3e9207fda60d30fe47..a7a4879910995f71ae4f3751ff4300c93bb2d8a4 100644 (file)
@@ -226,7 +226,7 @@ else
 
     # Darwin requires -fstrict-aliasing to be explicitly enabled.
     ifeq ($(OS),Darwin)
-      EXTRA_OPTIONS += -fstrict-aliasing
+      EXTRA_OPTIONS += -fstrict-aliasing -Wstrict-aliasing
     endif
 
     CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
@@ -451,6 +451,10 @@ ifdef UNIVERSAL
   DISABLE_AUTO_DEPENDENCIES=1
 endif
 
+ifeq ($(OS),SunOS)
+CPP.BaseFlags += -include llvm/System/Solaris.h
+endif
+
 LD.Flags      += -L$(LibDir) -L$(LLVMLibDir) 
 CPP.BaseFlags += -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
 # All -I flags should go here, so that they don't confuse llvm-config.
@@ -1292,9 +1296,14 @@ $(ObjDir)/%GenCodeEmitter.inc.tmp: %.td $(ObjDir)/.dir
 
 $(TARGET:%=$(ObjDir)/%GenDAGISel.inc.tmp): \
 $(ObjDir)/%GenDAGISel.inc.tmp : %.td $(ObjDir)/.dir
-       $(Echo) "Building $(<F) instruction selector implementation with tblgen"
+       $(Echo) "Building $(<F) DAG instruction selector implementation with tblgen"
        $(Verb) $(TableGen) -gen-dag-isel -o $(call SYSPATH, $@) $<
 
+$(TARGET:%=$(ObjDir)/%GenFastISel.inc.tmp): \
+$(ObjDir)/%GenFastISel.inc.tmp : %.td $(ObjDir)/.dir
+       $(Echo) "Building $(<F) \"fast\" instruction selector implementation with tblgen"
+       $(Verb) $(TableGen) -gen-fast-isel -o $(call SYSPATH, $@) $<
+
 $(TARGET:%=$(ObjDir)/%GenSubtarget.inc.tmp): \
 $(ObjDir)/%GenSubtarget.inc.tmp : %.td $(ObjDir)/.dir
        $(Echo) "Building $(<F) subtarget information with tblgen"
@@ -1738,10 +1747,17 @@ endif
 endif
 
 check-line-length:
-       @egrep -n '.{81}' $(Sources)
+       @echo searching for overlength lines in files: $(Sources)
+       @echo
+       @echo
+       @egrep -n '.{81}' $(Sources) /dev/null
 
 check-for-tabs:
-       @egrep -n '     ' $(Sources)
+       @echo searching for tabs in files: $(Sources)
+       @echo
+       @echo
+       @egrep -n '     ' $(Sources) /dev/null
+
 check-footprint:
        @ls -l $(LibDir) | awk '\
          BEGIN { sum = 0; } \