re PR libobjc/30731 (Warnings while compiling libobjc with the uleb128 changes)

2007-08-06  Andrew Pinski  <pinskia@gmail.com>

        PR libobjc/30731
        * exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
        of _Unwind_Word for variables which are used in
        read_uleb128/read_sleb128.
        (PERSONALITY_FUNCTION): Likewise.

From-SVN: r127242
This commit is contained in:
Andrew Pinski 2007-08-06 07:17:59 -07:00 committed by Andrew Pinski
parent 7665c9bebc
commit 30cad60d51
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2007-08-06 Andrew Pinski <pinskia@gmail.com>
PR libobjc/30731
* exception.c (parse_lsda_header): Use _uleb128_t/_sleb128_t instead
of _Unwind_Word for variables which are used in
read_uleb128/read_sleb128.
(PERSONALITY_FUNCTION): Likewise.
2007-07-05 H.J. Lu <hongjiu.lu@intel.com> 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
* aclocal.m4: Regenerated. * aclocal.m4: Regenerated.

View File

@ -75,7 +75,7 @@ static const unsigned char *
parse_lsda_header (struct _Unwind_Context *context, const unsigned char *p, parse_lsda_header (struct _Unwind_Context *context, const unsigned char *p,
struct lsda_header_info *info) struct lsda_header_info *info)
{ {
_Unwind_Word tmp; _uleb128_t tmp;
unsigned char lpstart_encoding; unsigned char lpstart_encoding;
info->Start = (context ? _Unwind_GetRegionStart (context) : 0); info->Start = (context ? _Unwind_GetRegionStart (context) : 0);
@ -205,7 +205,7 @@ PERSONALITY_FUNCTION (int version,
return _URC_CONTINUE_UNWIND; return _URC_CONTINUE_UNWIND;
else else
{ {
_Unwind_Word cs_lp, cs_action; _uleb128_t cs_lp, cs_action;
do do
{ {
p = read_uleb128 (p, &cs_lp); p = read_uleb128 (p, &cs_lp);
@ -225,7 +225,7 @@ PERSONALITY_FUNCTION (int version,
while (p < info.action_table) while (p < info.action_table)
{ {
_Unwind_Ptr cs_start, cs_len, cs_lp; _Unwind_Ptr cs_start, cs_len, cs_lp;
_Unwind_Word cs_action; _uleb128_t cs_action;
/* Note that all call-site encodings are "absolute" displacements. */ /* Note that all call-site encodings are "absolute" displacements. */
p = read_encoded_value (0, info.call_site_encoding, p, &cs_start); p = read_encoded_value (0, info.call_site_encoding, p, &cs_start);
@ -271,7 +271,7 @@ PERSONALITY_FUNCTION (int version,
else else
{ {
/* Otherwise we have a catch handler. */ /* Otherwise we have a catch handler. */
_Unwind_Sword ar_filter, ar_disp; _sleb128_t ar_filter, ar_disp;
while (1) while (1)
{ {