Improved debugging output when reload fails.

Nick Clifton nickc@cygnus.com
Wed Dec 9 09:57:00 GMT 1998


Hi Guys,

  This is just to say that I have applied the following patch to
reload.c  All it does is change find_reloads() so that if it cannot
find any alternatives for the reload it is trying, it displays the
insn that is causing the problem before calling abort().

Cheers
	Nick


Wed Dec  9 09:53:58 1998  Nick Clifton  <nickc@cygnus.com>

	* reload.c (find_reloads): Display the insn that cannot be
	reloaded. 

Index: reload.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/reload.c,v
retrieving revision 1.144
diff -p -r1.144 reload.c
*** reload.c	1998/12/02 19:25:51	1.144
--- reload.c	1998/12/09 01:37:15
*************** find_reloads (insn, replace, ind_levels,
*** 3493,3499 ****
      {
        /* No alternative works with reloads??  */
        if (insn_code_number >= 0)
! 	abort ();
        error_for_asm (insn, "inconsistent operand constraints in an `asm'");
        /* Avoid further trouble with this insn.  */
        PATTERN (insn) = gen_rtx_USE (VOIDmode, const0_rtx);
--- 3493,3499 ----
      {
        /* No alternative works with reloads??  */
        if (insn_code_number >= 0)
! 	fatal_insn ("Unable to generate reloads for:", insn);
        error_for_asm (insn, "inconsistent operand constraints in an `asm'");
        /* Avoid further trouble with this insn.  */
        PATTERN (insn) = gen_rtx_USE (VOIDmode, const0_rtx);




More information about the Gcc-patches mailing list