* config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Fri, 12 Apr 2002 22:25:08 +0000 (22:25 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 12 Apr 2002 22:25:08 +0000 (22:25 +0000)
From-SVN: r52246

gcc/ChangeLog
gcc/config/alpha/osf.h

index f0f9389b3c7fcaa9b81609f8114193dd0630be0f..3fef2124387bc98bc8052c6702793f4dd8fff7ca 100644 (file)
@@ -1,3 +1,7 @@
+2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
+
 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
 
        * pa.c (pa_can_combine_p): Call extract_insn before calling
index 1e403ae5d7ec4c49f8a0b651eb0385d4747498ec..efb0a16d7fd0c133c30a54812a59eb047542e6d0 100644 (file)
@@ -57,12 +57,13 @@ Boston, MA 02111-1307, USA.  */
  %{threads: -lpthreads} %{pthread|threads: -lpthread -lmach -lexc} -lc"
 
 /* Pass "-G 8" to ld because Alpha's CC does.  Pass -O3 if we are
-   optimizing, -O1 if we are not.  Pass -shared, -non_shared or
+   optimizing, -O1 if we are not.  Pass -S to silence `weak symbol
+   multiply defined' warnings.  Pass -shared, -non_shared or
    -call_shared as appropriate.  Pass -hidden_symbol so that our
    constructor and call-frame data structures are not accidentally
    overridden.  */
 #define LINK_SPEC  \
-  "-G 8 %{O*:-O3} %{!O*:-O1} %{static:-non_shared} \
+  "-G 8 %{O*:-O3} %{!O*:-O1} -S %{static:-non_shared} \
    %{!static:%{shared:-shared -hidden_symbol _GLOBAL_*} \
    %{!shared:-call_shared}} %{pg} %{taso} %{rpath*}"