Commit 9df2447b by Doug Evans

varasm.c (asm_output_bss): New argument DECL.

	* varasm.c (asm_output_bss): New argument DECL.
	Use ASM_DECLARE_OBJECT_NAME if defined.
	(asm_output_aligned_bss): Likewise.
	(assemble_variable): Pass DECL to ASM_OUTPUT{,_ALIGNED}_BSS.
	* m68k/m68k-aout.h (ASM_OUTPUT_BSS): Update.

From-SVN: r12094
parent 09ea387b
...@@ -34,11 +34,11 @@ Boston, MA 02111-1307, USA. */ ...@@ -34,11 +34,11 @@ Boston, MA 02111-1307, USA. */
#define BSS_SECTION_ASM_OP "\t.bss" #define BSS_SECTION_ASM_OP "\t.bss"
/* A C statement (sans semicolon) to output to the stdio stream /* A C statement (sans semicolon) to output to the stdio stream
FILE the assembler definition of an uninitialized global label named FILE the assembler definition of uninitialized global DECL named
NAME whose size is SIZE bytes. The variable ROUNDED NAME whose size is SIZE bytes. The variable ROUNDED
is the size rounded up to whatever alignment the caller wants. is the size rounded up to whatever alignment the caller wants.
Try to use asm_output_bss to implement this macro. */ Try to use asm_output_bss to implement this macro. */
/* a.out files typically can't handle arbitrary variable alignments so /* a.out files typically can't handle arbitrary variable alignments so
define ASM_OUTPUT_BSS instead of ASM_OUTPUT_ALIGNED_BSS. */ define ASM_OUTPUT_BSS instead of ASM_OUTPUT_ALIGNED_BSS. */
#define ASM_OUTPUT_BSS(FILE, NAME, SIZE, ROUNDED) \ #define ASM_OUTPUT_BSS(FILE, DECL, NAME, SIZE, ROUNDED) \
asm_output_bss ((FILE), (NAME), (SIZE), (ROUNDED)) asm_output_bss ((FILE), (DECL), (NAME), (SIZE), (ROUNDED))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment