unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen to eliminate warning.
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 19 Aug 2004 21:41:32 +0000 (21:41 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Thu, 19 Aug 2004 21:41:32 +0000 (21:41 +0000)
* unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
to eliminate warning.
(linear_search_fdes): Declare p as unsigned.
(binary_search_mixed_encoding_fdes): Likewise.
* unwind-dw2.c (get_cie_encoding): Cast argument to strlen
to eliminate warning.
* config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
type cast.

From-SVN: r86280

gcc/ChangeLog
gcc/config/s390/linux.h
gcc/unwind-dw2-fde.c
gcc/unwind-dw2.c

index 6ac9d2f91f3f05ed42077e619d90a177cfbd32f6..4f832d42ac06882b055d2a8be71063874979a108 100644 (file)
@@ -1,3 +1,14 @@
+2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
+       to eliminate warning.
+       (linear_search_fdes): Declare p as unsigned.
+       (binary_search_mixed_encoding_fdes): Likewise.
+       * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
+       to eliminate warning.
+       * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
+       type cast.
+
 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
index 0f51ef7d84b139f017e623970a58b58bf8ca4eae..9dd07c71ef3a57f635e2cee1c291d62b637cfbaf 100644 (file)
@@ -191,7 +191,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
                                                                        \
     if (signo_ && (*signo_ == 11 || *signo_ == 7))                     \
       {                                                                        \
-       (FS)->regs.reg[33].loc.exp = regs_->psw_addr + 1;               \
+       (FS)->regs.reg[33].loc.exp =                                    \
+               (unsigned char *)regs_->psw_addr + 1;                   \
        (FS)->regs.reg[32].loc.offset =                                 \
                (long)&(FS)->regs.reg[33].loc.exp - new_cfa_;           \
       }                                                                        \
index 2a81e3676cc5a0c9eb205fd2d1696d304b2caf72..ea467e4a33a42a02d19c5dee684477ac739b8a85 100644 (file)
@@ -273,7 +273,7 @@ get_cie_encoding (const struct dwarf_cie *cie)
   if (aug[0] != 'z')
     return DW_EH_PE_absptr;
 
-  p = aug + strlen (aug) + 1;          /* Skip the augmentation string.  */
+  p = aug + strlen ((const char *)aug) + 1; /* Skip the augmentation string.  */
   p = read_uleb128 (p, &utmp);         /* Skip code alignment.  */
   p = read_sleb128 (p, &stmp);         /* Skip data alignment.  */
   if (cie->version == 1)               /* Skip return address column.  */
@@ -808,7 +808,7 @@ linear_search_fdes (struct object *ob, const fde *this_fde, void *pc)
       else
        {
          _Unwind_Ptr mask;
-         const char *p;
+         const unsigned char *p;
 
          p = read_encoded_value_with_base (encoding, base,
                                            this_fde->pc_begin, &pc_begin);
@@ -878,7 +878,7 @@ binary_search_single_encoding_fdes (struct object *ob, void *pc)
       size_t i = (lo + hi) / 2;
       const fde *f = vec->array[i];
       _Unwind_Ptr pc_begin, pc_range;
-      const char *p;
+      const unsigned char *p;
 
       p = read_encoded_value_with_base (encoding, base, f->pc_begin,
                                        &pc_begin);
@@ -906,7 +906,7 @@ binary_search_mixed_encoding_fdes (struct object *ob, void *pc)
       size_t i = (lo + hi) / 2;
       const fde *f = vec->array[i];
       _Unwind_Ptr pc_begin, pc_range;
-      const char *p;
+      const unsigned char *p;
       int encoding;
 
       encoding = get_fde_encoding (f);
index 8b60b0c78d43fbb043d13544842b4e39ff55f30f..3815d9f3f956b261d300b2ec34a504991ab158f6 100644 (file)
@@ -262,7 +262,7 @@ extract_cie_info (const struct dwarf_cie *cie, struct _Unwind_Context *context,
                  _Unwind_FrameState *fs)
 {
   const unsigned char *aug = cie->augmentation;
-  const unsigned char *p = aug + strlen (aug) + 1;
+  const unsigned char *p = aug + strlen ((const char *)aug) + 1;
   const unsigned char *ret = NULL;
   _Unwind_Word utmp;