This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
define_and_split_insn buglet
- To: gcc-patches at gcc dot gnu dot org
- Subject: define_and_split_insn buglet
- From: Richard Henderson <rth at cygnus dot com>
- Date: Mon, 8 May 2000 16:34:23 -0700
Introduced by me with the define_cond_exec change this weekend.
Tested on ia64.
r~
* gensupport.c (process_rtx): Copy and post-process each member
of the define_insn rtvec individually.
Index: gensupport.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/gensupport.c,v
retrieving revision 1.5
diff -c -p -d -r1.5 gensupport.c
*** gensupport.c 2000/05/07 00:48:53 1.5
--- gensupport.c 2000/05/08 23:32:08
*************** process_rtx (desc, lineno)
*** 174,184 ****
{
const char *split_cond;
rtx split;
/* Create a split with values from the insn_and_split. */
split = rtx_alloc (DEFINE_SPLIT);
! XEXP (split, 0) = copy_rtx (XEXP (desc, 1));
! remove_constraints (XEXP (split, 0));
/* If the split condition starts with "&&", append it to the
insn condition to create the new split condition. */
--- 174,191 ----
{
const char *split_cond;
rtx split;
+ int i;
/* Create a split with values from the insn_and_split. */
split = rtx_alloc (DEFINE_SPLIT);
!
! i = XVECLEN (desc, 1);
! XEXP (split, 0) = rtvec_alloc (i);
! while (--i >= 0)
! {
! XVECEXP (split, 0, i) = copy_rtx (XVECEXP (desc, 1, i));
! remove_constraints (XVECEXP (split, 0, i));
! }
/* If the split condition starts with "&&", append it to the
insn condition to create the new split condition. */