diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2024-12-06 11:52:16 +0100 |
---|---|---|
committer | Georg-Johann Lay <avr@gjlay.de> | 2024-12-06 14:44:16 +0100 |
commit | 2b44b11cae6847893bf4b7bc327d0d2913588006 (patch) | |
tree | 35a12b3e94ab0265e58e9e61e8c8c6569abce15e /gcc | |
parent | b317dca04e3ffb31144f79cb804ff6835c2a9af8 (diff) | |
download | gcc-2b44b11cae6847893bf4b7bc327d0d2913588006.zip gcc-2b44b11cae6847893bf4b7bc327d0d2913588006.tar.gz gcc-2b44b11cae6847893bf4b7bc327d0d2913588006.tar.bz2 |
AVR: Disable generation of CRC lookup tables.
With -foptimize-crc, large lookup tables may be generated which
are places in .rodata (RAM). This patch disables such tables.
gcc/
* common/config/avr/avr-common.cc
(avr_option_optimization_table): Default to -fno-optimize-crc.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/common/config/avr/avr-common.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/common/config/avr/avr-common.cc b/gcc/common/config/avr/avr-common.cc index 9059e7d..7a05e19 100644 --- a/gcc/common/config/avr/avr-common.cc +++ b/gcc/common/config/avr/avr-common.cc @@ -32,6 +32,8 @@ static const struct default_options avr_option_optimization_table[] = // The only effect of -fcaller-saves might be that it triggers // a frame without need when it tries to be smart around calls. { OPT_LEVELS_ALL, OPT_fcaller_saves, NULL, 0 }, + // Avoid large lookup tables in RAM from -foptimize-crc. + { OPT_LEVELS_ALL, OPT_foptimize_crc, NULL, 0 }, { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_mgas_isr_prologues, NULL, 1 }, { OPT_LEVELS_1_PLUS, OPT_mmain_is_OS_task, NULL, 1 }, { OPT_LEVELS_1_PLUS, OPT_mfuse_add_, NULL, 1 }, |