From: Mike Frysinger Date: Thu, 28 May 2015 14:07:23 +0000 (+0000) Subject: nios2-linux: add missing cpp specs X-Git-Tag: releases/gcc-4.9.3~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f797f096c50ea057d60d427ce2020076caa567f5;p=thirdparty%2Fgcc.git nios2-linux: add missing cpp specs Define CPP_SPEC for nios2 linux targets so that -posix & -pthread work like on all other linux targets. Discovered via Gentoo bug https://bugs.gentoo.org/543114 From-SVN: r223828 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 39c5eb54ded8..a80cc2be4b94 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-05-28 Mike Frysinger + + * config/nios2/linux.h (CPP_SPEC): Define. + 2015-05-28 Mike Frysinger * config/microblaze/linux.h (CPP_SPEC): Define. diff --git a/gcc/config/nios2/linux.h b/gcc/config/nios2/linux.h index 3e77ca6c90fe..1b3fd992bdf8 100644 --- a/gcc/config/nios2/linux.h +++ b/gcc/config/nios2/linux.h @@ -26,6 +26,9 @@ } \ while (0) +#undef CPP_SPEC +#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" + #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-nios2.so.1" #undef LINK_SPEC