aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2018-07-14 08:52:26 +0800
committerlinimon <linimon@FreeBSD.org>2018-07-14 08:52:26 +0800
commit416db234c1afc0404131fce6bea3ae13dca233a1 (patch)
tree49bcfc2958f34d3849f1a2413bd39d5cd14c3e25
parentb3013b057587974e886e5076469fcdf867e4ebe6 (diff)
downloadfreebsd-ports-gnome-416db234c1afc0404131fce6bea3ae13dca233a1.tar.gz
freebsd-ports-gnome-416db234c1afc0404131fce6bea3ae13dca233a1.tar.zst
freebsd-ports-gnome-416db234c1afc0404131fce6bea3ae13dca233a1.zip
Attempt to fix build with clang6.
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_bitmap.c24
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_cgraph.c38
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_config_elfos.h20
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_cppbuiltin.c11
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_defaults.h11
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_dwarf2cfi.c45
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_dwarf2out.c13
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_gcc.c17
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-devirt.c11
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-inline.c11
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-profile.c38
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-prop.c20
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_loop-iv.c11
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_profile.c29
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_stor-layout.c11
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_toplev.c11
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_tree-ssa-reassoc.c20
-rw-r--r--devel/arm-none-eabi-gcc492/files/patch-gcc_value-prof.c105
18 files changed, 446 insertions, 0 deletions
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_bitmap.c b/devel/arm-none-eabi-gcc492/files/patch-gcc_bitmap.c
new file mode 100644
index 000000000000..c356164df4f9
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_bitmap.c
@@ -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");
+ }
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_cgraph.c b/devel/arm-none-eabi-gcc492/files/patch-gcc_cgraph.c
new file mode 100644
index 000000000000..2a449894c9b2
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_cgraph.c
@@ -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) ",
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_config_elfos.h b/devel/arm-none-eabi-gcc492/files/patch-gcc_config_elfos.h
new file mode 100644
index 000000000000..2557f40163ca
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_config_elfos.h
@@ -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)
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_cppbuiltin.c b/devel/arm-none-eabi-gcc492/files/patch-gcc_cppbuiltin.c
new file mode 100644
index 000000000000..67fd0dc84728
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_cppbuiltin.c
@@ -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);
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_defaults.h b/devel/arm-none-eabi-gcc492/files/patch-gcc_defaults.h
new file mode 100644
index 000000000000..b9b2e866436e
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_defaults.h
@@ -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)
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_dwarf2cfi.c b/devel/arm-none-eabi-gcc492/files/patch-gcc_dwarf2cfi.c
new file mode 100644
index 000000000000..82e2714c629f
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_dwarf2cfi.c
@@ -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;
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_dwarf2out.c b/devel/arm-none-eabi-gcc492/files/patch-gcc_dwarf2out.c
new file mode 100644
index 000000000000..a220de0b1ce9
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_dwarf2out.c
@@ -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;
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_gcc.c b/devel/arm-none-eabi-gcc492/files/patch-gcc_gcc.c
new file mode 100644
index 000000000000..73dc17568d7e
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_gcc.c
@@ -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:\
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-devirt.c b/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-devirt.c
new file mode 100644
index 000000000000..db50faae744c
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-devirt.c
@@ -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);
+ }
+
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-inline.c b/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-inline.c
new file mode 100644
index 000000000000..52afb72e5704
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-inline.c
@@ -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);
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-profile.c b/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-profile.c
new file mode 100644
index 000000000000..16b85fb1dc3c
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-profile.c
@@ -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,
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-prop.c b/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-prop.c
new file mode 100644
index 000000000000..dfdf7dc66d9f
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_ipa-prop.c
@@ -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);
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_loop-iv.c b/devel/arm-none-eabi-gcc492/files/patch-gcc_loop-iv.c
new file mode 100644
index 000000000000..d88bb3d9c707
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_loop-iv.c
@@ -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;
+ }
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_profile.c b/devel/arm-none-eabi-gcc492/files/patch-gcc_profile.c
new file mode 100644
index 000000000000..bc33b7b4e75c
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_profile.c
@@ -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));
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_stor-layout.c b/devel/arm-none-eabi-gcc492/files/patch-gcc_stor-layout.c
new file mode 100644
index 000000000000..e0e328e1d1ba
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_stor-layout.c
@@ -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))
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_toplev.c b/devel/arm-none-eabi-gcc492/files/patch-gcc_toplev.c
new file mode 100644
index 000000000000..b040443b90a0
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_toplev.c
@@ -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,
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_tree-ssa-reassoc.c b/devel/arm-none-eabi-gcc492/files/patch-gcc_tree-ssa-reassoc.c
new file mode 100644
index 000000000000..0fa7e6ad2fa5
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_tree-ssa-reassoc.c
@@ -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++;
diff --git a/devel/arm-none-eabi-gcc492/files/patch-gcc_value-prof.c b/devel/arm-none-eabi-gcc492/files/patch-gcc_value-prof.c
new file mode 100644
index 000000000000..fc8a1ee6e82b
--- /dev/null
+++ b/devel/arm-none-eabi-gcc492/files/patch-gcc_value-prof.c
@@ -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;