This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] checking version of rtl flag access macros
- From: Krister Walfridsson <cato at df dot lth dot se>
- To: Janis Johnson <janis187 at us dot ibm dot com>
- Cc: Alexandre Oliva <aoliva at redhat dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 16 May 2002 20:57:43 +0200 (MEST)
- Subject: Re: [PATCH] checking version of rtl flag access macros
On Thu, 16 May 2002, Janis Johnson wrote:
> Is anyone actually planning to do a patch for this? I can, but the
> systems I normally test on don't fail with the current code so they
> wouldn't be much of a check. Is there a cross target with a simulator
> where this failed before?
The patch below is what I tested with tonight. I could test a patch with
if (GET_CODE (value) == REG
&& ! REG_FUNCTION_VALUE_P (value))
too, if that is preferred...
/Krister
2002-05-16 Krister Walfridsson <cato@df.lth.se>
* reload1.c (reload_cse_simplify): Fix typo in rtx code check.
*** reload1.c.orig Thu May 16 02:19:03 2002
--- reload1.c Thu May 16 02:20:00 2002
*************** reload_cse_simplify (insn)
*** 8079,8085 ****
if (!count && reload_cse_noop_set_p (body))
{
rtx value = SET_DEST (body);
! if (GET_CODE (body) == REG
&& ! REG_FUNCTION_VALUE_P (SET_DEST (body)))
value = 0;
reload_cse_delete_noop_set (insn, value);
--- 8079,8085 ----
if (!count && reload_cse_noop_set_p (body))
{
rtx value = SET_DEST (body);
! if (GET_CODE (SET_DEST (body)) == REG
&& ! REG_FUNCTION_VALUE_P (SET_DEST (body)))
value = 0;
reload_cse_delete_noop_set (insn, value);