This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH] Add 'short_call' attribute for MIPS targets
- From: Matthew Fortune <Matthew dot Fortune at imgtec dot com>
- To: Simon Atanasyan <simon at atanasyan dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 11 Sep 2017 15:26:52 +0000
- Subject: RE: [PATCH] Add 'short_call' attribute for MIPS targets
- Authentication-results: sourceware.org; auth=none
- References: <CAGyS+DR0Z_jUmym1hhJzyLwj2AM9fh-q=s06hRBT0Lnfp-xeoQ@mail.gmail.com> <6D39441BF12EF246A7ABCE6654B0235380DDC156@hhmail02.hh.imgtec.org> <20170911140044.GA31936@debian64.galaxy.int>
Simon Atanasyan <simon@atanasyan.com> writes:
> Here is the updated patch with chnaged e-mail address and fixed
> indentation issues:
> -8<--------------------
> Currently GCC supports 'long_call', 'far', and 'near' attributes. The
> 'long_call' and 'far' attributes are synonyms. This patch adds support
> for the 'short_call' attribute as a synonym for `near` to make this list
> complete, consistent with other targets, and compatible with attributes
> supported by the Clang.
>
> Tested on mipsel-linux-gnu.
>
> 2017-08-18 Simon Atanasyan <Simon.Atanasyan@imgtec.com>
>
> gcc/
> * config/mips/mips.c (mips_attribute_table): Add 'short_call'
> attribute.
> (mips_near_type_p): Add 'short_call' attribute as a synonym
> for 'near'.
> * doc/extend.texi (short_call): Document new function attribute.
>
> gcc/testsuite
>
> * gcc.target/mips/near-far-1.c: Add check for 'short_call'
> attribute.
> * gcc.target/mips/near-far-2.c: Likewise.
> * gcc.target/mips/near-far-3.c: Likewise.
> * gcc.target/mips/near-far-4.c: Likewise.
OK to commit, thanks.
Matthew