On 06/30/2011 04:47 PM, H.J. Lu wrote:
+@defmac REG_VALUE_IN_UNWIND_CONTEXT + +Define this macro if the target stores register values as +@code{_Unwind_Word} type in unwind context. The default is to +store register values as @code{void *} type. + +@end defmac
This ought to suggest why a port would need to do this, namely if registers can be larger than void*.
+#ifdef REG_VALUE_IN_UNWIND_CONTEXT +typedef _Unwind_Word _Unwind_Context_Reg_Val; + +#define _Unwind_IsExtendedContext(c) 1
I still think that assuming extended context should be a separate target macro which is implied by REG_VALUE_IN_UNWIND_CONTEXT, but can also be defined separately by new ports.
Otherwise it looks good to me. Jason