Blame SOURCES/gcc48-ucontext.patch

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