[committed] ;; to ;

Jakub Jelinek jakub@redhat.com
Thu Nov 30 22:54:00 GMT 2017


Hi!

I've noticed way too many ;; that shouldn't be there.

Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux,
committed to trunk as obvious.

2017-11-30  Jakub Jelinek  <jakub@redhat.com>

	* spellcheck-tree.c (test_find_closest_identifier): Use ; instead
	of ;;.
	* gengtype-state.c (read_state_pair): Likewise.
	* gimple-fold.c (gimple_fold_builtin_string_compare): Likewise.
	* sel-sched-dump.c (dump_insn_rtx_1): Likewise.
	* ipa-cp.c (intersect_aggregates_with_edge): Likewise.
	* ifcvt.c (noce_try_store_flag_constants): Likewise.
	* tree-ssa-ccp.c (ccp_finalize): Likewise.
	* omp-grid.c (grid_process_kernel_body_copy): Likewise.
	* builtins.c (fold_builtin_3): Likewise.
	* graphite-scop-detection.c
	(scop_detection::stmt_has_simple_data_refs_p): Likewise.
	* hsa-gen.c (hsa_function_representation::hsa_function_representation):
	Likewise.
c/
	* c-parser.c (c_parser_postfix_expression): Use ; instead of ;;.
jit/
	* jit-recording.c
	(recording::memento_of_new_rvalue_from_const <long>::write_reproducer):
	Use ; instead of ;;.
lto/
	* lto.c (create_subid_section_table): Use ; instead of ;;.
objc/
	* objc-next-runtime-abi-01.c (generate_dispatch_table): Use ; instead
	of ;;.

