From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjl@lucon.org (H.J. Lu) To: law@cygnus.com Cc: egcs@cygnus.com Subject: Re: Patch for egcs 1.0.2 Date: Sun, 15 Feb 1998 12:08:00 -0000 Message-id: References: <1732.887562560@hurl.cygnus.com> X-SW-Source: 1998-02/msg00713.html > I think you got this change reversed. The patch did just the > opposite for each of the changes to sparc/linux64. > > > I have *not* installed the patch. > Ooops. Sorry. Here is the fixed one. Thanks. -- H.J. Lu (hjl@gnu.org) --- Sat Feb 14 15:54:28 1998 H.J. Lu (hjl@gnu.org) * config/alpha/elf.h (LIB_SPEC): New. Defined if USE_GNULIBC_1 is not defined. * config/linux.h (LIB_SPEC): Add -lc for -shared if USE_GNULIBC_1 is not defined. * config/sparc/linux.h: Ditto. * config/sparc/linux64.h (LIB_SPEC): Add -lc for -shared. Tue Dec 16 23:25:45 1997 H.J. Lu (hjl@gnu.org) * config/sparc/linux64.h (LIBGCC_SPEC): Removed. (CPP_SUBTARGET_SPEC): Add %{pthread:-D_REENTRANT}. (LIB_SPEC): Updated for glibc 2. --- /home/work/misc/gnu/import/egcs/gcc/config/alpha/elf.h Wed Sep 10 17:07:06 1997 +++ config/alpha/elf.h Sat Feb 14 15:43:17 1998 @@ -62,6 +62,14 @@ #define DEFAULT_VTABLE_THUNKS 1 #endif +#ifndef USE_GNULIBC_1 +#undef LIB_SPEC +#define LIB_SPEC \ + "%{shared: -lc} \ + %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \ + %{profile:-lc_p} %{!profile: -lc}}" +#endif + /* Output at beginning of assembler file. */ #undef ASM_FILE_START --- /home/work/misc/gnu/import/egcs/gcc/config/linux.h Wed Aug 27 00:26:17 1997 +++ config/linux.h Sat Feb 14 15:38:06 1998 @@ -104,7 +104,8 @@ %{!profile:%{!ggdb:-lc} %{ggdb:-lg}}}" #else #define LIB_SPEC \ - "%{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \ + "%{shared: -lc} \ + %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \ %{profile:-lc_p} %{!profile: -lc}}" #endif #else --- /home/work/misc/gnu/import/egcs/gcc/config/sparc/linux.h Mon Oct 20 13:49:15 1997 +++ config/sparc/linux.h Sat Feb 14 15:38:06 1998 @@ -126,7 +126,8 @@ %{!profile:%{!ggdb:-lc} %{ggdb:-lg}}}" #else #define LIB_SPEC \ - "%{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \ + "%{shared: -lc} \ + %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \ %{profile:-lc_p} %{!profile: -lc}}" #endif #else --- /home/work/misc/gnu/import/egcs/gcc/config/sparc/linux64.h Mon Oct 20 13:49:15 1997 +++ config/sparc/linux64.h Sat Feb 14 15:49:31 1998 @@ -48,10 +48,6 @@ #undef ASM_CPU_DEFAULT_SPEC #define ASM_CPU_DEFAULT_SPEC "-Av9a" -#undef LIBGCC_SPEC -#define LIBGCC_SPEC \ - "%{!shared:-lgcc}" - /* Provide a STARTFILE_SPEC appropriate for Linux. Here we add the Linux magical crtbegin.o file (see crtstuff.c) which provides part of the support for getting C++ file-scope static @@ -111,15 +107,14 @@ %{fPIC:-D__PIC__ -D__pic__} \ %{fpic:-D__PIC__ -D__pic__} \ %{posix:-D_POSIX_SOURCE} \ +%{pthread:-D_REENTRANT} \ " -/* We no longer link with libc_p.a or libg.a by default. If you - * want to profile or debug the Linux C library, please add - * -lc_p or -ggdb to LDFLAGS at the link time, respectively. - */ + #undef LIB_SPEC #define LIB_SPEC \ - "%{!shared: %{mieee-fp:-lieee} %{p:-lgmon} %{pg:-lgmon} \ - %{!ggdb:-lc} %{ggdb:-lg}}" + "%{shared: -lc} \ + %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \ + %{profile:-lc_p} %{!profile: -lc}}" /* Provide a LINK_SPEC appropriate for Linux. Here we provide support for the special GCC options -static and -shared, which allow us to