aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/arm/unwind-arm.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 86217ac..5cc0502 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2006-09-20 Paul Brook <paul@codesourcery.com>
+
+ gcc/
+ * config/arm/unwind-arm.c (selfrel_offset31): Clear top bit for
+ positive offsets.
+
2006-09-20 Janis Johnson <janis187@us.ibm.com>
* doc/extend.texi (Decimal Float): Update for latest draft TR,
diff --git a/gcc/config/arm/unwind-arm.c b/gcc/config/arm/unwind-arm.c
index b3f8a00..9d2513b 100644
--- a/gcc/config/arm/unwind-arm.c
+++ b/gcc/config/arm/unwind-arm.c
@@ -337,6 +337,8 @@ selfrel_offset31 (const _uw *p)
/* Sign extend to 32 bits. */
if (offset & (1 << 30))
offset |= 1u << 31;
+ else
+ offset &= ~(1u << 31);
return offset + (_uw) p;
}