]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
netbsd-elf.h (STARTFILE_SPEC): Rename to NETBSD_STARTFILE_SPEC.
authorJason Thorpe <thorpej@wasabisystems.com>
Sun, 24 Nov 2002 21:17:04 +0000 (21:17 +0000)
committerJason Thorpe <thorpej@gcc.gnu.org>
Sun, 24 Nov 2002 21:17:04 +0000 (21:17 +0000)
* config/netbsd-elf.h (STARTFILE_SPEC): Rename to
NETBSD_STARTFILE_SPEC.
(STARTFILE_SPEC): Redefine in terms of NETBSD_STARTFILE_SPEC.
(ENDFILE_SPEC): Likewise.
* config/netbsd.h (LIB_SPEC, LIBGCC_SPEC): Likewise.

From-SVN: r59436

gcc/ChangeLog
gcc/config/netbsd-elf.h
gcc/config/netbsd.h

index 4f2ceab51a4b34a7b35960fb0c34a076d0037d59..8d313a4fe7ee3e4ae62a445b5a5ce3b5d0381f0d 100644 (file)
@@ -1,3 +1,11 @@
+2002-11-24  Jason Thorpe  <thorpej@wasabisystems.com>
+
+       * config/netbsd-elf.h (STARTFILE_SPEC): Rename to
+       NETBSD_STARTFILE_SPEC.
+       (STARTFILE_SPEC): Redefine in terms of NETBSD_STARTFILE_SPEC.
+       (ENDFILE_SPEC): Likewise.
+       * config/netbsd.h (LIB_SPEC, LIBGCC_SPEC): Likewise.
+
 2002-11-24  Andreas Schwab  <schwab@suse.de>
 
        * Makefile.in (install-driver): Remove versioned link before
index a35f46af18baf5bd6a9bf7cc989db60942c437f9..4846ba605bbae22ab5a9fb6402b24d15ae09f7eb 100644 (file)
@@ -46,8 +46,7 @@ Boston, MA 02111-1307, USA.  */
    of the support for getting C++ file-scope static objects
    constructed before entering "main".  */
 
-#undef STARTFILE_SPEC
-#define STARTFILE_SPEC         \
+#define NETBSD_STARTFILE_SPEC  \
   "%{!shared:                  \
      %{pg:gcrt0%O%s}           \
      %{!pg:                    \
@@ -56,16 +55,20 @@ Boston, MA 02111-1307, USA.  */
    %:if-exists(crti%O%s)       \
    %{!shared:crtbegin%O%s} %{shared:crtbeginS%O%s}"
 
+#undef STARTFILE_SPEC
+#define STARTFILE_SPEC NETBSD_STARTFILE_SPEC
+
 
 /* Provide an ENDFILE_SPEC appropriate for NetBSD ELF.  Here we
    add crtend.o, which provides part of the support for getting
    C++ file-scope static objects deconstructed after exiting "main".  */
 
-#undef ENDFILE_SPEC
-#define ENDFILE_SPEC           \
+#define NETBSD_ENDFILE_SPEC    \
   "%{!shared:crtend%O%s} %{shared:crtendS%O%s} \
    %:if-exists(crtn%O%s)"
 
+#undef ENDFILE_SPEC
+#define ENDFILE_SPEC NETBSD_ENDFILE_SPEC
 
 /* Provide a LINK_SPEC appropriate for NetBSD ELF.  Here we provide
    support for the special GCC options -assert, -R, -rpath, -shared,
index f1f3589f48b804171d15bef87143db1aa48992c5..61b44aceac407d8850b42a97a384a115421df877 100644 (file)
@@ -90,9 +90,8 @@ Boston, MA 02111-1307, USA.  */
    FIXME: Could eliminate the duplication here if we were allowed to
    use string concatenation.  */
 
-#undef LIB_SPEC
 #ifdef NETBSD_ENABLE_PTHREADS
-#define LIB_SPEC               \
+#define NETBSD_LIB_SPEC                \
   "%{pthread:                  \
      %{!p:                     \
        %{!pg:-lpthread}}       \
@@ -110,7 +109,7 @@ Boston, MA 02111-1307, USA.  */
        %{p:-lc_p}              \
        %{pg:-lc_p}}}"
 #else
-#define LIB_SPEC               \
+#define NETBSD_LIB_SPEC                \
   "%{posix:                    \
      %{!p:                     \
        %{!pg:-lposix}}         \
@@ -124,23 +123,28 @@ Boston, MA 02111-1307, USA.  */
        %{pg:-lc_p}}}"
 #endif
 
+#undef LIB_SPEC
+#define LIB_SPEC NETBSD_LIB_SPEC
+
 /* Provide a LIBGCC_SPEC appropriate for NetBSD.  We also want to exclude
    libgcc with -symbolic.  */
 
-#undef LIBGCC_SPEC
 #ifdef NETBSD_NATIVE
-#define LIBGCC_SPEC            \
+#define NETBSD_LIBGCC_SPEC     \
   "%{!symbolic:                        \
      %{!shared:                        \
        %{!p:                   \
-        %{!pg: -lgcc}}}                \
+        %{!pg: -lgcc}}}        \
      %{shared: -lgcc_pic}      \
      %{p: -lgcc_p}             \
      %{pg: -lgcc_p}}"
 #else
-#define LIBGCC_SPEC "%{!shared:%{!symbolic: -lgcc}}"
+#define NETBSD_LIBGCC_SPEC "%{!shared:%{!symbolic: -lgcc}}"
 #endif
 
+#undef LIBGCC_SPEC
+#define LIBGCC_SPEC NETBSD_LIBGCC_SPEC
+
 /* When building shared libraries, the initialization and finalization 
    functions for the library are .init and .fini respectively.  */