This is the mail archive of the gcc@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: Serious code generation/optimisation bug (I think)


Paolo Bonzini wrote:
>>>> Not for PTA though ;)
>>> Care to expand?
>> PTA tracks points-to-NULL as pointing to "nothing".
>> This probably should be conditional on -fdelete-null-pointer-checks.
>> Otherwise *NULL and *anything won't alias.
> 
> Yes, you're right.  I'll see if I can construct a testcase and a patch.
> 
> BTW, I was thinking of not doing the optimization anyway on volatile
> pointers.  What do you think?

Indeed not.  And with -fnon-call-exceptions we can recover from null
pointer traps; I don't know what would happen in this case.

Andrew.


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