public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/24117] New: [4.1 Regression] DCE kills call-clobbered part of structure
@ 2005-09-29 10:03 rguenth at gcc dot gnu dot org
  2005-09-29 13:29 ` [Bug tree-optimization/24117] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-09-29 10:03 UTC (permalink / raw)
  To: gcc-bugs

For

typedef struct  {
  int x;
  int z;
} Foo_t;

char *xm;
void bar(void);

void foo(void)
{
  Foo_t x;
  x.x = 1;
  x.z = 2;
  xm = (char *)&x;
  bar();
}

where we decompose the struct for aliasing, the store to x.z is killed,
which is wrong.

Testcase is reduced from fortranio_2.f90 test.  The fortran frontend
does such things for IO.  The fortranio_2.f90 failure get's triggered
by the array-aliasing patches as it's sturcture contains an array and
only with the patches we start decomposing the structure at all.

-- 
           Summary: [4.1 Regression] DCE kills call-clobbered part of
                    structure
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: wrong-code, alias
          Severity: normal
          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=24117


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

end of thread, other threads:[~2005-09-29 19:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-29 10:03 [Bug tree-optimization/24117] New: [4.1 Regression] DCE kills call-clobbered part of structure rguenth at gcc dot gnu dot org
2005-09-29 13:29 ` [Bug tree-optimization/24117] " pinskia at gcc dot gnu dot org
2005-09-29 19:38 ` [Bug tree-optimization/24117] [4.1 Regression] struct is not marked fully as call clobbered cvs-commit at gcc dot gnu dot org
2005-09-29 19:39 ` dberlin 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).