public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/13954] New: [tree-ssa] SRA does not work for classes that use inheritance
@ 2004-01-31 21:15 dann at godzilla dot ics dot uci dot edu
  2004-01-31 21:23 ` [Bug optimization/13954] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: dann at godzilla dot ics dot uci dot edu @ 2004-01-31 21:15 UTC (permalink / raw)
  To: gcc-bugs

SRA does not work for classes that use inheritance.
This is a known issue, filed so that it can be tracked. 

/* { dg-do compile } */ 
/* { dg-options "-O1 -fdump-tree-optimized" } */

void link_error (void);

class base
{
};

class teststruct: public base
{
public:
  double d;
  char f1;
};

void
copystruct1 (teststruct param)
{
  teststruct local;
  param.f1 = 0;
  local = param;
  if (local.f1 != 0)
    link_error ();
}

/* There should be no reference to link_error. */
/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */

-- 
           Summary: [tree-ssa] SRA does not work for classes that use
                    inheritance
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dann at godzilla dot ics dot uci dot edu
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2004-12-16  7:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-31 21:15 [Bug optimization/13954] New: [tree-ssa] SRA does not work for classes that use inheritance dann at godzilla dot ics dot uci dot edu
2004-01-31 21:23 ` [Bug optimization/13954] " pinskia at gcc dot gnu dot org
2004-02-01  0:04 ` dann at godzilla dot ics dot uci dot edu
2004-02-01  7:39 ` dnovillo at gcc dot gnu dot org
2004-02-03  3:25 ` rth at gcc dot gnu dot org
2004-02-23 16:29 ` pinskia at gcc dot gnu dot org
2004-05-15 16:25 ` [Bug c++/13954] " pinskia at gcc dot gnu dot org
2004-05-24 14:52 ` pinskia at gcc dot gnu dot org
2004-06-29 21:27 ` rth at gcc dot gnu dot org
2004-06-29 21:49 ` rth at gcc dot gnu dot org
2004-06-29 22:02 ` rth at gcc dot gnu dot org
2004-06-30  3:06 ` giovannibajo at libero dot it
2004-06-30 20:13 ` rth at gcc dot gnu dot org
2004-12-16  7:32 ` rth 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).