Commit 6b282118 by Jeff Law

pa.h (ASM_OUTPUT_ALIGNED_COMMON, [...]): Define.

	* pa.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
	Define.
	(ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.

From-SVN: r7927
parent 2ebb1b42
...@@ -1891,27 +1891,24 @@ readonly_data () \ ...@@ -1891,27 +1891,24 @@ readonly_data () \
#define ASM_OUTPUT_SKIP(FILE,SIZE) \ #define ASM_OUTPUT_SKIP(FILE,SIZE) \
fprintf (FILE, "\t.blockz %d\n", (SIZE)) fprintf (FILE, "\t.blockz %d\n", (SIZE))
/* This says how to output an assembler line /* This says how to output an assembler line to define a global common symbol
to define a global common symbol. */ with size SIZE (in bytes) and alignment ALIGN (in bits). */
/* Supposedly the assembler rejects the command if there is no tab! */
#define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGNED) \
{ bss_section (); \
assemble_name ((FILE), (NAME)); \
fputs ("\t.comm ", (FILE)); \
fprintf ((FILE), "%d\n", MAX ((SIZE), ((ALIGNED) / BITS_PER_UNIT)));}
#define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED) \ /* This says how to output an assembler line to define a local common symbol
{ bss_section (); \ with size SIZE (in bytes) and alignment ALIGN (in bits). */
assemble_name ((FILE), (NAME)); \
fputs ("\t.comm ", (FILE)); \
fprintf ((FILE), "%d\n", (ROUNDED));}
/* This says how to output an assembler line #define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGNED) \
to define a local common symbol. */ { bss_section (); \
fprintf ((FILE), "\t.align %d\n", ((ALIGNED) / BITS_PER_UNIT)); \
#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \
{ bss_section (); \
fprintf ((FILE), "\t.align %d\n", (SIZE) <= 4 ? 4 : 8); \
assemble_name ((FILE), (NAME)); \ assemble_name ((FILE), (NAME)); \
fprintf ((FILE), "\n\t.block %d\n", (ROUNDED));} fprintf ((FILE), "\n\t.block %d\n", (SIZE));}
/* Store in OUTPUT a string (made with alloca) containing /* Store in OUTPUT a string (made with alloca) containing
an assembler-name for a local static variable named NAME. an assembler-name for a local static variable named NAME.
LABELNO is an integer which is different for each call. */ LABELNO is an integer which is different for each call. */
......
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