From 3d375286e0a3565ac76a832376609035fd435cf4 Mon Sep 17 00:00:00 2001 From: wilson Date: Mon, 1 Aug 2005 22:25:52 +0000 Subject: 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 --- gcc/doc/extend.texi | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc/doc') 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 -- cgit v1.2.1