public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/49516] New: SRA generates memory references into its replacements
@ 2011-06-23 13:48 jamborm at gcc dot gnu.org
  2011-06-23 13:55 ` [Bug tree-optimization/49516] " jamborm at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jamborm at gcc dot gnu.org @ 2011-06-23 13:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49516

           Summary: SRA generates memory references into its replacements
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jamborm@gcc.gnu.org


When SRA tries to modify an assignment where on one side it should put
one new scalar replacement but the other is actually an aggregate with
a number of replacements for it, it will generate a MEM-REF into the
former replacement which can lead to miscompilations.

Originally reported here by Xinliang David Li:
http://gcc.gnu.org/ml/gcc-patches/2011-06/msg01380.html

I have only slightly changed the original testcase so that it does not
require any includes and will attach it shortly.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-06-30 13:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-23 13:48 [Bug tree-optimization/49516] New: SRA generates memory references into its replacements jamborm at gcc dot gnu.org
2011-06-23 13:55 ` [Bug tree-optimization/49516] " jamborm at gcc dot gnu.org
2011-06-23 19:57 ` jamborm at gcc dot gnu.org
2011-06-24 13:28 ` jamborm at gcc dot gnu.org
2011-06-24 13:36 ` jamborm at gcc dot gnu.org
2011-06-29 12:56 ` jamborm at gcc dot gnu.org
2011-06-29 13:13 ` jamborm at gcc dot gnu.org
2011-06-30 13:24 ` dnovillo at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).