summaryrefslogtreecommitdiff
path: root/config/cc/gcc.in.mips
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-06-27 16:04:50 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-06-27 16:04:50 (GMT)
commitd2d948a4ad3ba384c686be53e9afa8b5a2a0804f (patch)
tree88290d4e4e5127975aecef28e11bd7900c2beb7d /config/cc/gcc.in.mips
parent71d5c495e9885ce175378cc3138f58361532e533 (diff)
cc/gcc: add MIPS spercific configure options
Add the following MIPS specific options when configuring gcc: --with(out)-llsc --with(out)-synci --with(out)-mips-plt --with-divide=type Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'config/cc/gcc.in.mips')
-rw-r--r--config/cc/gcc.in.mips34
1 files changed, 34 insertions, 0 deletions
diff --git a/config/cc/gcc.in.mips b/config/cc/gcc.in.mips
new file mode 100644
index 0000000..71fb69a
--- /dev/null
+++ b/config/cc/gcc.in.mips
@@ -0,0 +1,34 @@
+# MIPS specific options for gcc
+
+config CC_GCC_HAS_ARCH_OPTIONS
+ default y
+
+config CC_GCC_mips_llsc
+ tristate
+ prompt "Use llsc"
+ default m
+ help
+ This configures how gcc will emit load-link, store-conditional and
+ sync opcodes. Normally, you'd set this to 'M', and configure will do
+ the correct thing (ie. enable llsc for Linux-based targets, disable
+ for others). If you know better, you can force either using llsc or
+ not using it (resp. 'Y' or 'N').
+
+config CC_GCC_mips_synci
+ tristate
+ prompt "Use synci"
+ default m
+ help
+ This configures how gcc will emit the synci opcode. Normally, you'd
+ set this to 'M', and configure will do the correct thing (ie. disable).
+ If you know better, you can force using synci (say 'Y'), or not using
+ it (say 'N').
+
+config CC_GCC_mips_plt
+ bool
+ prompt "Use copy relocations & PLTs"
+ help
+ This configures gcc to use copy relocations & PLTs. These are
+ extensions to the traditional SVR4-based MIPS ABIs and require
+ support from GNU binutils and the runtime C library.
+ Say 'N' to keep the default and not use them, say 'Y' to use them.