This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Use bool for finish_decl()'s variable was_incomplete


:ADDPATCH gcc:

	* c-decl.c (finish_decl): Use bool for variable was_incomplete.
	(finish_function): Remove erroneous whitespace.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
 gcc/ChangeLog |    5 +++++
 gcc/c-decl.c  |    3 +--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8cd7fd9..dde8e88 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
 2009-06-04  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
 
+	* c-decl.c (finish_decl): Use bool for variable was_incomplete.
+	(finish_function): Remove erroneous whitespace.
+
+2009-06-04  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
+
 	* tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
 	(verify_stmts): Print statement who's gimple_bb is set to a wrong BB
 
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 2aa018f..9159b3c 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -3520,7 +3520,7 @@ void
 finish_decl (tree decl, tree init, tree origtype, tree asmspec_tree)
 {
   tree type;
-  int was_incomplete = (DECL_SIZE (decl) == 0);
+  bool was_incomplete = (DECL_SIZE (decl) == 0);
   const char *asmspec = 0;
 
   /* If a name was specified, get the string.  */
@@ -7293,7 +7293,6 @@ finish_function (void)
 	      cgraph_add_new_function (fndecl, false);
 	      return;
 	    }
-
 	  cgraph_finalize_function (fndecl, false);
 	}
       else

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]