diff options
author | James E Wilson <wilson@specifixinc.com> | 2005-08-01 15:25:52 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2005-08-01 15:25:52 -0700 |
commit | 4dbdb061864825507e4d964c8904c82970fcb17d (patch) | |
tree | 1b2f7b954419c82bc60f7e34da9c6744ffb94baf /gcc/doc/extend.texi | |
parent | 9e254451d2c54ff1fc1c9f1de87110566808af35 (diff) | |
download | gcc-4dbdb061864825507e4d964c8904c82970fcb17d.zip gcc-4dbdb061864825507e4d964c8904c82970fcb17d.tar.gz gcc-4dbdb061864825507e4d964c8904c82970fcb17d.tar.bz2 |
Add long_call attribute to mips port.
* config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
* config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
New.
* config/mips/predicates.md (const_call_insn_operand): Add check for
SYMBOL_REF_LONG_CALL_P.
* doc/extend.texi (long_call): Document the new attribute.
From-SVN: r102646
Diffstat (limited to 'gcc/doc/extend.texi')
-rw-r--r-- | gcc/doc/extend.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index dc02b62..225f5a3 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -1942,6 +1942,14 @@ both the @option{-mlongcall} switch and, on the RS/6000 and PowerPC, the @xref{RS/6000 and PowerPC Options}, for more information on whether long calls are necessary. +@item long_call +@cindex indirect calls on MIPS +This attribute specifies how a particular function is called on MIPS@. +The attribute overrides the @option{-mlong-calls} (@pxref{MIPS Options}) +command line switch. This attribute causes the compiler to always call +the function by first loading its address into a register, and then using +the contents of that register. + @item malloc @cindex @code{malloc} attribute The @code{malloc} attribute is used to tell the compiler that a function |