alpha.c (alpha_file_start): Disable file_start_file_directive for ELF and not MDEBUG.
authorRichard Henderson <rth@redhat.com>
Fri, 20 Jun 2003 19:37:17 +0000 (12:37 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 20 Jun 2003 19:37:17 +0000 (12:37 -0700)
        * config/alpha/alpha.c (alpha_file_start): Disable
        file_start_file_directive for ELF and not MDEBUG.

From-SVN: r68280

gcc/ChangeLog
gcc/config/alpha/alpha.c

index 4c915836d1d7833178bea3944ef361b84bb18328..7954f0622354731964cc84d604a6682a602b1667 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-20  Richard Henderson  <rth@redhat.com>
+
+       * config/alpha/alpha.c (alpha_file_start): Disable
+       file_start_file_directive for ELF and not MDEBUG.
+
 2003-06-20  J"orn Rennecke <joern.rennecke@superh.com>
 
        * sh.h (ROUND_TYPE_ALIGN): Remove.
index 23843bc831e5144a3511e80c0c90f9a111402300..5e16e8ee93bd8b5aeaec0083e145bcb7184ed1e9 100644 (file)
@@ -8682,6 +8682,13 @@ alpha_reorg (void)
 static void
 alpha_file_start (void)
 {
+#ifdef OBJECT_FORMAT_ELF
+  /* If emitting dwarf2 debug information, we cannot generate a .file
+     directive to start the file, as it will conflict with dwarf2out
+     file numbers.  So it's only useful when emitting mdebug output.  */
+  targetm.file_start_file_directive = (write_symbols == DBX_DEBUG);
+#endif
+
   default_file_start ();
 #ifdef MS_STAMP
   fprintf (asm_out_file, "\t.verstamp %d %d\n", MS_STAMP, LS_STAMP);