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
Tighten condition in vect/pr85586.c (PR 85654)
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Warray-bounds-20.c
blob
727b7997abc6ebbda6b8cb83ff74a1dedc2404e3
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Warray-bounds" } */
3
4
int
t
[
1
];
5
int
fct
(
int
r
,
long
e
)
6
{
7
int
d
=
0
;
8
if
(
r
==
4
)
9
r
=
1
;
10
if
(
e
< -
52
)
11
d
=
r
==
0
?
1
:
2
;
12
else
13
{
14
int
i
,
n
=
53
;
15
if
(
__builtin_expect
(
e
<
0
,
0
))
16
n
+=
e
;
17
for
(
i
=
1
;
i
<
n
/
64
+
1
;
i
++)
18
t
[
i
] =
0
;
/* { dg-bogus "array bounds" } */
19
}
20
return
d
;
21
}