Andrew Pinski wrote:
I've build in a unified (symlink) tree, with sourceware stuff checked
out via cvs from date/time D2006.02.07.17.00.00
I am reducing this failure and will file a bug report.
I've just got a reduced test case, to be compiled with -O2 - see attachment.
struct gdb_exception
{
int reason;
};
void *exceptions_state_mc_init (volatile struct gdb_exception *exception);
int
catch_exceptions_with_msg ()
{
volatile struct gdb_exception exception;
volatile int val = 0;
{
void *buf = exceptions_state_mc_init ( &(exception) );
} while (exceptions_state_mc_action_iter ())
print_any_exception (exception);
if (val < 0)
internal_error ();
if (exception.reason > 0)
internal_error ();
return val;
}