Fix warnings occured during profiledboostrap on
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / volatile-1.c
blobcb81274c0d12f15795d3b7da6a373b0347e11307
1 /* The problem here was that the statements that
2 loaded from exception.reason where not being
3 marked as having volatile behaviour which
4 caused load PRE on the tree level to go
5 into an infinite loop. */
7 struct gdb_exception
9 int reason;
11 int catch_exceptions_with_msg (int *gdberrmsg)
13 volatile struct gdb_exception exception;
14 exceptions_state_mc_init (&(exception));
15 if (exception.reason != 0)
16 foo ();
17 return exception.reason;