aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-06-20 12:37:17 -0700
committerRichard Henderson <rth@gcc.gnu.org>2003-06-20 12:37:17 -0700
commit4739b00e528da80052c920997ad8addaa392e545 (patch)
tree8d51d544297d67456189f4d6890601498eda1513 /gcc
parent9218882a105dd20ea0f66d26c558ab70c9ab61cb (diff)
downloadgcc-4739b00e528da80052c920997ad8addaa392e545.zip
gcc-4739b00e528da80052c920997ad8addaa392e545.tar.gz
gcc-4739b00e528da80052c920997ad8addaa392e545.tar.bz2
alpha.c (alpha_file_start): Disable file_start_file_directive for ELF and not MDEBUG.
* config/alpha/alpha.c (alpha_file_start): Disable file_start_file_directive for ELF and not MDEBUG. From-SVN: r68280
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/alpha/alpha.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4c91583..7954f06 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c
index 23843bc..5e16e8e 100644
--- a/gcc/config/alpha/alpha.c
+++ b/gcc/config/alpha/alpha.c
@@ -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);