This:
valbuf = memcpy (buf, valbuf, len);
causes a build failure in C++, because memcpy returns the value of
"buf" as a void *. Instead of adding a cast, we can just do the
assignment separately.
gdb/ChangeLog:
* sparc64-tdep.c (sparc64_store_arguments): Split assignment of
valbuf.
+2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
+ valbuf.
+
2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
* ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
/* Structure, Union or long double Complex arguments. */
gdb_assert (len <= 16);
memset (buf, 0, sizeof (buf));
- valbuf = memcpy (buf, valbuf, len);
+ memcpy (buf, valbuf, len);
+ valbuf = buf;
if (element % 2 && sparc64_16_byte_align_p (type))
element++;