re PR target/32538 (All libgomp tests fail to link on IRIX 6: copysignl undefined)
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Tue, 10 Jul 2007 18:02:30 +0000 (18:02 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 10 Jul 2007 18:02:30 +0000 (18:02 +0000)
PR target/32538
* config/mips/iris6.h (LIBGCC_SPEC): Add libm.

From-SVN: r126520

gcc/ChangeLog
gcc/config/mips/iris6.h

index 712de85e6dbf5cbaed1345f5613fd0c1501d6e49..897093169f9f73128c9e1ab7cf836a5798decc7a 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       PR target/32538
+       * config/mips/iris6.h (LIBGCC_SPEC): Add libm.
+
 2007-07-10  Ian Lance Taylor  <iant@google.com>
 
        Replace no_new_pseudos in backends.
index 8686b14fa94401daca9f4c94b1b35ed50baa04ed..87d9a219bbd245fa04b5cc9973b927b262013ed5 100644 (file)
@@ -1,6 +1,6 @@
 /* Definitions of target machine for GNU compiler.  IRIX version 6.
    Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004,
-   2005, 2006
+   2005, 2006, 2007
    Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -96,10 +96,11 @@ Boston, MA 02110-1301, USA.  */
      " %{pthread:-lpthread} %{p:libprof1.a%s}%{pg:libprof1.a%s} -lc " \
      SUBTARGET_WARN_UNUSED_SPEC "}"
 
-/* Avoid getting two warnings for libgcc.a everytime we link.  */
+/* Avoid getting two warnings for libgcc.a everytime we link.  libgcc.a
+   contains references to copysignl, so link with libm to resolve them.  */
 #undef LIBGCC_SPEC
 #define LIBGCC_SPEC \
-  SUBTARGET_DONT_WARN_UNUSED_SPEC " -lgcc " SUBTARGET_WARN_UNUSED_SPEC
+  SUBTARGET_DONT_WARN_UNUSED_SPEC " -lgcc -lm " SUBTARGET_WARN_UNUSED_SPEC
 
 #undef ENDFILE_SPEC
 #define ENDFILE_SPEC \