aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2010-07-22 07:39:20 +0000
committerThomas Schwinge <tschwinge@gnu.org>2010-07-22 07:39:20 +0000
commit1575952e139a97b8383cfb5849a671dc77e6cc90 (patch)
tree9d9732ba5fc4cc31a01d5b488d7a0adc00c2724d /gas
parent5506d11a077dc555735b393054250287552082d6 (diff)
downloadgdb-1575952e139a97b8383cfb5849a671dc77e6cc90.zip
gdb-1575952e139a97b8383cfb5849a671dc77e6cc90.tar.gz
gdb-1575952e139a97b8383cfb5849a671dc77e6cc90.tar.bz2
2010-07-22 Thomas Schwinge <thomas@codesourcery.com>
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.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-mips.c10
-rw-r--r--gas/config/tc-mips.h6
3 files changed, 14 insertions, 8 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 8a2c3d8..5d543f9 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2010-07-22 Thomas Schwinge <thomas@codesourcery.com>
+
+ 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 <amodra@gmail.com>
* 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 65ff6d4..21aedd9 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 502fa8e..8b17480 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 ()