72 lines
2.7 KiB
Diff
72 lines
2.7 KiB
Diff
|
|
From 746109cb61d6f3db4c25a9a107f30996c17f11db Mon Sep 17 00:00:00 2001
|
||
|
|
From: Yang Yujie <yangyujie@loongson.cn>
|
||
|
|
Date: Wed, 11 Oct 2023 17:59:53 +0800
|
||
|
|
Subject: [PATCH 006/188] LoongArch: Adjust makefile dependency for loongarch
|
||
|
|
headers.
|
||
|
|
|
||
|
|
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 | 4 ++--
|
||
|
|
gcc/config/loongarch/loongarch.h | 3 ---
|
||
|
|
gcc/config/loongarch/t-loongarch | 3 ++-
|
||
|
|
3 files changed, 4 insertions(+), 6 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/gcc/config.gcc b/gcc/config.gcc
|
||
|
|
index e34a5fbb9..11ab620d0 100644
|
||
|
|
--- a/gcc/config.gcc
|
||
|
|
+++ b/gcc/config.gcc
|
||
|
|
@@ -2508,7 +2508,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
|
||
|
|
@@ -2521,7 +2521,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
|
||
|
|
diff --git a/gcc/config/loongarch/loongarch.h b/gcc/config/loongarch/loongarch.h
|
||
|
|
index a443a6427..a2dc4ba8c 100644
|
||
|
|
--- a/gcc/config/loongarch/loongarch.h
|
||
|
|
+++ b/gcc/config/loongarch/loongarch.h
|
||
|
|
@@ -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
|
||
|
|
diff --git a/gcc/config/loongarch/t-loongarch b/gcc/config/loongarch/t-loongarch
|
||
|
|
index 28cfb49df..12734c37b 100644
|
||
|
|
--- a/gcc/config/loongarch/t-loongarch
|
||
|
|
+++ b/gcc/config/loongarch/t-loongarch
|
||
|
|
@@ -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
|
||
|
|
|
||
|
|
--
|
||
|
|
2.43.0
|
||
|
|
|