[PATCH, PPC 1/2] Make sure the gt- files are built for all sub-targets.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 26 Jun 2019 19:00:16 +0000 (19:00 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Wed, 26 Jun 2019 19:00:16 +0000 (19:00 +0000)
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.

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

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

From-SVN: r272708

gcc/ChangeLog
gcc/config.gcc

index af5afa638b6d0940d75a6d8313c1ff18707ee2f9..8ee162b5f2c170e491bfc20ebb52865e2f666fc7 100644 (file)
@@ -1,3 +1,8 @@
+2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
+       (powerpc*-*-*) ... to here.
+
 2019-06-26  Jeff Law  <law@redhat.com>
 
        * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
index c9939b8684600bcc956d8cd4a08ada098376c157..062ed8cc1b6a1a01607b0abb2dc1a333a31c86e5 100644 (file)
@@ -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" ;;