diff options
author | zlaski <zlaski@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-31 06:17:55 +0000 |
---|---|---|
committer | zlaski <zlaski@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-31 06:17:55 +0000 |
commit | e913c82d52f267ae5b7e1e651c74b21482bd8f03 (patch) | |
tree | fd41069a69da16dfa7e8da375572cb0cbfc16ce8 /gcc/stub-objc.c | |
parent | 2a9fdfe18a6ba0d2c24542e8f2191b995fa92646 (diff) | |
download | gcc-e913c82d52f267ae5b7e1e651c74b21482bd8f03.tar.gz |
[gcc/ChangeLog]
2004-10-30 Ziemowit Laski <zlaski@apple.com>
* c-common.h (objc_lookup_ivar): Add second parameter to
prototype.
* c-typeck.c (build_external_ref): After looking up symbol,
pass it to objc_lookup_ivar() to decide whether it or the
ivar should be used, rather than deciding the issue locally.
* stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
which is simply returned in the non-ObjC case.
[gcc/objc/ChangeLog]
2004-10-30 Ziemowit Laski <zlaski@apple.com>
* objc-act.c (objc_lookup_ivar): The new OTHER parameter
contains the result of the ID lookup by the C or C++
front-end; in class methods, use OTHER if it exists;
in instance methods, use OTHER only if it is locally
declared.
[gcc/testsuite/ChangeLog]
2004-10-30 Ziemowit Laski <zlaski@apple.com>
* objc.dg/local-decl-1.m: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89912 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stub-objc.c')
-rw-r--r-- | gcc/stub-objc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/stub-objc.c b/gcc/stub-objc.c index 9e874a2507e..f01fd9b4249 100644 --- a/gcc/stub-objc.c +++ b/gcc/stub-objc.c @@ -46,9 +46,10 @@ objc_is_object_ptr (tree ARG_UNUSED (arg)) } tree -objc_lookup_ivar (tree ARG_UNUSED (arg)) +objc_lookup_ivar (tree other, tree ARG_UNUSED (arg)) { - return 0; + /* Just use whatever C/C++ found. */ + return other; } void |