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]

Re: [janitor] convert some c-* files to C90


Here's the patch that I promised.  I'll commit it after bootstrapping
on i686-linux-gnu.

Andreas



2003-06-20  Andreas Jaeger  <aj@suse.de>

	* c-common.c: Change _Bool to bool reverting part of the last
	patch.

============================================================
Index: gcc/c-common.c
--- gcc/c-common.c	19 Jun 2003 19:43:57 -0000	1.420
+++ gcc/c-common.c	20 Jun 2003 09:00:35 -0000
@@ -4665,7 +4665,7 @@ shadow_warning (enum sw_kind msgcode, co
 
 static tree
 handle_packed_attribute (tree *node, tree name, tree args  ATTRIBUTE_UNUSED,
-			 int flags, _Bool *no_add_attrs)
+			 int flags, bool *no_add_attrs)
 {
   tree *type = NULL;
   if (DECL_P (*node))
@@ -4701,7 +4701,7 @@ handle_packed_attribute (tree *node, tre
 static tree
 handle_nocommon_attribute (tree *node, tree name,
 			   tree args ATTRIBUTE_UNUSED,
-			   int flags ATTRIBUTE_UNUSED, _Bool *no_add_attrs)
+			   int flags ATTRIBUTE_UNUSED, bool *no_add_attrs)
 {
   if (TREE_CODE (*node) == VAR_DECL)
     DECL_COMMON (*node) = 0;
@@ -4719,7 +4719,7 @@ handle_nocommon_attribute (tree *node, t
 
 static tree
 handle_common_attribute (tree *node, tree name, tree args ATTRIBUTE_UNUSED,
-			 int flags ATTRIBUTE_UNUSED, _Bool *no_add_attrs)
+			 int flags ATTRIBUTE_UNUSED, bool *no_add_attrs)
 {
   if (TREE_CODE (*node) == VAR_DECL)
     DECL_COMMON (*node) = 1;
@@ -4737,7 +4737,7 @@ handle_common_attribute (tree *node, tre
 
 static tree
 handle_noreturn_attribute (tree *node, tree name, tree args ATTRIBUTE_UNUSED,
-			   int flags ATTRIBUTE_UNUSED, _Bool *no_add_attrs)
+			   int flags ATTRIBUTE_UNUSED, bool *no_add_attrs)
 {
   tree type = TREE_TYPE (*node);
 
@@ -4765,7 +4765,7 @@ handle_noreturn_attribute (tree *node, t
 static tree
 handle_noinline_attribute (tree *node, tree name,
 			   tree args ATTRIBUTE_UNUSED,
-			   int flags ATTRIBUTE_UNUSED, _Bool *no_add_attrs)
+			   int flags ATTRIBUTE_UNUSED, bool *no_add_attrs)
 {
   if (TREE_CODE (*node) == FUNCTION_DECL)
     DECL_UNINLINABLE (*node) = 1;
@@ -4785,7 +4785,7 @@ static tree
 handle_always_inline_attribute (tree *node, tree name,
 				tree args ATTRIBUTE_UNUSED,
 				int flags ATTRIBUTE_UNUSED,
-				_Bool *no_add_attrs)
+				bool *no_add_attrs)
 {
   if (TREE_CODE (*node) == FUNCTION_DECL)
     {
@@ -4806,7 +4806,7 @@ handle_always_inline_attribute (tree *no
 
 static tree
 handle_used_attribute (tree *pnode, tree name, tree args ATTRIBUTE_UNUSED,
-		       int flags ATTRIBUTE_UNUSED, _Bool *no_add_attrs)
+		       int flags ATTRIBUTE_UNUSED, bool *no_add_attrs)
 {
   tree node = *pnode;
 
@@ -4828,7 +4828,7 @@ handle_used_attribute (tree *pnode, tree
 
 static tree
 handle_unused_attribute (tree *node, tree name, tree args ATTRIBUTE_UNUSED,
-			 int flags ATTRIBUTE_UNUSED, _Bool *no_add_attrs)
+			 int flags ATTRIBUTE_UNUSED, bool *no_add_attrs)
 {
   if (DECL_P (*node))
     {
@@ -4861,7 +4861,7 @@ handle_unused_attribute (tree *node, tre
 
 static tree
 handle_const_attribute (tree *node, tree name, tree args ATTRIBUTE_UNUSED,
-			int flags ATTRIBUTE_UNUSED, _Bool *no_add_attrs)
+			int flags ATTRIBUTE_UNUSED, bool *no_add_attrs)
 {
   tree type = TREE_TYPE (*node);
 
@@ -4889,7 +4889,7 @@ handle_const_attribute (tree *node, tree
 static tree
 handle_transparent_union_attribute (tree *node, tree name,
 				    tree args ATTRIBUTE_UNUSED, int flags,
-				    _Bool *no_add_attrs)
+				    bool *no_add_attrs)
 {
   tree decl = NULL_TREE;
   tree *type = NULL;
@@ -4934,7 +4934,7 @@ static tree
 handle_constructor_attribute (tree *node, tree name,
 			      tree args ATTRIBUTE_UNUSED,
 			      int flags ATTRIBUTE_UNUSED,
-			      _Bool *no_add_attrs)
+			      bool *no_add_attrs)
 {
   tree decl = *node;
   tree type = TREE_TYPE (decl);
@@ -4962,7 +4962,7 @@ static tree
 handle_destructor_attribute (tree *node, tree name,
 			     tree args ATTRIBUTE_UNUSED,
 			     int flags ATTRIBUTE_UNUSED,
-			     _Bool *no_add_attrs)
+			     bool *no_add_attrs)
 {
   tree decl = *node;
   tree type = TREE_TYPE (decl);
@@ -4988,7 +4988,7 @@ handle_destructor_attribute (tree *node,
 
 static tree
 handle_mode_attribute (tree *node, tree name, tree args ATTRIBUTE_UNUSED,
-		       int flags ATTRIBUTE_UNUSED, _Bool *no_add_attrs)
+		       int flags ATTRIBUTE_UNUSED, bool *no_add_attrs)
 {
   tree type = *node;
 
@@ -5073,7 +5073,7 @@ handle_mode_attribute (tree *node, tree 
 
 static tree
 handle_section_attribute (tree *node, tree name ATTRIBUTE_UNUSED, tree args,
-			  int flags ATTRIBUTE_UNUSED, _Bool *no_add_attrs)
+			  int flags ATTRIBUTE_UNUSED, bool *no_add_attrs)
 {
   tree decl = *node;
 
@@ -5127,7 +5127,7 @@ handle_section_attribute (tree *node, tr
 
 static tree
 handle_aligned_attribute (tree *node, tree name ATTRIBUTE_UNUSED, tree args,
-			  int flags, _Bool *no_add_attrs)
+			  int flags, bool *no_add_attrs)
 {
   tree decl = NULL_TREE;
   tree *type = NULL;
@@ -5209,7 +5209,7 @@ static tree
 handle_weak_attribute (tree *node, tree name ATTRIBUTE_UNUSED,
 		       tree args ATTRIBUTE_UNUSED,
 		       int flags ATTRIBUTE_UNUSED,
-		       _Bool *no_add_attrs ATTRIBUTE_UNUSED)
+		       bool *no_add_attrs ATTRIBUTE_UNUSED)
 {
   declare_weak (*node);
 
@@ -5221,7 +5221,7 @@ handle_weak_attribute (tree *node, tree 
 
 static tree
 handle_alias_attribute (tree *node, tree name, tree args,
-			int flags ATTRIBUTE_UNUSED, _Bool *no_add_attrs)
+			int flags ATTRIBUTE_UNUSED, bool *no_add_attrs)
 {
   tree decl = *node;
 
@@ -5267,7 +5267,7 @@ handle_alias_attribute (tree *node, tree
 static tree
 handle_visibility_attribute (tree *node, tree name, tree args,
 			     int flags ATTRIBUTE_UNUSED,
-			     _Bool *no_add_attrs)
+			     bool *no_add_attrs)
 {
   tree decl = *node;
 
@@ -5306,7 +5306,7 @@ handle_visibility_attribute (tree *node,
 
 static tree
 handle_tls_model_attribute (tree *node, tree name, tree args,
-			    int flags ATTRIBUTE_UNUSED, _Bool *no_add_attrs)
+			    int flags ATTRIBUTE_UNUSED, bool *no_add_attrs)
 {
   tree decl = *node;
 
@@ -5347,7 +5347,7 @@ static tree
 handle_no_instrument_function_attribute (tree *node, tree name,
 					 tree args ATTRIBUTE_UNUSED,
 					 int flags ATTRIBUTE_UNUSED,
-					 _Bool *no_add_attrs)
+					 bool *no_add_attrs)
 {
   tree decl = *node;
 
@@ -5376,7 +5376,7 @@ handle_no_instrument_function_attribute 
 
 static tree
 handle_malloc_attribute (tree *node, tree name, tree args ATTRIBUTE_UNUSED,
-			 int flags ATTRIBUTE_UNUSED, _Bool *no_add_attrs)
+			 int flags ATTRIBUTE_UNUSED, bool *no_add_attrs)
 {
   if (TREE_CODE (*node) == FUNCTION_DECL)
     DECL_IS_MALLOC (*node) = 1;
@@ -5397,7 +5397,7 @@ static tree
 handle_no_limit_stack_attribute (tree *node, tree name,
 				 tree args ATTRIBUTE_UNUSED,
 				 int flags ATTRIBUTE_UNUSED,
-				 _Bool *no_add_attrs)
+				 bool *no_add_attrs)
 {
   tree decl = *node;
 
@@ -5426,7 +5426,7 @@ handle_no_limit_stack_attribute (tree *n
 
 static tree
 handle_pure_attribute (tree *node, tree name, tree args ATTRIBUTE_UNUSED,
-		       int flags ATTRIBUTE_UNUSED, _Bool *no_add_attrs)
+		       int flags ATTRIBUTE_UNUSED, bool *no_add_attrs)
 {
   if (TREE_CODE (*node) == FUNCTION_DECL)
     DECL_IS_PURE (*node) = 1;
@@ -5446,7 +5446,7 @@ handle_pure_attribute (tree *node, tree 
 static tree
 handle_deprecated_attribute (tree *node, tree name,
 			     tree args ATTRIBUTE_UNUSED, int flags,
-			     _Bool *no_add_attrs)
+			     bool *no_add_attrs)
 {
   tree type = NULL_TREE;
   int warn = 0;
@@ -5511,7 +5511,7 @@ static GTY(()) tree vector_type_node_lis
 static tree
 handle_vector_size_attribute (tree *node, tree name, tree args,
 			      int flags ATTRIBUTE_UNUSED,
-			      _Bool *no_add_attrs)
+			      bool *no_add_attrs)
 {
   unsigned HOST_WIDE_INT vecsize, nunits;
   enum machine_mode mode, orig_mode, new_mode;
@@ -5689,7 +5689,7 @@ vector_size_helper (tree type, tree bott
 static tree
 handle_nonnull_attribute (tree *node, tree name ATTRIBUTE_UNUSED,
 			  tree args, int flags ATTRIBUTE_UNUSED,
-			  _Bool *no_add_attrs)
+			  bool *no_add_attrs)
 {
   tree type = *node;
   unsigned HOST_WIDE_INT attr_arg_num;
@@ -5853,7 +5853,7 @@ get_nonnull_operand (tree arg_num_expr, 
 
 static tree
 handle_nothrow_attribute (tree *node, tree name, tree args ATTRIBUTE_UNUSED,
-			  int flags ATTRIBUTE_UNUSED, _Bool *no_add_attrs)
+			  int flags ATTRIBUTE_UNUSED, bool *no_add_attrs)
 {
   if (TREE_CODE (*node) == FUNCTION_DECL)
     TREE_NOTHROW (*node) = 1;
@@ -5872,7 +5872,7 @@ handle_nothrow_attribute (tree *node, tr
 
 static tree
 handle_cleanup_attribute (tree *node, tree name, tree args,
-			  int flags ATTRIBUTE_UNUSED, _Bool *no_add_attrs)
+			  int flags ATTRIBUTE_UNUSED, bool *no_add_attrs)
 {
   tree decl = *node;
   tree cleanup_id, cleanup_decl;

-- 
 Andreas Jaeger, SuSE Linux AG, aj@suse.de, http://www.suse.de/~aj
  GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


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