re PR driver/47390 (Linking with -export-dynamic broken)
authorJoseph Myers <joseph@codesourcery.com>
Thu, 17 Feb 2011 18:35:41 +0000 (18:35 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 17 Feb 2011 18:35:41 +0000 (18:35 +0000)
PR driver/47390
* common.opt (export-dynamic): New Driver option.
* gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.

From-SVN: r170253

gcc/ChangeLog
gcc/common.opt
gcc/gcc.c

index 2c41f1f8c7748143cdef1a861d68447ebe28c5d9..40d80410b8e454e6c5229af5ebf70cc2b331ac88 100644 (file)
@@ -1,3 +1,9 @@
+2011-02-17  Joseph Myers  <joseph@codesourcery.com>
+
+       PR driver/47390
+       * common.opt (export-dynamic): New Driver option.
+       * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
+
 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
 
        * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
index 00c3f3343fd0b56456eb5e03896dd9580b55f863..1f24a3a67a0f243481d44fa72ee44197aa0a159c 100644 (file)
@@ -712,6 +712,13 @@ Driver
 e
 Driver Joined Separate
 
+; This option has historically been passed down to the linker by an
+; accident of a %{e*} spec, so ensure it continues to be passed down
+; as a single option.  The supported option for this purpose is
+; -rdynamic.  See PR 47390.
+export-dynamic
+Driver Undocumented
+
 ; The version of the C++ ABI in use.  The following values are allowed:
 ;
 ; 0: The version of the ABI believed most conformant with the C++ ABI
index 9b6f2fb368b1e9935eb824fa5922a841d9a1c836..80a3ba60223885f819071a0348a3fafb00d4067f 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -644,6 +644,7 @@ proper position among the other output files.  */
    directories.  */
 /* We pass any -flto flags on to the linker, which is expected
    to understand them.  In practice, this means it had better be collect2.  */
+/* %{e*} includes -export-dynamic; see comment in common.opt.  */
 #ifndef LINK_COMMAND_SPEC
 #define LINK_COMMAND_SPEC "\
 %{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\