public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] GCC/Rust pieces of GCC upstream "Mass rename of C++ .c files to .cc suffix"
@ 2022-06-08 12:03 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:03 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:5691503f11fb6bc5acd8be1e43faa0c5898c4b14

commit 5691503f11fb6bc5acd8be1e43faa0c5898c4b14
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Wed Feb 2 23:45:31 2022 +0100

    GCC/Rust pieces of GCC upstream "Mass rename of C++ .c files to .cc suffix"
    
    ... in preparation of merge of the latter.

Diff:
---
 gcc/Makefile.in                                           | 2 +-
 gcc/config/aarch64/aarch64-protos.h                       | 2 +-
 gcc/config/aarch64/{aarch64-rust.c => aarch64-rust.cc}    | 0
 gcc/config/aarch64/t-aarch64                              | 2 +-
 gcc/config/alpha/alpha-protos.h                           | 2 +-
 gcc/config/alpha/{alpha-rust.c => alpha-rust.cc}          | 0
 gcc/config/alpha/t-alpha                                  | 2 +-
 gcc/config/arc/arc-protos.h                               | 2 +-
 gcc/config/arc/{arc-rust.c => arc-rust.cc}                | 0
 gcc/config/arc/t-arc                                      | 4 ++--
 gcc/config/arm/arm-protos.h                               | 2 +-
 gcc/config/arm/{arm-rust.c => arm-rust.cc}                | 2 +-
 gcc/config/arm/t-arm                                      | 2 +-
 gcc/config/c6x/c6x-protos.h                               | 2 +-
 gcc/config/c6x/{c6x-rust.c => c6x-rust.cc}                | 0
 gcc/config/c6x/t-c6x                                      | 2 +-
 gcc/config/cr16/cr16-protos.h                             | 2 +-
 gcc/config/cr16/{cr16-rust.c => cr16-rust.cc}             | 0
 gcc/config/cr16/t-cr16                                    | 2 +-
 gcc/config/csky/{csky-rust.c => csky-rust.cc}             | 0
 gcc/config/csky/t-csky                                    | 2 +-
 gcc/config/{default-rust.c => default-rust.cc}            | 0
 gcc/config/epiphany/epiphany-protos.h                     | 2 +-
 gcc/config/epiphany/{epiphany-rust.c => epiphany-rust.cc} | 0
 gcc/config/epiphany/t-epiphany                            | 2 +-
 gcc/config/frv/frv-protos.h                               | 2 +-
 gcc/config/frv/{frv-rust.c => frv-rust.cc}                | 0
 gcc/config/frv/t-frv                                      | 2 +-
 gcc/config/i386/i386-protos.h                             | 2 +-
 gcc/config/i386/{i386-rust.c => i386-rust.cc}             | 0
 gcc/config/i386/t-i386                                    | 2 +-
 gcc/config/ia64/ia64-protos.h                             | 2 +-
 gcc/config/ia64/{ia64-rust.c => ia64-rust.cc}             | 0
 gcc/config/ia64/t-ia64                                    | 2 +-
 gcc/config/m68k/m68k-protos.h                             | 2 +-
 gcc/config/m68k/{m68k-rust.c => m68k-rust.cc}             | 0
 gcc/config/m68k/t-opts                                    | 2 +-
 gcc/config/mips/mips-protos.h                             | 2 +-
 gcc/config/mips/{mips-rust.c => mips-rust.cc}             | 0
 gcc/config/mips/t-mips                                    | 2 +-
 gcc/config/nds32/nds32-protos.h                           | 2 +-
 gcc/config/nds32/{nds32-rust.c => nds32-rust.cc}          | 0
 gcc/config/nds32/t-nds32                                  | 2 +-
 gcc/config/nios2/nios2-protos.h                           | 2 +-
 gcc/config/nios2/{nios2-rust.c => nios2-rust.cc}          | 0
 gcc/config/nios2/t-nios2                                  | 2 +-
 gcc/config/nvptx/nvptx-protos.h                           | 2 +-
 gcc/config/nvptx/{nvptx-rust.c => nvptx-rust.cc}          | 0
 gcc/config/nvptx/t-nvptx                                  | 2 +-
 gcc/config/or1k/or1k-protos.h                             | 2 +-
 gcc/config/or1k/{or1k-rust.c => or1k-rust.cc}             | 0
 gcc/config/or1k/t-or1k                                    | 2 +-
 gcc/config/pa/pa-protos.h                                 | 2 +-
 gcc/config/pa/{pa-rust.c => pa-rust.cc}                   | 0
 gcc/config/pa/t-pa                                        | 2 +-
 gcc/config/pdp11/pdp11-protos.h                           | 2 +-
 gcc/config/pdp11/{pdp11-rust.c => pdp11-rust.cc}          | 0
 gcc/config/pdp11/t-pdp11                                  | 2 +-
 gcc/config/riscv/riscv-protos.h                           | 2 +-
 gcc/config/riscv/{riscv-rust.c => riscv-rust.cc}          | 0
 gcc/config/riscv/t-riscv                                  | 2 +-
 gcc/config/rs6000/rs6000-protos.h                         | 2 +-
 gcc/config/rs6000/{rs6000-rust.c => rs6000-rust.cc}       | 2 +-
 gcc/config/rs6000/t-rs6000                                | 2 +-
 gcc/config/rx/rx-protos.h                                 | 2 +-
 gcc/config/rx/{rx-rust.c => rx-rust.cc}                   | 0
 gcc/config/rx/t-rx                                        | 2 +-
 gcc/config/s390/s390-protos.h                             | 2 +-
 gcc/config/s390/{s390-rust.c => s390-rust.cc}             | 0
 gcc/config/s390/t-s390                                    | 2 +-
 gcc/config/sh/sh-protos.h                                 | 2 +-
 gcc/config/sh/{sh-rust.c => sh-rust.cc}                   | 0
 gcc/config/sh/t-sh                                        | 2 +-
 gcc/config/sparc/sparc-protos.h                           | 2 +-
 gcc/config/sparc/{sparc-rust.c => sparc-rust.cc}          | 0
 gcc/config/sparc/t-sparc                                  | 2 +-
 gcc/config/v850/t-v850                                    | 2 +-
 gcc/config/v850/v850-protos.h                             | 2 +-
 gcc/config/v850/{v850-rust.c => v850-rust.cc}             | 0
 gcc/rust/{rust-object-export.c => rust-object-export.cc}  | 0
 80 files changed, 55 insertions(+), 55 deletions(-)

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 84f9209dce5..f707a3587d0 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -2307,7 +2307,7 @@ default-d.o: config/default-d.c
 
 # Files used by the Rust language front end.
 
