This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
- From: "dann at godzilla dot ics dot uci dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Mar 2004 17:15:16 -0000
- Subject: [Bug optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level
- References: <20040218082017.14187.dann@godzilla.ics.uci.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dann at godzilla dot ics dot uci dot edu 2004-03-12 17:15 -------
Interestingly the following code is optimized:
#include <stdlib.h>
extern int foo (int * , int *);
void bar1 (void)
{
int * arr1 = malloc (12);
int * arr2 = malloc (12);
arr1[0] = 1;
arr2[0] = 1;
if (arr1[0] != 1)
link_error ();
foo (arr1, arr2);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187