This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] v850.md


This patch corrects the following build failure for
the v850-elf tool chain:

In file included from /home/clm/src/egcs/egcs/gcc/unwind-dw2.c:25:
/home/clm/src/egcs/egcs/gcc/unwind-pe.h:77: Internal compiler error in simplify_gen_subreg, at simplify-rtx.c:2483
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [libgcc/./unwind-dw2.o] Error 1

A LABEL_REF was incorrectly generated with VOIDmode.
Okay to install?

Catherine

2001-07-19  Catherine Moore  <clm@redhat.com>

	* config/v850/v850.md (casesi): Generate LABEL_REF
	with Pmode.


Index: v850.md
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/v850/v850.md,v
retrieving revision 1.16
diff -p -r1.16 v850.md
*** v850.md     1999/11/08 15:40:38     1.16
--- v850.md     2001/07/19 17:23:01
***************
*** 944,950 ****
    emit_insn (gen_ashlsi3 (reg, reg, GEN_INT (TARGET_BIG_SWITCH ? 2 : 1)));
    /* Load the table address into a pseudo.  */
    emit_insn (gen_movsi (tableaddress,
!                       gen_rtx_LABEL_REF (VOIDmode, operands[3])));
    /* Add the table address to the index.  */
    emit_insn (gen_addsi3 (reg, reg, tableaddress));
    /* Load the table entry.  */
--- 944,950 ----
    emit_insn (gen_ashlsi3 (reg, reg, GEN_INT (TARGET_BIG_SWITCH ? 2 : 1)));
    /* Load the table address into a pseudo.  */
    emit_insn (gen_movsi (tableaddress,
!                       gen_rtx_LABEL_REF (Pmode, operands[3])));
    /* Add the table address to the index.  */
    emit_insn (gen_addsi3 (reg, reg, tableaddress));
    /* Load the table entry.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]