-default-rust.o: config/default-rust.c
+default-rust.o: config/default-rust.cc
 	$(COMPILE) $<
 	$(POSTCOMPILE)
 
diff --git a/gcc/config/aarch64/aarch64-protos.h b/gcc/config/aarch64/aarch64-protos.h
index 6100213d1cb..9419b7549b2 100644
--- a/gcc/config/aarch64/aarch64-protos.h
+++ b/gcc/config/aarch64/aarch64-protos.h
@@ -1026,7 +1026,7 @@ std::string aarch64_get_extension_string_for_isa_flags (uint64_t, uint64_t);
 extern void aarch64_d_target_versions (void);
 extern void aarch64_d_register_target_info (void);
 
-/* In aarch64-rust.c  */
+/* In aarch64-rust.cc  */
 extern void aarch64_rust_target_cpu_info (void);
 
 rtl_opt_pass *make_pass_fma_steering (gcc::context *);
diff --git a/gcc/config/aarch64/aarch64-rust.c b/gcc/config/aarch64/aarch64-rust.cc
similarity index 100%
rename from gcc/config/aarch64/aarch64-rust.c
rename to gcc/config/aarch64/aarch64-rust.cc
diff --git a/gcc/config/aarch64/t-aarch64 b/gcc/config/aarch64/t-aarch64
index 5c060975720..baf5bff4626 100644
--- a/gcc/config/aarch64/t-aarch64
+++ b/gcc/config/aarch64/t-aarch64
@@ -118,7 +118,7 @@ aarch64-d.o: $(srcdir)/config/aarch64/aarch64-d.c
 	$(COMPILE) $<
 	$(POSTCOMPILE)
 
-aarch64-rust.o: $(srcdir)/config/aarch64/aarch64-rust.c
+aarch64-rust.o: $(srcdir)/config/aarch64/aarch64-rust.cc
 	$(COMPILE) $<
 	$(POSTCOMPILE)
 
diff --git a/gcc/config/alpha/alpha-protos.h b/gcc/config/alpha/alpha-protos.h
index 4fe71bdf286..80c9ad0412f 100644
--- a/gcc/config/alpha/alpha-protos.h
+++ b/gcc/config/alpha/alpha-protos.h
@@ -112,7 +112,7 @@ extern bool some_small_symbolic_operand_int (rtx);
 extern int tls_symbolic_operand_1 (rtx, int, int);
 extern rtx resolve_reload_operand (rtx);
 
-/* Declare functions in alpha-rust.c  */
+/* Declare functions in alpha-rust.cc  */
 extern void alpha_rust_target_cpu_info (void);
 
 namespace gcc { class context; }
diff --git a/gcc/config/alpha/alpha-rust.c b/gcc/config/alpha/alpha-rust.cc
similarity index 100%
rename from gcc/config/alpha/alpha-rust.c
rename to gcc/config/alpha/alpha-rust.cc
diff --git a/gcc/config/alpha/t-alpha b/gcc/config/alpha/t-alpha
index 23c77992ddc..bbf991454f1 100644
--- a/gcc/config/alpha/t-alpha
+++ b/gcc/config/alpha/t-alpha
@@ -18,6 +18,6 @@
 
 PASSES_EXTRA += $(srcdir)/config/alpha/alpha-passes.def
 
-alpha-rust.o: $(srcdir)/config/alpha/alpha-rust.c
+alpha-rust.o: $(srcdir)/config/alpha/alpha-rust.cc
 	$(COMPILE) $<
 	$(POSTCOMPILE)
diff --git a/gcc/config/arc/arc-protos.h b/gcc/config/arc/arc-protos.h
index 9e2f7896cdd..315b677c9be 100644
--- a/gcc/config/arc/arc-protos.h
+++ b/gcc/config/arc/arc-protos.h
@@ -108,7 +108,7 @@ extern bool arc_is_jli_call_p (rtx);
 extern void arc_file_end (void);
 extern bool arc_is_secure_call_p (rtx);
 
-/* Declare functions in arc-rust.c  */
+/* Declare functions in arc-rust.cc  */
 extern void arc_rust_target_cpu_info (void);
 
 rtl_opt_pass * make_pass_arc_ifcvt (gcc::context *ctxt);
diff --git a/gcc/config/arc/arc-rust.c b/gcc/config/arc/arc-rust.cc
similarity index 100%
rename from gcc/config/arc/arc-rust.c
rename to gcc/config/arc/arc-rust.cc
diff --git a/gcc/config/arc/t-arc b/gcc/config/arc/t-arc
index 4e796a462ff..2f374994cd5 100644
--- a/gcc/config/arc/t-arc
+++ b/gcc/config/arc/t-arc
@@ -28,10 +28,10 @@ $(TREE_H) $(TM_H) $(TM_P_H) coretypes.h
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
 		$(srcdir)/config/arc/arc-c.c
 
-arc-rust.o: $(srcdir)/config/arc/arc-rust.c $(CONFIG_H) $(SYSTEM_H) \
+arc-rust.o: $(srcdir)/config/arc/arc-rust.cc $(CONFIG_H) $(SYSTEM_H) \
 $(TREE_H) $(TM_H) $(TM_P_H) coretypes.h
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
-		$(srcdir)/config/arc/arc-rust.c
+		$(srcdir)/config/arc/arc-rust.cc
 
 #Run `arc-cpus` if you changed something in arc-cpus.def
 
