]> granicus.if.org Git - clang/commitdiff
[driver] Remove the -W[no-][int-conversion|constant-conversion|enum-conversion]
authorChad Rosier <mcrosier@apple.com>
Tue, 9 Oct 2012 19:43:33 +0000 (19:43 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 9 Oct 2012 19:43:33 +0000 (19:43 +0000)
options when clang invokes cc1plus for i386 kexts.
rdar://12459188

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

lib/Driver/Tools.cpp
test/Driver/apple-kext-i386.cpp

index 462354a8c233ec91791a2003da5a00abadb9303a..468a362b3c4825bab5a43bb39d6c04d690984382 100644 (file)
@@ -3595,6 +3595,7 @@ void darwin::CC1::RemoveCC1UnsupportedArgs(ArgStringList &CmdArgs) const {
         .Case("constant-conversion", true)
         .Case("conversion-null", true)
         .Case("CFString-literal", true)
+        .Case("constant-conversion", true)
         .Case("constant-logical-operand", true)
         .Case("custom-atomic-properties", true)
         .Case("default-arg-special-member", true)
@@ -3618,6 +3619,7 @@ void darwin::CC1::RemoveCC1UnsupportedArgs(ArgStringList &CmdArgs) const {
         .Case("incomplete-implementation", true)
         .Case("int-conversion", true)
         .Case("initializer-overrides", true)
+        .Case("int-conversion", true)
         .Case("invalid-noreturn", true)
         .Case("invalid-token-paste", true)
         .Case("language-extension-token", true)
index eb9f9578e9cb74cf3f5db5a80cc54998ddfd858b..db7a0809908307815051ee6cc4af844b6ae64275 100644 (file)
@@ -18,6 +18,7 @@
 // RUN: %clang -target i386-apple-darwin10 \
 // RUN:   -Wno-self-assign -Wc++11-extensions -Wno-microsoft -Wmicrosoft -Wvla \
 // RUN:   -faltivec -mthumb -mcpu=G4 -mlongcall -mno-longcall -msoft-float \
+// RUN:   -Wno-int-conversion -Wconstant-conversion -Wenum-conversion \
 // RUN:   -fapple-kext -### -fsyntax-only %s 2> %t
 // RUN: FileCheck --check-prefix=CHECK-UNSUPPORTED < %t %s
 
@@ -32,6 +33,9 @@
 // CHECK-UNSUPPORTED-NOT: "-mlongcall"
 // CHECK-UNSUPPORTED: "-mno-longcall"
 // CHECK-UNSUPPORTED: "-msoft-float"
+// CHECK-UNSUPPORTED-NOT: "-Wno-int-conversion"
+// CHECK-UNSUPPORTED-NOT: "-Wconstant-conversion"
+// CHECK-UNSUPPORTED-NOT: "-Wenum-conversion"
 
 // RUN: %clang -target i386-apple-darwin10 \
 // RUN:   -Wconstant-logical-operand -save-temps \