2010-08-31 Kai Tietz <kai.tietz@onevision.com>

* config/obj-coff-seh.c (obj_coff_seh_save): Correct comparison.
        (obj_coff_seh_stackalloc): Likewise.
This commit is contained in:
Kai Tietz 2010-08-31 14:45:35 +00:00
parent c09e9a8c9e
commit 6e0973c0aa
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2010-08-31 Kai Tietz <kai.tietz@onevision.com>
* config/obj-coff-seh.c (obj_coff_seh_save): Correct comparison.
(obj_coff_seh_stackalloc): Likewise.
2010-08-31 Alan Modra <amodra@gmail.com>
* config/obj-elf.c (obj_elf_init_stab_section): Fix assertion.

View File

@ -493,12 +493,12 @@ obj_coff_seh_save (int what)
scale = (what == 1 ? 8 : 16);
if ((off & (scale - 1)) == 0 && off <= 0xffff * scale)
if ((off & (scale - 1)) == 0 && off <= (offsetT) (0xffff * scale))
{
code = (what == 1 ? UWOP_SAVE_NONVOL : UWOP_SAVE_XMM128);
off /= scale;
}
else if (off < 0xffffffff)
else if (off < (offsetT) 0xffffffff)
code = (what == 1 ? UWOP_SAVE_NONVOL_FAR : UWOP_SAVE_XMM128_FAR);
else
{
@ -533,9 +533,9 @@ obj_coff_seh_stackalloc (int what ATTRIBUTE_UNUSED)
if ((off & 7) == 0 && off <= 128)
code = UWOP_ALLOC_SMALL, info = (off - 8) >> 3, off = 0;
else if ((off & 7) == 0 && off <= 0xffff * 8)
else if ((off & 7) == 0 && off <= (offsetT) (0xffff * 8))
code = UWOP_ALLOC_LARGE, info = 0, off >>= 3;
else if (off <= 0xffffffff)
else if (off <= (offsetT) 0xffffffff)
code = UWOP_ALLOC_LARGE, info = 1;
else
{