From 43a0798307faaa9f7c2fbd4fd58da46def48da2a Mon Sep 17 00:00:00 2001
From: James E Wilson <wilson@specifixinc.com>
Date: Tue, 12 Apr 2005 17:50:34 -0700
Subject: [PATCH] Fix problem with FP reg r29 being corrupted on stack unwind.

PR target/20670
* unwind-ia64.c (uw_intall_context): Add missing load of r27.

From-SVN: r98061
---
 gcc/ChangeLog                 | 5 +++++
 gcc/config/ia64/unwind-ia64.c | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bbc317e25273..63ce38a6ef13 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-12  James E. Wilson  <wilson@specifixinc.com>
+
+	PR target/20670
+	* unwind-ia64.c (uw_intall_context): Add missing load of r27.
+
 2005-04-12  Caroline Tice  <ctice@apple.com>
 
 	Temporary fix for partitioning problems.
diff --git a/gcc/config/ia64/unwind-ia64.c b/gcc/config/ia64/unwind-ia64.c
index 1a245ebfa899..3a45dc165462 100644
--- a/gcc/config/ia64/unwind-ia64.c
+++ b/gcc/config/ia64/unwind-ia64.c
@@ -2275,6 +2275,8 @@ uw_install_context (struct _Unwind_Context *current __attribute__((unused)),
 	"(p6) ldf.fill f22 = [r28]		\n\t"
 	"cmp.ne p7, p0 = r0, r29		\n\t"
 	";;					\n\t"
+	"ld8 r27 = [r20], 8			\n\t"
+	";;					\n\t"
 	"ld8 r28 = [r20], 8			\n\t"
 	"(p7) ldf.fill f23 = [r29]		\n\t"
 	"cmp.ne p6, p0 = r0, r22		\n\t"
-- 
GitLab