From: nickc Date: Fri, 4 May 2001 16:16:43 +0000 (+0000) Subject: Add alignment parameter to .comm directives for ELF targets. X-Git-Tag: upstream/4.9.2~94590 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45220d6c608eb5302c2504960bf2338868674f36;p=platform%2Fupstream%2Flinaro-gcc.git 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 --- 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