aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/avr
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2024-02-08 10:30:41 +0100
committerGeorg-Johann Lay <avr@gjlay.de>2024-02-08 10:40:05 +0100
commit0ba32e2023d4c148e1e30ff2303a6b5e12cd0ba0 (patch)
tree549830b082fbabc275c1e339b6a0ea30fe9e14ca /gcc/config/avr
parent9ec08782b45869b33fec2a8772c25118221208e3 (diff)
downloadgcc-0ba32e2023d4c148e1e30ff2303a6b5e12cd0ba0.zip
gcc-0ba32e2023d4c148e1e30ff2303a6b5e12cd0ba0.tar.gz
gcc-0ba32e2023d4c148e1e30ff2303a6b5e12cd0ba0.tar.bz2
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.
Diffstat (limited to 'gcc/config/avr')
-rw-r--r--gcc/config/avr/gen-avr-mmcu-specs.cc6
-rw-r--r--gcc/config/avr/specs.h7
2 files changed, 5 insertions, 8 deletions
diff --git a/gcc/config/avr/gen-avr-mmcu-specs.cc b/gcc/config/avr/gen-avr-mmcu-specs.cc
index 02778aa..06d9d3c 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 5744020..0ccc37b 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