For PR786:
authorReid Spencer <rspencer@reidspencer.com>
Thu, 1 Jun 2006 01:55:21 +0000 (01:55 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 1 Jun 2006 01:55:21 +0000 (01:55 +0000)
Turn -pedantic and -Wno-long-long compile flags on by default. In a few
places, avoid the warnings by removing these options in the local makefile.
One notable exception: lib/Target/CBackend/Writer.cpp. These warnings are
left on as a reminder to developers to clean them up.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28614 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules
lib/System/Makefile
lib/Target/CBackend/Makefile
projects/Stacker/lib/runtime/Makefile
projects/sample/lib/sample/Makefile
runtime/libdummy/Makefile

index acef6608130dd8e33d929929797a01ffd131c664..4117169f3a38541ffb5fc109de1b337a65b04a5d 100644 (file)
@@ -357,7 +357,8 @@ endif
 # Options To Invoke Tools
 #----------------------------------------------------------
 
-CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused 
+CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused -Wno-long-long \
+                     -pedantic 
 
 ifeq ($(OS),HP-UX)
   CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE
index d4fc79ce7a0aa86f4e80d648b8474bc17d3073b8..85de7369fc4f21f874de6140f01c7fbab73fd126 100644 (file)
@@ -14,3 +14,6 @@ BUILD_ARCHIVE = 1
 EXTRA_DIST = Unix Win32 README.txt
 
 include $(LEVEL)/Makefile.common
+
+CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
+CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
index ac6ff3bb530cfd4dc1ebd2c2c1cee9887c056b70..9b26d8b8c451a2eea8f2f35dfb863e580dbbaeda 100644 (file)
@@ -9,5 +9,4 @@
 
 LEVEL = ../../..
 LIBRARYNAME = LLVMCBackend
-CXXFLAGS += -pedantic -Wno-long-long
 include $(LEVEL)/Makefile.common
index d3ebf18fc55919ae8ff1c87b36667c8ea1d5ca1a..e10b476c6b0c5495aed4b52872f1bdab04f602a9 100644 (file)
@@ -12,3 +12,6 @@ DONT_BUILD_RELINKED = 1
 MODULE_NAME = stkr_runtime
 
 include $(LEVEL)/Makefile.common
+
+CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
+CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
index 140d7d6703d58bac936448fbcdfc9c4cc4fe0cbb..6b1ea05361b641d6f7f8adca180801626b59ccce 100644 (file)
@@ -19,3 +19,5 @@ LOADABLE_MODULE=1
 #
 include $(LEVEL)/Makefile.common
 
+CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
+CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
index 4fa2561b5a0c7785eccf43f8819391371bccb5e9..6dad7bc6093b58e82892af2b8dda8ebb45ec1126 100644 (file)
@@ -15,3 +15,5 @@ BYTECODE_DESTINATION = $(CFERuntimeLibDir)
 
 include $(LEVEL)/Makefile.common
 
+CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
+CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))