From: Michael Meissner Date: Mon, 10 Jun 1996 19:04:21 +0000 (+0000) Subject: Use .lcomm where we can X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e47ae1c2d3c228f988571479613b1786fe6c9165;p=gcc.git Use .lcomm where we can From-SVN: r12265 --- diff --git a/gcc/config/rs6000/sol2.h b/gcc/config/rs6000/sol2.h index ac64a7b105a..11eff6dccf5 100644 --- a/gcc/config/rs6000/sol2.h +++ b/gcc/config/rs6000/sol2.h @@ -84,9 +84,6 @@ do { \ #define ASM_STABN_OP ".stabd" -#undef SKIP_ASM_OP -#define SKIP_ASM_OP ".skip" - #undef ASM_OUTPUT_SOURCE_LINE #define ASM_OUTPUT_SOURCE_LINE(file, line) \ do \ diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index b2b4c23756f..31067856d9e 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h @@ -658,17 +658,32 @@ extern int rs6000_pic_labelno; #define LOCAL_ASM_OP ".local" #endif +#ifndef LCOMM_ASM_OP +#define LCOMM_ASM_OP ".lcomm" +#endif + #undef ASM_OUTPUT_ALIGNED_LOCAL #define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGN) \ do { \ if (TARGET_SDATA && (SIZE) > 0 && (SIZE) <= g_switch_value) \ - sbss_section (); \ + { \ + sbss_section (); \ + ASM_OUTPUT_ALIGN (FILE, exact_log2 (ALIGN / BITS_PER_UNIT)); \ + ASM_OUTPUT_LABEL (FILE, NAME); \ + ASM_OUTPUT_SKIP (FILE, SIZE); \ + if (!flag_inhibit_size_directive && (SIZE) > 0) \ + { \ + fprintf (FILE, "\t%s\t ", SIZE_ASM_OP); \ + assemble_name (FILE, NAME); \ + fprintf (FILE, ",%d\n", SIZE); \ + } \ + } \ else \ - bss_section (); \ - \ - ASM_OUTPUT_ALIGN (FILE, exact_log2 (ALIGN / BITS_PER_UNIT)); \ - ASM_OUTPUT_LABEL (FILE, NAME); \ - ASM_OUTPUT_SKIP (FILE, SIZE); \ + { \ + fprintf (FILE, "\t%s\t", LCOMM_ASM_OP); \ + assemble_name ((FILE), (NAME)); \ + fprintf ((FILE), ",%u,%u\n", (SIZE), (ALIGN) / BITS_PER_UNIT); \ + } \ } while (0) /* Describe how to emit unitialized external linkage items */