c-common.h (objc_lookup_ivar): Add second parameter to prototype.
authorZiemowit Laski <zlaski@apple.com>
Sun, 31 Oct 2004 06:17:55 +0000 (06:17 +0000)
committerZiemowit Laski <zlaski@gcc.gnu.org>
Sun, 31 Oct 2004 06:17:55 +0000 (06:17 +0000)
commit16b34ad6620d4c6c692bdc5c739ba4241987d346
treefd41069a69da16dfa7e8da375572cb0cbfc16ce8
parent7fe63418838e0fade217715817d1349e206d5117
c-common.h (objc_lookup_ivar): Add second parameter to prototype.

[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.

From-SVN: r89912
gcc/ChangeLog
gcc/c-common.h
gcc/c-typeck.c
gcc/objc/ChangeLog
gcc/objc/objc-act.c
gcc/stub-objc.c
gcc/testsuite/ChangeLog
gcc/testsuite/objc.dg/local-decl-2.m [new file with mode: 0644]