This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23086] aliasing information in gcc.dg/tree-ssa/20030807-7.c should be fixed properly
- 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: 11 Jan 2006 01:08:59 -0000
- Subject: [Bug tree-optimization/23086] aliasing information in gcc.dg/tree-ssa/20030807-7.c should be fixed properly
- References: <bug-23086-91@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from pinskia at gcc dot gnu dot org 2006-01-11 01:08 -------
Here is a reduced testcase, which I found independently:
void link_error(void);
int *t;
int g(int *a)
{
t = a;
*a = 2;
}
void f(int *a)
{
int b;
b = 1;
g(&b);
b = 2;
*a = 1; <--- a cannot point to b here.
if (b == 2)
link_error();
}
int main(void)
{
int t;
f(&t);
return 0;
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2005-10-30 17:24:24 |2006-01-11 01:08:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23086