+2002-06-12 Daniel Jacobowitz <drow@mvista.com>
+
+ * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
+ * config/mips/mips.c (mips_output_filename): Don't print a
+ ".file" directive if we are using DWARF-2.
+ (mips_output_function_prologue): Do not emit source file
+ name for TARGET_GAS.
+
2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390.md (movsi): Only use floating point
/* Use ELF. */
#define OBJECT_FORMAT_ELF
+/* All ELF targets can support DWARF-2. */
+
+#ifndef DWARF2_DEBUGGING_INFO
+#define DWARF2_DEBUGGING_INFO 1
+#endif
+
/* Until we figure out what MIPS ELF targets normally use, just do
stabs in ELF. */
#ifndef PREFERRED_DEBUGGING_TYPE
static int first_time = 1;
char ltext_label_name[100];
- if (first_time)
+ /* If we are emitting DWARF-2, let dwarf2out handle the ".file"
+ directives. */
+ if (write_symbols == DWARF2_DEBUG)
+ return;
+ else if (first_time)
{
first_time = 0;
SET_FILE_NUMBER ();
#endif
HOST_WIDE_INT tsize = current_frame_info.total_size;
- ASM_OUTPUT_SOURCE_FILENAME (file, DECL_SOURCE_FILE (current_function_decl));
+ /* ??? When is this really needed? At least the GNU assembler does not
+ need the source filename more than once in the file, beyond what is
+ emitted by the debug information. */
+ if (!TARGET_GAS)
+ ASM_OUTPUT_SOURCE_FILENAME (file, DECL_SOURCE_FILE (current_function_decl));
#ifdef SDB_DEBUGGING_INFO
if (debug_info_level != DINFO_LEVEL_TERSE && write_symbols == SDB_DEBUG)