This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix useless_type_conversion_p with incomplete types (PR middle-end/38505)
On Wed, Dec 17, 2008 at 4:42 PM, Ian Lance Taylor <iant@google.com> wrote:
> Jakub Jelinek <jakub@redhat.com> writes:
>
>> 2008-12-15 Jakub Jelinek <jakub@redhat.com>
>>
>> PR middle-end/38505
>> * tree-ssa.c (useless_type_conversion_p_1): Return
>> false if inner_type is incomplete and outer_type is complete.
>>
>> * gcc.c-torture/compile/pr38505.c: New test.
>
> This is OK.
I think the other patch is better. The important difference is only if we
de-reference a pointer type.
Richard.
> Thanks.
>
> Ian
>