Hi!

On Mon, Dec 14, 2020 at 04:35:38PM +0100, Piotr Kubaj wrote:
> this patch implements support for powerpc64le architecture on FreeBSD. Since 
> we don't have powerpcle (32-bit), I did not add support for powerpcle here. 
> This remains to be changed if there is powerpcle support in the future.
> 
> Patch implements similar endian detection to what linux64.h uses.
> 
> Would it be ok to backport it to at least GCC 10?

> --- gcc/config.gcc.orig       2020-12-07 03:00:29 UTC
> +++ gcc/config.gcc
> @@ -2868,6 +2868,10 @@ powerpc*-*-freebsd*)
>       extra_options="${extra_options} rs6000/sysv4.opt"
>       tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} 
> rs6000/t-ppccomm"
>       case ${target} in
> +         powerpc*le-*-*)
> +             tm_file="${tm_file} rs6000/sysv4le.h" ;;
> +     esac

What an obvious filename ;-)

I guess we should put all these header files together into one again,
but that is hard to do without regressing things (I suspect this is
where the mystery power4 stems from as well, fwiw).

The patch looks fine.  Okay for trunk.  Also okay for any backports you
want (after waiting to see if it creates problems on trunk, as usual).

Thanks!


Segher

Reply via email to