]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
microblaze-linux: add missing cpp specs
authorMike Frysinger <vapier@gentoo.org>
Thu, 28 May 2015 14:06:03 +0000 (14:06 +0000)
committerMike Frysinger <vapier@gcc.gnu.org>
Thu, 28 May 2015 14:06:03 +0000 (14:06 +0000)
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: r223825

gcc/ChangeLog
gcc/config/microblaze/linux.h

index f11cdd80b7e4d80635a92e9ae37dc6fafddfc865..d466b916d2baa1bcd298d07d3db9740ae004edef 100644 (file)
@@ -1,3 +1,7 @@
+2015-05-28  Mike Frysinger  <vapier@gentoo.org>
+
+       * config/microblaze/linux.h (CPP_SPEC): Define.
+
 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
 
        * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
index a7b7a1adcfa56c0d30cbe6ec68adb2fcf1726849..ac78e9afad3696b10415fbf2c7b6e6c98e778648 100644 (file)
@@ -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