Thank you very much, I think this should also be backported to Gcc12/13. Huacai
On Sat, Aug 19, 2023 at 11:59 AM Chenghua Xu <xucheng...@loongson.cn> wrote: > > Pushed as r14-3331. > > Thanks. > chenglulu writes: > > > LGTM! > > > > 在 2023/8/16 上午9:48, Guo Jie 写道: > >> gcc/ChangeLog: > >> > >> * config/loongarch/t-loongarch: Add loongarch-driver.h into > >> TM_H. Add loongarch-def.h and loongarch-tune.h into > >> OPTIONS_H_EXTRA. > >> > >> Co-authored-by: Lulu Cheng <chengl...@loongson.cn> > >> --- > >> gcc/config/loongarch/t-loongarch | 4 ++++ > >> 1 file changed, 4 insertions(+) > >> > >> diff --git a/gcc/config/loongarch/t-loongarch > >> b/gcc/config/loongarch/t-loongarch > >> index 6d6e3435d59..e73f4f437ef 100644 > >> --- a/gcc/config/loongarch/t-loongarch > >> +++ b/gcc/config/loongarch/t-loongarch > >> @@ -16,6 +16,10 @@ > >> # along with GCC; see the file COPYING3. If not see > >> # <http://www.gnu.org/licenses/>. > >> +TM_H += $(srcdir)/config/loongarch/loongarch-driver.h > >> +OPTIONS_H_EXTRA += $(srcdir)/config/loongarch/loongarch-def.h \ > >> + $(srcdir)/config/loongarch/loongarch-tune.h > >> + > >> # Canonical target triplet from config.gcc > >> LA_MULTIARCH_TRIPLET = $(patsubst LA_MULTIARCH_TRIPLET=%,%,$\ > >> $(filter LA_MULTIARCH_TRIPLET=%,$(tm_defines))) >