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
On May 15, 2002, Janis Johnson <janis187@us.ibm.com> wrote:
>> > @@ -8079,7 +8079,8 @@ reload_cse_simplify (insn)
>> > if (!count && reload_cse_noop_set_p (body))
>> > {
>> > rtx value = SET_DEST (body);
>> > - if (! REG_FUNCTION_VALUE_P (SET_DEST (body)))
>> > + if (GET_CODE (body) == REG
>> > + && ! REG_FUNCTION_VALUE_P (SET_DEST (body)))
>> > value = 0;
>> > reload_cse_delete_noop_set (insn, value);
>> > return;
>>
>> /Krister
> Eww. It was supposed to verify that the argument to REG_FUNCTION_VALUE_P
> is REG, so it should be "GET_CODE (SET_DEST (body)) == REG". Can you try
> that on your system?
Err... Why not:
if (GET_CODE (value)
&& ! REG_FUNCTION_VALUE_P (value))
?
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer