Discussion:
[Open64-devel] r4115 - trunk/osprey-gcc-4.2.0/gcc/config/i386
s***@open64.net
2014-08-23 01:05:19 UTC
Permalink
Author: dcoakley
Date: 2014-08-22 21:05:18 -0400 (Fri, 22 Aug 2014)
New Revision: 4115

Modified:
trunk/osprey-gcc-4.2.0/gcc/config/i386/linux-unwind.h
Log:
Allow compiling with either siginfo_t or the older "struct siginfo" type.

Approved by: Jian-Xin


Modified: trunk/osprey-gcc-4.2.0/gcc/config/i386/linux-unwind.h
===================================================================
--- trunk/osprey-gcc-4.2.0/gcc/config/i386/linux-unwind.h 2014-08-22 02:53:24 UTC (rev 4114)
+++ trunk/osprey-gcc-4.2.0/gcc/config/i386/linux-unwind.h 2014-08-23 01:05:18 UTC (rev 4115)
@@ -137,9 +137,17 @@
{
struct rt_sigframe {
int sig;
+#ifdef __have_siginfo_t
+ siginfo_t *pinfo;
+#else
struct siginfo *pinfo;
+#endif
void *puc;
+#ifdef __have_siginfo_t
+ siginfo_t info;
+#else
struct siginfo info;
+#endif
struct ucontext uc;
} *rt_ = context->cfa;
/* The void * cast is necessary to avoid an aliasing warning.

Loading...