Re: [cfe-dev] RFC: Support x86 interrupt and exception handlers

2015-09-22 Thread Hal Finkel
- 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 > >

Re: [cfe-dev] RFC: Support x86 interrupt and exception handlers

2015-09-21 Thread Hal Finkel
- 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 > >

Re: [cfe-dev] RFC: Support x86 interrupt and exception handlers

2015-09-21 Thread Hal Finkel
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

Re: LLVM collaboration?

2014-09-17 Thread Hal Finkel
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:

Re: LLVM collaboration?

2014-02-11 Thread Hal Finkel
- 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? > > >