summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2007-11-27 12:22:18 +0000
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2007-11-27 12:22:18 +0000
commitaedf7f2c04c9a4c0e17cddfdb2720b35696e2c4e (patch)
tree08a58e49642e400ca058bf6e45d04ea97a303787
parent1833d61d919c3e86ec1258e616e830ea352487a5 (diff)
downloadppe42-gcc-aedf7f2c04c9a4c0e17cddfdb2720b35696e2c4e.tar.gz
ppe42-gcc-aedf7f2c04c9a4c0e17cddfdb2720b35696e2c4e.zip
* config/bfin/elf.h (SUBTARGET_DRIVER_SELF_SPECS): New macro.
* doc/invoke.texi (Blackfin Options): Document the effects. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130464 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/bfin/elf.h4
-rw-r--r--gcc/doc/invoke.texi4
3 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index edad32fcdf2..0916b1c7d92 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-27 Bernd Schmidt <bernd.schmidt@analog.com>
+
+ * config/bfin/elf.h (SUBTARGET_DRIVER_SELF_SPECS): New macro.
+ * doc/invoke.texi (Blackfin Options): Document the effects.
+
2007-11-27 Ben Elliston <bje@au.ibm.com>
* config/rs6000/sysv4.opt (m32): Add Negative(m64).
diff --git a/gcc/config/bfin/elf.h b/gcc/config/bfin/elf.h
index f42f60aa4c6..89f91308eda 100644
--- a/gcc/config/bfin/elf.h
+++ b/gcc/config/bfin/elf.h
@@ -30,4 +30,8 @@ asm ("P3 = [SP + 20];\n\tcall " USER_LABEL_PREFIX #FUNC ";"); \
asm (TEXT_SECTION_ASM_OP);
#endif
+#undef SUBTARGET_DRIVER_SELF_SPECS
+#define SUBTARGET_DRIVER_SELF_SPECS \
+ "%{mfdpic:-msim} %{mid-shared-library:-msim}"
+
#define NO_IMPLICIT_EXTERN_C
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index facddef59ca..9fe5fde0f29 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -8668,6 +8668,8 @@ provided by libgloss to be linked in if @option{-msim} is not given.
Specifies that the program will be run on the simulator. This causes
the simulator BSP provided by libgloss to be linked in. This option
has effect only for @samp{bfin-elf} toolchain.
+Certain other options, such as @option{-mid-shared-library} and
+@option{-mfdpic}, imply @option{-msim}.
@item -momit-leaf-frame-pointer
@opindex momit-leaf-frame-pointer
@@ -8717,6 +8719,7 @@ uClinux kernel.
Generate code that supports shared libraries via the library ID method.
This allows for execute in place and shared libraries in an environment
without virtual memory management. This option implies @option{-fPIC}.
+With a @samp{bfin-elf} target, this option implies @option{-msim}.
@item -mno-id-shared-library
@opindex mno-id-shared-library
@@ -9642,6 +9645,7 @@ implies @option{-fPIE}. With @option{-fpic} or @option{-fpie}, it
assumes GOT entries and small data are within a 12-bit range from the
GOT base address; with @option{-fPIC} or @option{-fPIE}, GOT offsets
are computed with 32 bits.
+With a @samp{bfin-elf} target, this option implies @option{-msim}.
@item -minline-plt
@opindex minline-plt
OpenPOWER on IntegriCloud