[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Avoiding copy_data in config/avr/avr.c avr_file_start
Re: [avr-gcc-list] Avoiding copy_data in config/avr/avr.c avr_file_start()?
Wed, 27 Jul 2005 22:30:55 -0600
Mozilla Thunderbird 1.0 (Windows/20041206)
Ben Jackson wrote:
I got the impression from libgcc.S that copy_data wouldn't exist if
it wasn't needed, but I finally found in avr_file_start:
/* FIXME: output these only if there is anything in the .data / .bss
sections - some code size could be saved by not linking in the
initialization code from libgcc if one or both sections are empty. */
fputs ("\t.global __do_copy_data\n", asm_out_file);
fputs ("\t.global __do_clear_bss\n", asm_out_file);
I don't know gcc internals, so is this just not visible from
avr_file_start, or just not yet done? If someone gives me a hint I'll
look into it.
IIRC, this is documented as GCC bug #18145:
Well, technically it's an enhancement request.