From 84d340f958ff320d2355f693701455d08a1818cd Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Thu, 23 Feb 2023 15:43:48 -0800 Subject: [PATCH] gcc: xtensa: rename xtensa-dynconfig.c and update its build rule gcc/ * config/xtensa/t-xtensa (xtensa-dynconfig.o): Use $(COMPILE) and $(POSTCOMPILE) instead of manual dependency listing. * config/xtensa/xtensa-dynconfig.c: Rename to ... * config/xtensa/xtensa-dynconfig.cc: ... this. --- gcc/config/xtensa/t-xtensa | 7 +++---- gcc/config/xtensa/{xtensa-dynconfig.c => xtensa-dynconfig.cc} | 0 2 files changed, 3 insertions(+), 4 deletions(-) rename gcc/config/xtensa/{xtensa-dynconfig.c => xtensa-dynconfig.cc} (100%) diff --git a/gcc/config/xtensa/t-xtensa b/gcc/config/xtensa/t-xtensa index d95bd6f..cf6574b 100644 --- a/gcc/config/xtensa/t-xtensa +++ b/gcc/config/xtensa/t-xtensa @@ -20,7 +20,6 @@ TM_H += $(srcdir)/../include/xtensa-config.h \ $(srcdir)/../include/xtensa-dynconfig.h $(out_object_file): gt-xtensa.h -xtensa-dynconfig.o: $(srcdir)/config/xtensa/xtensa-dynconfig.c \ - $(CONFIG_H) $(SYSTEM_H) $(srcdir)/../include/xtensa-dynconfig.h \ - $(srcdir)/../include/xtensa-config.h - $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $< +xtensa-dynconfig.o: $(srcdir)/config/xtensa/xtensa-dynconfig.cc + $(COMPILE) $< + $(POSTCOMPILE) diff --git a/gcc/config/xtensa/xtensa-dynconfig.c b/gcc/config/xtensa/xtensa-dynconfig.cc similarity index 100% rename from gcc/config/xtensa/xtensa-dynconfig.c rename to gcc/config/xtensa/xtensa-dynconfig.cc -- 2.7.4