diff mbox

PATCH RFA: Call default_file_start from s390_asm_file_start

Message ID CAOyqgcWVC_PqhSJdk+gJ6WCyMPF6D_kE6AG8AU7eG-xpnd6sgA@mail.gmail.com
State New
Headers show

Commit Message

Ian Lance Taylor Aug. 23, 2016, 6:57 p.m. UTC
The root cause of https://golang.org/issue/16780 is that GCC on s390
GNU/Linux does not emit a .file directive.  This is because the
function s390_asm_file_start does not call default_file_start, unlike
most other TARGET_ASM_FILE_START hooks.  This patch should fix the
problem.  Since I don't have an s390 handy, it would be great if
somebody could test this for me.  Thanks.

Ian


2016-08-23  Ian Lance Taylor  <iant@golang.org>

* config/s390/s390.c (s390_asm_file_start): Call
default_file_start.
diff mbox

Patch

Index: config/s390/s390.c
===================================================================
--- config/s390/s390.c	(revision 239708)
+++ config/s390/s390.c	(working copy)
@@ -14972,6 +14972,7 @@  s390_vector_alignment (const_tree type)
 static void
 s390_asm_file_start (void)
 {
+  default_file_start ();
   s390_asm_output_machine_for_arch (asm_out_file);
 }
 #endif