unwind-dw2-fde.c (classify_object_over_fdes): Cast the constant 1 to _Unwind_Ptr.

2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
            Pascal Obry  <obry@adacore.com>

        * unwind-dw2-fde.c (classify_object_over_fdes):
        Cast the constant 1 to _Unwind_Ptr.
        (add_fdes): Likewise.
        (linear_search_fdes): Likewise.


Co-Authored-By: Pascal Obry <obry@adacore.com>

From-SVN: r151899
This commit is contained in:
Kai Tietz 2009-09-20 11:03:33 +00:00 committed by Kai Tietz
parent d0566a63a5
commit 0b1d7060b5
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2009-09-20 Kai Tietz <kai.tietz@onevision.com>
Pascal Obry <obry@adacore.com>
* unwind-dw2-fde.c (classify_object_over_fdes):
Cast the constant 1 to _Unwind_Ptr.
(add_fdes): Likewise.
(linear_search_fdes): Likewise.
2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
* stor-layout.c (set_sizetype): Avoid useless type copy.

View File

@ -630,7 +630,7 @@ classify_object_over_fdes (struct object *ob, const fde *this_fde)
be representable. Assume 0 in the representable bits is NULL. */
mask = size_of_encoded_value (encoding);
if (mask < sizeof (void *))
mask = (1L << (mask << 3)) - 1;
mask = (((_Unwind_Ptr) 1) << (mask << 3)) - 1;
else
mask = -1;
@ -693,7 +693,7 @@ add_fdes (struct object *ob, struct fde_accumulator *accu, const fde *this_fde)
be representable. Assume 0 in the representable bits is NULL. */
mask = size_of_encoded_value (encoding);
if (mask < sizeof (void *))
mask = (1L << (mask << 3)) - 1;
mask = (((_Unwind_Ptr) 1) << (mask << 3)) - 1;
else
mask = -1;
@ -816,7 +816,7 @@ linear_search_fdes (struct object *ob, const fde *this_fde, void *pc)
be representable. Assume 0 in the representable bits is NULL. */
mask = size_of_encoded_value (encoding);
if (mask < sizeof (void *))
mask = (1L << (mask << 3)) - 1;
mask = (((_Unwind_Ptr) 1) << (mask << 3)) - 1;
else
mask = -1;