Commit be36dd85 by Jakub Jelinek Committed by Jakub Jelinek

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
parent 539eb459
2010-03-22 Jakub Jelinek <jakub@redhat.com> 2010-03-22 Jakub Jelinek <jakub@redhat.com>
* varasm.c (make_decl_rtl_for_debug): Also clear
flag_mudflap for the duration of make_decl_rtl call.
PR debug/43443 PR debug/43443
* var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
locs from preserved VALUEs. locs from preserved VALUEs.
......
...@@ -1484,7 +1484,7 @@ make_decl_rtl (tree decl) ...@@ -1484,7 +1484,7 @@ make_decl_rtl (tree decl)
rtx rtx
make_decl_rtl_for_debug (tree decl) make_decl_rtl_for_debug (tree decl)
{ {
unsigned int save_aliasing_flag; unsigned int save_aliasing_flag, save_mudflap_flag;
rtx rtl; rtx rtl;
if (DECL_RTL_SET_P (decl)) if (DECL_RTL_SET_P (decl))
...@@ -1495,9 +1495,12 @@ make_decl_rtl_for_debug (tree 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 we do not want to create alias sets that will throw the alias
numbers off in the comparison dumps. So... clearing numbers off in the comparison dumps. So... clearing
flag_strict_aliasing will keep new_alias_set() from creating a 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; save_aliasing_flag = flag_strict_aliasing;
flag_strict_aliasing = 0; flag_strict_aliasing = 0;
save_mudflap_flag = flag_mudflap;
flag_mudflap = 0;
rtl = DECL_RTL (decl); rtl = DECL_RTL (decl);
/* Reset DECL_RTL back, as various parts of the compiler expects /* Reset DECL_RTL back, as various parts of the compiler expects
...@@ -1505,6 +1508,7 @@ make_decl_rtl_for_debug (tree decl) ...@@ -1505,6 +1508,7 @@ make_decl_rtl_for_debug (tree decl)
SET_DECL_RTL (decl, NULL); SET_DECL_RTL (decl, NULL);
flag_strict_aliasing = save_aliasing_flag; flag_strict_aliasing = save_aliasing_flag;
flag_mudflap = save_mudflap_flag;
return rtl; return rtl;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment