2010-07-22 Thomas Schwinge <thomas@codesourcery.com>
authorThomas Schwinge <tschwinge@gnu.org>
Thu, 22 Jul 2010 07:39:20 +0000 (07:39 +0000)
committerThomas Schwinge <tschwinge@gnu.org>
Thu, 22 Jul 2010 07:39:20 +0000 (07:39 +0000)
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.

gas/ChangeLog
gas/config/tc-mips.c
gas/config/tc-mips.h

index 8a2c3d8..5d543f9 100644 (file)
@@ -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.
index 65ff6d4..21aedd9 100644 (file)
@@ -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)
index 502fa8e..8b17480 100644 (file)
@@ -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 ()