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, -mcpu is 
> > > the generic one (ppc970 for BE)
> > 
> > But that is not what the patch does?
> OK, then can you explain to me what it does since the generated assembly 
> still specifies .machine power4?

It's a mystery to me!  This macro *is* used for selecting the default
-mcpu= setting.

> This is my first attempt at improving GCC on powerpc* on FreeBSD and I'd 
> really prefer not to break anything, but this SEEMS to be correct.

You do everything the same as our Linux ports here, and all evidence
shows it does in fact work, so it is fine.  I just cannot see *why* or
*how* it works :-)


Segher

Reply via email to