This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Minor tweak to dwarf2out_source_line
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 14 Sep 2017 10:33:37 +0200
- Subject: Minor tweak to dwarf2out_source_line
- Authentication-results: sourceware.org; auth=none
The function contains these lines:
if (debug_column_info)
fprint_ul (asm_out_file, column);
else
putc ('0', asm_out_file);
but they are dominated by:
if (!debug_column_info)
column = 0;
Bootstrapped/regtested on x86_64-suse-linux, applied on mainline as obvious.
2017-09-14 Eric Botcazou <ebotcazou@adacore.com>
* dwarf2out.c (dwarf2out_source_line): Remove superfluous test.
--
Eric Botcazou
Index: dwarf2out.c
===================================================================
--- dwarf2out.c (revision 252749)
+++ dwarf2out.c (working copy)
@@ -26645,10 +26645,7 @@ dwarf2out_source_line (unsigned int line
putc (' ', asm_out_file);
fprint_ul (asm_out_file, line);
putc (' ', asm_out_file);
- if (debug_column_info)
- fprint_ul (asm_out_file, column);
- else
- putc ('0', asm_out_file);
+ fprint_ul (asm_out_file, column);
if (is_stmt != table->is_stmt)
{