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] Add 'short_call' attribute for MIPS targets


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


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