summaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-01 22:25:52 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-01 22:25:52 +0000
commit3d375286e0a3565ac76a832376609035fd435cf4 (patch)
tree1b2f7b954419c82bc60f7e34da9c6744ffb94baf /gcc/doc
parente8aaae4efa4777c8004424e8fd16376d21b2732e (diff)
downloadgcc-3d375286e0a3565ac76a832376609035fd435cf4.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102646 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc')
-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 dc02b62ae7a..225f5a32e5b 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