Fixup flags for ObjC languages

Mike Stump mrs@apple.com
Wed Mar 21 18:55:00 GMT 2007


Here is a trivial one to preserve the invariant that all C/C++ flags
apply to the Objective-C languages.

Checked into mainline.

2007-03-21  Mike Stump  <mrs@apple.com>

	* c.opt: Fixup for Objective-C/C++.

Doing diffs in c.opt.~1~:
--- c.opt.~1~	2007-03-12 19:03:09.000000000 -0700
+++ c.opt	2007-03-21 11:33:51.000000000 -0700
@@ -133,7 +133,7 @@ C ObjC Var(warn_bad_function_cast) Warni
 Warn about casting functions to incompatible types
 
 Wc++-compat
-C Var(warn_cxx_compat) Warning
+C ObjC Var(warn_cxx_compat) Warning
 Warn about C constructs that are not in the common subset of C and C++
 
 Wc++0x-compat
@@ -177,7 +177,7 @@ C++ ObjC++ Var(warn_deprecated) Init(1) 
 Warn about deprecated compiler features
 
 Wdiv-by-zero
-C ObjC C++ Var(warn_div_by_zero) Init(1) Warning
+C ObjC C++ ObjC++ Var(warn_div_by_zero) Init(1) Warning
 Warn about compile-time integer division by zero
 
 Weffc++
@@ -559,7 +559,7 @@ ObjC ObjC++
 Generate code for GNU runtime environment
 
 fgnu89-inline
-C Var(flag_gnu89_inline) Init(-1)
+C ObjC Var(flag_gnu89_inline) Init(-1)
 Use traditional GNU semantics for inline functions
 
 fguiding-decls
@@ -592,7 +592,7 @@ C++ ObjC++
 Emit implicit instantiations of templates
 
 ffriend-injection
-C++ Var(flag_friend_injection)
+C++ ObjC++ Var(flag_friend_injection)
 Inject friend functions into enclosing namespace
 
 flabels-ok
--------------

And checked this version into 4.2:

Doing diffs in c.opt.~1~:
--- c.opt.~1~	2007-03-12 15:55:30.000000000 -0700
+++ c.opt	2007-03-21 11:41:09.000000000 -0700
@@ -133,7 +133,7 @@ C ObjC Var(warn_bad_function_cast)
 Warn about casting functions to incompatible types
 
 Wc++-compat
-C Var(warn_cxx_compat)
+C ObjC Var(warn_cxx_compat)
 Warn about C constructs that are not in the common subset of C and C++
 
 
@@ -170,7 +170,7 @@ C++ ObjC++ Var(warn_deprecated) Init(1)
 Warn about deprecated compiler features
 
 Wdiv-by-zero
-C ObjC C++ Var(warn_div_by_zero) Init(1)
+C ObjC C++ ObjC++ Var(warn_div_by_zero) Init(1)
 Warn about compile-time integer division by zero
 
 Weffc++
@@ -532,7 +532,7 @@ ObjC ObjC++
 Generate code for GNU runtime environment
 
 fgnu89-inline
-C Var(flag_gnu89_inline) Init(-1)
+C ObjC Var(flag_gnu89_inline) Init(-1)
 Use traditional GNU semantics for inline functions
 
 fguiding-decls
@@ -565,7 +565,7 @@ C++ ObjC++
 Emit implicit instantiations of templates
 
 ffriend-injection
-C++ Var(flag_friend_injection)
+C++ ObjC++ Var(flag_friend_injection)
 Inject friend functions into enclosing namespace
 
 flabels-ok
--------------



More information about the Gcc-patches mailing list