Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dom-thread-10.c
blob4acf580e1d703bf8239b7ed188c96739ac717d40
1 /* PR 65177 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3" } */
5 typedef struct p7_profile_s {} P7_PROFILE;
6 enum p7t_statetype_e {
7 p7T_S = 4, p7T_N = 5, p7T_E = 7, p7T_C = 8, p7T_J = 10, };
8 typedef struct p7_trace_s {} P7_TRACE;
9 typedef struct p7_gmx_s {
10 int L;
11 } P7_GMX;
12 static inline int select_c(const P7_PROFILE *gm, const P7_GMX *pp, const P7_GMX *gx, int i) {
13 float path[2];
14 return ((path[0] > path[1]) ? p7T_C : p7T_E);
16 void p7_GOATrace(const P7_PROFILE *gm, const P7_GMX *pp, const P7_GMX *gx, P7_TRACE *tr) {
17 int i = gx->L;
18 int sprv, scur;
19 while (sprv != p7T_S) {
20 switch (sprv) { case p7T_C: scur = select_c(gm, pp, gx, i); break; }
21 if ( (scur == p7T_N || scur == p7T_J || scur == p7T_C) && scur == sprv) i--;
22 sprv = scur;