This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/14187] [tree-ssa] restricted pointers should not alias on the tree level


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]