linux64.h (ASM_OUTPUT_CONSTRUCTOR): Define.
authorJakub Jelinek <jj@ultra.linux.cz>
Mon, 24 May 1999 16:45:19 +0000 (18:45 +0200)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 24 May 1999 16:45:19 +0000 (09:45 -0700)
        * sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Define.
        (ASM_OUTPUT_DESTRUCTOR): Define.

From-SVN: r27129

gcc/ChangeLog
gcc/config/sparc/linux64.h

index 7ff15a4..96eb8d6 100644 (file)
@@ -1,3 +1,8 @@
+Mon May 24 16:44:09 1999  Jakub Jelinek  <jj@ultra.linux.cz>
+
+       * sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Define.
+       (ASM_OUTPUT_DESTRUCTOR): Define.
+
 Mon May 24 14:35:24 1999  Jeffrey A Law  (law@cygnus.com)
 
        * loop.c (strength_reduce): Do not clear NOT_EVERY_ITERATION at the
index 705b5ca..a1a32dd 100644 (file)
@@ -364,3 +364,25 @@ do {                                                                       \
               "ta      0x21\n\t"                       \
               : /* no outputs */                       \
               : "r" (ms_flags), "r" (ms_saveret));
+
+/* A C statement (sans semicolon) to output an element in the table of
+   global constructors.  */
+#undef ASM_OUTPUT_CONSTRUCTOR
+#define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME)                              \
+  do {                                                                 \
+    ctors_section ();                                                  \
+    fprintf (FILE, "\t%s\t ", TARGET_ARCH64 ? ASM_LONGLONG : INT_ASM_OP); \
+    assemble_name (FILE, NAME);                                                \
+    fprintf (FILE, "\n");                                              \
+  } while (0)
+
+/* A C statement (sans semicolon) to output an element in the table of
+   global destructors.  */
+#undef ASM_OUTPUT_DESTRUCTOR
+#define ASM_OUTPUT_DESTRUCTOR(FILE,NAME)                                       \
+  do {                                                                 \
+    dtors_section ();                                                  \
+    fprintf (FILE, "\t%s\t ", TARGET_ARCH64 ? ASM_LONGLONG : INT_ASM_OP); \
+    assemble_name (FILE, NAME);                                        \
+    fprintf (FILE, "\n");                                              \
+  } while (0)