]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: Adjust makefile dependency for loongarch headers.
authorYang Yujie <yangyujie@loongson.cn>
Wed, 11 Oct 2023 09:59:53 +0000 (17:59 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Thu, 12 Oct 2023 07:22:52 +0000 (15:22 +0800)
gcc/ChangeLog:

* config.gcc: Add loongarch-driver.h to tm_files.
* config/loongarch/loongarch.h: Do not include loongarch-driver.h.
* config/loongarch/t-loongarch: Append loongarch-multilib.h to $(GTM_H)
instead of $(TM_H) for building generator programs.

gcc/config.gcc
gcc/config/loongarch/loongarch.h
gcc/config/loongarch/t-loongarch

index cc37a9c768dead4c6d8beb58941626cbd60ff67e..7d2fe2e29c3bdff255741d8a71d8ebfd4c7e567f 100644 (file)
@@ -2525,7 +2525,7 @@ riscv*-*-freebsd*)
 
 loongarch*-*-linux*)
        tm_file="elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file}"
-       tm_file="${tm_file} loongarch/gnu-user.h loongarch/linux.h"
+       tm_file="${tm_file} loongarch/gnu-user.h loongarch/linux.h loongarch/loongarch-driver.h"
        extra_options="${extra_options} linux-android.opt"
        tmake_file="${tmake_file} loongarch/t-multilib loongarch/t-linux"
        gnu_ld=yes
@@ -2538,7 +2538,7 @@ loongarch*-*-linux*)
 
 loongarch*-*-elf*)
        tm_file="elfos.h newlib-stdint.h ${tm_file}"
-       tm_file="${tm_file} loongarch/elf.h loongarch/linux.h"
+       tm_file="${tm_file} loongarch/elf.h loongarch/linux.h loongarch/loongarch-driver.h"
        tmake_file="${tmake_file} loongarch/t-multilib loongarch/t-linux"
        gnu_ld=yes
        gas=yes
index d357e32e4141f22016f1c654f1a5d6fd5445ce39..19a18fb5f1b47c8a687a32b58841713aaabc0753 100644 (file)
@@ -49,9 +49,6 @@ along with GCC; see the file COPYING3.  If not see
 
 #define TARGET_LIBGCC_SDATA_SECTION ".sdata"
 
-/* Driver native functions for SPEC processing in the GCC driver.  */
-#include "loongarch-driver.h"
-
 /* This definition replaces the formerly used 'm' constraint with a
    different constraint letter in order to avoid changing semantics of
    the 'm' constraint when accepting new address formats in
index 9b06fa84bcc80d6e6baaa3347e6ff2d7e1c0aa00..667a6bb3b50f54c69c5c3576c0db562044d58dc2 100644 (file)
@@ -16,7 +16,8 @@
 # along with GCC; see the file COPYING3.  If not see
 # <http://www.gnu.org/licenses/>.
 
-TM_H += loongarch-multilib.h $(srcdir)/config/loongarch/loongarch-driver.h
+
+GTM_H += loongarch-multilib.h
 OPTIONS_H_EXTRA += $(srcdir)/config/loongarch/loongarch-def.h \
                   $(srcdir)/config/loongarch/loongarch-tune.h