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]

Fix enable checking failure gensupport.c


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
------------------------------------------------------------------------


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