https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120955
Georg-Johann Lay <gjl at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |43745 --- Comment #27 from Georg-Johann Lay <gjl at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #23) > But this looks like a trade off of text size vs data size. Not really a trade off. The problem is that ATmega2560 allocates .rodata to SRAM. On new devices (0-, 1- and 2-series, AVRxx) the issue goes away since they can locate .rodata in flash memory. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43745 [Bug 43745] [avr] g++ puts VTABLES in SRAM (support named address-spaces in C++)