This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH c++ 1/6] rs6000: Add cast for int to enum conversion
- From: Pedro Alves <palves at redhat dot com>
- To: Simon Marchi <simon dot marchi at polymtl dot ca>, gdb-patches at sourceware dot org
- Date: Thu, 22 Oct 2015 11:56:41 +0100
- Subject: Re: [PATCH c++ 1/6] rs6000: Add cast for int to enum conversion
- Authentication-results: sourceware.org; auth=none
- References: <1444624329-4828-1-git-send-email-simon dot marchi at polymtl dot ca>
On 10/12/2015 05:32 AM, Simon Marchi wrote:
> 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.
OK.
Thanks,
Pedro Alves