Commit 624c87aa by Richard Earnshaw Committed by Richard Earnshaw

emit-rtl.c (unshare_all_rtl_again): Unmark everything, then call unshare_all_rtl.

* emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
call unshare_all_rtl.

From-SVN: r33162
parent 098fdd8e
2000-04-15 Richard Earnshaw (rearnsah@arm.com)
* emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
call unshare_all_rtl.
Fri Apr 14 16:58:45 2000 Jim Wilson <wilson@cygnus.com> Fri Apr 14 16:58:45 2000 Jim Wilson <wilson@cygnus.com>
* config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3): * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
......
...@@ -1724,6 +1724,8 @@ unshare_all_rtl_again (insn) ...@@ -1724,6 +1724,8 @@ unshare_all_rtl_again (insn)
rtx insn; rtx insn;
{ {
rtx p; rtx p;
tree decl;
for (p = insn; p; p = NEXT_INSN (p)) for (p = insn; p; p = NEXT_INSN (p))
if (GET_RTX_CLASS (GET_CODE (p)) == 'i') if (GET_RTX_CLASS (GET_CODE (p)) == 'i')
{ {
...@@ -1731,7 +1733,14 @@ unshare_all_rtl_again (insn) ...@@ -1731,7 +1733,14 @@ unshare_all_rtl_again (insn)
reset_used_flags (REG_NOTES (p)); reset_used_flags (REG_NOTES (p));
reset_used_flags (LOG_LINKS (p)); reset_used_flags (LOG_LINKS (p));
} }
unshare_all_rtl_1 (insn);
/* Make sure that virtual parameters are not shared. */
for (decl = DECL_ARGUMENTS (cfun->decl); decl; decl = TREE_CHAIN (decl))
reset_used_flags (DECL_RTL (decl));
reset_used_flags (stack_slot_list);
unshare_all_rtl (cfun->decl, insn);
} }
/* Go through all the RTL insn bodies and copy any invalid shared structure. /* Go through all the RTL insn bodies and copy any invalid shared structure.
......
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