diff options
author | aldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-05 21:10:18 +0000 |
---|---|---|
committer | aldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-05 21:10:18 +0000 |
commit | 55ce3e896d5f96a31b01e1c1a9691b5282d23f2c (patch) | |
tree | 6f343097a679619b580e33a5f705a73b6b4bd92d /gcc/config/darwin-c.c | |
parent | 41f7ed9c919b6db73b6751f2d8388cd4820105e3 (diff) | |
download | ppe42-gcc-55ce3e896d5f96a31b01e1c1a9691b5282d23f2c.tar.gz ppe42-gcc-55ce3e896d5f96a31b01e1c1a9691b5282d23f2c.zip |
PR target/54160
* config/t-darwin (darwin-c.o): Depend on $(CPP_INTERNAL_H).
* config/darwin-c.c (darwin_cpp_builtins): Only set __OBJC2__
when in obj mode.
Include libcpp/internal.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194227 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin-c.c')
-rw-r--r-- | gcc/config/darwin-c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/darwin-c.c b/gcc/config/darwin-c.c index 8e48c30575a..ec8aa9ccf09 100644 --- a/gcc/config/darwin-c.c +++ b/gcc/config/darwin-c.c @@ -38,6 +38,7 @@ along with GCC; see the file COPYING3. If not see #include "c-family/c-target.h" #include "c-family/c-target-def.h" #include "cgraph.h" +#include "../../libcpp/internal.h" /* Pragmas. */ @@ -632,7 +633,7 @@ darwin_cpp_builtins (cpp_reader *pfile) builtin_define ("__weak="); } - if (flag_objc_abi == 2) + if (CPP_OPTION (pfile, objc) && flag_objc_abi == 2) builtin_define ("__OBJC2__"); } |