Commit 8a12c32d by Richard Kenner

(iterator_loop_epilogue): Don't clear DECL_RTL for a static decl.

From-SVN: r11554
parent 8ba46994
/* Build expressions with type checking for C compiler. /* Build expressions with type checking for C compiler.
Copyright (C) 1987, 1988, 1989, 1992, 1993 Free Software Foundation, Inc. Copyright (C) 1987, 88, 89, 92, 93, 1996 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -343,7 +343,9 @@ iterator_loop_epilogue (idecl, start_note, end_note) ...@@ -343,7 +343,9 @@ iterator_loop_epilogue (idecl, start_note, end_note)
ITERATOR_BOUND_P (idecl) = 0; ITERATOR_BOUND_P (idecl) = 0;
/* we can reset rtl since there is not chance that this expansion */ /* we can reset rtl since there is not chance that this expansion */
/* would be superseded by a higher level one */ /* would be superseded by a higher level one */
if (top_level_ixpansion_p ()) /* but don't do this if the decl is static, since we need to share */
/* the same decl in that case. */
if (top_level_ixpansion_p () && ! TREE_STATIC (idecl))
DECL_RTL (idecl) = 0; DECL_RTL (idecl) = 0;
if (end_note) if (end_note)
*end_note = emit_note (0, NOTE_INSN_DELETED); *end_note = emit_note (0, NOTE_INSN_DELETED);
......
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