aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@cygnus.com>1999-09-21 18:52:37 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>1999-09-21 18:52:37 +0000
commit04fc632494526aa562e2c99664ec5d5027ada07b (patch)
tree4d5ee895ec9efce6f278107b55f16e4f74b698c6
parentf3cdb9c694c0384e5cb59af694afc3ce01cc688d (diff)
downloadgcc-04fc632494526aa562e2c99664ec5d5027ada07b.zip
gcc-04fc632494526aa562e2c99664ec5d5027ada07b.tar.gz
gcc-04fc632494526aa562e2c99664ec5d5027ada07b.tar.bz2
elf64.h (ASM_OUTPUT_CONSTRUCTOR, [...]): Use Pmode to determine whether to output .dword or .word.
Tue Sep 21 14:49:53 EDT 1999 Andrew MacLeod <amacleod@cygnus.com> * config/mips/elf64.h (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Use Pmode to determine whether to output .dword or .word. From-SVN: r29554
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/elf64.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0eb093a..b3f6bcd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Tue Sep 21 14:49:53 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
+
+ * config/mips/elf64.h (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR):
+ Use Pmode to determine whether to output .dword or .word.
+
Tue Sep 21 11:04:34 1999 Alex Samuel <samuel@codesourcery.com>
* tree.c (built_in_filename): New variable.
diff --git a/gcc/config/mips/elf64.h b/gcc/config/mips/elf64.h
index 986d219..e55d88b 100644
--- a/gcc/config/mips/elf64.h
+++ b/gcc/config/mips/elf64.h
@@ -306,7 +306,7 @@ void FN () \
#define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME) \
do { \
ctors_section (); \
- fprintf (FILE, "\t%s\t", TARGET_LONG64 ? ".dword" : ".word"); \
+ fprintf (FILE, "\t%s\t", (Pmode == SImode) ? ".word" : ".dword"); \
assemble_name (FILE, NAME); \
fprintf (FILE, "\n"); \
} while (0)
@@ -317,7 +317,7 @@ void FN () \
#define ASM_OUTPUT_DESTRUCTOR(FILE,NAME) \
do { \
dtors_section (); \
- fprintf (FILE, "\t%s\t", TARGET_LONG64 ? ".dword" : ".word"); \
+ fprintf (FILE, "\t%s\t", (Pmode == SImode) ? ".word" : ".dword"); \
assemble_name (FILE, NAME); \
fprintf (FILE, "\n"); \
} while (0)