From: Nick Clifton Date: Fri, 4 May 2001 16:16:43 +0000 (+0000) Subject: Add alignment parameter to .comm directives for ELF targets. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30506ece757ccb765160740e59a90be165226110;p=gcc.git Add alignment parameter to .comm directives for ELF targets. From-SVN: r41832 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7b058cce284..5cb1ffcfb8e 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 bb7be334c1a..71fe99b2687 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