From: Mike Frysinger Date: Thu, 28 May 2015 14:07:04 +0000 (+0000) Subject: microblaze-linux: add missing cpp specs X-Git-Tag: releases/gcc-4.9.3~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18a6f9314610b04388a0ee3896baa3c1a60697ae;p=thirdparty%2Fgcc.git microblaze-linux: add missing cpp specs Define CPP_SPEC for microblaze linux targets so that -posix & -pthread work like on all other linux targets. Discovered via Gentoo bug https://bugs.gentoo.org/543114 From-SVN: r223827 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c575a16b7ae3..39c5eb54ded8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-05-28 Mike Frysinger + + * config/microblaze/linux.h (CPP_SPEC): Define. + 2015-05-28 Mike Frysinger * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when diff --git a/gcc/config/microblaze/linux.h b/gcc/config/microblaze/linux.h index 48038d560a9c..ffe1aa6cf181 100644 --- a/gcc/config/microblaze/linux.h +++ b/gcc/config/microblaze/linux.h @@ -22,6 +22,9 @@ #undef TARGET_SUPPORTS_PIC #define TARGET_SUPPORTS_PIC 1 +#undef CPP_SPEC +#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" + #undef TLS_NEEDS_GOT #define TLS_NEEDS_GOT 1