annotate gcc/testsuite/gcc.c-torture/compile/volatile-1.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 /* The problem here was that the statements that
kono
parents:
diff changeset
2 loaded from exception.reason where not being
kono
parents:
diff changeset
3 marked as having volatile behavior which
kono
parents:
diff changeset
4 caused load PRE on the tree level to go
kono
parents:
diff changeset
5 into an infinite loop. */
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 struct gdb_exception
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 int reason;
kono
parents:
diff changeset
10 };
kono
parents:
diff changeset
11 int catch_exceptions_with_msg (int *gdberrmsg)
kono
parents:
diff changeset
12 {
kono
parents:
diff changeset
13 volatile struct gdb_exception exception;
kono
parents:
diff changeset
14 exceptions_state_mc_init (&(exception));
kono
parents:
diff changeset
15 if (exception.reason != 0)
kono
parents:
diff changeset
16 foo ();
kono
parents:
diff changeset
17 return exception.reason;
kono
parents:
diff changeset
18 }