From: Jakub Jelinek Date: Mon, 14 Jun 2004 17:31:27 +0000 (+0200) Subject: re PR target/15178 (Solaris 9/x86 fails linking after stage 3) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25178498408d82ead8eab484067152398acb7335;p=gcc.git re PR target/15178 (Solaris 9/x86 fails linking after stage 3) PR target/15178 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Define. From-SVN: r83117 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b9b6d09013d..bfb6ccfcec0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-06-14 Jakub Jelinek + + PR target/15178 + * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Define. + 2004-06-14 Paul Brook * dwarf2out.c (output_call_frame_info): Support dwarf3 cie entries. diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h index 40bbf047912..78b2985cb7a 100644 --- a/gcc/config/i386/sol2.h +++ b/gcc/config/i386/sol2.h @@ -64,3 +64,18 @@ Boston, MA 02111-1307, USA. */ /* The Solaris assembler does not support .quad. Do not use it. */ #undef ASM_QUAD + +/* The Solaris assembler wants a .local for non-exported aliases. */ +#define ASM_OUTPUT_DEF_FROM_DECLS(FILE, DECL, TARGET) \ + do { \ + const char *declname = \ + IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (DECL)); \ + ASM_OUTPUT_DEF ((FILE), declname, \ + IDENTIFIER_POINTER (TARGET)); \ + if (! TREE_PUBLIC (DECL)) \ + { \ + fprintf ((FILE), "%s", LOCAL_ASM_OP); \ + assemble_name ((FILE), declname); \ + fprintf ((FILE), "\n"); \ + } \ + } while (0)