This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, rs6000] Change rs6000 into SWITCHABLE_TARGET
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Peter Bergner <bergner at vnet dot ibm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Jakub Jelinek <jakub at redhat dot com>, Bill Schmidt <wschmidt at linux dot ibm dot com>
- Date: Sat, 11 Jan 2014 12:48:00 -0500
- Subject: Re: [PATCH, rs6000] Change rs6000 into SWITCHABLE_TARGET
- Authentication-results: sourceware.org; auth=none
- References: <1389460596 dot 5729 dot 728 dot camel at otta>
On Sat, Jan 11, 2014 at 12:16 PM, Peter Bergner <bergner@vnet.ibm.com> wrote:
> After Jakub changed i?386/x86_64 to use SWITCHABLE_TARGET, he asked me to
> look at changing rs6000 too. Here's the rs6000 patch, which is basically
> identical to the i386.[hc] change Jakub made. This passed bootstrap and
> regtesting on powerpc64-linux with no regressions. Ok for mainline?
>
> Peter
>
>
> * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
> * config/rs6000/rs6000.c: Include target-globals.h.
> (rs6000_set_current_function): Instead of doing target_reinit
> unconditionally, use save_target_globals_default_opts and
> restore_target_globals.
No. Sorry, Peter, I wish that you had not done this because you
duplicated work that I already had done.
David