public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/22555] New: array in struct disables salias subvars for other fields
@ 2005-07-19  8:58 rguenth at gcc dot gnu dot org
  2005-07-19  9:00 ` [Bug tree-optimization/22555] " rguenth at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-07-19  8:58 UTC (permalink / raw)
  To: gcc-bugs

struct {
        int i;
        int j;
        int x[2];
} a;

int foo(void)
{
        a.i = 1;
        a.j = 0;
        a.x[0] = 5;
        return a.i + a.j;
}

does not get optimized, because salias disables subvars for a
because it contains an array.  I have a simple patch in testing.

-- 
           Summary: array in struct disables salias subvars for other fields
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: missed-optimization, alias
          Severity: enhancement
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <bug-22555-10053@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2006-01-14 14:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-19  8:58 [Bug tree-optimization/22555] New: array in struct disables salias subvars for other fields rguenth at gcc dot gnu dot org
2005-07-19  9:00 ` [Bug tree-optimization/22555] " rguenth at gcc dot gnu dot org
2005-07-22 18:22 ` pinskia at gcc dot gnu dot org
2005-08-11 13:39 ` rguenth at gcc dot gnu dot org
2005-09-07 15:25 ` cvs-commit at gcc dot gnu dot org
     [not found] <bug-22555-10053@http.gcc.gnu.org/bugzilla/>
2006-01-05 15:30 ` rguenth at gcc dot gnu dot org
2006-01-05 15:32 ` rguenth at gcc dot gnu dot org
2006-01-14 14:30 ` rguenth at gcc dot gnu dot 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).