diff mbox

[gccgo] Change saw_profile_flag to bool

Message ID mcrwroc502r.fsf@google.com
State New
Headers show

Commit Message

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

Ian
diff mbox

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: