aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-11-29 21:41:07 +0000
committerJeff Law <law@gcc.gnu.org>2016-11-29 14:41:07 -0700
commit80a3051292b8c36ab22377a36c9fda47c7fd1d5a (patch)
tree0cc12ec7ae400d143b247a78be365b599e541fa9
parent01a4551ceba1063466ab1cbd3e2f4a8df31b2358 (diff)
downloadgcc-80a3051292b8c36ab22377a36c9fda47c7fd1d5a.zip
gcc-80a3051292b8c36ab22377a36c9fda47c7fd1d5a.tar.gz
gcc-80a3051292b8c36ab22377a36c9fda47c7fd1d5a.tar.bz2
* config/bfin/linux.h (CPP_SPEC): Define.
From-SVN: r242976
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/bfin/linux.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 256d121..7ec2c07 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/bfin/linux.h b/gcc/config/bfin/linux.h
index c02ff44..0922493 100644
--- a/gcc/config/bfin/linux.h
+++ b/gcc/config/bfin/linux.h
@@ -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} \