diff --git a/gcc/config/arm/arm-protos.h b/gcc/config/arm/arm-protos.h
index e79a9b4b649..0f5d640d562 100644
--- a/gcc/config/arm/arm-protos.h
+++ b/gcc/config/arm/arm-protos.h
@@ -403,7 +403,7 @@ extern void arm_cpu_cpp_builtins (struct cpp_reader *);
 extern void arm_d_target_versions (void);
 extern void arm_d_register_target_info (void);
 
-/* Defined in arm-rust.c  */
+/* Defined in arm-rust.cc  */
 extern void arm_rust_target_cpu_info (void);
 
 extern bool arm_is_constant_pool_ref (rtx);
diff --git a/gcc/config/arm/arm-rust.c b/gcc/config/arm/arm-rust.cc
similarity index 99%
rename from gcc/config/arm/arm-rust.c
rename to gcc/config/arm/arm-rust.cc
index ffa19e6f6de..0c78ce6e92a 100644
--- a/gcc/config/arm/arm-rust.c
+++ b/gcc/config/arm/arm-rust.cc
@@ -40,7 +40,7 @@ void arm_rust_target_cpu_info(void) {
             rust_add_target_info("target_feature", "mclass");
             break;
         default:
-            fprintf(stderr, "Screwed up profile selection in arm-rust.c - unknown profile '%c'",
+            fprintf(stderr, "Screwed up profile selection in arm-rust.cc - unknown profile '%c'",
               TARGET_ARM_ARCH_PROFILE);
             break;
     }
diff --git a/gcc/config/arm/t-arm b/gcc/config/arm/t-arm
index 4271c421c88..8a4193d8fcb 100644
--- a/gcc/config/arm/t-arm
+++ b/gcc/config/arm/t-arm
@@ -172,7 +172,7 @@ arm-d.o: $(srcdir)/config/arm/arm-d.c
 	$(COMPILE) $<
 	$(POSTCOMPILE)
 
-arm-rust.o: $(srcdir)/config/arm/arm-rust.c
+arm-rust.o: $(srcdir)/config/arm/arm-rust.cc
 	$(COMPILE) $<
 	$(POSTCOMPILE)
 
diff --git a/gcc/config/c6x/c6x-protos.h b/gcc/config/c6x/c6x-protos.h
index 21231c7db2c..a8a14b41401 100644
--- a/gcc/config/c6x/c6x-protos.h
+++ b/gcc/config/c6x/c6x-protos.h
@@ -21,7 +21,7 @@
 #ifndef GCC_C6X_PROTOS_H
 #define GCC_C6X_PROTOS_H
 
-/* Defined in c6x-rust.c  */
+/* Defined in c6x-rust.cc  */
 extern void c6x_rust_target_cpu_info (void);
 
 /* Functions defined in c6x.c.  */
diff --git a/gcc/config/c6x/c6x-rust.c b/gcc/config/c6x/c6x-rust.cc
similarity index 100%
rename from gcc/config/c6x/c6x-rust.c
rename to gcc/config/c6x/c6x-rust.cc
diff --git a/gcc/config/c6x/t-c6x b/gcc/config/c6x/t-c6x
index 1148dd86820..7ed31d38d85 100644
--- a/gcc/config/c6x/t-c6x
+++ b/gcc/config/c6x/t-c6x
@@ -43,6 +43,6 @@ $(srcdir)/config/c6x/c6x-tables.opt: $(srcdir)/config/c6x/genopt.sh \
 	$(SHELL) $(srcdir)/config/c6x/genopt.sh $(srcdir)/config/c6x > \
 		$(srcdir)/config/c6x/c6x-tables.opt
 
-c6x-rust.o: $(srcdir)/config/c6x/c6x-rust.c \
+c6x-rust.o: $(srcdir)/config/c6x/c6x-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
diff --git a/gcc/config/cr16/cr16-protos.h b/gcc/config/cr16/cr16-protos.h
index fccd6e01bf9..a1c5d266309 100644
--- a/gcc/config/cr16/cr16-protos.h
+++ b/gcc/config/cr16/cr16-protos.h
@@ -45,7 +45,7 @@ enum data_model_type
   ILLEGAL_DM		/* Illegal data model.  */
 };
 
-/* Defined in cr16-rust.c  */
+/* Defined in cr16-rust.cc  */
 extern void cr16_rust_target_cpu_info (void);
 
 #ifdef RTX_CODE
diff --git a/gcc/config/cr16/cr16-rust.c b/gcc/config/cr16/cr16-rust.cc
similarity index 100%
rename from gcc/config/cr16/cr16-rust.c
rename to gcc/config/cr16/cr16-rust.cc
diff --git a/gcc/config/cr16/t-cr16 b/gcc/config/cr16/t-cr16
index 86aafef4d30..dfc714be979 100644
--- a/gcc/config/cr16/t-cr16
+++ b/gcc/config/cr16/t-cr16
@@ -23,6 +23,6 @@ MULTILIB_DIRNAMES    = far-pic int32
 MULTILIB_MATCHES     =
 MULTILIB_EXTRA_OPTS  = mcr16cplus mdata-model=far
 
-cr16-rust.o: $(srcdir)/config/cr16/cr16-rust.c \
+cr16-rust.o: $(srcdir)/config/cr16/cr16-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
diff --git a/gcc/config/csky/csky-rust.c b/gcc/config/csky/csky-rust.cc
similarity index 100%
rename from gcc/config/csky/csky-rust.c
rename to gcc/config/csky/csky-rust.cc
diff --git a/gcc/config/csky/t-csky b/gcc/config/csky/t-csky
index 467ac0ac440..902ec7035c0 100644
--- a/gcc/config/csky/t-csky
+++ b/gcc/config/csky/t-csky
@@ -28,6 +28,6 @@ $(srcdir)/config/csky/csky_tables.opt: $(srcdir)/config/csky/csky_genopt.sh \
 	$(SHELL) $(srcdir)/config/csky/csky_genopt.sh $(srcdir)/config/csky > \
 		$(srcdir)/config/csky/csky_tables.opt
 
