summaryrefslogtreecommitdiff
path: root/gas/config/tc-mips.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2004-02-26 21:27:32 +0000
committerEric Christopher <echristo@apple.com>2004-02-26 21:27:32 +0000
commit1cfc21cbc5af302e0de424772efd0f823050b859 (patch)
tree0bb92c29b8e5eb808d8538577c0ee1c039a9d8fa /gas/config/tc-mips.c
parent0e23d94cebb57eee8c5ee0a1a41fc719956d54a8 (diff)
downloadbinutils-redhat-1cfc21cbc5af302e0de424772efd0f823050b859.tar.gz
2004-02-26 Eric Christopher <echristo@redhat.com>
* config/tc-mips.c (mips_dwarf2_addr_size): New. * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
Diffstat (limited to 'gas/config/tc-mips.c')
-rw-r--r--gas/config/tc-mips.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 66f52b0080..beaa11a5aa 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -14419,3 +14419,16 @@ mips_dwarf2_format (void)
else
return dwarf2_format_32bit;
}
+
+int
+mips_dwarf2_addr_size (void)
+{
+ if (mips_abi == N64_ABI)
+ return 8;
+ /* GCC for 64-bit targets turns on mlong64 giving
+ us 64-bit addresses. */
+ else if (mips_abi == EABI_ABI && !file_mips_gp32)
+ return 8;
+ else
+ return 4;
+}