rs6000: Add cast for int to enum conversion
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 22 Oct 2015 13:46:29 +0000 (09:46 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 22 Oct 2015 13:47:44 +0000 (09:47 -0400)
commit3e45d68b7088df39d0520d1a92005cfdf4e2b922
tree7c038154e4b7b7e0d574b988814ee07fe29e06f6
parent709476c3c595fb61f155ba453733809d3e76ed51
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.
gdb/ChangeLog
gdb/rs6000-tdep.c