-csky-rust.o: $(srcdir)/config/csky/csky-rust.c \
+csky-rust.o: $(srcdir)/config/csky/csky-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
diff --git a/gcc/config/default-rust.c b/gcc/config/default-rust.cc
similarity index 100%
rename from gcc/config/default-rust.c
rename to gcc/config/default-rust.cc
diff --git a/gcc/config/epiphany/epiphany-protos.h b/gcc/config/epiphany/epiphany-protos.h
index 867169cd542..c1c9b3d5b18 100644
--- a/gcc/config/epiphany/epiphany-protos.h
+++ b/gcc/config/epiphany/epiphany-protos.h
@@ -26,7 +26,7 @@ extern struct rtx_def *gen_compare_reg (machine_mode, enum rtx_code,
 					machine_mode, rtx, rtx);
 #endif
 
-/* Defined in epiphany-rust.c  */
+/* Defined in epiphany-rust.cc  */
 extern void epiphany_rust_target_cpu_info (void);
 
 /* Declarations for various fns used in the .md file.  */
diff --git a/gcc/config/epiphany/epiphany-rust.c b/gcc/config/epiphany/epiphany-rust.cc
similarity index 100%
rename from gcc/config/epiphany/epiphany-rust.c
rename to gcc/config/epiphany/epiphany-rust.cc
diff --git a/gcc/config/epiphany/t-epiphany b/gcc/config/epiphany/t-epiphany
index b53523aa07a..c7f24349407 100644
--- a/gcc/config/epiphany/t-epiphany
+++ b/gcc/config/epiphany/t-epiphany
@@ -30,7 +30,7 @@ resolve-sw-modes.o : $(srcdir)/config/epiphany/resolve-sw-modes.c \
   insn-attr-common.h $(TREE_PASS_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $<
 
-epiphany-rust.o: $(srcdir)/config/epiphany/epiphany-rust.c \
+epiphany-rust.o: $(srcdir)/config/epiphany/epiphany-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
 
diff --git a/gcc/config/frv/frv-protos.h b/gcc/config/frv/frv-protos.h
index d284da1186a..3926f2e04d5 100644
--- a/gcc/config/frv/frv-protos.h
+++ b/gcc/config/frv/frv-protos.h
@@ -26,7 +26,7 @@ extern void frv_debug_stack			(frv_stack_t *);
 extern int frv_initial_elimination_offset	(int, int);
 extern void frv_ifcvt_machdep_init		(void *);
 
-/* Defined in frv-rust.c  */
+/* Defined in frv-rust.cc  */
 extern void frv_rust_target_cpu_info (void);
 
 #ifdef RTX_CODE
diff --git a/gcc/config/frv/frv-rust.c b/gcc/config/frv/frv-rust.cc
similarity index 100%
rename from gcc/config/frv/frv-rust.c
rename to gcc/config/frv/frv-rust.cc
diff --git a/gcc/config/frv/t-frv b/gcc/config/frv/t-frv
index 7d2f0a3bfe4..d0c94221055 100644
--- a/gcc/config/frv/t-frv
+++ b/gcc/config/frv/t-frv
@@ -35,6 +35,6 @@ MULTILIB_EXCEPTIONS	= mcpu=frv/mno-pack* mcpu=simple/mno-pack*
 
 EXTRA_HEADERS = $(srcdir)/config/frv/frv-asm.h
 
-frv-rust.o: $(srcdir)/config/frv/frv-rust.c \
+frv-rust.o: $(srcdir)/config/frv/frv-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
diff --git a/gcc/config/i386/i386-protos.h b/gcc/config/i386/i386-protos.h
index e0f3ce4f193..8a9fe6ccd16 100644
--- a/gcc/config/i386/i386-protos.h
+++ b/gcc/config/i386/i386-protos.h
@@ -276,7 +276,7 @@ extern void ix86_d_target_versions (void);
 extern void ix86_d_register_target_info (void);
 extern bool ix86_d_has_stdcall_convention (unsigned int *, unsigned int *);
 
-/* In i386-rust.c  */
+/* In i386-rust.cc  */
 extern void ix86_rust_target_cpu_info (void);
 
 /* In winnt.c  */
diff --git a/gcc/config/i386/i386-rust.c b/gcc/config/i386/i386-rust.cc
similarity index 100%
rename from gcc/config/i386/i386-rust.c
rename to gcc/config/i386/i386-rust.cc
diff --git a/gcc/config/i386/t-i386 b/gcc/config/i386/t-i386
index c2d77efa0d9..1203f2e77fa 100644
--- a/gcc/config/i386/t-i386
+++ b/gcc/config/i386/t-i386
@@ -46,7 +46,7 @@ i386-d.o: $(srcdir)/config/i386/i386-d.c
 	$(COMPILE) $<
 	$(POSTCOMPILE)
 
-i386-rust.o: $(srcdir)/config/i386/i386-rust.c
+i386-rust.o: $(srcdir)/config/i386/i386-rust.cc
 	$(COMPILE) $<
 	$(POSTCOMPILE)
 
diff --git a/gcc/config/ia64/ia64-protos.h b/gcc/config/ia64/ia64-protos.h
index 2af6fb3af61..34857bacf1b 100644
--- a/gcc/config/ia64/ia64-protos.h
+++ b/gcc/config/ia64/ia64-protos.h
@@ -65,7 +65,7 @@ extern void ia64_expand_vec_perm_even_odd (rtx, rtx, rtx, int);
 extern void ia64_expand_vec_setv2sf (rtx op[3]);
 #endif /* RTX_CODE */
 
-/* Defined in ia64-rust.c  */
+/* Defined in ia64-rust.cc  */
 extern void ia64_rust_target_cpu_info (void);
 
 #ifdef TREE_CODE
diff --git a/gcc/config/ia64/ia64-rust.c b/gcc/config/ia64/ia64-rust.cc
similarity index 100%
rename from gcc/config/ia64/ia64-rust.c
rename to gcc/config/ia64/ia64-rust.cc
diff --git a/gcc/config/ia64/t-ia64 b/gcc/config/ia64/t-ia64
index d0ab7a31b61..79790bd2011 100644
--- a/gcc/config/ia64/t-ia64
+++ b/gcc/config/ia64/t-ia64
@@ -21,7 +21,7 @@ ia64-c.o: $(srcdir)/config/ia64/ia64-c.c $(CONFIG_H) $(SYSTEM_H) \
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
 		$(srcdir)/config/ia64/ia64-c.c
 
-ia64-rust.o: $(srcdir)/config/ia64/ia64-rust.c \
+ia64-rust.o: $(srcdir)/config/ia64/ia64-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
 
diff --git a/gcc/config/m68k/m68k-protos.h b/gcc/config/m68k/m68k-protos.h
index 419dce48e75..3140b1d46fd 100644
--- a/gcc/config/m68k/m68k-protos.h
+++ b/gcc/config/m68k/m68k-protos.h
@@ -101,7 +101,7 @@ extern enum attr_op_mem m68k_sched_attr_op_mem (rtx_insn *);
 
 #endif /* RTX_CODE */
 
-/* Defined in m68k-rust.c  */
+/* Defined in m68k-rust.cc  */
 extern void m68k_rust_target_cpu_info (void);
 
 extern enum reg_class m68k_secondary_reload_class (enum reg_class,
diff --git a/gcc/config/m68k/m68k-rust.c b/gcc/config/m68k/m68k-rust.cc
similarity index 100%
rename from gcc/config/m68k/m68k-rust.c
rename to gcc/config/m68k/m68k-rust.cc
diff --git a/gcc/config/m68k/t-opts b/gcc/config/m68k/t-opts
index 4f1ce871968..5e43b474461 100644
--- a/gcc/config/m68k/t-opts
+++ b/gcc/config/m68k/t-opts
@@ -7,6 +7,6 @@ $(srcdir)/config/m68k/m68k-tables.opt: $(srcdir)/config/m68k/genopt.sh \
 	$(SHELL) $(srcdir)/config/m68k/genopt.sh $(srcdir)/config/m68k > \
 		$(srcdir)/config/m68k/m68k-tables.opt
 
-m68k-rust.o: $(srcdir)/config/m68k/m68k-rust.c \
+m68k-rust.o: $(srcdir)/config/m68k/m68k-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
diff --git a/gcc/config/mips/mips-protos.h b/gcc/config/mips/mips-protos.h
index 8e09592a956..5e12826ed90 100644
--- a/gcc/config/mips/mips-protos.h
+++ b/gcc/config/mips/mips-protos.h
@@ -392,7 +392,7 @@ extern void mips_expand_vec_cmp_expr (rtx *);
 extern void mips_d_target_versions (void);
 extern void mips_d_register_target_info (void);
 
-/* Routines implemented in mips-rust.c  */
+/* Routines implemented in mips-rust.cc  */
 extern void mips_rust_target_cpu_info (void);
 
 #endif /* ! GCC_MIPS_PROTOS_H */
diff --git a/gcc/config/mips/mips-rust.c b/gcc/config/mips/mips-rust.cc
similarity index 100%
rename from gcc/config/mips/mips-rust.c
rename to gcc/config/mips/mips-rust.cc
diff --git a/gcc/config/mips/t-mips b/gcc/config/mips/t-mips
index b50ae524ece..851dd55907f 100644
--- a/gcc/config/mips/t-mips
+++ b/gcc/config/mips/t-mips
@@ -29,6 +29,6 @@ mips-d.o: $(srcdir)/config/mips/mips-d.c
 	$(COMPILE) $<
 	$(POSTCOMPILE)
 
-mips-rust.o: $(srcdir)/config/mips/mips-rust.c \
+mips-rust.o: $(srcdir)/config/mips/mips-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
diff --git a/gcc/config/nds32/nds32-protos.h b/gcc/config/nds32/nds32-protos.h
index 2547668e74d..e525656bd84 100644
--- a/gcc/config/nds32/nds32-protos.h
+++ b/gcc/config/nds32/nds32-protos.h
@@ -319,7 +319,7 @@ extern int nds32_address_cost_impl (rtx, machine_mode, addr_space_t, bool);
 /* Auxiliary functions for pre-define marco.  */
 extern void nds32_cpu_cpp_builtins(struct cpp_reader *);
 
-/* Routines implemented in nds32-rust.c  */
+/* Routines implemented in nds32-rust.cc  */
 extern void nds32_rust_target_cpu_info (void);
 
 /* Auxiliary functions for const_vector's constraints.  */
diff --git a/gcc/config/nds32/nds32-rust.c b/gcc/config/nds32/nds32-rust.cc
similarity index 100%
rename from gcc/config/nds32/nds32-rust.c
rename to gcc/config/nds32/nds32-rust.cc
diff --git a/gcc/config/nds32/t-nds32 b/gcc/config/nds32/t-nds32
index 84fd6d4cd0f..0afea637445 100644
--- a/gcc/config/nds32/t-nds32
+++ b/gcc/config/nds32/t-nds32
@@ -145,6 +145,6 @@ nds32-utils.o: \
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
 		$(srcdir)/config/nds32/nds32-utils.c
 
-nds32-rust.o: $(srcdir)/config/nds32/nds32-rust.c \
+nds32-rust.o: $(srcdir)/config/nds32/nds32-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
diff --git a/gcc/config/nios2/nios2-protos.h b/gcc/config/nios2/nios2-protos.h
index fcbcf791ed4..de3be7116b3 100644
--- a/gcc/config/nios2/nios2-protos.h
+++ b/gcc/config/nios2/nios2-protos.h
@@ -30,7 +30,7 @@ extern bool nios2_expand_return (void);
 extern void nios2_function_profiler (FILE *, int);
 extern bool nios2_fpu_insn_enabled (enum n2fpu_code);
 
-/* Routines implemented in nios2-rust.c  */
+/* Routines implemented in nios2-rust.cc  */
 extern void nios2_rust_target_cpu_info (void);
 
 #ifdef RTX_CODE
diff --git a/gcc/config/nios2/nios2-rust.c b/gcc/config/nios2/nios2-rust.cc
similarity index 100%
rename from gcc/config/nios2/nios2-rust.c
rename to gcc/config/nios2/nios2-rust.cc
diff --git a/gcc/config/nios2/t-nios2 b/gcc/config/nios2/t-nios2
index 6be5918844e..f48788c2ff5 100644
--- a/gcc/config/nios2/t-nios2
+++ b/gcc/config/nios2/t-nios2
@@ -26,6 +26,6 @@
 # MULTILIB_DIRNAMES += le be
 # MULTILIB_MATCHES += EL=mel EB=meb
 
-nios2-rust.o: $(srcdir)/config/nios2/nios2-rust.c \
+nios2-rust.o: $(srcdir)/config/nios2/nios2-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
diff --git a/gcc/config/nvptx/nvptx-protos.h b/gcc/config/nvptx/nvptx-protos.h
index 36288f382c2..2756376fb7b 100644
--- a/gcc/config/nvptx/nvptx-protos.h
+++ b/gcc/config/nvptx/nvptx-protos.h
@@ -44,7 +44,7 @@ extern void nvptx_cpu_cpp_builtins (void);
 extern void nvptx_register_pragmas (void);
 extern unsigned int nvptx_data_alignment (const_tree, unsigned int);
 
-/* Routines implemented in nvptx-rust.c  */
+/* Routines implemented in nvptx-rust.cc  */
 extern void nvptx_rust_target_cpu_info (void);
 
 #ifdef RTX_CODE
diff --git a/gcc/config/nvptx/nvptx-rust.c b/gcc/config/nvptx/nvptx-rust.cc
similarity index 100%
rename from gcc/config/nvptx/nvptx-rust.c
rename to gcc/config/nvptx/nvptx-rust.cc
diff --git a/gcc/config/nvptx/t-nvptx b/gcc/config/nvptx/t-nvptx
index 6cad4d36fb5..643a72919a8 100644
--- a/gcc/config/nvptx/t-nvptx
+++ b/gcc/config/nvptx/t-nvptx
@@ -15,6 +15,6 @@ mkoffload$(exeext): mkoffload.o collect-utils.o libcommon-target.a $(LIBIBERTY)
 
 MULTILIB_OPTIONS = mgomp
 
-nvptx-rust.o: $(srcdir)/config/nvptx/nvptx-rust.c \
+nvptx-rust.o: $(srcdir)/config/nvptx/nvptx-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
diff --git a/gcc/config/or1k/or1k-protos.h b/gcc/config/or1k/or1k-protos.h
index 3efd2a272e7..08e4e7fdc99 100644
--- a/gcc/config/or1k/or1k-protos.h
+++ b/gcc/config/or1k/or1k-protos.h
@@ -29,7 +29,7 @@ extern void or1k_expand_move (machine_mode, rtx, rtx);
 extern void or1k_expand_compare (rtx *);
 extern void or1k_expand_call (rtx, rtx, rtx, bool);
 
-/* Routines implemented in or1k-rust.c  */
+/* Routines implemented in or1k-rust.cc  */
 extern void or1k_rust_target_cpu_info (void);
 
 #ifdef RTX_CODE
diff --git a/gcc/config/or1k/or1k-rust.c b/gcc/config/or1k/or1k-rust.cc
similarity index 100%
rename from gcc/config/or1k/or1k-rust.c
rename to gcc/config/or1k/or1k-rust.cc
diff --git a/gcc/config/or1k/t-or1k b/gcc/config/or1k/t-or1k
index e7dcf5a7ffd..d8e96831a3e 100644
--- a/gcc/config/or1k/t-or1k
+++ b/gcc/config/or1k/t-or1k
@@ -21,6 +21,6 @@
 comma=,
 MULTILIB_OPTIONS = $(subst $(comma), ,$(TM_MULTILIB_CONFIG))
 
-or1k-rust.o: $(srcdir)/config/or1k/or1k-rust.c \
+or1k-rust.o: $(srcdir)/config/or1k/or1k-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
diff --git a/gcc/config/pa/pa-protos.h b/gcc/config/pa/pa-protos.h
index bd4dadafefc..68a7c185449 100644
--- a/gcc/config/pa/pa-protos.h
+++ b/gcc/config/pa/pa-protos.h
@@ -116,5 +116,5 @@ extern const int pa_magic_milli[];
 extern void pa_d_target_versions (void);
 extern void pa_d_register_target_info (void);
 
-/* Routines implemented in pa-rust.c  */
+/* Routines implemented in pa-rust.cc  */
 extern void pa_rust_target_cpu_info (void);
diff --git a/gcc/config/pa/pa-rust.c b/gcc/config/pa/pa-rust.cc
similarity index 100%
rename from gcc/config/pa/pa-rust.c
rename to gcc/config/pa/pa-rust.cc
diff --git a/gcc/config/pa/t-pa b/gcc/config/pa/t-pa
index 52deee61294..42dbde291f4 100644
--- a/gcc/config/pa/t-pa
+++ b/gcc/config/pa/t-pa
@@ -2,6 +2,6 @@ pa-d.o: $(srcdir)/config/pa/pa-d.c
 	$(COMPILE) $<
 	$(POSTCOMPILE)
 
-pa-rust.o: $(srcdir)/config/pa/pa-rust.c \
+pa-rust.o: $(srcdir)/config/pa/pa-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
diff --git a/gcc/config/pdp11/pdp11-protos.h b/gcc/config/pdp11/pdp11-protos.h
index ac28888ee50..19592ea5ac9 100644
--- a/gcc/config/pdp11/pdp11-protos.h
+++ b/gcc/config/pdp11/pdp11-protos.h
@@ -56,5 +56,5 @@ extern void pdp11_output_labelref (FILE *, const char *);
 extern void pdp11_output_def (FILE *, const char *, const char *);
 extern void pdp11_output_addr_vec_elt (FILE *, int);
 
-/* Routines implemented in pdp11-rust.c  */
+/* Routines implemented in pdp11-rust.cc  */
 extern void pdp11_rust_target_cpu_info (void);
diff --git a/gcc/config/pdp11/pdp11-rust.c b/gcc/config/pdp11/pdp11-rust.cc
similarity index 100%
rename from gcc/config/pdp11/pdp11-rust.c
rename to gcc/config/pdp11/pdp11-rust.cc
diff --git a/gcc/config/pdp11/t-pdp11 b/gcc/config/pdp11/t-pdp11
index 9ec91c940cf..c57fce57523 100644
--- a/gcc/config/pdp11/t-pdp11
+++ b/gcc/config/pdp11/t-pdp11
@@ -30,6 +30,6 @@ CRTSTUFF_T_CFLAGS = -Os
 # gcc bootstrap compilers support the latter option.
 dwarf2out.o-warn = -Wno-error
 
-pdp11-rust.o: $(srcdir)/config/pdp11/pdp11-rust.c \
+pdp11-rust.o: $(srcdir)/config/pdp11/pdp11-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
diff --git a/gcc/config/riscv/riscv-protos.h b/gcc/config/riscv/riscv-protos.h
index c45e4ceb194..c641780ad09 100644
--- a/gcc/config/riscv/riscv-protos.h
+++ b/gcc/config/riscv/riscv-protos.h
@@ -82,7 +82,7 @@ void riscv_cpu_cpp_builtins (cpp_reader *);
 extern void riscv_d_target_versions (void);
 extern void riscv_d_register_target_info (void);
 
-/* Routines implemented in riscv-rust.c  */
+/* Routines implemented in riscv-rust.cc  */
 extern void riscv_rust_target_cpu_info (void);
 
 /* Routines implemented in riscv-builtins.c.  */
diff --git a/gcc/config/riscv/riscv-rust.c b/gcc/config/riscv/riscv-rust.cc
similarity index 100%
rename from gcc/config/riscv/riscv-rust.c
rename to gcc/config/riscv/riscv-rust.cc
diff --git a/gcc/config/riscv/t-riscv b/gcc/config/riscv/t-riscv
index 8698a46d51a..e8edea56944 100644
--- a/gcc/config/riscv/t-riscv
+++ b/gcc/config/riscv/t-riscv
@@ -29,6 +29,6 @@ $(common_out_file): $(srcdir)/config/riscv/riscv-cores.def \
     $(srcdir)/config/riscv/riscv-protos.h \
     $(srcdir)/config/riscv/riscv-subset.h
 
-riscv-rust.o: $(srcdir)/config/riscv/riscv-rust.c \
+riscv-rust.o: $(srcdir)/config/riscv/riscv-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
diff --git a/gcc/config/rs6000/rs6000-protos.h b/gcc/config/rs6000/rs6000-protos.h
index 16d18bffbea..38f258b2150 100644
--- a/gcc/config/rs6000/rs6000-protos.h
+++ b/gcc/config/rs6000/rs6000-protos.h
@@ -329,7 +329,7 @@ extern void (*rs6000_target_modify_macros_ptr) (bool, HOST_WIDE_INT,
 extern void rs6000_d_target_versions (void);
 extern void rs6000_d_register_target_info (void);
 
-/* Declare functions in rs6000-rust.c  */
+/* Declare functions in rs6000-rust.cc  */
 extern void rs6000_rust_target_cpu_info (void);
 
 #ifdef NO_DOLLAR_IN_LABEL
diff --git a/gcc/config/rs6000/rs6000-rust.c b/gcc/config/rs6000/rs6000-rust.cc
similarity index 98%
rename from gcc/config/rs6000/rs6000-rust.c
rename to gcc/config/rs6000/rs6000-rust.cc
index ae45e64c347..f1211490e88 100644
--- a/gcc/config/rs6000/rs6000-rust.c
+++ b/gcc/config/rs6000/rs6000-rust.cc
@@ -35,7 +35,7 @@ rs6000_rust_target_cpu_info (void)
 
   // TODO: define properly instead of macros
 #ifdef flags
-# error "multiple flags already defined in rs6000-rust.c"
+# error "multiple flags already defined in rs6000-rust.cc"
 #endif
 #define flags rs6000_isa_flags
 
diff --git a/gcc/config/rs6000/t-rs6000 b/gcc/config/rs6000/t-rs6000
index 0a3a353f8f8..d7447c45bb8 100644
--- a/gcc/config/rs6000/t-rs6000
+++ b/gcc/config/rs6000/t-rs6000
@@ -39,7 +39,7 @@ rs6000-d.o: $(srcdir)/config/rs6000/rs6000-d.c
 	$(COMPILE) $<
 	$(POSTCOMPILE)
 
-rs6000-rust.o: $(srcdir)/config/rs6000/rs6000-rust.c
+rs6000-rust.o: $(srcdir)/config/rs6000/rs6000-rust.cc
 	$(COMPILE) $<
 	$(POSTCOMPILE)
 
diff --git a/gcc/config/rx/rx-protos.h b/gcc/config/rx/rx-protos.h
index 651d8667b74..f8748e2c00c 100644
--- a/gcc/config/rx/rx-protos.h
+++ b/gcc/config/rx/rx-protos.h
@@ -171,7 +171,7 @@ rx_find_use_of_reg (rtx reg, rtx_insn* insn, F stepfunc)
 
 #endif
 
-/* Routines implemented in rx-rust.c  */
+/* Routines implemented in rx-rust.cc  */
 extern void rx_rust_target_cpu_info (void);
 
 #endif /* GCC_RX_PROTOS_H */
diff --git a/gcc/config/rx/rx-rust.c b/gcc/config/rx/rx-rust.cc
similarity index 100%
rename from gcc/config/rx/rx-rust.c
rename to gcc/config/rx/rx-rust.cc
diff --git a/gcc/config/rx/t-rx b/gcc/config/rx/t-rx
index 6170cf3ded3..dd11760f8e4 100644
--- a/gcc/config/rx/t-rx
+++ b/gcc/config/rx/t-rx
@@ -36,6 +36,6 @@ MULTILIB_MATCHES    = nofpu=mnofpu  nofpu=mcpu?rx200  nofpu=mcpu?rx100
 MULTILIB_EXCEPTIONS =
 MULTILIB_EXTRA_OPTS = 
 
-rx-rust.o: $(srcdir)/config/rx/rx-rust.c \
+rx-rust.o: $(srcdir)/config/rx/rx-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
diff --git a/gcc/config/s390/s390-protos.h b/gcc/config/s390/s390-protos.h
index 62e93f5958b..d043df1bc37 100644
--- a/gcc/config/s390/s390-protos.h
+++ b/gcc/config/s390/s390-protos.h
@@ -179,7 +179,7 @@ extern bool s390_const_operand_ok (tree, int, int, tree);
 extern void s390_d_target_versions (void);
 extern void s390_d_register_target_info (void);
 
-/* Routines implemented in s390-rust.c  */
+/* Routines implemented in s390-rust.cc  */
 extern void s390_rust_target_cpu_info (void);
 
 /* Pass management.  */
diff --git a/gcc/config/s390/s390-rust.c b/gcc/config/s390/s390-rust.cc
similarity index 100%
rename from gcc/config/s390/s390-rust.c
rename to gcc/config/s390/s390-rust.cc
diff --git a/gcc/config/s390/t-s390 b/gcc/config/s390/t-s390
index 4f196de46e7..354d3c66ff1 100644
--- a/gcc/config/s390/t-s390
+++ b/gcc/config/s390/t-s390
@@ -31,6 +31,6 @@ s390-d.o: $(srcdir)/config/s390/s390-d.c
 	$(COMPILE) $<
 	$(POSTCOMPILE)
 
-s390-rust.o: $(srcdir)/config/s390/s390-rust.c \
+s390-rust.o: $(srcdir)/config/s390/s390-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
diff --git a/gcc/config/sh/sh-protos.h b/gcc/config/sh/sh-protos.h
index 3f082401a2a..cf7be511d36 100644
--- a/gcc/config/sh/sh-protos.h
+++ b/gcc/config/sh/sh-protos.h
@@ -313,7 +313,7 @@ sh_cbranch_distance (rtx_insn* cbranch_insn,
 
 extern void sh_cpu_cpp_builtins (cpp_reader* pfile);
 
-/* Routines implemented in sh-rust.c  */
+/* Routines implemented in sh-rust.cc  */
 extern void sh_rust_target_cpu_info (void);
 
 extern const char *output_jump_label_table (void);
diff --git a/gcc/config/sh/sh-rust.c b/gcc/config/sh/sh-rust.cc
similarity index 100%
rename from gcc/config/sh/sh-rust.c
rename to gcc/config/sh/sh-rust.cc
diff --git a/gcc/config/sh/t-sh b/gcc/config/sh/t-sh
index 43e39b04104..682deb6bc41 100644
--- a/gcc/config/sh/t-sh
+++ b/gcc/config/sh/t-sh
@@ -25,7 +25,7 @@ sh-c.o: $(srcdir)/config/sh/sh-c.c \
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
 		$(srcdir)/config/sh/sh-c.c
 
-sh-rust.o: $(srcdir)/config/sh/sh-rust.c \
+sh-rust.o: $(srcdir)/config/sh/sh-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
 
diff --git a/gcc/config/sparc/sparc-protos.h b/gcc/config/sparc/sparc-protos.h
index e05aa5aecad..4675e1dd366 100644
--- a/gcc/config/sparc/sparc-protos.h
+++ b/gcc/config/sparc/sparc-protos.h
@@ -116,7 +116,7 @@ extern rtl_opt_pass *make_pass_work_around_errata (gcc::context *);
 extern void sparc_d_target_versions (void);
 extern void sparc_d_register_target_info (void);
 
-/* Routines implemented in sparc-rust.c  */
+/* Routines implemented in sparc-rust.cc  */
 extern void sparc_rust_target_cpu_info (void);
 
 #endif /* __SPARC_PROTOS_H__ */
diff --git a/gcc/config/sparc/sparc-rust.c b/gcc/config/sparc/sparc-rust.cc
similarity index 100%
rename from gcc/config/sparc/sparc-rust.c
rename to gcc/config/sparc/sparc-rust.cc
diff --git a/gcc/config/sparc/t-sparc b/gcc/config/sparc/t-sparc
index e359d647d52..003fefe5119 100644
--- a/gcc/config/sparc/t-sparc
+++ b/gcc/config/sparc/t-sparc
@@ -28,7 +28,7 @@ sparc-d.o: $(srcdir)/config/sparc/sparc-d.c
 	$(COMPILE) $<
 	$(POSTCOMPILE)
 
-sparc-rust.o: $(srcdir)/config/sparc/sparc-rust.c \
+sparc-rust.o: $(srcdir)/config/sparc/sparc-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
 
diff --git a/gcc/config/v850/t-v850 b/gcc/config/v850/t-v850
index ec681a3615b..4a13d8cea27 100644
--- a/gcc/config/v850/t-v850
+++ b/gcc/config/v850/t-v850
@@ -30,7 +30,7 @@ v850-c.o: $(srcdir)/config/v850/v850-c.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
 		$(srcdir)/config/v850/v850-c.c 
 
-v850-rust.o: $(srcdir)/config/v850/v850-rust.c \
+v850-rust.o: $(srcdir)/config/v850/v850-rust.cc \
   $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_COMMON_H)
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
 
diff --git a/gcc/config/v850/v850-protos.h b/gcc/config/v850/v850-protos.h
index f140bae094a..6693e60fbc9 100644
--- a/gcc/config/v850/v850-protos.h
+++ b/gcc/config/v850/v850-protos.h
@@ -65,7 +65,7 @@ extern void ghs_pragma_endtda		    (struct cpp_reader *);
 extern void ghs_pragma_endsda		    (struct cpp_reader *);
 extern void ghs_pragma_endzda		    (struct cpp_reader *);
 
-/* Routines implemented in v850-rust.c  */
+/* Routines implemented in v850-rust.cc  */
 extern void v850_rust_target_cpu_info (void);
 
 #endif /* ! GCC_V850_PROTOS_H */
diff --git a/gcc/config/v850/v850-rust.c b/gcc/config/v850/v850-rust.cc
similarity index 100%
rename from gcc/config/v850/v850-rust.c
rename to gcc/config/v850/v850-rust.cc
diff --git a/gcc/rust/rust-object-export.c b/gcc/rust/rust-object-export.cc
similarity index 100%
rename from gcc/rust/rust-object-export.c
rename to gcc/rust/rust-object-export.cc


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-08 12:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 12:03 [gcc/devel/rust/master] GCC/Rust pieces of GCC upstream "Mass rename of C++ .c files to .cc suffix" Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).