Patchwork [gccgo] Change saw_profile_flag to bool

login
register
mail settings
Submitter Ian Taylor
Date Nov. 16, 2010, 11:18 p.m.
Message ID <mcrwroc502r.fsf@google.com>
Download mbox | patch
Permalink /patch/71473/
State New
Headers show

Comments

Ian Taylor - Nov. 16, 2010, 11:18 p.m.
This patch changes saw_profile_flag from int to bool in gospec.c.
Committed to gccgo branch.

Ian

Patch

Index: gospec.c
===================================================================
--- gospec.c	(revision 166835)
+++ gospec.c	(working copy)
@@ -56,8 +56,8 @@  lang_specific_driver (struct cl_decoded_
 {
   unsigned int i, j;
 
-  /* If nonzero, the user gave us the `-p' or `-pg' flag.  */
-  int saw_profile_flag = 0;
+  /* If true, the user gave us the `-p' or `-pg' flag.  */
+  bool saw_profile_flag = false;
 
   /* This is a tristate:
      -1 means we should not link in libgo
@@ -140,7 +140,7 @@  lang_specific_driver (struct cl_decoded_
 
 	case OPT_pg:
 	case OPT_p:
-	  saw_profile_flag++;
+	  saw_profile_flag = true;
 	  break;
 
 	case OPT_x: