aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/extend.texi
diff options
context:
space:
mode:
authorJames E Wilson <wilson@specifixinc.com>2005-08-01 15:25:52 -0700
committerJim Wilson <wilson@gcc.gnu.org>2005-08-01 15:25:52 -0700
commit4dbdb061864825507e4d964c8904c82970fcb17d (patch)
tree1b2f7b954419c82bc60f7e34da9c6744ffb94baf /gcc/doc/extend.texi
parent9e254451d2c54ff1fc1c9f1de87110566808af35 (diff)
downloadgcc-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.texi8
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