diff options
author | Stan Shebs <shebs@apple.com> | 2002-08-16 23:31:06 +0000 |
---|---|---|
committer | Stan Shebs <shebs@gcc.gnu.org> | 2002-08-16 23:31:06 +0000 |
commit | 8aa5074e79a708a7ef26c5931a1f6485a0726042 (patch) | |
tree | 0feaf1d60d2fdc7c20d36fa3d93b48a48eb425f7 /gcc/c-common.c | |
parent | ca75573a5d8f17e1baa009caef0ea72bcece3932 (diff) | |
download | gcc-8aa5074e79a708a7ef26c5931a1f6485a0726042.zip gcc-8aa5074e79a708a7ef26c5931a1f6485a0726042.tar.gz gcc-8aa5074e79a708a7ef26c5931a1f6485a0726042.tar.bz2 |
c-common.c (cb_register_builds): Define __NEXT_RUNTIME__ for ObjC with -fnext-runtime.
* c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
for ObjC with -fnext-runtime.
* doc/cpp.texi: Document it.
* objc/execute/selector-1.m: Add __NEXT_RUNTIME__ case.
From-SVN: r56390
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 2268d72..74224af 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -4745,6 +4745,10 @@ cb_register_builtins (pfile) if (!flag_signed_char) cpp_define (pfile, "__CHAR_UNSIGNED__"); + /* Make the choice of ObjC runtime visible to source code. */ + if (flag_objc && flag_next_runtime) + cpp_define (pfile, "__NEXT_RUNTIME__"); + /* A straightforward target hook doesn't work, because of problems linking that hook's body when part of non-C front ends. */ # define preprocessing_asm_p() (cpp_get_options (pfile)->lang == CLK_ASM) |