[Patch,AVR]: PR18145: do_copy_data & do_clear_bss only if needed

Anatoly Sokolov aesok@post.ru
Tue Apr 19 18:09:00 GMT 2011


Hi.

>
> This patch now uses the same procedure like elfos.h
>
...
> +#define ASM_OUTPUT_ALIGNED_DECL_COMMON(STREAM, DECL, NAME, SIZE, ALIGN) \
> +  avr_asm_output_aligned_common (STREAM, NAME, SIZE, ALIGN, false)
..
> +#define ASM_OUTPUT_ALIGNED_DECL_LOCAL(STREAM, DECL, NAME, SIZE, ALIGN) \
> +  avr_asm_output_aligned_common (STREAM, NAME, SIZE, ALIGN, true)
>


The GCC have three macro ASM_OUTPUT_COMMON, ASM_OUTPUT_ALIGNED_COMMON and 
ASM_OUTPUT_ALIGNED_DECL_COMMON for output  common label in stream, 
eventually only one most flexible ASM_OUTPUT_ALIGNED_DECL_COMMON macro 
should be left. The same for local common label. Please use 
ASM_OUTPUT_ALIGNED_DECL_COMMON  and ASM_OUTPUT_ALIGNED_DECL_LOCAL macros 
here.

Anatoly.

 



More information about the Gcc-patches mailing list