repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-fre-37.c
blob
d847e8d98caf36385cfdd325a29bbf22b87d261a
1
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-fre1" } */
3
4
int
a
[
256
];
5
int
*
b
, *
c
;
6
void
foo
(
int
i
,
int
j
)
7
{
8
b
= &
a
[
i
+
j
];
9
c
= &
a
[
i
+
j
];
10
}
11
12
/* We should remove the redundant address computation. */
13
14
/* { dg-final { scan-tree-dump-times " = &a" 1 "fre1" } } */