The new gt-rs6000-logue.h is common to all sub-targets in the port, so
it needs to be added for them.

It seems better to place the common target_gtfiles in the powerpc*-*-*
section, rather than duplicating them in sub-targets.  This would make it
less likely that a sub-target would be overlooked in any future file
introductions.

(could also be done for rs6000-*-*, but this file has already been added to
the sub-targets there)  

bootstrap succeeds powerpc-linux-gnu

OK for trunk (assuming Darwin bootstrap completes)?
Iain


2019-06-26  Iain Sandoe  <i...@sandoe.co.uk>

        * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
        (powerpc*-*-*) ... to here.


diff --git a/gcc/config.gcc b/gcc/config.gcc
index c9939b8..062ed8c 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -513,6 +513,7 @@ powerpc*-*-*)
                ;;
        esac
        extra_options="${extra_options} g.opt fused-madd.opt 
rs6000/rs6000-tables.opt"
+       target_gtfiles="$target_gtfiles \$(srcdir)/config/rs6000/rs6000-logue.c"
        ;;
 pru-*-*)
        cpu_type=pru
@@ -2693,7 +2694,6 @@ powerpc*-*-linux*)
        extra_options="${extra_options} rs6000/sysv4.opt"
        tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm"
        extra_objs="$extra_objs rs6000-linux.o"
-       target_gtfiles="$target_gtfiles \$(srcdir)/config/rs6000/rs6000-logue.c"
        case ${target} in
            powerpc*le-*-*)
                tm_file="${tm_file} rs6000/sysv4le.h" ;;

Reply via email to