ICE in compiling libgcc2.c (--target=h8300-elf) with -msx (with or without -mn
-mint32)

../../../../../gcc-svn/libgcc/../gcc/libgcc2.c: In function e__negdi2f:
../../../../../gcc-svn/libgcc/../gcc/libgcc2.c:76:1: internal compiler error:
in dwarf2out_begin_epilogue, at dwarf2out.c:2840

To fix this:

Index: gcc/config/h8300/h8300.c
===================================================================
--- gcc/config/h8300/h8300.c    (revision 154364)
+++ gcc/config/h8300/h8300.c    (working copy)
@@ -719,7 +719,10 @@
   x = gen_rtx_PARALLEL (VOIDmode, vec);
   if (!pop_p)
     x = Fpa (x);
-  emit_insn (x);
+  if (return_p)
+    emit_jump_insn (x);
+  else
+    emit_insn (x);
 }

 /* Return true if X has the value sp + OFFSET.  */


-- 
           Summary: ICE in libgcc
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kikairoya at gmail dot com
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: h8300-elf


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42128

Reply via email to