Commit d0cd71a0 by Paul Brook Committed by Paul Brook

unwind-arm.c (selfrel_offset31): Clear top bit for positive offsets.

2006-09-20  Paul Brook  <paul@codesourcery.com>

	gcc/
	* config/arm/unwind-arm.c (selfrel_offset31): Clear top bit for
	positive offsets.

From-SVN: r117087
parent 19289614
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> 2006-09-20 Janis Johnson <janis187@us.ibm.com>
* doc/extend.texi (Decimal Float): Update for latest draft TR, * doc/extend.texi (Decimal Float): Update for latest draft TR,
......
...@@ -337,6 +337,8 @@ selfrel_offset31 (const _uw *p) ...@@ -337,6 +337,8 @@ selfrel_offset31 (const _uw *p)
/* Sign extend to 32 bits. */ /* Sign extend to 32 bits. */
if (offset & (1 << 30)) if (offset & (1 << 30))
offset |= 1u << 31; offset |= 1u << 31;
else
offset &= ~(1u << 31);
return offset + (_uw) p; return offset + (_uw) p;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment