Patch: fix ObjC regression (sort of)

Dale Johannesen dalej@apple.com
Tue Dec 21 22:25:00 GMT 2004


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.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20041221/a71d5dc3/attachment.txt>
-------------- next part --------------



More information about the Gcc-patches mailing list