This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix alpha_file_start for elf
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 20 Jun 2003 12:38:51 -0700
- Subject: fix alpha_file_start for elf
I had noticed in Zack's pre-patches that we'd lost the write_symbols
check, but I couldn't remember why it was there. Now I remember. ;-)
r~
* config/alpha/alpha.c (alpha_file_start): Disable
file_start_file_directive for ELF and not MDEBUG.
Index: alpha.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/alpha/alpha.c,v
retrieving revision 1.317
diff -c -p -d -r1.317 alpha.c
*** alpha.c 20 Jun 2003 13:24:55 -0000 1.317
--- alpha.c 20 Jun 2003 19:33:38 -0000
*************** alpha_reorg (void)
*** 8682,8687 ****
--- 8682,8694 ----
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);