Re: unwinding fallbacks for powerpc32 on aix 5.2 and 5.3

2012-05-14 Thread David Edelsohn
On Mon, May 14, 2012 at 9:39 AM, Olivier Hainque wrote: > > On May 14, 2012, at 15:14 , David Edelsohn wrote: >> Yes, something like that test. >> >> Should the test go in g++.dg/eh or in g++.target/powerpc? > >  It's really about the general capability to have unwinding get >  through signal hand

Re: unwinding fallbacks for powerpc32 on aix 5.2 and 5.3

2012-05-14 Thread Olivier Hainque
On May 14, 2012, at 15:14 , David Edelsohn wrote: > Yes, something like that test. > > Should the test go in g++.dg/eh or in g++.target/powerpc? It's really about the general capability to have unwinding get through signal handlers. The same test (same sources) should work on other targets th

Re: unwinding fallbacks for powerpc32 on aix 5.2 and 5.3

2012-05-14 Thread David Edelsohn
On Mon, May 14, 2012 at 6:03 AM, Olivier Hainque wrote: > > On May 13, 2012, at 00:03 , David Edelsohn wrote: >> >> I forgot to ask, is there a non-Ada, target-specific testcase that you >> can add to ensure this functionality does not get broken? >> >> Thanks, David > > Something like that in cp/

Re: unwinding fallbacks for powerpc32 on aix 5.2 and 5.3

2012-05-14 Thread Olivier Hainque
On May 12, 2012, at 16:43 , David Edelsohn wrote: > Please do not create another definition of the register number for LR. Oh ... > Earlier in the file it is defined as R_LR. Dropping in a completely > self-contained chunk with its own naming is confusing. LR_REGNO is > fine, but please define

Re: unwinding fallbacks for powerpc32 on aix 5.2 and 5.3

2012-05-14 Thread Olivier Hainque
On May 13, 2012, at 00:03 , David Edelsohn wrote: > > I forgot to ask, is there a non-Ada, target-specific testcase that you > can add to ensure this functionality does not get broken? > > Thanks, David Something like that in cp/eh ? // { dg-do run { target { { *-*-aix5* } } } } // { dg-option

Re: unwinding fallbacks for powerpc32 on aix 5.2 and 5.3

2012-05-12 Thread David Edelsohn
> libgcc/ >        * config/rs6000/aix-unwind.h (ucontext_for): Helper for ... >        (ppc_aix_fallback_frame_state): New, implementation of ... >        (MD_FALLBACK_FRAME_STATE_FOR): Define. I forgot to ask, is there a non-Ada, target-specific testcase that you can add to ensure this functiona

Re: unwinding fallbacks for powerpc32 on aix 5.2 and 5.3

2012-05-12 Thread David Edelsohn
libgcc/ * config/rs6000/aix-unwind.h (ucontext_for): Helper for ... (ppc_aix_fallback_frame_state): New, implementation of ... (MD_FALLBACK_FRAME_STATE_FOR): Define. Please do not create another definition of the register number for LR. Earlier in the file it is defined as

unwinding fallbacks for powerpc32 on aix 5.2 and 5.3

2012-05-11 Thread Olivier Hainque
Hello, We have been using these for a few years now. I have just verified that they do allow exception propagation from signal for Ada on aix 5.3 with a recent mainline. Posting here in case that is of interest, even though it was only exercised on aix 5.2 and 5.3, for 32bit code generation (test