OSDN Git Service

PR target/15178
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jun 2004 17:31:27 +0000 (17:31 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jun 2004 17:31:27 +0000 (17:31 +0000)
* config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83117 138bc75d-0d04-0410-961f-82ee72b054a4

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

index b9b6d09..bfb6ccf 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 40bbf04..78b2985 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)