annotate gcc/testsuite/g++.dg/debug/pr53466.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // { dg-do compile }
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
2 // { dg-options "-foptimize-sibling-calls -fcompare-debug -Wno-return-type" }
111
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 typedef union gimple_statement_d *gimple;
kono
parents:
diff changeset
5 typedef gimple gimple_seq_node;
kono
parents:
diff changeset
6 typedef struct {
kono
parents:
diff changeset
7 gimple_seq_node ptr;
kono
parents:
diff changeset
8 void *seq;
kono
parents:
diff changeset
9 void *bb;
kono
parents:
diff changeset
10 } gimple_stmt_iterator;
kono
parents:
diff changeset
11 struct gimple_statement_base {
kono
parents:
diff changeset
12 gimple next;
kono
parents:
diff changeset
13 };
kono
parents:
diff changeset
14 union gimple_statement_d {
kono
parents:
diff changeset
15 struct gimple_statement_base gsbase;
kono
parents:
diff changeset
16 };
kono
parents:
diff changeset
17 static inline gimple_stmt_iterator gsi_start_1 (gimple stmt)
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 gimple_stmt_iterator i;
kono
parents:
diff changeset
20 i.ptr = stmt;
kono
parents:
diff changeset
21 return i;
kono
parents:
diff changeset
22 }
kono
parents:
diff changeset
23 bool gimple_may_fallthru (gimple);
kono
parents:
diff changeset
24 static bool gimple_try_catch_may_fallthru (gimple stmt)
kono
parents:
diff changeset
25 {
kono
parents:
diff changeset
26 gimple_stmt_iterator i = gsi_start_1 (stmt);
kono
parents:
diff changeset
27 for (; i.ptr; i.ptr = i.ptr->gsbase.next)
kono
parents:
diff changeset
28 {
kono
parents:
diff changeset
29 if (gimple_may_fallthru (i.ptr))
kono
parents:
diff changeset
30 return true;
kono
parents:
diff changeset
31 }
kono
parents:
diff changeset
32 }
kono
parents:
diff changeset
33 bool gimple_stmt_may_fallthru (gimple stmt, bool x)
kono
parents:
diff changeset
34 {
kono
parents:
diff changeset
35 if (x)
kono
parents:
diff changeset
36 return gimple_may_fallthru (stmt);
kono
parents:
diff changeset
37 else
kono
parents:
diff changeset
38 return gimple_try_catch_may_fallthru (stmt);
kono
parents:
diff changeset
39 }