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]

Re: ObjC fixes for --enable-mapped-location



On 24 Sep 2004, at 13.44, Zack Weinberg wrote:


Ziemowit Laski <zlaski@apple.com> writes:

Here is a revised patch which includes all of the revisions you asked
for.  I also kluged a test, proto-lossage-4.m, which was getting
excess errors on 64-bit targets -- it is not clear to me what that
test is playing at, sending messages to int, but the most expedient
fix was to make it long int instead (which is the same width as a
pointer on all supported targets).

The test is checking for graceful handling of messages being sent to nonsensical types. By changing the test the way you did, I think you are just masking the underlying problem.

No, I don't think it is. The "invalid receiver type" diagnostic is still being issued. All this change does is suppress the diagnostic

warning: cast to pointer from integer of different size

which would appear on 64- but not 32-bit systems.

Ok, that makes sense.


--Zem


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