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]
Other format: [Raw text]

RFA: fix PR rtl-optimization/29858 [Fwd: RFA: fix discover_flags_reg bitrot (Was: Re: RFA: autoincrement patches for gcc 4 - updated patch)]


:ADDPATCH rtl-optimization:

-------- Original Message --------
Subject: RFA: fix discover_flags_reg bitrot (Was: Re: RFA: autoincrement patches for gcc 4 - updated patch)
Date: Thu, 19 May 2005 14:01:51 +0100
From: Joern Rennecke <joern.rennecke@st.com>
To: Bernd Schmidt <bernds_cb1@t-online.de>
References: <421F4698.1050809@st.com> <427136AB.50004@st.com> <20050517025434.GB31389@redhat.com> <428A22F3.4030602@st.com> <20050517171501.GA859@redhat.com> <428A41B3.6050104@st.com> <428B1267.9030004@st.com> <428B36B2.5050001@st.com> <428B4F84.7010302@st.com> <20050518222102.GA7819@redhat.com> <428C7D21.3010004@st.com> <428C8741.5080206@t-online.de>




Bernd Schmidt wrote:

Joern RENNECKE wrote:

There are three main suspects for the failure:

[...]


- Bitrot or a latent bug in the rest of regmove. Since the elimination of
SEQUENCE as the result of expanders, most of regmove has been disabled
because of a failure to update discover_flags_reg.


Please submit a separate patch to fix just that.


Bernd




2005-03-15  J"orn Rennecke <joern.rennecke@st.com>

	* regmove.c (discover_flags_reg): Use the PATTERN of an INSN.

--- regmove.c@@/main/SH5GCC-3.4.3-int/1	2005-01-04 17:44:00.000000000 +0000
+++ regmove.c	2005-03-15 22:01:10.000000000 +0000
@@ -214,6 +214,8 @@ discover_flags_reg (void)
 
   /* If we get something that isn't a simple set, or a
      [(set ..) (clobber ..)], this whole function will go wrong.  */
+  if (GET_CODE (tmp) == INSN)
+    tmp = PATTERN (tmp);
   if (GET_CODE (tmp) == SET)
     return NULL_RTX;
   else if (GET_CODE (tmp) == PARALLEL)


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