]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
common.opt (fcheck-pointer-bounds): Move to ...
authorIlya Enkovich <ilya.enkovich@intel.com>
Fri, 8 Nov 2013 10:57:54 +0000 (10:57 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Fri, 8 Nov 2013 10:57:54 +0000 (10:57 +0000)
        * common.opt (fcheck-pointer-bounds): Move to ...
        * c-family/c.opt: ... here.
        * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
        (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
        * langhooks.h (lang_hooks): Remove chkp_supported field.
        * toplev.c (process_options): Remove chkp_supported check.

From-SVN: r204563

gcc/ChangeLog
gcc/c-family/c.opt
gcc/common.opt
gcc/langhooks-def.h
gcc/langhooks.h
gcc/toplev.c

index 171032f7a722f471677d612a8e951f28085af5ec..81e5b4fdee44a348e4061585565c22bf0dc8331a 100644 (file)
@@ -1,3 +1,12 @@
+2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
+
+       * common.opt (fcheck-pointer-bounds): Move to ...
+       * c-family/c.opt: ... here.
+       * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
+       (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
+       * langhooks.h (lang_hooks): Remove chkp_supported field.
+       * toplev.c (process_options): Remove chkp_supported check.
+
 2013-11-08  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/59038
index 46391fa496c767f81b5ac1f5b14988179698f3ea..0026683730e1f9b4b450e7aff0cb772514c5ee32 100644 (file)
@@ -854,6 +854,11 @@ fcanonical-system-headers
 C ObjC C++ ObjC++
 Where shorter, use canonicalized paths to systems headers.
 
+fcheck-pointer-bounds
+C ObjC C++ ObjC++ LTO Report Var(flag_check_pointer_bounds)
+Add Pointer Bounds Checker instrumentation.  fchkp-* flags are used to
+control instrumentation.
+
 fcilkplus
 C ObjC C++ ObjC++ LTO Report Var(flag_enable_cilkplus) Init(0)
 Enable Cilk Plus
index 7e1e3ded458b179041e603e77d657d3c0afcb47e..d5971df6418a52aeed0532846ddded9d48ea5b8f 100644 (file)
@@ -874,11 +874,6 @@ fbounds-check
 Common Report Var(flag_bounds_check)
 Generate code to check bounds before indexing arrays
 
-fcheck-pointer-bounds
-Common Report Var(flag_check_pointer_bounds)
-Add Pointer Bounds Checker instrumentation.  fchkp-* flags are used to
-control instrumentation.  Currently available for C, C++ and ObjC.
-
 fbranch-count-reg
 Common Report Var(flag_branch_on_count_reg) Init(1) Optimization
 Replace add, compare, branch with branch on count register
index 67eb2faa778ca9a6e4de195919c68623b12a2984..411cf74b666c3200e069ad350e1d426637417ee9 100644 (file)
@@ -118,7 +118,6 @@ extern bool lhd_omp_mappable_type (tree);
 #define LANG_HOOKS_BLOCK_MAY_FALLTHRU  hook_bool_const_tree_true
 #define LANG_HOOKS_EH_USE_CXA_END_CLEANUP      false
 #define LANG_HOOKS_DEEP_UNSHARING      false
-#define LANG_HOOKS_CHKP_SUPPORTED      false
 
 /* Attribute hooks.  */
 #define LANG_HOOKS_ATTRIBUTE_TABLE             NULL
@@ -319,8 +318,7 @@ extern void lhd_end_section (void);
   LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS, \
   LANG_HOOKS_BLOCK_MAY_FALLTHRU, \
   LANG_HOOKS_EH_USE_CXA_END_CLEANUP, \
-  LANG_HOOKS_DEEP_UNSHARING, \
-  LANG_HOOKS_CHKP_SUPPORTED \
+  LANG_HOOKS_DEEP_UNSHARING \
 }
 
 #endif /* GCC_LANG_HOOKS_DEF_H */
index 48f18ac8269634d8b3b332dc5c2358eda6daaac7..9539e7d5b7aa8e9185e2d210b06df79ea22084b2 100644 (file)
@@ -491,9 +491,6 @@ struct lang_hooks
      gimplification.  */
   bool deep_unsharing;
 
-  /* True if this language allows pointers checker instrumentation.  */
-  bool chkp_supported;
-
   /* Whenever you add entries here, make sure you adjust langhooks-def.h
      and langhooks.c accordingly.  */
 };
index f78912e09dbe1fea003b41b913600471875a75a5..ad6849996e1c15ca7f7d1578c2793e328cbe0acf 100644 (file)
@@ -1286,9 +1286,6 @@ process_options (void)
     {
       if (targetm.chkp_bound_mode () == VOIDmode)
        error ("-fcheck-pointers is not supported for this target");
-
-      if (!lang_hooks.chkp_supported)
-       flag_check_pointer_bounds = 0;
     }
 
   /* One region RA really helps to decrease the code size.  */