Blame SOURCES/gcc48-ucontext.patch

22033d
2017-07-04  Joseph Myers  <joseph@codesourcery.com>
22033d
22033d
	* config/aarch64/linux-unwind.h (aarch64_fallback_frame_state),
22033d
	config/alpha/linux-unwind.h (alpha_fallback_frame_state),
22033d
	config/bfin/linux-unwind.h (bfin_fallback_frame_state),
22033d
	config/i386/linux-unwind.h (x86_64_fallback_frame_state,
22033d
	x86_fallback_frame_state), config/m68k/linux-unwind.h (struct
22033d
	uw_ucontext), config/pa/linux-unwind.h (pa32_fallback_frame_state),
22033d
	config/sh/linux-unwind.h (sh_fallback_frame_state),
22033d
	config/tilepro/linux-unwind.h (tile_fallback_frame_state),
22033d
	config/xtensa/linux-unwind.h (xtensa_fallback_frame_state): Use
22033d
	ucontext_t instead of struct ucontext.
22033d
22033d
--- libgcc/config/aarch64/linux-unwind.h
22033d
+++ libgcc/config/aarch64/linux-unwind.h
22033d
@@ -52,7 +52,7 @@ aarch64_fallback_frame_state (struct _Unwind_Context *context,
22033d
   struct rt_sigframe
22033d
   {
22033d
     siginfo_t info;
22033d
-    struct ucontext uc;
22033d
+    ucontext_t uc;
22033d
   };
22033d
 
22033d
   struct rt_sigframe *rt_;
22033d
--- libgcc/config/alpha/linux-unwind.h
22033d
+++ libgcc/config/alpha/linux-unwind.h
22033d
@@ -51,7 +51,7 @@ alpha_fallback_frame_state (struct _Unwind_Context *context,
22033d
     {
22033d
       struct rt_sigframe {
22033d
 	siginfo_t info;
22033d
-	struct ucontext uc;
22033d
+	ucontext_t uc;
22033d
       } *rt_ = context->cfa;
22033d
       sc = &rt_->uc.uc_mcontext;
22033d
     }
22033d
--- libgcc/config/bfin/linux-unwind.h
22033d
+++ libgcc/config/bfin/linux-unwind.h
22033d
@@ -52,7 +52,7 @@ bfin_fallback_frame_state (struct _Unwind_Context *context,
22033d
 	void *puc;
22033d
 	char retcode[8];
22033d
 	siginfo_t info;
22033d
-	struct ucontext uc;
22033d
+	ucontext_t uc;
22033d
       } *rt_ = context->cfa;
22033d
 
22033d
       /* The void * cast is necessary to avoid an aliasing warning.
22033d
--- libgcc/config/i386/linux-unwind.h
22033d
+++ libgcc/config/i386/linux-unwind.h
22033d
@@ -58,7 +58,7 @@ x86_64_fallback_frame_state (struct _Unwind_Context *context,
22033d
   if (*(unsigned char *)(pc+0) == 0x48
22033d
       && *(unsigned long long *)(pc+1) == RT_SIGRETURN_SYSCALL)
22033d
     {
22033d
-      struct ucontext *uc_ = context->cfa;
22033d
+      ucontext_t *uc_ = context->cfa;
22033d
       /* The void * cast is necessary to avoid an aliasing warning.
22033d
          The aliasing warning is correct, but should not be a problem
22033d
          because it does not alias anything.  */
22033d
@@ -138,7 +138,7 @@ x86_fallback_frame_state (struct _Unwind_Context *context,
22033d
 	siginfo_t *pinfo;
22033d
 	void *puc;
22033d
 	siginfo_t info;
22033d
-	struct ucontext uc;
22033d
+	ucontext_t uc;
22033d
       } *rt_ = context->cfa;
22033d
       /* The void * cast is necessary to avoid an aliasing warning.
22033d
          The aliasing warning is correct, but should not be a problem
22033d
--- libgcc/config/m68k/linux-unwind.h
22033d
+++ libgcc/config/m68k/linux-unwind.h
22033d
@@ -33,7 +33,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
22033d
 /* <sys/ucontext.h> is unfortunately broken right now.  */
22033d
 struct uw_ucontext {
22033d
 	unsigned long	  uc_flags;
22033d
-	struct ucontext  *uc_link;
22033d
+	ucontext_t	 *uc_link;
22033d
 	stack_t		  uc_stack;
22033d
 	mcontext_t	  uc_mcontext;
22033d
 	unsigned long	  uc_filler[80];
22033d
--- libgcc/config/pa/linux-unwind.h
22033d
+++ libgcc/config/pa/linux-unwind.h
22033d
@@ -80,7 +80,7 @@ pa32_fallback_frame_state (struct _Unwind_Context *context,
22033d
   struct sigcontext *sc;
22033d
   struct rt_sigframe {
22033d
     siginfo_t info;
22033d
-    struct ucontext uc;
22033d
+    ucontext_t uc;
22033d
   } *frame;
22033d
 
22033d
   /* rt_sigreturn trampoline:
22033d
--- libgcc/config/sh/linux-unwind.h
22033d
+++ libgcc/config/sh/linux-unwind.h
22033d
@@ -180,7 +180,7 @@ sh_fallback_frame_state (struct _Unwind_Context *context,
22033d
     {
22033d
       struct rt_sigframe {
22033d
 	siginfo_t info;
22033d
-	struct ucontext uc;
22033d
+	ucontext_t uc;
22033d
       } *rt_ = context->cfa;
22033d
       /* The void * cast is necessary to avoid an aliasing warning.
22033d
          The aliasing warning is correct, but should not be a problem
22033d
--- libgcc/config/tilepro/linux-unwind.h
22033d
+++ libgcc/config/tilepro/linux-unwind.h
22033d
@@ -61,7 +61,7 @@ tile_fallback_frame_state (struct _Unwind_Context *context,
22033d
   struct rt_sigframe {
22033d
     unsigned char save_area[C_ABI_SAVE_AREA_SIZE];
22033d
     siginfo_t info;
22033d
-    struct ucontext uc;
22033d
+    ucontext_t uc;
22033d
   } *rt_;
22033d
 
22033d
   /* Return if this is not a signal handler.  */
22033d
--- libgcc/config/xtensa/linux-unwind.h
22033d
+++ libgcc/config/xtensa/linux-unwind.h
22033d
@@ -67,7 +67,7 @@ xtensa_fallback_frame_state (struct _Unwind_Context *context,
22033d
 
22033d
   struct rt_sigframe {
22033d
     siginfo_t info;
22033d
-    struct ucontext uc;
22033d
+    ucontext_t uc;
22033d
   } *rt_;
22033d
 
22033d
   /* movi a2, __NR_rt_sigreturn; syscall */