OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [alias-1.c] - Blame information for rev 154

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-options "-O2 -fargument-noalias-global -fdump-tree-optimized" } */
2
int f;
3
void link_error ();
4
 
5
void g(int *i)
6
{
7
  *i = 0;
8
  f = 1;
9
  if (*i != 0)
10
    link_error ();
11
}
12
 
13
 
14
/* We should have removed the link_error on the tree level as we told GCC
15
   that *i cannot point to f via the option -fargument-noalias-global. */
16
/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */
17
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.