]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ia64-tdep.c: Remove (void *) casts
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 24 Oct 2015 22:36:23 +0000 (18:36 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 24 Oct 2015 22:36:23 +0000 (18:36 -0400)
Remove these (void *) casts, which cause a build failure in C++ mode.

gdb/ChangeLog:

* ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
(ia64_push_dummy_call): Remove cast and change type of "to" to
array of gdb_byte.

gdb/ChangeLog
gdb/ia64-tdep.c

index a06f5685b168873b1898cd7efcd54a8820820c80..0a8a6933dcb3acd9e3d93e9f3cd1ce7cbf478930 100644 (file)
@@ -1,3 +1,9 @@
+2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
+       (ia64_push_dummy_call): Remove cast and change type of "to" to
+       array of gdb_byte.
+
 2015-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
index 46a114c4840c44cf9e9cfe8445a2417223d3d3cf..93748a4c1c2d8c9bbc0673bd7ea83bdbe29a96dd 100644 (file)
@@ -1103,7 +1103,7 @@ ia64_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache,
       if ((cfm & 0x7f) > regnum - V32_REGNUM) 
        {
          ULONGEST reg_addr = rse_address_add (bsp, (regnum - V32_REGNUM));
-         write_memory (reg_addr, (void *) buf, 8);
+         write_memory (reg_addr, buf, 8);
        }
     }
   else if (IA64_NAT0_REGNUM <= regnum && regnum <= IA64_NAT31_REGNUM)
@@ -3854,11 +3854,11 @@ ia64_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
          len = TYPE_LENGTH (type);
          while (len > 0 && floatreg < IA64_FR16_REGNUM)
            {
-             char to[MAX_REGISTER_SIZE];
+             gdb_byte to[MAX_REGISTER_SIZE];
              convert_typed_floating (value_contents (arg) + argoffset,
                                      float_elt_type, to,
                                      ia64_ext_type (gdbarch));
-             regcache_cooked_write (regcache, floatreg, (void *)to);
+             regcache_cooked_write (regcache, floatreg, to);
              floatreg++;
              argoffset += TYPE_LENGTH (float_elt_type);
              len -= TYPE_LENGTH (float_elt_type);