sibcall enable-checking failure

Alasdair Baird alasdair@wildcat.demon.co.uk
Sat Mar 18 16:31:00 GMT 2000


Building gcc for an Athlon processor, I got an rtl check failure
inside record_insns:

  RTL check: expected elt 0 type 'i' or 'n', have 'E' (rtx parallel)
  Internal compiler error in `record_insns', at function.c:6719

I believe this can be fixed thus:


2000-03-18     Alasdair Baird	<alasdair@wildcat.demon.co.uk>

        *function.c (thread_prologue_and_epilogue_insns) Ensure that
	record_insns is called with a SEQUENCE.


*** function.c.orig	Sat Mar 18 12:36:00 2000
--- function.c	Sat Mar 18 20:33:43 2000
*************** epilogue_done:
*** 7031,7036 ****
--- 7031,7038 ----
  
        /* Retain a map of the epilogue insns.  Used in life analysis to
  	 avoid getting rid of sibcall epilogue insns.  */
+       if (GET_CODE (seq) != SEQUENCE)
+ 	seq = get_insns ();
        record_insns (seq, &sibcall_epilogue);
      }
  #endif




More information about the Gcc-patches mailing list