--- gcc/spellcheck-tree.c.jj	2017-01-01 12:45:38.000000000 +0100
+++ gcc/spellcheck-tree.c	2017-11-30 12:13:21.228625493 +0100
@@ -123,7 +123,7 @@ test_find_closest_identifier ()
   ASSERT_EQ (apple, find_closest_identifier (get_identifier ("app"),
 					     &candidates));
   ASSERT_EQ (banana, find_closest_identifier (get_identifier ("banyan"),
-					      &candidates));;
+					      &candidates));
   ASSERT_EQ (cherry, find_closest_identifier (get_identifier ("berry"),
 					      &candidates));
   ASSERT_EQ (NULL,
--- gcc/gengtype-state.c.jj	2017-01-01 12:45:38.000000000 +0100
+++ gcc/gengtype-state.c	2017-11-30 12:11:10.434244350 +0100
@@ -2206,7 +2206,7 @@ read_state_pair (pair_p *current)
 	  next_state_tokens (1);
 	  read_state_type (&((*current)->type));
 	  read_state_fileloc (&((*current)->line));
-	  read_state_options (&((*current)->opt));;
+	  read_state_options (&((*current)->opt));
 	  t0 = peek_state_token (0);
 	  if (state_token_kind (t0) == STOK_RIGHTPAR)
 	    {
--- gcc/gimple-fold.c.jj	2017-11-28 14:00:54.000000000 +0100
+++ gcc/gimple-fold.c	2017-11-30 12:11:31.726980807 +0100
@@ -2145,7 +2145,7 @@ gimple_fold_builtin_string_compare (gimp
 	    r = strncmp (p1, p2, length);
 	    if (r == 0)
 	      known_result = true;
-	    break;;
+	    break;
 	  }
 	default:
 	  gcc_unreachable ();
--- gcc/sel-sched-dump.c.jj	2017-11-20 11:02:42.000000000 +0100
+++ gcc/sel-sched-dump.c	2017-11-30 12:13:08.872778422 +0100
@@ -121,7 +121,7 @@ dump_insn_rtx_1 (rtx insn, int flags)
   int all;
 
   /* flags == -1 also means dumping all.  */
-  all = (flags & 1);;
+  all = (flags & 1);
   if (all)
     flags |= DUMP_INSN_RTX_ALL;
 
--- gcc/ipa-cp.c.jj	2017-11-28 22:19:28.000000000 +0100
+++ gcc/ipa-cp.c	2017-11-30 12:12:36.064184498 +0100
@@ -4192,7 +4192,7 @@ intersect_aggregates_with_edge (struct c
 	}
       else
 	{
-	  src_plats = ipa_get_parm_lattices (caller_info, src_idx);;
+	  src_plats = ipa_get_parm_lattices (caller_info, src_idx);
 	  /* Currently we do not produce clobber aggregate jump
 	     functions, adjust when we do.  */
 	  gcc_checking_assert (!src_plats->aggs || !jfunc->agg.items);
@@ -4214,7 +4214,7 @@ intersect_aggregates_with_edge (struct c
 	FOR_EACH_VEC_ELT (inter, k, item)
 	  {
 	    int l = 0;
-	    bool found = false;;
+	    bool found = false;
 
 	    if (!item->value)
 	      continue;
--- gcc/ifcvt.c.jj	2017-10-20 09:16:06.000000000 +0200
+++ gcc/ifcvt.c	2017-11-30 12:12:19.800385797 +0100
@@ -1287,7 +1287,7 @@ noce_try_store_flag_constants (struct no
   HOST_WIDE_INT itrue, ifalse, diff, tmp;
   int normalize;
   bool can_reverse;
-  machine_mode mode = GET_MODE (if_info->x);;
+  machine_mode mode = GET_MODE (if_info->x);
   rtx common = NULL_RTX;
 
   rtx a = if_info->a;
--- gcc/tree-ssa-ccp.c.jj	2017-11-02 08:45:52.000000000 +0100
+++ gcc/tree-ssa-ccp.c	2017-11-30 12:13:35.208452463 +0100
@@ -989,7 +989,7 @@ ccp_finalize (bool nonzero_p)
 
   free (const_val);
   const_val = NULL;
-  return something_changed;;
+  return something_changed;
 }
 
 
--- gcc/omp-grid.c.jj	2017-10-30 17:16:28.000000000 +0100
+++ gcc/omp-grid.c	2017-11-30 12:12:50.083010986 +0100
@@ -1237,7 +1237,7 @@ grid_process_kernel_body_copy (grid_prop
 
       if (gimple_omp_for_combined_p (inner_loop))
 	grid_eliminate_combined_simd_part (inner_loop);
-      struct walk_stmt_info body_wi;;
+      struct walk_stmt_info body_wi;
       memset (&body_wi, 0, sizeof (body_wi));
       walk_gimple_seq_mod (gimple_omp_body_ptr (inner_loop),
 			   grid_process_grid_body, NULL, &body_wi);
--- gcc/c/c-parser.c.jj	2017-11-28 12:11:37.000000000 +0100
+++ gcc/c/c-parser.c	2017-11-30 12:13:49.317277836 +0100
@@ -7763,7 +7763,7 @@ c_parser_postfix_expression (c_parser *p
 {
   struct c_expr expr, e1;
   struct c_type_name *t1, *t2;
-  location_t loc = c_parser_peek_token (parser)->location;;
+  location_t loc = c_parser_peek_token (parser)->location;
   source_range tok_range = c_parser_peek_token (parser)->get_range ();
   expr.original_code = ERROR_MARK;
   expr.original_type = NULL;
--- gcc/jit/jit-recording.c.jj	2017-10-04 16:45:27.000000000 +0200
+++ gcc/jit/jit-recording.c	2017-11-30 12:14:13.299980999 +0100
@@ -4487,7 +4487,7 @@ recording::memento_of_new_rvalue_from_co
 	       id,
 	       r.get_identifier (get_context ()),
 	       r.get_identifier_as_type (m_type),
-	       m_value + 1);;
+	       m_value + 1);
       return;
     }
 
--- gcc/objc/objc-next-runtime-abi-01.c.jj	2017-09-01 09:25:46.000000000 +0200
+++ gcc/objc/objc-next-runtime-abi-01.c	2017-11-30 12:14:52.431496664 +0100
@@ -1662,7 +1662,7 @@ generate_dispatch_table (tree chain, con
 {
   tree decl, method_list_template, initlist;
   vec<constructor_elt, va_gc> *v = NULL;
-  int size;;
+  int size;
 
   if (!chain || !name || !(size = list_length (chain)))
     return NULL_TREE;
--- gcc/builtins.c.jj	2017-11-28 12:11:38.000000000 +0100
+++ gcc/builtins.c	2017-11-30 12:09:55.571170939 +0100
@@ -9088,7 +9088,7 @@ fold_builtin_3 (location_t loc, tree fnd
     break;
 
     case BUILT_IN_MEMCMP:
-      return fold_builtin_memcmp (loc, arg0, arg1, arg2);;
+      return fold_builtin_memcmp (loc, arg0, arg1, arg2);
 
     case BUILT_IN_EXPECT:
       return fold_builtin_expect (loc, arg0, arg1, arg2);
--- gcc/graphite-scop-detection.c.jj	2017-11-06 08:46:33.000000000 +0100
+++ gcc/graphite-scop-detection.c	2017-11-30 12:11:51.880731362 +0100
@@ -1005,7 +1005,7 @@ scop_detection::graphite_can_represent_e
 bool
 scop_detection::stmt_has_simple_data_refs_p (sese_l scop, gimple *stmt)
 {
-  edge nest = scop.entry;;
+  edge nest = scop.entry;
   loop_p loop = loop_containing_stmt (stmt);
   if (!loop_in_sese_p (loop, scop))
     loop = NULL;
--- gcc/lto/lto.c.jj	2017-11-22 21:37:50.000000000 +0100
+++ gcc/lto/lto.c	2017-11-30 12:14:32.508743250 +0100
@@ -1989,7 +1989,7 @@ create_subid_section_table (struct lto_s
       file_data = ggc_alloc<lto_file_decl_data> ();
       memset(file_data, 0, sizeof (struct lto_file_decl_data));
       file_data->id = id;
-      file_data->section_hash_table = lto_obj_create_section_hash_table ();;
+      file_data->section_hash_table = lto_obj_create_section_hash_table ();
       lto_splay_tree_insert (file_ids, id, file_data);
 
       /* Maintain list in linker order */
--- gcc/hsa-gen.c.jj	2017-11-03 20:03:45.000000000 +0100
+++ gcc/hsa-gen.c	2017-11-30 12:12:06.634548752 +0100
@@ -211,7 +211,7 @@ hsa_function_representation::hsa_functio
     m_seen_error (false), m_temp_symbol_count (0), m_ssa_map (),
     m_modified_cfg (modified_cfg)
 {
-  int sym_init_len = (vec_safe_length (cfun->local_decls) / 2) + 1;;
+  int sym_init_len = (vec_safe_length (cfun->local_decls) / 2) + 1;
   m_local_symbols = new hash_table <hsa_noop_symbol_hasher> (sym_init_len);
   m_ssa_map.safe_grow_cleared (ssa_names_count);
 }

	Jakub



More information about the Gcc-patches mailing list