This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix enable checking failure gensupport.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: Fix enable checking failure gensupport.c
- From: Graham Stott <grahams at redhat dot com>
- Date: Wed, 25 Jul 2001 20:50:47 +0100
All
Attempting to build arm-elf with enable-checking=misc,tree,rtl failed
because XSTR was used to access the insn template rather that XTMPL.
tested on arm-elf cross.
Graham
ChangeLog
* gensupport.c(alter_output_for_insn): Correct enable checking failure
change XSTR to XTMPL.
(process_one_...): Likewise
------------------------------------------------------------------------
Index: gensupport.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gensupport.c,v
retrieving revision 1.15
diff -c -p -r1.15 gensupport.c
*** gensupport.c 2001/07/03 19:23:35 1.15
--- gensupport.c 2001/07/25 15:35:15
*************** alter_output_for_insn (ce_elem, insn_ele
*** 622,628 ****
/* ??? Could coordinate with genoutput to not duplicate code here. */
ce_out = XSTR (ce_elem->data, 2);
! insn_out = XSTR (insn_elem->data, 3);
if (!ce_out || *ce_out == '\0')
return insn_out;
--- 622,628 ----
/* ??? Could coordinate with genoutput to not duplicate code here. */
ce_out = XSTR (ce_elem->data, 2);
! insn_out = XTMPL (insn_elem->data, 3);
if (!ce_out || *ce_out == '\0')
return insn_out;
*************** process_one_cond_exec (ce_elem)
*** 724,730 ****
}
XSTR (insn, 2) = alter_test_for_insn (ce_elem, insn_elem);
! XSTR (insn, 3) = alter_output_for_insn (ce_elem, insn_elem,
alternatives, max_operand);
/* ??? Set `predicable' to false. Not crucial since it's really
--- 724,730 ----
}
XSTR (insn, 2) = alter_test_for_insn (ce_elem, insn_elem);
! XTMPL (insn, 3) = alter_output_for_insn (ce_elem, insn_elem,
alternatives, max_operand);
/* ??? Set `predicable' to false. Not crucial since it's really
------------------------------------------------------------------------