aboutsummaryrefslogtreecommitdiff
path: root/gas/doc/c-mips.texi
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2004-12-10 19:48:21 +0000
committerIan Lance Taylor <ian@airs.com>2004-12-10 19:48:21 +0000
commitaa6975fbb31187d739eeb94d715c0118e2425937 (patch)
treebc611f4894169fcba7fd058df1f24dd990d98333 /gas/doc/c-mips.texi
parent01926a693560658e7293190549a9c2cee946811a (diff)
downloadgdb-aa6975fbb31187d739eeb94d715c0118e2425937.zip
gdb-aa6975fbb31187d739eeb94d715c0118e2425937.tar.gz
gdb-aa6975fbb31187d739eeb94d715c0118e2425937.tar.bz2
* config/tc-mips.c (mips_in_shared): New static variable.
(macro_build_lui): Permit "_gp" if !mips_in_shared. (md_longopts): Add -mshared and -mno-shared. (md_parse_option): Handle OPTION_MSHARED and OPTION_MNO_SHARED. (s_cpload): Implement !mips_in_shared case. (s_cpsetup): Likewise. * doc/c-mips.texi (MIPS Opts): Document -mno-shared. * NEWS: Mention -mno-shared.
Diffstat (limited to 'gas/doc/c-mips.texi')
-rw-r--r--gas/doc/c-mips.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/gas/doc/c-mips.texi b/gas/doc/c-mips.texi
index 1375230..6446c92 100644
--- a/gas/doc/c-mips.texi
+++ b/gas/doc/c-mips.texi
@@ -238,6 +238,16 @@ error is detected. This is the default.
@itemx -mno-pdr
Control generation of @code{.pdr} sections. Off by default on IRIX, on
elsewhere.
+
+@item -mshared
+@itemx -mno-shared
+When generating code using the Unix calling conventions (selected by
+@samp{-KPIC} or @samp{-mcall_shared}), gas will normally generate code
+which can go into a shared library. The @samp{-mno-shared} option
+tells gas to generate code which uses the calling convention, but can
+not go into a shared library. The resulting code is slightly more
+efficient. This option only affects the handling of the
+@samp{.cpload} and @samp{.cpsetup} pseudo-ops.
@end table
@node MIPS Object