From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31157 invoked by alias); 15 Feb 2003 22:36:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 31143 invoked by uid 71); 15 Feb 2003 22:36:00 -0000 Date: Sat, 15 Feb 2003 22:36:00 -0000 Message-ID: <20030215223600.31142.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Falk Hueffner Subject: Re: optimization/7702: [PATCH] Make reload-cse honor CANNOT_CHANGE_MODE_CLASS Reply-To: Falk Hueffner X-SW-Source: 2003-02/txt/msg00671.txt.bz2 List-Id: The following reply was made to PR optimization/7702; it has been noted by GNATS. From: Falk Hueffner To: Richard Henderson Cc: gcc-patches@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: optimization/7702: [PATCH] Make reload-cse honor CANNOT_CHANGE_MODE_CLASS Date: 15 Feb 2003 23:30:31 +0100 --=-=-= Falk Hueffner writes: > Richard Henderson writes: > > I'm fairly certain that the exact form of this macro was different > > in both 3.3 and 3.2. Would you generate and test patches for these > > branches? > > I have this patch for 3.2. I'll check out 3.3. It needs the same patch as 3.4. I've attached it. -- Falk --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=reload-cse-3.3.patch --- reload1.c~ 2003-02-15 23:27:30.000000000 +0100 +++ reload1.c 2003-02-15 23:26:29.000000000 +0100 @@ -8275,7 +8275,13 @@ { #ifdef LOAD_EXTEND_OP if (GET_MODE_BITSIZE (GET_MODE (SET_DEST (set))) < BITS_PER_WORD - && extend_op != NIL) + && extend_op != NIL +#ifdef CANNOT_CHANGE_MODE_CLASS + && !CANNOT_CHANGE_MODE_CLASS (GET_MODE (SET_DEST (set)), + word_mode, + REGNO_REG_CLASS (REGNO (SET_DEST (set)))) +#endif + ) { rtx wide_dest = gen_rtx_REG (word_mode, REGNO (SET_DEST (set))); ORIGINAL_REGNO (wide_dest) = ORIGINAL_REGNO (SET_DEST (set)); --=-=-=--