public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Minor tweak to dwarf2out_source_line
@ 2017-09-14  8:34 Eric Botcazou
  0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2017-09-14  8:34 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 425 bytes --]

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

[-- Attachment #2: p.diff --]
[-- Type: text/x-patch, Size: 514 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-14  8:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-14  8:34 Minor tweak to dwarf2out_source_line Eric Botcazou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).