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