diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-11 19:55:09 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-11 19:55:09 +0000 |
commit | b9a1687032fc1afb5f4e9d8dfa775a134abe21ba (patch) | |
tree | 304b794b6f6f0af1f79b00f4166b897337141fac /gcc/objc | |
parent | 74fcb726ed12f7bce6ef94080d91b4e3cac61824 (diff) | |
download | gcc-b9a1687032fc1afb5f4e9d8dfa775a134abe21ba.tar.gz |
Convert standard builtin functions from being arrays to using a functional interface
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179820 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/objc/objc-gnu-runtime-abi-01.c | 2 | ||||
-rw-r--r-- | gcc/objc/objc-next-runtime-abi-01.c | 2 | ||||
-rw-r--r-- | gcc/objc/objc-next-runtime-abi-02.c | 2 |
4 files changed, 14 insertions, 3 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index c31ba7fb6a6..e195ed5dd1b 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,14 @@ +2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com> + + * objc-next-runtime-abi-01.c (objc_build_exc_ptr): Delete old + interface with two parallel arrays to hold standard builtin + declarations, and replace it with a function based interface that + can support creating builtins on the fly in the future. Change + all uses, and poison the old names. Make sure 0 is not a + legitimate builtin index. + * objc-next-runtime-abi-02.c (objc_build_exc_ptr): Ditto. + * objc-gnu-runtime-abi-01.c (objc_build_exc_ptr): Ditto. + 2011-07-19 Richard Guenther <rguenther@suse.de> * objc-next-runtime-abi-02.c (objc_v2_build_ivar_ref): diff --git a/gcc/objc/objc-gnu-runtime-abi-01.c b/gcc/objc/objc-gnu-runtime-abi-01.c index fef5355c6a6..f136828f60a 100644 --- a/gcc/objc/objc-gnu-runtime-abi-01.c +++ b/gcc/objc/objc-gnu-runtime-abi-01.c @@ -2226,7 +2226,7 @@ static tree objc_build_exc_ptr (struct objc_try_context **x ATTRIBUTE_UNUSED) { tree t; - t = built_in_decls[BUILT_IN_EH_POINTER]; + t = builtin_decl_explicit (BUILT_IN_EH_POINTER); t = build_call_expr (t, 1, integer_zero_node); return fold_convert (objc_object_type, t); } diff --git a/gcc/objc/objc-next-runtime-abi-01.c b/gcc/objc/objc-next-runtime-abi-01.c index 6183a21e5e8..c1e60b392d5 100644 --- a/gcc/objc/objc-next-runtime-abi-01.c +++ b/gcc/objc/objc-next-runtime-abi-01.c @@ -2919,7 +2919,7 @@ objc_build_exc_ptr (struct objc_try_context **cur_try_context) else { tree t; - t = built_in_decls[BUILT_IN_EH_POINTER]; + t = builtin_decl_explicit (BUILT_IN_EH_POINTER); t = build_call_expr (t, 1, integer_zero_node); return fold_convert (objc_object_type, t); } diff --git a/gcc/objc/objc-next-runtime-abi-02.c b/gcc/objc/objc-next-runtime-abi-02.c index 9ef08f01576..56df2afaf0c 100644 --- a/gcc/objc/objc-next-runtime-abi-02.c +++ b/gcc/objc/objc-next-runtime-abi-02.c @@ -3676,7 +3676,7 @@ static tree objc_build_exc_ptr (struct objc_try_context **x ATTRIBUTE_UNUSED) { tree t; - t = built_in_decls[BUILT_IN_EH_POINTER]; + t = builtin_decl_explicit (BUILT_IN_EH_POINTER); t = build_call_expr (t, 1, integer_zero_node); return fold_convert (objc_object_type, t); } |