[PR41276, PR41307] don't leak VALUEs into VAR_LOCATION NOTEs

Alexandre Oliva aoliva@redhat.com
Tue Sep 8 22:40:00 GMT 2009


On Sep  8, 2009, Jakub Jelinek <jakub@redhat.com> wrote:

> I think this still isn't right, whenever we shallow_copy_rtx (orig),
> its SUBREG_REG will still be invalidly shared (think of MEM with some fancy
> address inside it, could even have VALUE in its address and leak to
> dwarf2out).

Agreed.  Taking orig without VALUE substitution is never right.

> The important question is, do we want less pedantic rules for SUBREGs
> in DEBUG_INSNs?

No reason not to.

Here's what I'm testing.  Ok to install if it passes regtesting?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vta-cselib-subreg-of-value-more-pr41276.patch
Type: text/x-diff
Size: 4837 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090908/364ecc2b/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