[COMMITTED,1/2] gcc: xtensa: rename xtensa-dynconfig.c and update its build rule

Message ID 20230224000005.3355736-1-jcmvbkbc@gmail.com
State Not Applicable
Headers
Series [COMMITTED,1/2] gcc: xtensa: rename xtensa-dynconfig.c and update its build rule |

Checks

Context Check Description
snail/gcc-patch-check fail Git am fail log

Commit Message

Max Filippov Feb. 24, 2023, midnight UTC
  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 +++----
 .../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%)
  

Patch

diff --git a/gcc/config/xtensa/t-xtensa b/gcc/config/xtensa/t-xtensa
index d95bd6f15462..cf6574be0353 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