public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/24888]  New: duplication of local variables after versioning/inlining
@ 2005-11-16 10:11 razya at il dot ibm dot com
  2005-11-16 11:46 ` [Bug tree-optimization/24888] " rguenth at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: razya at il dot ibm dot com @ 2005-11-16 10:11 UTC (permalink / raw)
  To: gcc-bugs

For the testcase:
/home/razya/mainline_new_3/gcc/gcc/testsuite/gcc.c-torture/execute/20021111-1.c,
when using fipa-cp, a new vfersion is created
for aim_callhandler(). the static variable is copied twice into the
unexpanded_var_list of the versioned function. 
Looking at this test, even without enabling ipa-cp, the local variables
multiplies after inlining.(as shown in the dump below)
For example :
in 20021111-1.c.t23.alias1:

aim_callhandler (sess, conn, family, type)
{
  int D.1449;
  int sess;
  int conn;
  short unsigned int family;
  short unsigned int type;
  static int i = 0;
  int D.1457;
  int D.1456;
  int i.0;
  int D.1458;
  int D.1449;
  int D.1435;
  int sess;
  int conn;
  short unsigned int family;
  short unsigned int type;
  static int i = 0;
  int D.1443;
  int D.1442;
  int i.0;
  int D.1444;
  int D.1435;
  int D.1421;
  int sess;
  int conn;
  short unsigned int family;
  short unsigned int type;
  static int i = 0;
  int D.1429;
  int D.1428;
  int i.0;
  int D.1430;
  int D.1421;
  int D.1407;
  int sess;
  int conn;
  short unsigned int family;
  short unsigned int type;
  static int i = 0;
  int D.1415;
  int D.1414;
  int i.0;


-- 
           Summary: duplication of local variables after versioning/inlining
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: razya at il dot ibm dot com
 GCC build triplet: powerpc-suse-linux
  GCC host triplet:  powerpc-suse-linux
GCC target triplet: powerpc-suse-linux


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


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

end of thread, other threads:[~2006-08-20  7:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-16 10:11 [Bug tree-optimization/24888] New: duplication of local variables after versioning/inlining razya at il dot ibm dot com
2005-11-16 11:46 ` [Bug tree-optimization/24888] " rguenth at gcc dot gnu dot org
2005-11-16 12:45 ` razya at il dot ibm dot com
2006-07-22 13:28 ` hubicka at gcc dot gnu dot org
2006-07-22 22:50 ` patchapp at dberlin dot org
2006-08-04 17:03 ` hubicka at gcc dot gnu dot org
2006-08-05  8:01 ` bonzini at gnu dot org
2006-08-05  8:01 ` bonzini at gnu dot org
2006-08-20  7:35 ` patchapp at dberlin 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).