+2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * linux-ppc-low.c (ppc_get_hwcap): Add cast.
+ (ppc_fill_vsxregset): Likewise.
+ (ppc_store_vsxregset): Likewise.
+ (ppc_fill_vrregset): Likewise.
+ (ppc_store_vrregset): Likewise.
+ (ppc_fill_evrregset): Likewise.
+ (ppc_store_evrregset): Likewise.
+
2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
* linux-ppc-low.c (ppc_usrregs_info): Remove
{
const struct target_desc *tdesc = current_process ()->tdesc;
int wordsize = register_size (tdesc, 0);
- unsigned char *data = alloca (2 * wordsize);
+ unsigned char *data = (unsigned char *) alloca (2 * wordsize);
int offset = 0;
while ((*the_target->read_auxv) (offset, data, 2 * wordsize) == 2 * wordsize)
ppc_fill_vsxregset (struct regcache *regcache, void *buf)
{
int i, base;
- char *regset = buf;
+ char *regset = (char *) buf;
if (!(ppc_hwcap & PPC_FEATURE_HAS_VSX))
return;
ppc_store_vsxregset (struct regcache *regcache, const void *buf)
{
int i, base;
- const char *regset = buf;
+ const char *regset = (const char *) buf;
if (!(ppc_hwcap & PPC_FEATURE_HAS_VSX))
return;
ppc_fill_vrregset (struct regcache *regcache, void *buf)
{
int i, base;
- char *regset = buf;
+ char *regset = (char *) buf;
if (!(ppc_hwcap & PPC_FEATURE_HAS_ALTIVEC))
return;
ppc_store_vrregset (struct regcache *regcache, const void *buf)
{
int i, base;
- const char *regset = buf;
+ const char *regset = (const char *) buf;
if (!(ppc_hwcap & PPC_FEATURE_HAS_ALTIVEC))
return;
ppc_fill_evrregset (struct regcache *regcache, void *buf)
{
int i, ev0;
- struct gdb_evrregset_t *regset = buf;
+ struct gdb_evrregset_t *regset = (struct gdb_evrregset_t *) buf;
if (!(ppc_hwcap & PPC_FEATURE_HAS_SPE))
return;
ppc_store_evrregset (struct regcache *regcache, const void *buf)
{
int i, ev0;
- const struct gdb_evrregset_t *regset = buf;
+ const struct gdb_evrregset_t *regset = (const struct gdb_evrregset_t *) buf;
if (!(ppc_hwcap & PPC_FEATURE_HAS_SPE))
return;