From: Thomas Schwinge Date: Thu, 22 Jul 2010 07:39:20 +0000 (+0000) Subject: 2010-07-22 Thomas Schwinge X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1575952e139a97b8383cfb5849a671dc77e6cc90;p=binutils-gdb.git 2010-07-22 Thomas Schwinge Switch MIPS to 32-bit DWARF format. * config/tc-mips.h (DWARF2_FORMAT): Only define for [TE_IRIX]. * config/tc-mips.c (mips_dwarf2_format): Likewise. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 8a2c3d8e943..5d543f9c436 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2010-07-22 Thomas Schwinge + + Switch MIPS to 32-bit DWARF format. + * config/tc-mips.h (DWARF2_FORMAT): Only define for [TE_IRIX]. + * config/tc-mips.c (mips_dwarf2_format): Likewise. + 2010-07-20 Alan Modra * config/tc-ppc.c (ppc_setup_opcodes): Add all macros for -many. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 65ff6d416d7..21aedd9116e 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -15666,20 +15666,16 @@ MIPS options:\n\ #endif } +#ifdef TE_IRIX enum dwarf2_format mips_dwarf2_format (asection *sec ATTRIBUTE_UNUSED) { if (HAVE_64BIT_SYMBOLS) - { -#ifdef TE_IRIX - return dwarf2_format_64bit_irix; -#else - return dwarf2_format_64bit; -#endif - } + return dwarf2_format_64bit_irix; else return dwarf2_format_32bit; } +#endif int mips_dwarf2_addr_size (void) diff --git a/gas/config/tc-mips.h b/gas/config/tc-mips.h index 502fa8e3bf3..8b174805d2b 100644 --- a/gas/config/tc-mips.h +++ b/gas/config/tc-mips.h @@ -162,9 +162,13 @@ extern void mips_emit_delays (void); extern void mips_enable_auto_align (void); #define md_elf_section_change_hook() mips_enable_auto_align() +#ifdef TE_IRIX enum dwarf2_format; extern enum dwarf2_format mips_dwarf2_format (asection *); -#define DWARF2_FORMAT(SEC) mips_dwarf2_format (SEC) +# define DWARF2_FORMAT(SEC) mips_dwarf2_format (SEC) +#else +/* Use GAS' defaults. */ +#endif extern int mips_dwarf2_addr_size (void); #define DWARF2_ADDR_SIZE(bfd) mips_dwarf2_addr_size ()