aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2010-03-22 11:30:27 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2010-03-22 11:30:27 +0100
commitbe36dd859d8f539adea5968c6423b6d062700038 (patch)
tree88de30066f07c0396150be6507131eea4da284c1 /gcc/varasm.c
parent539eb45985a4bc6146ee011d8a1cabd0103792fb (diff)
downloadgcc-be36dd859d8f539adea5968c6423b6d062700038.zip
gcc-be36dd859d8f539adea5968c6423b6d062700038.tar.gz
gcc-be36dd859d8f539adea5968c6423b6d062700038.tar.bz2
varasm.c (make_decl_rtl_for_debug): Also clear flag_mudflap for the duration of make_decl_rtl call.
* varasm.c (make_decl_rtl_for_debug): Also clear flag_mudflap for the duration of make_decl_rtl call. From-SVN: r157621
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 31007b8..424d704 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -1484,7 +1484,7 @@ make_decl_rtl (tree decl)
rtx
make_decl_rtl_for_debug (tree decl)
{
- unsigned int save_aliasing_flag;
+ unsigned int save_aliasing_flag, save_mudflap_flag;
rtx rtl;
if (DECL_RTL_SET_P (decl))
@@ -1495,9 +1495,12 @@ 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. */
+ new set. It is undesirable to register decl with mudflap
+ in this case as well. */
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
@@ -1505,6 +1508,7 @@ 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;
}