From da89a4dcdf75bc3134f73520535c949bbbb0c845 Mon Sep 17 00:00:00 2001 From: law Date: Tue, 29 Nov 2016 21:41:07 +0000 Subject: [PATCH] * config/bfin/linux.h (CPP_SPEC): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242976 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/config/bfin/linux.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 256d121c77dd5..7ec2c074cc626 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-11-29 Waldemar Brodkorb + + * config/bfin/linux.h (CPP_SPEC): Define. + 2016-11-29 Martin Sebor PR tree-optimization/78512 diff --git a/gcc/config/bfin/linux.h b/gcc/config/bfin/linux.h index c02ff44c30ab4..09224937a165a 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} \