iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC, [...]): Move ...
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 12 Jan 2010 12:38:49 +0000 (12:38 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 12 Jan 2010 12:38:49 +0000 (12:38 +0000)
* config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
SUBTARGET_WARN_UNUSED_SPEC): Move ...
config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
SUBTARGET_WARN_UNUSED_SPEC): ... here
* config/mips/iris5.h (LIBGCC_SPEC): Define.

From-SVN: r155837

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

index 17d322413c5d07f5e8f0b119705f212112480c57..e9ea98e4ad8a05615e0155f9c65aafabc54d096c 100644 (file)
@@ -1,3 +1,11 @@
+2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
+       SUBTARGET_WARN_UNUSED_SPEC): Move ...
+       config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
+       SUBTARGET_WARN_UNUSED_SPEC): ... here
+       * config/mips/iris5.h (LIBGCC_SPEC): Define.
+
 2010-01-12  Julian Brown  <julian@codesourcery.com>
 
         * config/arm/neon-schedgen.ml (Utils): Don't try to
index 373691ee6e122f8a56fc6011be085f402d6db6ce..24431937f23c317a5a46f7e8c8180680b7c8610f 100644 (file)
@@ -1,6 +1,7 @@
 /* Definitions of target machine for GNU compiler.  Generic IRIX version.
    Copyright (C) 1993, 1995, 1996, 1998, 2000,
-   2001, 2002, 2003, 2004, 2007, 2008 Free Software Foundation, Inc.
+   2001, 2002, 2003, 2004, 2007, 2008, 2009, 2010
+   Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -146,6 +147,14 @@ along with GCC; see the file COPYING3.  If not see
 #define IRIX_NO_UNRESOLVED "-no_unresolved"
 #endif
 
+#ifdef IRIX_USING_GNU_LD
+#define SUBTARGET_DONT_WARN_UNUSED_SPEC ""
+#define SUBTARGET_WARN_UNUSED_SPEC ""
+#else
+#define SUBTARGET_DONT_WARN_UNUSED_SPEC "-dont_warn_unused"
+#define SUBTARGET_WARN_UNUSED_SPEC "-warn_unused"
+#endif
+
 /* Generic part of the LINK_SPEC.  */
 #undef LINK_SPEC
 #define LINK_SPEC "\
index 495362ff92238e7c85ded2af3ddb1bb094768459..c3e86fe6afbd57f98986cbd96940d16e93443e7f 100644 (file)
@@ -1,6 +1,6 @@
 /* Definitions of target machine for GNU compiler.  IRIX version 5.
    Copyright (C) 1993, 1995, 1996, 1998, 2000,
-   2001, 2002, 2003, 2004, 2007 Free Software Foundation, Inc.
+   2001, 2002, 2003, 2004, 2007, 2010 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -37,6 +37,11 @@ irix-crti.o%s crtbegin.o%s"
 #undef LIB_SPEC
 #define LIB_SPEC "%{!shared:%{p:-lprof1} %{pg:-lprof1} -lc}"
 
+/* Avoid getting two warnings for libgcc.a everytime we link. */
+#undef LIBGCC_SPEC
+#define LIBGCC_SPEC \
+  SUBTARGET_DONT_WARN_UNUSED_SPEC " -lgcc " SUBTARGET_WARN_UNUSED_SPEC
+
 #undef ENDFILE_SPEC
 #define ENDFILE_SPEC "crtend.o%s irix-crtn.o%s %{!shared:crtn.o%s}"
 
index ad2dccc42b522483c2b316de89a67e6cc05d269b..026e364cf5ba93f65c74784af9819820dcefc54f 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, 2007, 2008
+   2005, 2006, 2007, 2008, 2010
    Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -103,14 +103,6 @@ along with GCC; see the file COPYING3.  If not see
            %{!p:/usr/lib64/mips3/crt1.o}}}}} \
   irix-crti.o%s crtbegin.o%s"
 
-#ifdef IRIX_USING_GNU_LD
-#define SUBTARGET_DONT_WARN_UNUSED_SPEC ""
-#define SUBTARGET_WARN_UNUSED_SPEC ""
-#else
-#define SUBTARGET_DONT_WARN_UNUSED_SPEC "-dont_warn_unused"
-#define SUBTARGET_WARN_UNUSED_SPEC "-warn_unused"
-#endif
-
 #undef LIB_SPEC
 #define LIB_SPEC \
   "%{mabi=n32: %{mips4:-L/usr/lib32/mips4} %{!mips4:-L/usr/lib32/mips3} \