gcc.c-torture/unsorted/pass.c: what is it supposed to test?
law@redhat.com
law@redhat.com
Fri Feb 27 18:55:00 GMT 2004
In message <1077906408.15336.80.camel@localhost.localdomain>, Diego Novillo wri
tes:
>On Fri, 2004-02-27 at 13:17, law@redhat.com wrote:
>
>> To do anything "bad" with such a node it would have to be casted back to
>> a pointer, then dereferenced. If that happens then I'm pretty sure all
>> the right things would happen.
>>
>Ah, but the points-to chaser will see a pointer being assigned into a
>non-pointer scalar and throw its hands up, saying "I don't know what
>you're pointing to". TBAA will then DTRT based on the types, but we
>will lose precision. Not the end of the world, of course.
I don't mind losing precision in this case -- I would expect that
casting pointers to integers is done a lot less often these days
than it used to be.
jeff
More information about the Gcc
mailing list