diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2010-08-31 14:45:35 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2010-08-31 14:45:35 +0000 |
commit | 6e0973c0aaacc11f6ae3ab33a9ecc93b6b0289ec (patch) | |
tree | f410e618ac39fe1997878f9de666d411aaadcbb8 | |
parent | c09e9a8c9e877ce5f2a4d279d567caa32e558b9d (diff) | |
download | gdb-6e0973c0aaacc11f6ae3ab33a9ecc93b6b0289ec.zip gdb-6e0973c0aaacc11f6ae3ab33a9ecc93b6b0289ec.tar.gz gdb-6e0973c0aaacc11f6ae3ab33a9ecc93b6b0289ec.tar.bz2 |
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.
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/obj-coff-seh.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 70f25a7..8121c32 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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. diff --git a/gas/config/obj-coff-seh.c b/gas/config/obj-coff-seh.c index b9c5b50..d2d01b1 100644 --- a/gas/config/obj-coff-seh.c +++ b/gas/config/obj-coff-seh.c @@ -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 { |