aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2015-10-22 09:46:29 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2015-10-22 09:47:44 -0400
commit3e45d68b7088df39d0520d1a92005cfdf4e2b922 (patch)
tree7c038154e4b7b7e0d574b988814ee07fe29e06f6
parent709476c3c595fb61f155ba453733809d3e76ed51 (diff)
downloadgdb-3e45d68b7088df39d0520d1a92005cfdf4e2b922.zip
gdb-3e45d68b7088df39d0520d1a92005cfdf4e2b922.tar.gz
gdb-3e45d68b7088df39d0520d1a92005cfdf4e2b922.tar.bz2
rs6000: Add cast for int to enum conversion
Fixes this error: /home/pedro/gdb/mygit/src/gdb/rs6000-tdep.c:3091:1: error: invalid conversion from ‘int’ to ‘bfd_architecture’ [-fpermissive] }; ^ /home/pedro/gdb/mygit/src/gdb/rs6000-tdep.c: In function ‘void powerpc_set_vector_abi(char*, int, cmd_list_element*)’: /home/pedro/gdb/mygit/src/gdb/rs6000-tdep.c:6063:28: error: invalid conversion from ‘int’ to ‘powerpc_vector_abi’ [-fpermissive] powerpc_vector_abi_global = vector_abi; ^ gdb/ChangeLog: * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/rs6000-tdep.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5ac983f..9c8ae4c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
+ * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
+
+2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
+
* mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
buf to gdb_byte*.
(supply_32bit_reg): Add cast.
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index baf6b67..589b996 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -3144,7 +3144,7 @@ static struct variant variants[] =
{"rs2", "IBM POWER RS2", bfd_arch_rs6000,
bfd_mach_rs6k_rs2, &tdesc_rs6000},
- {0, 0, 0, 0, 0}
+ {0, 0, (enum bfd_architecture) 0, 0, 0}
};
/* Return the variant corresponding to architecture ARCH and machine number