This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: New flag: TREE_THIS_NOTRAP
>>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:
rth> So the NOTRAP bit is on the pointer and not the INDIRECT_REF?
Andrew> It has to be doesn't it? The trapping in
Andrew> *exp
Andrew> is a property of exp, not a property of *.
Suppose for example we have a sequence of field assignments via a
local variable:
point *var = ...;
var->x = 1;
var->y = 1;
The first `*var' might trap, but the second one can't.
But in both cases wouldn't this be INDIRECT_REF<VAR_DECL> -- with the
same argument? So if we set TREE_THIS_NOTRAP, we would end up with
an incorrect answer.
Am I misunderstanding?
Tom