From 45220d6c608eb5302c2504960bf2338868674f36 Mon Sep 17 00:00:00 2001 From: nickc Date: Fri, 4 May 2001 16:16:43 +0000 Subject: [PATCH] Add alignment parameter to .comm directives for ELF targets. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41832 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/config/arm/elf.h | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7b058cc..5cb1ffc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-05-04 Nick Clifton + + * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Define. + 2001-05-04 Kaveh R. Ghazi * alpha.h: NULL_PTR -> NULL. diff --git a/gcc/config/arm/elf.h b/gcc/config/arm/elf.h index bb7be33..71fe99b 100644 --- a/gcc/config/arm/elf.h +++ b/gcc/config/arm/elf.h @@ -367,6 +367,17 @@ dtors_section () \ } \ while (0) +#ifndef ASM_OUTPUT_ALIGNED_COMMON +#define ASM_OUTPUT_ALIGNED_COMMON(STREAM, NAME, SIZE, ALIGN) \ + do \ + { \ + fprintf (STREAM, "\t.comm\t"); \ + assemble_name (STREAM, NAME); \ + fprintf (STREAM, ", %d, %d\n", SIZE, ALIGN); \ + } \ + while (0) +#endif + /* For PIC code we need to explicitly specify (PLT) and (GOT) relocs. */ #define NEED_PLT_RELOC flag_pic #define NEED_GOT_RELOC flag_pic -- 2.7.4