Blame SOURCES/gcc48-ucontext.patch

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