aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2015-02-16 14:53:23 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2015-02-16 14:53:23 +0000
commit2d4df88383829724b4bfcce7aff13ad8662e182a (patch)
tree1928e84e0cae046d7242234987b5ada9ae13de12 /gcc
parenta933d47ffaa30ef3c02117ed3e1835758ff2813c (diff)
downloadgcc-2d4df88383829724b4bfcce7aff13ad8662e182a.zip
gcc-2d4df88383829724b4bfcce7aff13ad8662e182a.tar.gz
gcc-2d4df88383829724b4bfcce7aff13ad8662e182a.tar.bz2
re PR lto/65015 (LTO produces randomly ordered debug information)
2015-02-16 Richard Biener <rguenther@suse.de> PR lto/65015 * varasm.c (default_file_start): For LTO produced units emit <artificial> as file directive. From-SVN: r220735
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/varasm.c8
2 files changed, 13 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4062b06..e049c99 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2015-02-16 Richard Biener <rguenther@suse.de>
+ PR lto/65015
+ * varasm.c (default_file_start): For LTO produced units
+ emit <artificial> as file directive.
+
+2015-02-16 Richard Biener <rguenther@suse.de>
+
PR tree-optimization/63593
* tree-predcom.c (execute_pred_commoning_chain): Delay removing
stmts and releasing SSA names until...
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 0211306..7485499 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -7043,7 +7043,13 @@ default_file_start (void)
fputs (ASM_APP_OFF, asm_out_file);
if (targetm.asm_file_start_file_directive)
- output_file_directive (asm_out_file, main_input_filename);
+ {
+ /* LTO produced units have no meaningful main_input_filename. */
+ if (in_lto_p)
+ output_file_directive (asm_out_file, "<artificial>");
+ else
+ output_file_directive (asm_out_file, main_input_filename);
+ }
}
/* This is a generic routine suitable for use as TARGET_ASM_FILE_END