* config/bfin/linux.h (CPP_SPEC): Define.
authorWaldemar Brodkorb <wbx@openadk.org>
Tue, 29 Nov 2016 21:41:07 +0000 (21:41 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 29 Nov 2016 21:41:07 +0000 (14:41 -0700)
From-SVN: r242976

gcc/ChangeLog
gcc/config/bfin/linux.h

index 256d121..7ec2c07 100644 (file)
@@ -1,3 +1,7 @@
+2016-11-29  Waldemar Brodkorb  <wbx@openadk.org>
+
+       * config/bfin/linux.h (CPP_SPEC): Define.
+
 2016-11-29  Martin Sebor  <msebor@redhat.com>
 
        PR tree-optimization/78512
index c02ff44..0922493 100644 (file)
@@ -38,6 +38,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   "%{static:--start-group} %{mfast-fp:-lbffastfp} %G %L %{static:--end-group} \
    %{!static:%{mfast-fp:-lbffastfp} %G}"
 
+#undef CPP_SPEC
+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
+
 #undef LINK_SPEC
 #define LINK_SPEC "\
   %{mfdpic: -m elf32bfinfd -z text} %{shared} %{pie} \