diff mbox series

[avr,applied] : Rename %_misc specs.

Message ID e4a0f5d3-51a4-44c5-8871-a219b99d5451@gjlay.de
State New
Headers show
Series [avr,applied] : Rename %_misc specs. | expand

Commit Message

Georg-Johann Lay Feb. 8, 2024, 9:39 a.m. UTC
This renames pecs like cc1_misc to cc1_rodata_in_ram to
point out their purpose.

Johann

--

AVR: Rename device-specs %_misc to %_rodata_in_ram.

gcc/
	* config/avr/gen-avr-mmcu-specs.cc: Rename spec cc1_misc to
	cc1_rodata_in_ram.  Rename spec link_misc to link_rodata_in_ram.
	Remove spec asm_misc.
	* config/avr/specs.h: Same.
diff mbox series

Patch

diff --git a/gcc/config/avr/gen-avr-mmcu-specs.cc b/gcc/config/avr/gen-avr-mmcu-specs.cc
index 02778aa3ce8..06d9d3c8d7d 100644
--- a/gcc/config/avr/gen-avr-mmcu-specs.cc
+++ b/gcc/config/avr/gen-avr-mmcu-specs.cc
@@ -294,7 +294,7 @@  print_mcu (const avr_mcu_t *mcu)
 	   : "\t%{mabsdata}");
 
   // -m[no-]rodata-in-ram basically affects linking, but sanity-check early.
-  fprintf (f, "*cc1_misc:\n\t%%(check_rodata_in_ram)\n\n");
+  fprintf (f, "*cc1_rodata_in_ram:\n\t%%(check_rodata_in_ram)\n\n");
 
   // avr-gcc specific specs for assembling / the assembler.
 
@@ -319,8 +319,6 @@  print_mcu (const avr_mcu_t *mcu)
 	   ? "\t%{mno-skip-bug}"
 	   : "\t%{!mskip-bug: -mno-skip-bug}");
 
-  fprintf (f, "*asm_misc:\n" /* empty */ "\n\n");
-
   // avr-specific specs for linking / the linker.
 
   int wrap_k =
@@ -361,7 +359,7 @@  print_mcu (const avr_mcu_t *mcu)
     }
 
   // -m[no-]rodata-in-ram affects linking.  Sanity check its usage.
-  fprintf (f, "*link_misc:\n\t%%(check_rodata_in_ram)\n\n");
+  fprintf (f, "*link_rodata_in_ram:\n\t%%(check_rodata_in_ram)\n\n");
 
   // Specs known to GCC.
 
diff --git a/gcc/config/avr/specs.h b/gcc/config/avr/specs.h
index 574402035bc..0ccc37b8844 100644
--- a/gcc/config/avr/specs.h
+++ b/gcc/config/avr/specs.h
@@ -36,7 +36,7 @@  along with GCC; see the file COPYING3.  If not see
   "%(cc1_errata_skip) "                         \
   "%(cc1_rmw) "                                 \
   "%(cc1_absdata) "                             \
-  "%(cc1_misc) "
+  "%(cc1_rodata_in_ram) "
 
 #undef  CC1PLUS_SPEC
 #define CC1PLUS_SPEC                                    \
@@ -54,8 +54,7 @@  along with GCC; see the file COPYING3.  If not see
   "%(asm_relax) "                               \
   "%(asm_rmw) "                                 \
   "%(asm_gccisr) "                              \
-  "%(asm_errata_skip) "                         \
-  "%(asm_misc) "
+  "%(asm_errata_skip) "
 
 #define LINK_RELAX_SPEC                         \
   "%{mrelax:--relax} "
@@ -67,7 +66,7 @@  along with GCC; see the file COPYING3.  If not see
   "%(link_text_start) "                         \
   "%(link_relax) "                              \
   "%(link_pmem_wrap) "                          \
-  "%(link_misc) "                               \
+  "%(link_rodata_in_ram) "                      \
   "%{shared:%eshared is not supported} "
 
 #undef  LIB_SPEC