illegally shared subreg
Stuart Hastings
stuart@apple.com
Fri Oct 11 12:15:00 GMT 2002
On Friday, Oct 11, 2002, at 12:04 US/Pacific, Geoff Keating wrote:
>> Date: Fri, 11 Oct 2002 10:31:40 -0400 (EDT)
>> From: "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu>
>
>> Geoff/Stuart,
>>
>> This patch:
>>
>>> 2002-10-10 Stuart Hastings <stuart@apple.com>
>>>
>>> * cse.c (struct cse_reg_info): Add subreg_ticked.
>>> (SUBREG_TICKED): New.
>>> (get_cse_reg_info): Initialize SUBREG_TICKED.
>>> (mention_regs): Use it.
>>> (invalidate): Set SUBREG_TICKED.
>>> (invalidate_for_call): Likewise.
>>> (addr_affects_sp_p): Likewise.
>>
>> can't be right. It causes these new warnings:
>>
>>> cse.c:1226: warning: comparison between pointer and integer
>>> cse.c:1233: warning: assignment makes integer from pointer without a
>>> cast
>>
>> because you've got an int on one side and an rtx on the other.
>> (Irix6-cc gets a hard error on these lines instead of a warning.)
>
> *sigh*. The code would have worked in nearly all circumstances, since
> REGs are usually shared. I will commit a patch (following Graham's
> suggestion) to fix the problem shortly.
My apologies for causing the problem, and thanks to Kaveh, Graham, and
Geoff for resolving it so quickly.
stuart hastings
Apple Computer
More information about the Gcc-patches
mailing list