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: [PATCH, sh]: Use std::swap



On Nov 16, 2014, at 6:36 PM, Uros Bizjak <ubizjak@gmail.com> wrote:

> Hello!
> 
> 2014-11-16  Uros Bizjak  <ubizjak@gmail.com>
> 
>    * config/sh/sh.c: Do not include algorithm.
>    (sh_emit_scc_to_t): Replace open-coded swap with std::swap
>    to swap values.
>    (sh_emit_compare_and_branch): Ditto.
>    (sh_emit_compare_and_set): Ditto.
>    * config/sh/sh.md (replacement peephole2): Ditto.
>    (cstore4_media): Ditto.
>    (*fmasf4): Ditto.
> 
> Tested by building a crosscompiler to sh-elf, otherwise untested.

OK for trunk.  Thanks for taking care of this.

Cheers,
Oleg



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