- Original Message -
> From: "H.J. Lu"
> To: "Hal Finkel"
> Cc: "GCC Development" , cfe-...@lists.llvm.org
> Sent: Monday, September 21, 2015 7:17:20 PM
> Subject: Re: [cfe-dev] RFC: Support x86 interrupt and exception handlers
>
>
- Original Message -
> From: "H.J. Lu"
> To: "Hal Finkel"
> Cc: "GCC Development" , cfe-...@lists.llvm.org
> Sent: Monday, September 21, 2015 5:57:36 PM
> Subject: Re: [cfe-dev] RFC: Support x86 interrupt and exception handlers
>
>
ception' attribute
>
> Use 'exception' instead of 'interrupt' for handlers intended to be
> used for 'exception' (i.e. those that must pop 'ERROR_CODE' off the
> stack before the 'IRET' instruction).
>
> You can use the builtin '__builtin_exception_error' function to
> access the exception error code pushed onto the stack by processor
> as well as the builtin '__builtin_interrupt_data' function to
> access the exception data on stack:
>
> void
> f () __attribute__ ((exception))
> {
> unsigned int error = __builtin_exception_error ();
> void *p = __builtin_interrupt_data ();
> ...
> }
> ___
> cfe-dev mailing list
> cfe-...@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
--
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory
gt; From: "Hal Finkel"
> To: "Rafael EspĂndola"
> Cc: "Renato Golin" , "gcc" , "Jan
> Hubicka"
> Sent: Tuesday, February 11, 2014 4:35:59 PM
> Subject: Re: LLVM collaboration?
>
> - Original Message -
> > From:
- Original Message -
> From: "Rafael EspĂndola"
> To: "Jan Hubicka"
> Cc: "Renato Golin" , "gcc" , "Hal
> Finkel"
> Sent: Tuesday, February 11, 2014 3:38:40 PM
> Subject: Re: Fwd: LLVM collaboration?
>
> >