This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
cleanup_subreg_operands bug
- To: egcs-patches at cygnus dot com
- Subject: cleanup_subreg_operands bug
- From: Bernd Schmidt <crux at pool dot informatik dot rwth-aachen dot de>
- Date: Wed, 28 Oct 1998 10:34:12 +0100 (MET)
Currently, the compiler does not bootstrap on sparc-sun-solaris2.6 due to
a small oversight in cleanup_subreg_operands. Feeding an ASM_INPUT to
insn_extract will cause it to call fatal_insn.
Bernd
* final.c (cleanup_subreg_operands): ASM_INPUTs need no treatment.
Index: final.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/final.c,v
retrieving revision 1.59
diff -u -p -r1.59 final.c
--- final.c 1998/10/27 23:19:27 1.59
+++ final.c 1998/10/28 09:43:38
@@ -3037,6 +3037,7 @@ cleanup_subreg_operands (insn)
|| GET_CODE (PATTERN (insn)) == USE
|| GET_CODE (PATTERN (insn)) == ADDR_VEC
|| GET_CODE (PATTERN (insn)) == ADDR_DIFF_VEC
+ || GET_CODE (PATTERN (insn)) == ASM_INPUT
|| asm_noperands (PATTERN (insn)) >= 0)
return;