diff options
author | Eric Christopher <echristo@apple.com> | 2004-02-26 21:27:32 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2004-02-26 21:27:32 +0000 |
commit | 1cfc21cbc5af302e0de424772efd0f823050b859 (patch) | |
tree | 0bb92c29b8e5eb808d8538577c0ee1c039a9d8fa /gas/config/tc-mips.c | |
parent | 0e23d94cebb57eee8c5ee0a1a41fc719956d54a8 (diff) | |
download | binutils-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.c | 13 |
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; +} |