aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-06-01 01:55:21 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-06-01 01:55:21 +0000
commit72f42bbc9baad5fce8ee0a9ef969afbfc201f467 (patch)
treec5981dd67ab0c6a8041933c3e3a7d2f88028e472
parentdee05112a63cdd440dfb27db12ef541b7afd0a6d (diff)
downloadexternal_llvm-72f42bbc9baad5fce8ee0a9ef969afbfc201f467.zip
external_llvm-72f42bbc9baad5fce8ee0a9ef969afbfc201f467.tar.gz
external_llvm-72f42bbc9baad5fce8ee0a9ef969afbfc201f467.tar.bz2
For PR786:
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
-rw-r--r--Makefile.rules3
-rw-r--r--lib/System/Makefile3
-rw-r--r--lib/Target/CBackend/Makefile1
-rw-r--r--projects/Stacker/lib/runtime/Makefile3
-rw-r--r--projects/sample/lib/sample/Makefile2
-rw-r--r--runtime/libdummy/Makefile2
6 files changed, 12 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules
index acef660..4117169 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -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
diff --git a/lib/System/Makefile b/lib/System/Makefile
index d4fc79c..85de736 100644
--- a/lib/System/Makefile
+++ b/lib/System/Makefile
@@ -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))
diff --git a/lib/Target/CBackend/Makefile b/lib/Target/CBackend/Makefile
index ac6ff3b..9b26d8b 100644
--- a/lib/Target/CBackend/Makefile
+++ b/lib/Target/CBackend/Makefile
@@ -9,5 +9,4 @@
LEVEL = ../../..
LIBRARYNAME = LLVMCBackend
-CXXFLAGS += -pedantic -Wno-long-long
include $(LEVEL)/Makefile.common
diff --git a/projects/Stacker/lib/runtime/Makefile b/projects/Stacker/lib/runtime/Makefile
index d3ebf18..e10b476 100644
--- a/projects/Stacker/lib/runtime/Makefile
+++ b/projects/Stacker/lib/runtime/Makefile
@@ -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))
diff --git a/projects/sample/lib/sample/Makefile b/projects/sample/lib/sample/Makefile
index 140d7d6..6b1ea05 100644
--- a/projects/sample/lib/sample/Makefile
+++ b/projects/sample/lib/sample/Makefile
@@ -19,3 +19,5 @@ LOADABLE_MODULE=1
#
include $(LEVEL)/Makefile.common
+CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
+CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
diff --git a/runtime/libdummy/Makefile b/runtime/libdummy/Makefile
index 4fa2561..6dad7bc 100644
--- a/runtime/libdummy/Makefile
+++ b/runtime/libdummy/Makefile
@@ -15,3 +15,5 @@ BYTECODE_DESTINATION = $(CFERuntimeLibDir)
include $(LEVEL)/Makefile.common
+CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
+CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))