[patch] AVR update to previous switch/case changes
Denis Chertykov
denisc@overta.ru
Sat Nov 18 23:29:00 GMT 2000
Marek Michalkiewicz <marekm@linux.org.pl> writes:
> Update to the previous patch, no changes in output code, this just
> gets the reported function size statistics right (include the size
> of jump tables, which are placed in the program memory too, now it
> is consistent with size reported by avr-size on the object file).
>
>
> 2000-11-18 Marek Michalkiewicz <marekm@linux.org.pl>
>
> * config/avr/avr-protos.h (avr_output_addr_vec_elt): Prototype.
> * config/avr/avr.c (jump_tables_size): New variable.
> (function_prologue): Initialize it as 0.
> (function_epilogue): Add it to function_size.
> (avr_output_addr_vec_elt): New function. Count words in jump
> tables in jump_tables_size. Move code ...
> * config/avr/avr.h (ASM_OUTPUT_ADDR_VEC_ELT): ... from here.
> Call avr_output_addr_vec_elt instead.
> * config/avr/avr.md (tablejump): Remove disabled define_expand.
Applied.
Denis.
More information about the Gcc-patches
mailing list