aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <merrill@gnu.org>1997-07-17 06:40:52 +0000
committerJason Merrill <merrill@gnu.org>1997-07-17 06:40:52 +0000
commit0ce200e50c8a6038d9aa028463b36f2dc67b4330 (patch)
tree2a3146b4b01ca01230af8da6bc2315f290374443
parent101d9529d47a47bbe86d0456eac0d103fbf1bdfc (diff)
downloadgcc-0ce200e50c8a6038d9aa028463b36f2dc67b4330.zip
gcc-0ce200e50c8a6038d9aa028463b36f2dc67b4330.tar.gz
gcc-0ce200e50c8a6038d9aa028463b36f2dc67b4330.tar.bz2
x
From-SVN: r14465
-rw-r--r--gcc/config/i960/i960.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/gcc/config/i960/i960.h b/gcc/config/i960/i960.h
index 8d2e6c4..34dc397 100644
--- a/gcc/config/i960/i960.h
+++ b/gcc/config/i960/i960.h
@@ -1382,10 +1382,20 @@ extern struct rtx_def *gen_compare_reg ();
( fputs (".bss\t", (FILE)), \
assemble_name ((FILE), (NAME)), \
fprintf ((FILE), ",%d,%d\n", (SIZE), \
- ((ALIGN) <= 8 ? 0 \
- : ((ALIGN) <= 16 ? 1 \
- : ((ALIGN) <= 32 ? 2 \
- : ((ALIGN <= 64 ? 3 : 4)))))))
+ (floor_log2 ((ALIGN) / BITS_PER_UNIT))))
+
+/* A C statement (sans semicolon) to output to the stdio stream
+ FILE the assembler definition of uninitialized global DECL named
+ NAME whose size is SIZE bytes and alignment is ALIGN bytes.
+ Try to use asm_output_aligned_bss to implement this macro. */
+
+#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
+ do { \
+ fputs (".globl ", (FILE)); \
+ assemble_name ((FILE), (NAME)); \
+ fputs ("\n", (FILE)); \
+ ASM_OUTPUT_ALIGNED_LOCAL (FILE, NAME, SIZE, ALIGN); \
+ } while (0)
/* Output text for an #ident directive. */
#define ASM_OUTPUT_IDENT(FILE, STR) fprintf(FILE, "\t# %s\n", STR);