This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, sh]: Use std::swap
- From: Oleg Endo <oleg dot endo at t-online dot de>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- Date: Sun, 16 Nov 2014 19:48:01 +0900
- Subject: Re: [PATCH, sh]: Use std::swap
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4ZGHEa5+CLXvNsvaWgEpKunkmbPwzF+Fh93sRKrokzDkA at mail dot gmail dot com>
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