Patchwork Fix debug dump formatting in ipa-pure-const

login
register
mail settings
Submitter Jan Hubicka
Date Nov. 6, 2012, 4:06 p.m.
Message ID <20121106160611.GE30424@kam.mff.cuni.cz>
Download mbox | patch
Permalink /patch/197495/
State New
Headers show

Comments

Jan Hubicka - Nov. 6, 2012, 4:06 p.m.
Hi,
there are missing linebreaks in the debug info.  Fixed thus.

Honza

Patch

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 193244)
+++ ChangeLog	(working copy)
@@ -1,3 +1,7 @@ 
+2012-11-06  Jan Hubicka  <jh@suse.cz>
+
+	* ipa-pure-const.c (check_stmt): Fix debug info formatting.
+
 2012-11-06  Uros Bizjak  <ubizjak@gmail.com>
 
 	* config/i386/i386.c (TARGET_INSTANTIATE_DECLS): New define.
Index: ipa-pure-const.c
===================================================================
--- ipa-pure-const.c	(revision 193244)
+++ ipa-pure-const.c	(working copy)
@@ -671,15 +671,18 @@  check_stmt (gimple_stmt_iterator *gsip,
       if (cfun->can_throw_non_call_exceptions)
 	{
 	  if (dump_file)
-	    fprintf (dump_file, "    can throw; looping");
+	    fprintf (dump_file, "    can throw; looping\n");
 	  local->looping = true;
 	}
       if (stmt_can_throw_external (stmt))
 	{
 	  if (dump_file)
-	    fprintf (dump_file, "    can throw externally");
+	    fprintf (dump_file, "    can throw externally\n");
 	  local->can_throw = true;
 	}
+      else
+	if (dump_file)
+	  fprintf (dump_file, "    can throw\n");
     }
   switch (gimple_code (stmt))
     {
@@ -691,7 +694,7 @@  check_stmt (gimple_stmt_iterator *gsip,
 	/* Target of long jump. */
 	{
           if (dump_file)
-            fprintf (dump_file, "    nonlocal label is not const/pure");
+            fprintf (dump_file, "    nonlocal label is not const/pure\n");
 	  local->pure_const_state = IPA_NEITHER;
 	}
       break;
@@ -699,14 +702,14 @@  check_stmt (gimple_stmt_iterator *gsip,
       if (gimple_asm_clobbers_memory_p (stmt))
 	{
 	  if (dump_file)
-	    fprintf (dump_file, "    memory asm clobber is not const/pure");
+	    fprintf (dump_file, "    memory asm clobber is not const/pure\n");
 	  /* Abandon all hope, ye who enter here. */
 	  local->pure_const_state = IPA_NEITHER;
 	}
       if (gimple_asm_volatile_p (stmt))
 	{
 	  if (dump_file)
-	    fprintf (dump_file, "    volatile is not const/pure");
+	    fprintf (dump_file, "    volatile is not const/pure\n");
 	  /* Abandon all hope, ye who enter here. */
 	  local->pure_const_state = IPA_NEITHER;
           local->looping = true;