> -----Original Message----- > From: Georg-Johann Lay [mailto:a...@gjlay.de] > Sent: Tuesday, April 19, 2011 2:13 PM > To: Weddington, Eric > Cc: Richard Henderson; gcc-patches@gcc.gnu.org; Denis Chertykov; Anatoly > Sokolov > Subject: Re: [Patch,AVR]: PR18145: do_copy_data & do_clear_bss only if > needed > > Weddington, Eric schrieb: > > > Eric, you don't see .rodata because of avr.c:avr_asm_init_sections > readonly_data_section = data_section; > To see .rodata give -fdata-sections for const not in progmem.
Ah, ok. Hardly any real world user specifies -fdata-sections. They might do -ffunction-sections though. > The only thing I am a bit uncomfortable with is that there is no command > line option to unconditionally reference the __do's. Why would a user want to do that? Unless of course your patch is buggy. ;-) Eric Weddington