[llvm-commits] [llvm-gcc-4.2] r58588 - in /llvm-gcc-4.2/trunk/gcc/config: i386/darwin.h rs6000/darwin.h

Bill Wendling isanbard at gmail.com
Sun Nov 2 18:01:32 PST 2008


Author: void
Date: Sun Nov  2 20:01:32 2008
New Revision: 58588

URL: http://llvm.org/viewvc/llvm-project?rev=58588&view=rev
Log:
Turn Wformat-security on by default internally. Don't do it here.

Modified:
    llvm-gcc-4.2/trunk/gcc/config/i386/darwin.h
    llvm-gcc-4.2/trunk/gcc/config/rs6000/darwin.h

Modified: llvm-gcc-4.2/trunk/gcc/config/i386/darwin.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/darwin.h?rev=58588&r1=58587&r2=58588&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/i386/darwin.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/i386/darwin.h Sun Nov  2 20:01:32 2008
@@ -101,13 +101,6 @@
   %{!mmacosx-version-min=*: %{!miphoneos-version-min=*: %(darwin_cc1_minversion)}} \
   "/* APPLE LOCAL ignore -mcpu=G4 -mcpu=G5 */"\
   %<faltivec %<mno-fused-madd %<mlong-branch %<mlongcall %<mcpu=G4 %<mcpu=G5 \
-  "/* APPLE LOCAL begin enable format security warnings */"\
-  %{!Wno-format:-Wformat \
-                 %{!-Wno-format-security:-Wformat-security} \
-                 %{!-Wformat-extra-args:-Wno-format-extra-args} \
-                 %{!-Wformat-zero-length:-Wno-format-zero-length} \
-                 %{!-Wnonnull:-Wno-nonnull}} \
-  "/* APPLE LOCAL end enable format security warnings */"\
   %{g: %{!fno-eliminate-unused-debug-symbols: -feliminate-unused-debug-symbols }}"
 
 /* APPLE LOCAL AltiVec */
@@ -115,7 +108,10 @@
 
 /* APPLE LOCAL begin mainline */
 #undef ASM_SPEC
-#define ASM_SPEC "-arch %(darwin_arch) -force_cpusubtype_ALL"
+/* APPLE LOCAL begin kext weak_import 5935650 */
+#define ASM_SPEC "-arch %(darwin_arch) -force_cpusubtype_ALL \
+  %{mkernel|static|fapple-kext:%{!Zdynamic:-static}}"
+/* APPLE LOCAL end kext weak_import 5935650 */
 
 #define DARWIN_ARCH_SPEC "%{m64:x86_64;:i386}"
 #define DARWIN_SUBARCH_SPEC DARWIN_ARCH_SPEC

Modified: llvm-gcc-4.2/trunk/gcc/config/rs6000/darwin.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/rs6000/darwin.h?rev=58588&r1=58587&r2=58588&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/rs6000/darwin.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/rs6000/darwin.h Sun Nov  2 20:01:32 2008
@@ -113,13 +113,6 @@
   %{static: %{Zdynamic: %e conflicting code gen style switches are used}}\
   "/* APPLE LOCAL ARM 5683689 */"\
   %{!mmacosx-version-min=*: %{!miphoneos-version-min=*: %(darwin_cc1_minversion)}} \
-  "/* APPLE LOCAL begin enable format security warnings */"\
-  %{!Wno-format:-Wformat \
-                 %{!-Wno-format-security:-Wformat-security} \
-                 %{!-Wformat-extra-args:-Wno-format-extra-args} \
-                 %{!-Wformat-zero-length:-Wno-format-zero-length} \
-                 %{!-Wnonnull:-Wno-nonnull}} \
-  "/* APPLE LOCAL end enable format security warnings */"\
   "/* APPLE LOCAL -fast or -fastf or -fastcp */"\
   %{!mkernel:%{!static:%{!fast:%{!fastf:%{!fastcp:%{!mdynamic-no-pic:-fPIC}}}}}}"
 





More information about the llvm-commits mailing list