Re: rs6000: Update the processor defaults for FreeBSD

2020-12-14 Thread Segher Boessenkool
On Mon, Dec 14, 2020 at 05:29:30PM +0100, Piotr Kubaj wrote: > On 20-12-14 10:22:32, Segher Boessenkool wrote: > > On Mon, Dec 14, 2020 at 03:57:27PM +0100, Piotr Kubaj wrote: > > > > It is both, actually (-mcpu= implies -mtune=) > > > Yes, but -mtune doesn't imply -mcpu. If I set up only -mtune, -

Re: rs6000: Update the processor defaults for FreeBSD

2020-12-14 Thread Piotr Kubaj via Gcc-patches
On 20-12-14 10:22:32, Segher Boessenkool wrote: > On Mon, Dec 14, 2020 at 03:57:27PM +0100, Piotr Kubaj wrote: > > > It is both, actually (-mcpu= implies -mtune=) > > Yes, but -mtune doesn't imply -mcpu. If I set up only -mtune, -mcpu is the > > generic one (ppc970 for BE) > > But that is not wha

Re: rs6000: Update the processor defaults for FreeBSD

2020-12-14 Thread Segher Boessenkool
On Mon, Dec 14, 2020 at 03:57:27PM +0100, Piotr Kubaj wrote: > > It is both, actually (-mcpu= implies -mtune=) > Yes, but -mtune doesn't imply -mcpu. If I set up only -mtune, -mcpu is the > generic one (ppc970 for BE) But that is not what the patch does? > > > Linux also does similarly in linux6

Re: rs6000: Update the processor defaults for FreeBSD

2020-12-14 Thread Piotr Kubaj via Gcc-patches
On 20-12-13 09:48:35, Segher Boessenkool wrote: > Hi! > > On Sun, Dec 13, 2020 at 03:34:57PM +0100, Piotr Kubaj wrote: > > this is only default tuning (-mtune, not -mcpu). > > It is both, actually (-mcpu= implies -mtune=) Yes, but -mtune doesn't imply -mcpu. If I set up only -mtune, -mcpu is the

Re: rs6000: Update the processor defaults for FreeBSD

2020-12-13 Thread Segher Boessenkool
Hi! On Sun, Dec 13, 2020 at 03:34:57PM +0100, Piotr Kubaj wrote: > this is only default tuning (-mtune, not -mcpu). It is both, actually (-mcpu= implies -mtune=) > Linux also does similarly in linux64.h: > 74 #undef PROCESSOR_DEFAULT > 75 #define PROCESSOR_DEFAULT PROCESSOR_POWER7 >

Re: rs6000: Update the processor defaults for FreeBSD

2020-12-13 Thread Piotr Kubaj via Gcc-patches
Hello, this is only default tuning (-mtune, not -mcpu). Linux also does similarly in linux64.h: 74 #undef PROCESSOR_DEFAULT 75 #define PROCESSOR_DEFAULT PROCESSOR_POWER7 76 #undef PROCESSOR_DEFAULT64 77 #define PROCESSOR_DEFAULT64 PROCESSOR_POWER8 Although there is hard to

Re: rs6000: Update the processor defaults for FreeBSD

2020-12-13 Thread Segher Boessenkool
On Sun, Dec 13, 2020 at 01:10:58AM +0100, Gerald Pfeifer wrote: > Piotr is the one spending most times on ensuring FreeBSD ports work > fine on POWER, so personally I'm happy to follow his recommendation > on such matters. I have a question though: > -/* Until now the 970 is the only Processor wh

rs6000: Update the processor defaults for FreeBSD

2020-12-12 Thread Gerald Pfeifer
Piotr is the one spending most times on ensuring FreeBSD ports work fine on POWER, so personally I'm happy to follow his recommendation on such matters. Okay for trunk and backports (GCC 10 at least)? Gerald gcc/ChangeLog: 2020-12-13 Piotr Kubaj Gerald Pfeifer * confi