This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: i686 bootstrap failure in revision 110699: looping in execute_pre


> 
> This is a multi-part message in MIME format.
> --------------040002010104040902030106
> Content-Type: text/plain; charset=us-ascii; format=flowed
> Content-Transfer-Encoding: 7bit
> 
> 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.
> 
> 
> --------------040002010104040902030106
> Content-Type: text/plain;
>  name="foo.i"
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline;
>  filename="foo.i"
> 
> 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;
> }

Here is an even more reduced testcase:
struct gdb_exception
{
  int reason;
};
int catch_exceptions_with_msg (int *gdberrmsg)
{
  volatile struct gdb_exception exception;
  exceptions_state_mc_init (&(exception));
  if (exception.reason != 0)
    foo ();
  return exception.reason;
}

-- Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]