summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-05-24 16:45:19 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-05-24 16:45:19 +0000
commitcb2b71463e9b5de096d3b6afb690f3d17130f5e6 (patch)
tree7195f4df0b28fa0bc7d47944fc802fc801f026db
parentf5139c2f4115c48b05a531ecd19f78c6b116c2ca (diff)
downloadgcc-cb2b71463e9b5de096d3b6afb690f3d17130f5e6.tar.gz
* sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Define.
(ASM_OUTPUT_DESTRUCTOR): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27129 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sparc/linux64.h22
2 files changed, 27 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7ff15a42d7e..96eb8d6a364 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h
index 705b5ca33a0..a1a32dd7a37 100644
--- a/gcc/config/sparc/linux64.h
+++ b/gcc/config/sparc/linux64.h
@@ -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)