diff options
| author | Jeff Law <law@redhat.com> | 2013-10-26 04:14:34 -0600 |
|---|---|---|
| committer | Jeff Law <law@gcc.gnu.org> | 2013-10-26 04:14:34 -0600 |
| commit | 98906124e3aa4cb17695d900fe19498e5bde63e4 (patch) | |
| tree | db4fb2e3b3425e4080112ab6c0fa8e4922a5a2d7 /gcc/varasm.c | |
| parent | 19b632c6dd5e1e901ae1bac3fc92164a724ccab5 (diff) | |
| download | gcc-98906124e3aa4cb17695d900fe19498e5bde63e4.zip gcc-98906124e3aa4cb17695d900fe19498e5bde63e4.tar.gz gcc-98906124e3aa4cb17695d900fe19498e5bde63e4.tar.bz2 | |
Makefile.def (target_modules): Remove libmudflap
* Makefile.def (target_modules): Remove libmudflap
(languages): Remove check-target-libmudflap).
* Makefile.in: Rebuilt.
* Makefile.tpl (check-target-libmudflap-c++): Remove.
* configure.ac (target_libraries): Remove target-libmudflap.
Remove checks which disabled libmudflap on some systems.
* configure: Rebuilt.
* libmudflap: Directory removed.
* Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
(OBJS): Remove tree-nomudflap.o
(GTFILES): Remove tree-mudflap.c
* builtins.c (expand_builtin_alloc): Remove mudflap support.
* gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
(mfwrap_spec, mflib_spec): Likewise.
(cpp_unique_options, cc1_options, static_specs): Likewise.
* gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
* passes.def: Likewise.
* toplev.c (compile_file, process_options): Likewise.
* tree-inline.c (copy_tree_r): Likewise.
* tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
* varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
(build_constant_desc, output_constant_def_contents): Likewise.
(categorize_decl_for_section): Likewise.
* tree-mudflap.c: Removed.
* tree-mudflap.h: Removed.
* tree-nomudflap.c: Removed.
* bfin/uclinux.h (MFWRAP_SPEC): Remove.
* moxie/uclinux.h (MFWRAP_SPEC): Likewise.
* rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
* config/sol2.h (MFLIB_SPEC): Likewise.
* doc/install.texi: Remove mudflap references.
* doc/passes.texi: Similarly.
* doc/sourcebuild.texi: Similarly.
* doc/invoke.texi: Remove mudlfap related options.
* c-family/c-common.c (c_define_builtins): Remove mudflap support.
* c-family/c.opt: Ignore and warn for mudflap options.
* g++.dg/torture/pr49309.C: Removed.
* gcc.dg/dfp/pr35739.c: Removed.
From-SVN: r204090
Diffstat (limited to 'gcc/varasm.c')
| -rw-r--r-- | gcc/varasm.c | 31 |
1 files changed, 5 insertions, 26 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 52ba182..e56ca1b 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -46,7 +46,6 @@ along with GCC; see the file COPYING3. If not see #include "target.h" #include "common/common-target.h" #include "targhooks.h" -#include "tree-mudflap.h" #include "cgraph.h" #include "pointer-set.h" #include "asan.h" @@ -1247,10 +1246,6 @@ make_decl_rtl (tree decl) && SYMBOL_REF_HAS_BLOCK_INFO_P (XEXP (x, 0))) change_symbol_block (XEXP (x, 0), get_block_for_decl (decl)); - /* Make this function static known to the mudflap runtime. */ - if (flag_mudflap && TREE_CODE (decl) == VAR_DECL) - mudflap_enqueue_decl (decl); - return; } @@ -1387,10 +1382,6 @@ make_decl_rtl (tree decl) If the name is changed, the macro ASM_OUTPUT_LABELREF will have to know how to strip this information. */ targetm.encode_section_info (decl, DECL_RTL (decl), true); - - /* Make this function static known to the mudflap runtime. */ - if (flag_mudflap && TREE_CODE (decl) == VAR_DECL) - mudflap_enqueue_decl (decl); } /* Like make_decl_rtl, but inhibit creation of new alias sets when @@ -1400,7 +1391,7 @@ make_decl_rtl (tree decl) rtx make_decl_rtl_for_debug (tree decl) { - unsigned int save_aliasing_flag, save_mudflap_flag; + unsigned int save_aliasing_flag; rtx rtl; if (DECL_RTL_SET_P (decl)) @@ -1411,12 +1402,9 @@ make_decl_rtl_for_debug (tree decl) we do not want to create alias sets that will throw the alias numbers off in the comparison dumps. So... clearing flag_strict_aliasing will keep new_alias_set() from creating a - new set. It is undesirable to register decl with mudflap - in this case as well. */ + new set. */ save_aliasing_flag = flag_strict_aliasing; flag_strict_aliasing = 0; - save_mudflap_flag = flag_mudflap; - flag_mudflap = 0; rtl = DECL_RTL (decl); /* Reset DECL_RTL back, as various parts of the compiler expects @@ -1424,8 +1412,6 @@ make_decl_rtl_for_debug (tree decl) SET_DECL_RTL (decl, NULL); flag_strict_aliasing = save_aliasing_flag; - flag_mudflap = save_mudflap_flag; - return rtl; } @@ -3206,10 +3192,6 @@ build_constant_desc (tree exp) desc = ggc_alloc_constant_descriptor_tree (); desc->value = copy_constant (exp); - /* Propagate marked-ness to copied constant. */ - if (flag_mudflap && mf_marked_p (exp)) - mf_mark (desc->value); - /* Create a string containing the label name, in LABEL. */ labelno = const_labelno++; ASM_GENERATE_INTERNAL_LABEL (label, "LC", labelno); @@ -3405,8 +3387,6 @@ output_constant_def_contents (rtx symbol) assemble_zeros (asan_red_zone_size (size)); } } - if (flag_mudflap) - mudflap_enqueue_constant (exp); } /* Look up EXP in the table of constant descriptors. Return the rtl @@ -6294,9 +6274,8 @@ categorize_decl_for_section (const_tree decl, int reloc) return SECCAT_TEXT; else if (TREE_CODE (decl) == STRING_CST) { - if (flag_mudflap - || ((flag_sanitize & SANITIZE_ADDRESS) - && asan_protect_global (CONST_CAST_TREE (decl)))) + if ((flag_sanitize & SANITIZE_ADDRESS) + && asan_protect_global (CONST_CAST_TREE (decl))) /* or !flag_merge_constants */ return SECCAT_RODATA; else @@ -6321,7 +6300,7 @@ categorize_decl_for_section (const_tree decl, int reloc) } else if (reloc & targetm.asm_out.reloc_rw_mask ()) ret = reloc == 1 ? SECCAT_DATA_REL_RO_LOCAL : SECCAT_DATA_REL_RO; - else if (reloc || flag_merge_constants < 2 || flag_mudflap + else if (reloc || flag_merge_constants < 2 || ((flag_sanitize & SANITIZE_ADDRESS) && asan_protect_global (CONST_CAST_TREE (decl)))) /* C and C++ don't allow different variables to share the same |
