diff mbox series

Minor tweak to dwarf2out_source_line

Message ID 3664826.DgEP2CqRvV@polaris
State New
Headers show
Series Minor tweak to dwarf2out_source_line | expand

Commit Message

Eric Botcazou Sept. 14, 2017, 8:33 a.m. UTC
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.
diff mbox series

Patch

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)
 	{