This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[RS6000] Fix ICE in reg_save
- From: Alan Modra <amodra at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: David Edelsohn <dje dot gcc at gmail dot com>, Richard Henderson <rth at redhat dot com>
- Date: Tue, 2 Aug 2011 14:43:42 +0930
- Subject: [RS6000] Fix ICE in reg_save
Seen when running binutils testsuite on powerpc-linux.
.../ld-elfvers/vers24b.c: In function 'foo':
.../ld-elfvers/vers24b.c:5:1: internal compiler error: in reg_save, at dwarf2cfi.c:827
Bootstrapped and regression tested powerpc-linux. Committed as obvious.
* config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
note for save_LR_around_toc_setup sequence.
Index: gcc/config/rs6000/rs6000.c
===================================================================
--- gcc/config/rs6000/rs6000.c (revision 177041)
+++ gcc/config/rs6000/rs6000.c (working copy)
@@ -20505,6 +20505,7 @@ rs6000_emit_prologue (void)
rs6000_emit_load_toc_table (TRUE);
insn = emit_move_insn (lr, frame_ptr_rtx);
+ add_reg_note (insn, REG_CFA_RESTORE, lr);
RTX_FRAME_RELATED_P (insn) = 1;
}
else
--
Alan Modra
Australia Development Lab, IBM