From: Thomas Schwinge Date: Tue, 29 Mar 2016 21:17:53 +0000 (+0200) Subject: [Hurd] Specs maintenance X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0987bf0d7e6e41a5991f3ebc9ae08b24f2194eaa;p=gcc.git [Hurd] Specs maintenance gcc/ * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override. * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of gcrt0.o if linking dynamically. From-SVN: r234535 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 866531fe021..37e250412e6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-03-29 Thomas Schwinge + + * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override. + * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of + gcrt0.o if linking dynamically. + 2016-03-10 Jan Hubicka PR ipa/70283 diff --git a/gcc/config/gnu.h b/gcc/config/gnu.h index 1d98ec831e8..1dbecdae6dc 100644 --- a/gcc/config/gnu.h +++ b/gcc/config/gnu.h @@ -19,14 +19,6 @@ You should have received a copy of the GNU General Public License along with GCC. If not, see . */ -/* Provide GCC options for standard feature-test macros. */ -#undef CPP_SPEC -#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}" - -/* Default C library spec. */ -#undef LIB_SPEC -#define LIB_SPEC "%{pthread:-lpthread} %{pg|p|profile:-lc_p;:-lc}" - #undef GNU_USER_TARGET_OS_CPP_BUILTINS #define GNU_USER_TARGET_OS_CPP_BUILTINS() \ do { \ diff --git a/gcc/config/i386/gnu.h b/gcc/config/i386/gnu.h index c726d31f496..9d2f94f69c2 100644 --- a/gcc/config/i386/gnu.h +++ b/gcc/config/i386/gnu.h @@ -27,11 +27,11 @@ along with GCC. If not, see . #undef STARTFILE_SPEC #if defined HAVE_LD_PIE #define STARTFILE_SPEC \ - "%{!shared: %{pg|p|profile:gcrt0.o%s;pie:Scrt1.o%s;static:crt0.o%s;:crt1.o%s}} \ + "%{!shared: %{pg|p|profile:%{static:gcrt0.o%s;:gcrt1.o%s};pie:Scrt1.o%s;static:crt0.o%s;:crt1.o%s}} \ crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}" #else #define STARTFILE_SPEC \ - "%{!shared: %{pg|p|profile:gcrt0.o%s;static:crt0.o%s;:crt1.o%s}} \ + "%{!shared: %{pg|p|profile:%{static:gcrt0.o%s;:gcrt1.o%s};static:crt0.o%s;:crt1.o%s}} \ crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}" #endif