[PR debug/46931] don't crash propagating removed DEFs into debug stmts
Alexandre Oliva
aoliva@redhat.com
Tue Dec 28 21:09:00 GMT 2010
On Dec 26, 2010, Richard Guenther <richard.guenther@gmail.com> wrote:
> Yeah. But wasn't there a correctness problem with propagating as well?
> the the debug info will refer to the wrong value of i. Remember that
> we can have overlapping life ranges for SSA names but not for the
> decls for which we emit debug info.
The value expressions in debug stmts refer to the SSA names, so there's
no problem, at least in this regard. The overlapping ranges, if
expanded to different pseudos, it will get the correct RTL expressions;
if no longer available at a point, it should not get any RTL expression
(although it would in theory be possible to do better, looking for some
equivalence).
Now, I don't think the latter has been actually verified, especially
after the change that made us go straight from SSA to RTL, so if you
have evidence that we're doing it wrong, I'd love to see it.
>> Regstrapping your proposed patch now.
> It's ok to commit if it works (with your testcase).
Here's what I installed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tree-vect-loop-manip-pr46931.patch
Type: text/x-diff
Size: 1004 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101228/8b03a960/attachment.bin>
-------------- next part --------------
--
Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/ FSF Latin America board member
Free Software Evangelist Red Hat Brazil Compiler Engineer
More information about the Gcc-patches
mailing list