[llvm-commits] [llvm-gcc-4.2] r58935 - in /llvm-gcc-4.2/trunk/gcc: c-common.c c.opt config/i386/darwin.h config/rs6000/darwin.h
Nick Lewycky
nicholas at mxc.ca
Sun Nov 9 07:21:07 PST 2008
Author: nicholas
Date: Sun Nov 9 09:20:57 2008
New Revision: 58935
URL: http://llvm.org/viewvc/llvm-project?rev=58935&view=rev
Log:
Revert r58931. Apparently it wasn't removed by accident, but because it
breaks Fortan.
Modified:
llvm-gcc-4.2/trunk/gcc/c-common.c
llvm-gcc-4.2/trunk/gcc/c.opt
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/c-common.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/c-common.c?rev=58935&r1=58934&r2=58935&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/c-common.c (original)
+++ llvm-gcc-4.2/trunk/gcc/c-common.c Sun Nov 9 09:20:57 2008
@@ -297,10 +297,8 @@
/* Warn about format/argument anomalies in calls to formatted I/O functions
(*printf, *scanf, strftime, strfmon, etc.). */
-/* LLVM LOCAL begin */
/* APPLE LOCAL default to Wformat-security 5764921 */
-int warn_format;
-/* LLVM LOCAL end */
+int warn_format = 1;
/* Warn about using __null (as NULL in C++) as sentinel. For code compiled
with GCC this doesn't matter as __null is guaranteed to have the right
Modified: llvm-gcc-4.2/trunk/gcc/c.opt
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/c.opt?rev=58935&r1=58934&r2=58935&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/c.opt (original)
+++ llvm-gcc-4.2/trunk/gcc/c.opt Sun Nov 9 09:20:57 2008
@@ -236,11 +236,11 @@
C ObjC C++ ObjC++ Var(warn_format_nonliteral)
Warn about format strings that are not literals
-; LLVM LOCAL begin don't enable Wformat-security for non-Darwin
+; APPLE LOCAL begin default to Wformat-security 5764921
Wformat-security
-C ObjC C++ ObjC++ Var(warn_format_security) Init(0)
+C ObjC C++ ObjC++ Var(warn_format_security) Init(1)
Warn about possible security problems with format functions
-; LLVM LOCAL end
+; APPLE LOCAL end default to Wformat-security 5764921
Wformat-y2k
C ObjC C++ ObjC++ Var(warn_format_y2k)
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=58935&r1=58934&r2=58935&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 9 09:20:57 2008
@@ -101,8 +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 \
- "/* LLVM LOCAL enable format security warnings */"\
- %{!Wno-format:-Wformat -Wformat-security} \
%{g: %{!fno-eliminate-unused-debug-symbols: -feliminate-unused-debug-symbols }}"
/* APPLE LOCAL AltiVec */
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=58935&r1=58934&r2=58935&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 9 09:20:57 2008
@@ -113,8 +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)}} \
- "/* LLVM LOCAL enable format security warnings */"\
- %{!Wno-format:-Wformat -Wformat-security} \
"/* APPLE LOCAL -fast or -fastf or -fastcp */"\
%{!mkernel:%{!static:%{!fast:%{!fastf:%{!fastcp:%{!mdynamic-no-pic:-fPIC}}}}}}"
More information about the llvm-commits
mailing list