]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
AVR: Rename device-specs %_misc to %_rodata_in_ram.
authorGeorg-Johann Lay <avr@gjlay.de>
Thu, 8 Feb 2024 09:30:41 +0000 (10:30 +0100)
committerGeorg-Johann Lay <avr@gjlay.de>
Thu, 8 Feb 2024 09:40:05 +0000 (10:40 +0100)
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.

gcc/config/avr/gen-avr-mmcu-specs.cc
gcc/config/avr/specs.h

index 02778aa3ce806615b50f22e9e86aa1260ad3ef04..06d9d3c8d7d39261bcb5c1aa215f9eb91c963b21 100644 (file)
@@ -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.
 
index 574402035bc5d5dab811f19014647dda535e7305..0ccc37b8844a18d1b70fc9e9dd40863e771668e0 100644 (file)
@@ -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