[PATCH] Fix PR optimization/12085
Eric Botcazou
ebotcazou@libertysurf.fr
Wed Dec 17 09:53:00 GMT 2003
> Is it "valid Objective-C"? Some testcases in the objc testsuite produce
> CALL_EXPR trees with a cast to a non-compatible function type.
Attached is a patch that passes the objc testsuite. Note that objc_comptypes
appears to do nothing for function types and always return -1 (so the
testcase compiles). If I use comptypes for objc, I get several testsuite
failures.
2003-12-17 Eric Botcazou <ebotcazou@libertysurf.fr>
PR c/12085
* c-typeck.c (build_function_call): Issue an error if a
function is called through an incompatible prototype.
2003-12-17 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.dg/cast-function-1.c: New test.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr12085-3.diff
Type: text/x-diff
Size: 1078 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20031217/188db37f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cast-function-1.c
Type: text/x-csrc
Size: 294 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20031217/188db37f/attachment-0001.bin>
More information about the Gcc-patches
mailing list