Commit 0b1d7060 by Kai Tietz Committed by Kai Tietz

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
parent d0566a63
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> 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
* stor-layout.c (set_sizetype): Avoid useless type copy. * stor-layout.c (set_sizetype): Avoid useless type copy.
......
...@@ -630,7 +630,7 @@ classify_object_over_fdes (struct object *ob, const fde *this_fde) ...@@ -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. */ be representable. Assume 0 in the representable bits is NULL. */
mask = size_of_encoded_value (encoding); mask = size_of_encoded_value (encoding);
if (mask < sizeof (void *)) if (mask < sizeof (void *))
mask = (1L << (mask << 3)) - 1; mask = (((_Unwind_Ptr) 1) << (mask << 3)) - 1;
else else
mask = -1; mask = -1;
...@@ -693,7 +693,7 @@ add_fdes (struct object *ob, struct fde_accumulator *accu, const fde *this_fde) ...@@ -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. */ be representable. Assume 0 in the representable bits is NULL. */
mask = size_of_encoded_value (encoding); mask = size_of_encoded_value (encoding);
if (mask < sizeof (void *)) if (mask < sizeof (void *))
mask = (1L << (mask << 3)) - 1; mask = (((_Unwind_Ptr) 1) << (mask << 3)) - 1;
else else
mask = -1; mask = -1;
...@@ -816,7 +816,7 @@ linear_search_fdes (struct object *ob, const fde *this_fde, void *pc) ...@@ -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. */ be representable. Assume 0 in the representable bits is NULL. */
mask = size_of_encoded_value (encoding); mask = size_of_encoded_value (encoding);
if (mask < sizeof (void *)) if (mask < sizeof (void *))
mask = (1L << (mask << 3)) - 1; mask = (((_Unwind_Ptr) 1) << (mask << 3)) - 1;
else else
mask = -1; mask = -1;
......
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