Blame SOURCES/gcc48-ucontext.patch

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