re PR target/15178 (Solaris 9/x86 fails linking after stage 3)
authorJakub Jelinek <jakub@redhat.com>
Mon, 14 Jun 2004 17:31:27 +0000 (19:31 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 14 Jun 2004 17:31:27 +0000 (19:31 +0200)
PR target/15178
* config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.

From-SVN: r83117

gcc/ChangeLog
gcc/config/i386/sol2.h

index b9b6d09013d0dad65adc2662061399be895aee76..bfb6ccfcec01af15fac34a870933a520f462f0da 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-14  Jakub Jelinek  <jakub@redhat.com>
+
+       PR target/15178
+       * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
+
 2004-06-14  Paul Brook  <paul@codesourcery.com>
 
        * dwarf2out.c (output_call_frame_info): Support dwarf3 cie entries.
index 40bbf047912e2ef4a5eacd81225b2518acbfca16..78b2985cb7a5b06d1979001d685b150084cefc7a 100644 (file)
@@ -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)