comparison gcc/testsuite/gcc.dg/uninit-pr81897.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wuninitialized" } */
3
4 int f(void);
5 static inline void rcu_read_unlock(void)
6 {
7 static _Bool __warned;
8 if (f() && !__warned && !f()) {
9 __warned = 1;
10 }
11 }
12 int inet6_rtm_getroute(void)
13 {
14 int dst;
15 int fibmatch = f();
16
17 if (!fibmatch)
18 dst = f();
19 rcu_read_unlock();
20 if (fibmatch)
21 dst = 0;
22
23 return dst;
24 }