[Hurd] Specs maintenance
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 29 Mar 2016 21:17:53 +0000 (23:17 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Tue, 29 Mar 2016 21:17:53 +0000 (23:17 +0200)
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

gcc/ChangeLog
gcc/config/gnu.h
gcc/config/i386/gnu.h

index 866531fe021442daab0d2f14283fd889eee86a3e..37e250412e673e44a49042e9e1d6f6657ae59279 100644 (file)
@@ -1,3 +1,9 @@
+2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * 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  <hubicka@ucw.cz>
 
        PR ipa/70283
index 1d98ec831e8cf44d63f365d1bbe1d9e956b26523..1dbecdae6dcefd67fe66a6a1de199a132cc4e42b 100644 (file)
@@ -19,14 +19,6 @@ You should have received a copy of the GNU General Public License
 along with GCC.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-/* 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 {                                       \
index c726d31f496b25b0875c82169c709b617c5c487c..9d2f94f69c2c2be9cde2691d8dc4bd73354c7cde 100644 (file)
@@ -27,11 +27,11 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
 #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