This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 3.0.3
- From: Stephane Carrez <Stephane dot Carrez at worldnet dot fr>
- To: Mark Mitchell <mark at codesourcery dot com>, jakub at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 30 Nov 2001 20:26:58 +0100
- Subject: Re: GCC 3.0.3
- References: <13880000.1007057994@warlock.codesourcery.com>
Hi Mark and Jakub,
Can we backport the following patch on 3.0 branch:
http://gcc.gnu.org/ml/gcc-patches/2001-11/msg00591.html
2001-11-09 Jakub Jelinek <jakub@redhat.com>
* config/sparc/sparc.md (movdf): Avoid calling validize_mem during
or after reload.
It fixes PR/4410 (verified on 3.0.2/Solaris 8).
It is a regression from 2.95.3.
Thanks,
Stephane
(cut&paste from web below)
--- gcc/config/sparc/sparc.md.jj Wed Oct 24 21:25:07 2001
+++ gcc/config/sparc/sparc.md Fri Nov 9 15:28:04 2001
@@ -3255,6 +3255,11 @@
&& fp_zero_operand (operands[1], DFmode))
goto movdf_is_ok;
+ /* We are able to build any DF constant in integer registers. */
+ if (REGNO (operands[0]) < 32
+ && (reload_completed || reload_in_progress))
+ goto movdf_is_ok;
+
operands[1] = validize_mem (force_const_mem (GET_MODE (operands[0]),
operands[1]));
}