Add short_call function attribute for MIPS
authorSimon Atanasyan <simon.atanasyan@imgtec.com>
Tue, 12 Sep 2017 12:51:40 +0000 (12:51 +0000)
committerMatthew Fortune <mpf@gcc.gnu.org>
Tue, 12 Sep 2017 12:51:40 +0000 (12:51 +0000)
commit8101ec8538ba93c76250d160f30015913c1f9a15
tree1f689d56f38dc672a24c4b6635c49d2b7dac2fc0
parent45e3a33db7e23a4328974d19a5843d5053461eec
Add short_call function attribute for MIPS

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.

From-SVN: r252006
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/near-far-1.c
gcc/testsuite/gcc.target/mips/near-far-2.c
gcc/testsuite/gcc.target/mips/near-far-3.c
gcc/testsuite/gcc.target/mips/near-far-4.c