Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jul 2018 00:52:26 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r474611 - head/devel/arm-none-eabi-gcc492/files
Message-ID:  <201807140052.w6E0qQGn043873@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Sat Jul 14 00:52:26 2018
New Revision: 474611
URL: https://svnweb.freebsd.org/changeset/ports/474611

Log:
  Attempt to fix build with clang6.

Added:
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_bitmap.c   (contents, props changed)
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_cgraph.c   (contents, props changed)
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_config_elfos.h   (contents, props changed)
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_cppbuiltin.c   (contents, props changed)
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_defaults.h   (contents, props changed)
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_dwarf2cfi.c   (contents, props changed)
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_dwarf2out.c   (contents, props changed)
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_gcc.c   (contents, props changed)
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-devirt.c   (contents, props changed)
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-inline.c   (contents, props changed)
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-profile.c   (contents, props changed)
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-prop.c   (contents, props changed)
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_loop-iv.c   (contents, props changed)
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_profile.c   (contents, props changed)
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_stor-layout.c   (contents, props changed)
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_toplev.c   (contents, props changed)
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_tree-ssa-reassoc.c   (contents, props changed)
  head/devel/arm-none-eabi-gcc492/files/patch-gcc_value-prof.c   (contents, props changed)

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_bitmap.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_bitmap.c	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,24 @@
+--- gcc/bitmap.c.orig	2014-01-02 22:23:26 UTC
++++ gcc/bitmap.c
+@@ -2166,9 +2166,9 @@ print_statistics (bitmap_descriptor_d **
+       s[41] = 0;
+       fprintf (stderr,
+ 	       "%-41s %9u"
+-	       " %15"HOST_WIDEST_INT_PRINT"d %15"HOST_WIDEST_INT_PRINT"d"
+-	       " %15"HOST_WIDEST_INT_PRINT"d"
+-	       " %10"HOST_WIDEST_INT_PRINT"d %10"HOST_WIDEST_INT_PRINT"d\n",
++	       " %15" HOST_WIDEST_INT_PRINT "d %15" HOST_WIDEST_INT_PRINT "d"
++	       " %15" HOST_WIDEST_INT_PRINT "d"
++	       " %10" HOST_WIDEST_INT_PRINT "d %10" HOST_WIDEST_INT_PRINT "d\n",
+ 	       s, d->created,
+ 	       d->allocated, d->peak, d->current,
+ 	       d->nsearches, d->search_iter);
+@@ -2201,7 +2201,7 @@ dump_bitmap_statistics (void)
+   bitmap_desc_hash.traverse <output_info *, print_statistics> (&info);
+   fprintf (stderr, "---------------------------------------------------------------------------------\n");
+   fprintf (stderr,
+-	   "%-41s %9"HOST_WIDEST_INT_PRINT"d %15"HOST_WIDEST_INT_PRINT"d\n",
++	   "%-41s %9" HOST_WIDEST_INT_PRINT "d %15" HOST_WIDEST_INT_PRINT "d\n",
+ 	   "Total", info.count, info.size);
+   fprintf (stderr, "---------------------------------------------------------------------------------\n");
+ }

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_cgraph.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_cgraph.c	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,38 @@
+--- gcc/cgraph.c.orig	2014-06-20 09:57:53 UTC
++++ gcc/cgraph.c
+@@ -1378,7 +1378,7 @@ cgraph_redirect_edge_call_stmt_to_callee
+ 	  if (dump_file)
+ 	    fprintf (dump_file,
+ 		     "Expanding speculative call of %s/%i -> %s/%i count:"
+-		     HOST_WIDEST_INT_PRINT_DEC"\n",
++		     HOST_WIDEST_INT_PRINT_DEC "\n",
+ 		     xstrdup (e->caller->name ()),
+ 		     e->caller->order,
+ 		     xstrdup (e->callee->name ()),
+@@ -1976,7 +1976,7 @@ dump_cgraph_node (FILE *f, struct cgraph
+   fprintf (f, "  First run: %i\n", node->tp_first_run);
+   fprintf (f, "  Function flags:");
+   if (node->count)
+-    fprintf (f, " executed "HOST_WIDEST_INT_PRINT_DEC"x",
++    fprintf (f, " executed " HOST_WIDEST_INT_PRINT_DEC "x",
+ 	     (HOST_WIDEST_INT)node->count);
+   if (node->origin)
+     fprintf (f, " nested in: %s", node->origin->asm_name ());
+@@ -2028,7 +2028,7 @@ dump_cgraph_node (FILE *f, struct cgraph
+       fprintf (f, "%s/%i ", edge->caller->asm_name (),
+ 	       edge->caller->order);
+       if (edge->count)
+-	fprintf (f, "("HOST_WIDEST_INT_PRINT_DEC"x) ",
++	fprintf (f, "(" HOST_WIDEST_INT_PRINT_DEC "x) ",
+ 		 (HOST_WIDEST_INT)edge->count);
+       if (edge->frequency)
+ 	fprintf (f, "(%.2f per call) ",
+@@ -2055,7 +2055,7 @@ dump_cgraph_node (FILE *f, struct cgraph
+       if (edge->indirect_inlining_edge)
+ 	fprintf (f, "(indirect_inlining) ");
+       if (edge->count)
+-	fprintf (f, "("HOST_WIDEST_INT_PRINT_DEC"x) ",
++	fprintf (f, "(" HOST_WIDEST_INT_PRINT_DEC "x) ",
+ 		 (HOST_WIDEST_INT)edge->count);
+       if (edge->frequency)
+ 	fprintf (f, "(%.2f per call) ",

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_config_elfos.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_config_elfos.h	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,20 @@
+--- gcc/config/elfos.h.orig	2014-04-07 13:27:39 UTC
++++ gcc/config/elfos.h
+@@ -99,7 +99,7 @@ see the files COPYING3 and COPYING.RUNTI
+ 
+ #undef  ASM_OUTPUT_SKIP
+ #define ASM_OUTPUT_SKIP(FILE, SIZE) \
+-   fprintf ((FILE), "%s"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
++   fprintf ((FILE), "%s" HOST_WIDE_INT_PRINT_UNSIGNED "\n",\
+ 	    SKIP_ASM_OP, (SIZE))
+ 
+ /* This is how to store into the string LABEL
+@@ -167,7 +167,7 @@ see the files COPYING3 and COPYING.RUNTI
+     {									\
+       fprintf ((FILE), "%s", COMMON_ASM_OP);				\
+       assemble_name ((FILE), (NAME));					\
+-      fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n",		\
++      fprintf ((FILE), "," HOST_WIDE_INT_PRINT_UNSIGNED ",%u\n",	\
+ 	       (SIZE), (ALIGN) / BITS_PER_UNIT);			\
+     }									\
+   while (0)

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_cppbuiltin.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_cppbuiltin.c	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,11 @@
+--- gcc/cppbuiltin.c.orig	2014-01-24 23:13:49 UTC
++++ gcc/cppbuiltin.c
+@@ -129,7 +129,7 @@ static void
+ define_builtin_macros_for_type_sizes (cpp_reader *pfile)
+ {
+ #define define_type_sizeof(NAME, TYPE)                             \
+-    cpp_define_formatted (pfile, NAME"="HOST_WIDE_INT_PRINT_DEC,   \
++    cpp_define_formatted (pfile, NAME "=" HOST_WIDE_INT_PRINT_DEC, \
+                           tree_to_uhwi (TYPE_SIZE_UNIT (TYPE)))
+ 
+   define_type_sizeof ("__SIZEOF_INT__", integer_type_node);

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_defaults.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_defaults.h	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,11 @@
+--- gcc/defaults.h.orig	2014-01-02 22:23:26 UTC
++++ gcc/defaults.h
+@@ -123,7 +123,7 @@ see the files COPYING3 and COPYING.RUNTI
+     {									\
+       fprintf ((FILE), "\t%s\t", TLS_COMMON_ASM_OP);			\
+       assemble_name ((FILE), (NAME));					\
+-      fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n",		\
++      fprintf ((FILE), "," HOST_WIDE_INT_PRINT_UNSIGNED ",%u\n",	\
+ 	       (SIZE), DECL_ALIGN (DECL) / BITS_PER_UNIT);		\
+     }									\
+   while (0)

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_dwarf2cfi.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_dwarf2cfi.c	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,45 @@
+--- gcc/dwarf2cfi.c.orig	2014-01-02 22:23:26 UTC
++++ gcc/dwarf2cfi.c
+@@ -3176,7 +3176,7 @@ output_cfi_directive (FILE *f, dw_cfi_re
+     case DW_CFA_offset_extended:
+     case DW_CFA_offset_extended_sf:
+       r = DWARF2_FRAME_REG_OUT (cfi->dw_cfi_oprnd1.dw_cfi_reg_num, 1);
+-      fprintf (f, "\t.cfi_offset %lu, "HOST_WIDE_INT_PRINT_DEC"\n",
++      fprintf (f, "\t.cfi_offset %lu, " HOST_WIDE_INT_PRINT_DEC "\n",
+ 	       r, cfi->dw_cfi_oprnd2.dw_cfi_offset);
+       break;
+ 
+@@ -3199,7 +3199,7 @@ output_cfi_directive (FILE *f, dw_cfi_re
+     case DW_CFA_def_cfa:
+     case DW_CFA_def_cfa_sf:
+       r = DWARF2_FRAME_REG_OUT (cfi->dw_cfi_oprnd1.dw_cfi_reg_num, 1);
+-      fprintf (f, "\t.cfi_def_cfa %lu, "HOST_WIDE_INT_PRINT_DEC"\n",
++      fprintf (f, "\t.cfi_def_cfa %lu, " HOST_WIDE_INT_PRINT_DEC "\n",
+ 	       r, cfi->dw_cfi_oprnd2.dw_cfi_offset);
+       break;
+ 
+@@ -3217,7 +3217,7 @@ output_cfi_directive (FILE *f, dw_cfi_re
+     case DW_CFA_def_cfa_offset:
+     case DW_CFA_def_cfa_offset_sf:
+       fprintf (f, "\t.cfi_def_cfa_offset "
+-	       HOST_WIDE_INT_PRINT_DEC"\n",
++	       HOST_WIDE_INT_PRINT_DEC "\n",
+ 	       cfi->dw_cfi_oprnd1.dw_cfi_offset);
+       break;
+ 
+@@ -3234,13 +3234,13 @@ output_cfi_directive (FILE *f, dw_cfi_re
+ 	  fprintf (f, "\t.cfi_escape %#x,", DW_CFA_GNU_args_size);
+ 	  dw2_asm_output_data_uleb128_raw (cfi->dw_cfi_oprnd1.dw_cfi_offset);
+ 	  if (flag_debug_asm)
+-	    fprintf (f, "\t%s args_size "HOST_WIDE_INT_PRINT_DEC,
++	    fprintf (f, "\t%s args_size " HOST_WIDE_INT_PRINT_DEC,
+ 		     ASM_COMMENT_START, cfi->dw_cfi_oprnd1.dw_cfi_offset);
+ 	  fputc ('\n', f);
+ 	}
+       else
+ 	{
+-	  fprintf (f, "\t.cfi_GNU_args_size "HOST_WIDE_INT_PRINT_DEC "\n",
++	  fprintf (f, "\t.cfi_GNU_args_size " HOST_WIDE_INT_PRINT_DEC "\n",
+ 		   cfi->dw_cfi_oprnd1.dw_cfi_offset);
+ 	}
+       break;

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_dwarf2out.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_dwarf2out.c	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,13 @@
+--- gcc/dwarf2out.c.orig	2014-10-01 20:57:44 UTC
++++ gcc/dwarf2out.c
+@@ -5324,8 +5324,8 @@ print_die (dw_die_ref die, FILE *outfile
+ 	  fprintf (outfile, HOST_WIDE_INT_PRINT_UNSIGNED, AT_unsigned (a));
+ 	  break;
+ 	case dw_val_class_const_double:
+-	  fprintf (outfile, "constant ("HOST_WIDE_INT_PRINT_DEC","\
+-			    HOST_WIDE_INT_PRINT_UNSIGNED")",
++	  fprintf (outfile, "constant (" HOST_WIDE_INT_PRINT_DEC ","\
++			    HOST_WIDE_INT_PRINT_UNSIGNED ")",
+ 		   a->dw_attr_val.v.val_double.high,
+ 		   a->dw_attr_val.v.val_double.low);
+ 	  break;

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_gcc.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_gcc.c	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,17 @@
+--- gcc/gcc.c.orig	2014-10-22 21:42:48 UTC
++++ gcc/gcc.c
+@@ -710,12 +710,12 @@ proper position among the other output f
+ #define PLUGIN_COND_CLOSE ""
+ #endif
+ #define LINK_PLUGIN_SPEC \
+-    "%{"PLUGIN_COND": \
++    "%{" PLUGIN_COND ": \
+     -plugin %(linker_plugin_file) \
+     -plugin-opt=%(lto_wrapper) \
+     -plugin-opt=-fresolution=%u.res \
+     %{!nostdlib:%{!nodefaultlibs:%:pass-through-libs(%(link_gcc_c_sequence))}} \
+-    }"PLUGIN_COND_CLOSE
++    }" PLUGIN_COND_CLOSE
+ #else
+ /* The linker used doesn't support -plugin, reject -fuse-linker-plugin.  */
+ #define LINK_PLUGIN_SPEC "%{fuse-linker-plugin:\

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-devirt.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-devirt.c	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,11 @@
+--- gcc/ipa-devirt.c.orig	2014-10-05 02:50:01 UTC
++++ gcc/ipa-devirt.c
+@@ -1634,7 +1634,7 @@ dump_possible_polymorphic_call_targets (
+     {
+       fprintf (f, "    Contained in type:");
+       print_generic_expr (f, ctx.outer_type, TDF_SLIM);
+-      fprintf (f, " at offset "HOST_WIDE_INT_PRINT_DEC"\n",
++      fprintf (f, " at offset " HOST_WIDE_INT_PRINT_DEC "\n",
+ 	       ctx.offset);
+     }
+ 

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-inline.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-inline.c	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,11 @@
+--- gcc/ipa-inline.c.orig	2014-05-21 05:40:09 UTC
++++ gcc/ipa-inline.c
+@@ -1727,7 +1727,7 @@ inline_small_functions (void)
+ 		   badness,
+ 		   edge->frequency / (double)CGRAPH_FREQ_BASE);
+ 	  if (edge->count)
+-	    fprintf (dump_file," Called "HOST_WIDEST_INT_PRINT_DEC"x\n",
++	    fprintf (dump_file," Called " HOST_WIDEST_INT_PRINT_DEC "x\n",
+ 		     edge->count);
+ 	  if (dump_flags & TDF_DETAILS)
+ 	    edge_badness (edge, true);

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-profile.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-profile.c	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,38 @@
+--- gcc/ipa-profile.c.orig	2014-01-02 22:23:26 UTC
++++ gcc/ipa-profile.c
+@@ -163,7 +163,7 @@ dump_histogram (FILE *file, vec<histogra
+     {
+       cumulated_time += histogram[i]->count * histogram[i]->time;
+       cumulated_size += histogram[i]->size;
+-      fprintf (file, "  "HOST_WIDEST_INT_PRINT_DEC": time:%i (%2.2f) size:%i (%2.2f)\n",
++      fprintf (file, "  " HOST_WIDEST_INT_PRINT_DEC ": time:%i (%2.2f) size:%i (%2.2f)\n",
+ 	       (HOST_WIDEST_INT) histogram[i]->count,
+ 	       histogram[i]->time,
+ 	       cumulated_time * 100.0 / overall_time,
+@@ -516,7 +516,7 @@ ipa_profile (void)
+ 	{
+ 	  gcov_type min, cumulated_time = 0, cumulated_size = 0;
+ 
+-	  fprintf (dump_file, "Overall time: "HOST_WIDEST_INT_PRINT_DEC"\n", 
++	  fprintf (dump_file, "Overall time: " HOST_WIDEST_INT_PRINT_DEC "\n", 
+ 		   (HOST_WIDEST_INT)overall_time);
+ 	  min = get_hot_bb_threshold ();
+           for (i = 0; i < (int)histogram.length () && histogram[i]->count >= min;
+@@ -525,7 +525,7 @@ ipa_profile (void)
+ 	      cumulated_time += histogram[i]->count * histogram[i]->time;
+ 	      cumulated_size += histogram[i]->size;
+ 	    }
+-	  fprintf (dump_file, "GCOV min count: "HOST_WIDEST_INT_PRINT_DEC
++	  fprintf (dump_file, "GCOV min count: " HOST_WIDEST_INT_PRINT_DEC
+ 		   " Time:%3.2f%% Size:%3.2f%%\n", 
+ 		   (HOST_WIDEST_INT)min,
+ 		   cumulated_time * 100.0 / overall_time,
+@@ -551,7 +551,7 @@ ipa_profile (void)
+ 	      cumulated_time += histogram[i]->count * histogram[i]->time;
+ 	      cumulated_size += histogram[i]->size;
+ 	    }
+-	  fprintf (dump_file, "Determined min count: "HOST_WIDEST_INT_PRINT_DEC
++	  fprintf (dump_file, "Determined min count: " HOST_WIDEST_INT_PRINT_DEC
+ 		   " Time:%3.2f%% Size:%3.2f%%\n", 
+ 		   (HOST_WIDEST_INT)threshold,
+ 		   cumulated_time * 100.0 / overall_time,

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-prop.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-prop.c	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,20 @@
+--- gcc/ipa-prop.c.orig	2018-07-13 20:22:39 UTC
++++ gcc/ipa-prop.c
+@@ -244,7 +244,7 @@ ipa_print_node_jump_functions_for_edge (
+ 	{
+ 	  fprintf (f, "KNOWN TYPE: base  ");
+ 	  print_generic_expr (f, jump_func->value.known_type.base_type, 0);
+-	  fprintf (f, ", offset "HOST_WIDE_INT_PRINT_DEC", component ",
++	  fprintf (f, ", offset " HOST_WIDE_INT_PRINT_DEC ", component ",
+ 		   jump_func->value.known_type.offset);
+ 	  print_generic_expr (f, jump_func->value.known_type.component_type, 0);
+ 	  fprintf (f, "\n");
+@@ -284,7 +284,7 @@ ipa_print_node_jump_functions_for_edge (
+       else if (type == IPA_JF_ANCESTOR)
+ 	{
+ 	  fprintf (f, "ANCESTOR: ");
+-	  fprintf (f, "%d, offset "HOST_WIDE_INT_PRINT_DEC", ",
++	  fprintf (f, "%d, offset " HOST_WIDE_INT_PRINT_DEC ", ",
+ 		   jump_func->value.ancestor.formal_id,
+ 		   jump_func->value.ancestor.offset);
+ 	  print_generic_expr (f, jump_func->value.ancestor.type, 0);

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_loop-iv.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_loop-iv.c	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,11 @@
+--- gcc/loop-iv.c.orig	2014-01-17 10:47:59 UTC
++++ gcc/loop-iv.c
+@@ -2297,7 +2297,7 @@ determine_max_iter (struct loop *loop, s
+   if (andmax)
+     nmax = MIN (nmax, andmax);
+   if (dump_file)
+-    fprintf (dump_file, ";; Determined upper bound "HOST_WIDEST_INT_PRINT_DEC".\n",
++    fprintf (dump_file, ";; Determined upper bound " HOST_WIDEST_INT_PRINT_DEC ".\n",
+ 	     nmax);
+   return nmax;
+ }

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_profile.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_profile.c	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,29 @@
+--- gcc/profile.c.orig	2014-02-01 08:40:31 UTC
++++ gcc/profile.c
+@@ -318,7 +318,7 @@ is_edge_inconsistent (vec<edge, va_gc> *
+ 	      if (dump_file)
+ 		{
+ 		  fprintf (dump_file,
+-		  	   "Edge %i->%i is inconsistent, count"HOST_WIDEST_INT_PRINT_DEC,
++		  	   "Edge %i->%i is inconsistent, count" HOST_WIDEST_INT_PRINT_DEC,
+ 			   e->src->index, e->dest->index, e->count);
+ 		  dump_bb (dump_file, e->src, 0, TDF_DETAILS);
+ 		  dump_bb (dump_file, e->dest, 0, TDF_DETAILS);
+@@ -379,7 +379,7 @@ is_inconsistent (void)
+ 	  if (dump_file)
+ 	    {
+ 	      fprintf (dump_file, "BB %i count does not match sum of incoming edges "
+-		       HOST_WIDEST_INT_PRINT_DEC" should be " HOST_WIDEST_INT_PRINT_DEC,
++		       HOST_WIDEST_INT_PRINT_DEC " should be " HOST_WIDEST_INT_PRINT_DEC,
+ 		       bb->index,
+ 		       bb->count,
+ 		       sum_edge_counts (bb->preds));
+@@ -394,7 +394,7 @@ is_inconsistent (void)
+ 	  if (dump_file)
+ 	    {
+ 	      fprintf (dump_file, "BB %i count does not match sum of outgoing edges "
+-		       HOST_WIDEST_INT_PRINT_DEC" should be " HOST_WIDEST_INT_PRINT_DEC,
++		       HOST_WIDEST_INT_PRINT_DEC " should be " HOST_WIDEST_INT_PRINT_DEC,
+ 		       bb->index,
+ 		       bb->count,
+ 		       sum_edge_counts (bb->succs));

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_stor-layout.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_stor-layout.c	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,11 @@
+--- gcc/stor-layout.c.orig	2014-10-15 10:27:26 UTC
++++ gcc/stor-layout.c
+@@ -236,7 +236,7 @@ self_referential_size (tree size)
+   fntype = build_function_type (return_type, param_type_list);
+ 
+   /* Build the function declaration.  */
+-  sprintf (buf, "SZ"HOST_WIDE_INT_PRINT_UNSIGNED, fnno++);
++  sprintf (buf, "SZ" HOST_WIDE_INT_PRINT_UNSIGNED, fnno++);
+   fnname = get_file_function_name (buf);
+   fndecl = build_decl (input_location, FUNCTION_DECL, fnname, fntype);
+   for (t = param_decl_list; t; t = DECL_CHAIN (t))

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_toplev.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_toplev.c	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,11 @@
+--- gcc/toplev.c.orig	2018-07-13 22:48:32 UTC
++++ gcc/toplev.c
+@@ -1041,7 +1041,7 @@ output_stack_usage (void)
+ 	}
+ 
+       fprintf (stack_usage_file,
+-	       "%s:%d:%d:%s\t"HOST_WIDE_INT_PRINT_DEC"\t%s\n",
++	       "%s:%d:%d:%s\t" HOST_WIDE_INT_PRINT_DEC "\t%s\n",
+ 	       lbasename (loc.file),
+ 	       loc.line,
+ 	       loc.column,

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_tree-ssa-reassoc.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_tree-ssa-reassoc.c	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,20 @@
+--- gcc/tree-ssa-reassoc.c.orig	2018-07-13 23:29:13 UTC
++++ gcc/tree-ssa-reassoc.c
+@@ -4208,7 +4208,7 @@ attempt_builtin_powi (gimple stmt, vec<o
+ 		      if (elt < vec_len - 1)
+ 			fputs (" * ", dump_file);
+ 		    }
+-		  fprintf (dump_file, ")^"HOST_WIDE_INT_PRINT_DEC"\n",
++		  fprintf (dump_file, ")^" HOST_WIDE_INT_PRINT_DEC "\n",
+ 			   power);
+ 		}
+ 	    }
+@@ -4242,7 +4242,7 @@ attempt_builtin_powi (gimple stmt, vec<o
+ 		  if (elt < vec_len - 1)
+ 		    fputs (" * ", dump_file);
+ 		}
+-	      fprintf (dump_file, ")^"HOST_WIDE_INT_PRINT_DEC"\n", power);
++	      fprintf (dump_file, ")^" HOST_WIDE_INT_PRINT_DEC "\n", power);
+ 	    }
+ 
+ 	  reassociate_stats.pows_created++;

Added: head/devel/arm-none-eabi-gcc492/files/patch-gcc_value-prof.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/arm-none-eabi-gcc492/files/patch-gcc_value-prof.c	Sat Jul 14 00:52:26 2018	(r474611)
@@ -0,0 +1,105 @@
+--- gcc/value-prof.c.orig	2014-01-02 22:23:26 UTC
++++ gcc/value-prof.c
+@@ -266,10 +266,10 @@ dump_histogram_value (FILE *dump_file, h
+ 	   unsigned int i;
+ 	   fprintf (dump_file, " [");
+            for (i = 0; i < hist->hdata.intvl.steps; i++)
+-	     fprintf (dump_file, " %d:"HOST_WIDEST_INT_PRINT_DEC,
++	     fprintf (dump_file, " %d:" HOST_WIDEST_INT_PRINT_DEC,
+ 		      hist->hdata.intvl.int_start + i,
+ 		      (HOST_WIDEST_INT) hist->hvalue.counters[i]);
+-	   fprintf (dump_file, " ] outside range:"HOST_WIDEST_INT_PRINT_DEC,
++	   fprintf (dump_file, " ] outside range:" HOST_WIDEST_INT_PRINT_DEC,
+ 		    (HOST_WIDEST_INT) hist->hvalue.counters[i]);
+ 	}
+       fprintf (dump_file, ".\n");
+@@ -279,8 +279,8 @@ dump_histogram_value (FILE *dump_file, h
+       fprintf (dump_file, "Pow2 counter ");
+       if (hist->hvalue.counters)
+ 	{
+-	   fprintf (dump_file, "pow2:"HOST_WIDEST_INT_PRINT_DEC
+-		    " nonpow2:"HOST_WIDEST_INT_PRINT_DEC,
++	   fprintf (dump_file, "pow2:" HOST_WIDEST_INT_PRINT_DEC
++		    " nonpow2:" HOST_WIDEST_INT_PRINT_DEC,
+ 		    (HOST_WIDEST_INT) hist->hvalue.counters[0],
+ 		    (HOST_WIDEST_INT) hist->hvalue.counters[1]);
+ 	}
+@@ -291,9 +291,9 @@ dump_histogram_value (FILE *dump_file, h
+       fprintf (dump_file, "Single value ");
+       if (hist->hvalue.counters)
+ 	{
+-	   fprintf (dump_file, "value:"HOST_WIDEST_INT_PRINT_DEC
+-		    " match:"HOST_WIDEST_INT_PRINT_DEC
+-		    " wrong:"HOST_WIDEST_INT_PRINT_DEC,
++	   fprintf (dump_file, "value:" HOST_WIDEST_INT_PRINT_DEC
++		    " match:" HOST_WIDEST_INT_PRINT_DEC
++		    " wrong:" HOST_WIDEST_INT_PRINT_DEC,
+ 		    (HOST_WIDEST_INT) hist->hvalue.counters[0],
+ 		    (HOST_WIDEST_INT) hist->hvalue.counters[1],
+ 		    (HOST_WIDEST_INT) hist->hvalue.counters[2]);
+@@ -305,8 +305,8 @@ dump_histogram_value (FILE *dump_file, h
+       fprintf (dump_file, "Average value ");
+       if (hist->hvalue.counters)
+ 	{
+-	   fprintf (dump_file, "sum:"HOST_WIDEST_INT_PRINT_DEC
+-		    " times:"HOST_WIDEST_INT_PRINT_DEC,
++	   fprintf (dump_file, "sum:" HOST_WIDEST_INT_PRINT_DEC
++		    " times:" HOST_WIDEST_INT_PRINT_DEC,
+ 		    (HOST_WIDEST_INT) hist->hvalue.counters[0],
+ 		    (HOST_WIDEST_INT) hist->hvalue.counters[1]);
+ 	}
+@@ -317,7 +317,7 @@ dump_histogram_value (FILE *dump_file, h
+       fprintf (dump_file, "IOR value ");
+       if (hist->hvalue.counters)
+ 	{
+-	   fprintf (dump_file, "ior:"HOST_WIDEST_INT_PRINT_DEC,
++	   fprintf (dump_file, "ior:" HOST_WIDEST_INT_PRINT_DEC,
+ 		    (HOST_WIDEST_INT) hist->hvalue.counters[0]);
+ 	}
+       fprintf (dump_file, ".\n");
+@@ -327,9 +327,9 @@ dump_histogram_value (FILE *dump_file, h
+       fprintf (dump_file, "Constant delta ");
+       if (hist->hvalue.counters)
+ 	{
+-	   fprintf (dump_file, "value:"HOST_WIDEST_INT_PRINT_DEC
+-		    " match:"HOST_WIDEST_INT_PRINT_DEC
+-		    " wrong:"HOST_WIDEST_INT_PRINT_DEC,
++	   fprintf (dump_file, "value:" HOST_WIDEST_INT_PRINT_DEC
++		    " match:" HOST_WIDEST_INT_PRINT_DEC
++		    " wrong:" HOST_WIDEST_INT_PRINT_DEC,
+ 		    (HOST_WIDEST_INT) hist->hvalue.counters[0],
+ 		    (HOST_WIDEST_INT) hist->hvalue.counters[1],
+ 		    (HOST_WIDEST_INT) hist->hvalue.counters[2]);
+@@ -340,9 +340,9 @@ dump_histogram_value (FILE *dump_file, h
+       fprintf (dump_file, "Indirect call ");
+       if (hist->hvalue.counters)
+ 	{
+-	   fprintf (dump_file, "value:"HOST_WIDEST_INT_PRINT_DEC
+-		    " match:"HOST_WIDEST_INT_PRINT_DEC
+-		    " all:"HOST_WIDEST_INT_PRINT_DEC,
++	   fprintf (dump_file, "value:" HOST_WIDEST_INT_PRINT_DEC
++		    " match:" HOST_WIDEST_INT_PRINT_DEC
++		    " all:" HOST_WIDEST_INT_PRINT_DEC,
+ 		    (HOST_WIDEST_INT) hist->hvalue.counters[0],
+ 		    (HOST_WIDEST_INT) hist->hvalue.counters[1],
+ 		    (HOST_WIDEST_INT) hist->hvalue.counters[2]);
+@@ -353,7 +353,7 @@ dump_histogram_value (FILE *dump_file, h
+       fprintf (dump_file, "Time profile ");
+       if (hist->hvalue.counters)
+       {
+-        fprintf (dump_file, "time:"HOST_WIDEST_INT_PRINT_DEC,
++        fprintf (dump_file, "time:" HOST_WIDEST_INT_PRINT_DEC,
+                  (HOST_WIDEST_INT) hist->hvalue.counters[0]);
+       }
+       fprintf (dump_file, ".\n");
+@@ -1533,8 +1533,8 @@ gimple_ic_transform (gimple_stmt_iterato
+       print_generic_expr (dump_file, direct_call->decl, TDF_SLIM);
+       fprintf (dump_file, " transformation on insn postponned to ipa-profile");
+       print_gimple_stmt (dump_file, stmt, 0, TDF_SLIM);
+-      fprintf (dump_file, "hist->count "HOST_WIDEST_INT_PRINT_DEC
+-	       " hist->all "HOST_WIDEST_INT_PRINT_DEC"\n", count, all);
++      fprintf (dump_file, "hist->count " HOST_WIDEST_INT_PRINT_DEC
++	       " hist->all " HOST_WIDEST_INT_PRINT_DEC "\n", count, all);
+     }
+ 
+   return true;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807140052.w6E0qQGn043873>