From: Vladimir Makarov Date: Mon, 1 Apr 2002 22:44:29 +0000 (+0000) Subject: pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON, [...]): Redefine them. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84d760747ee51227a28a6dc8e156837a54e02d18;p=platform%2Fupstream%2Fgcc.git pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON, [...]): Redefine them. 2002-04-01 Vladimir Makarov * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Redefine them. From-SVN: r51713 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d06f8cf..9bfbc2b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-04-01 Vladimir Makarov + + * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON, + ASM_OUTPUT_ALIGNED_LOCAL): Redefine them. + 2002-04-01 Neil Booth * c-decl.c (grokdeclarator): Update. diff --git a/gcc/config/pa/pa-pro-end.h b/gcc/config/pa/pa-pro-end.h index 90b7ef5..f909390 100644 --- a/gcc/config/pa/pa-pro-end.h +++ b/gcc/config/pa/pa-pro-end.h @@ -40,3 +40,26 @@ Boston, MA 02111-1307, USA. */ linker script to pull it in. */ #undef STARTFILE_SPEC #define STARTFILE_SPEC "" + +/* The following two macros are identical to the ones in pa.h. We need + to override the macros in elfos.h on the rtems and pro ports. */ + +/* This says how to output an assembler line to define a global common symbol + with size SIZE (in bytes) and alignment ALIGN (in bits). */ + +#undef ASM_OUTPUT_ALIGNED_COMMON +#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)));} + +/* This says how to output an assembler line to define a local common symbol + with size SIZE (in bytes) and alignment ALIGN (in bits). */ + +#undef ASM_OUTPUT_ALIGNED_LOCAL +#define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGNED) \ +{ bss_section (); \ + fprintf ((FILE), "\t.align %d\n", ((ALIGNED) / BITS_PER_UNIT)); \ + assemble_name ((FILE), (NAME)); \ + fprintf ((FILE), "\n\t.block %d\n", (SIZE));}