This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, rs6000] Change rs6000 into SWITCHABLE_TARGET


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]