OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [volatile-1.c] - Blame information for rev 399

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
/* 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. */
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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.