[PATCH] Fix useless_type_conversion_p with incomplete types (PR middle-end/38505)

Richard Guenther richard.guenther@gmail.com
Mon Dec 29 16:32:00 GMT 2008


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
>



More information about the Gcc-patches mailing list