This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: fix ObjC regression (sort of)


The ObjC representation of calls to objc_msgSend was
changed to use OBJ_TYPE_REF rather than NOP_EXPR. Nobody
taught get_callee_fndecl about this change, which means that such
calls are treated as calls through a pointer. This is wrong and a regression.
However, I don't know of any user-visible effect this has, so I can't
provide a testcase, and you may consider this isn't suitable for stage 3.
(I know about it because it broke a local Apple patch.) Built on
darwin and ObjC testsuite run (change is local to ObjC bits).


2004-12-21 Dale Johannesen <dalej@apple.com>

        * objc/objc-act.c (objc_get_callee_fndecl):  New.
        * objc/objc-act.h:  Declare it.
        * objc/objc-lang.c (LANG_HOOKS_GET_CALLEE_FNDECL):  Use it.

Attachment: diffs.txt
Description: Text document



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]