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]

Re: [ARC] RFA: Use new rtl iterators in arc600_corereg_hazard


On 25 October 2014 10:56, Richard Sandiford <rdsandiford@googlemail.com> wrote:
> This is part of a series to remove uses of for_each_rtx from the ports.
>
> Tested by making sure there were no code changes for gcc.dg, gcc.c-torture
> and g++.dg for arc-elf.  OK to install?
>
> Thanks,
> Richard
>
>
> gcc/
>         * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
>         (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.

OK.

> +  FOR_EACH_SUBRTX (iter, array, PATTERN (pred), NONCONST)

I was wondering for a while what kind of (NON)CONST this was about...
but as I glean
from the source, as long as nobody packs an address with a side effect
into a (CONST (MEM (...)) -
which should never happen in the first place, no matter if the MEM
itself is really const - we
should be fine.


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