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 explain (for me) setting to tune for POWER7 on 
32-bits. POWER7 is 64-bit and it should be more reasonable to optimize for the 
last 32-bit machines that still may be in use (so G4).

That said, on the 64-bit front, we will just match the Linux setting.

On 20-12-13 08:23:53, Segher Boessenkool wrote:
> 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 where FreeBSD 64-bit runs on.  
> > */
> >  #undef  PROCESSOR_DEFAULT
> > -#define PROCESSOR_DEFAULT PROCESSOR_POWER4
> > +#define PROCESSOR_DEFAULT PROCESSOR_PPC7450
> >  #undef  PROCESSOR_DEFAULT64
> > -#define PROCESSOR_DEFAULT64 PROCESSOR_POWER4
> > +#define PROCESSOR_DEFAULT64 PROCESSOR_POWER8
> 
> Is this wise?  Binaries won't run on many BE systems anymore with
> this.  (Linux still uses Power4 by default for BE, as well).
> 
> In either case: yes, whatever you guys decide here is fine.  Also for
> all backports you want.  Thanks!
> 
> 
> Segher

Attachment: signature.asc
Description: PGP signature

Reply via email to