This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/26258] [4.1/4.2 Regression] Wrong alias information for struct
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Feb 2006 15:37:29 -0000
- Subject: [Bug tree-optimization/26258] [4.1/4.2 Regression] Wrong alias information for struct
- References: <bug-26258-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-02-13 15:37 -------
Testcase for the mainline:
typedef struct Foo { int a; int b; }Foo;
Foo foo(Foo first, Foo last, bool ret_first)
{
Foo t;
Foo *t1 = (ret_first ? &first : &last);
first.a = 2;
last.b = 3;
t.a = t1->a;
t.b = t1->b;
t.a += first.a;
t.b += last.b;
return t;
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-02-13 15:37:29
date| |
Summary|[4.1 Regression] Wrong alias|[4.1/4.2 Regression] Wrong
|information for struct |alias information for struct
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26258