diff --git a/src/gcc-1-fixes.patch b/src/gcc-1-fixes.patch index df84ad82..4f8a476f 100644 --- a/src/gcc-1-fixes.patch +++ b/src/gcc-1-fixes.patch @@ -5,7 +5,7 @@ Contains ad hoc patches for cross building. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Thu, 2 Feb 2017 02:05:50 +1100 -Subject: [PATCH 1/2] allow native cpu detection when building with clang +Subject: [PATCH 1/4] allow native cpu detection when building with clang function was disabled for non-gcc5 in: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=b587c12551143c14f023860a1dbdf7316ae71f27;hp=43096b526a9f23008b9769372f11475ae63487bc @@ -29,7 +29,7 @@ index 1111111..2222222 100644 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Fri, 6 Apr 2018 13:40:22 +1000 -Subject: [PATCH 2/2] remove hard-coded mingw from include path +Subject: [PATCH 2/4] remove hard-coded mingw from include path diff --git a/gcc/config.gcc b/gcc/config.gcc @@ -62,20 +62,73 @@ index 1111111..2222222 100644 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Cameron Kaiser Date: Sat, 13 Oct 2018 18:59:18 -0700 -Subject: [PATCH 1/1] fix gcc compile error on ppc64le +Subject: [PATCH 3/4] fix gcc compile error on ppc64le https://gcc.gnu.org/viewcvs/gcc/branches/gcc-6-branch/libcpp/lex.c?view=log&pathrev=261621 diff --git a/libcpp/lex.c b/libcpp/lex.c index 1111111..2222222 100644 ---- a/libcpp/lex.c 2015-04-06 10:01:50.000000000 -0700 -+++ b/libcpp/lex.c 2018-10-13 18:55:33.693558942 -0700 -@@ -550,7 +550,7 @@ +--- a/libcpp/lex.c ++++ b/libcpp/lex.c +@@ -550,7 +550,7 @@ search_line_fast (const uchar *s, const uchar *end ATTRIBUTE_UNUSED) { vc m_nl, m_cr, m_bs, m_qm; - + - data = *((const vc *)s); + data = __builtin_vec_vsx_ld (0, s); s += 16; - + m_nl = (vc) __builtin_vec_cmpeq(data, repl_nl); + +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: uros +Date: Sun, 11 Nov 2018 17:44:43 +0000 +Subject: [PATCH 4/4] Backport from mainline 2018-11-04 Uros Bizjak + + + PR middle-end/58372 + * cfgexpand.c (pass_expand::execute): Move the call to + finish_eh_generation in front of the call to expand_stack_alignment. + +testsuite/ChangeLog: + + Backport from mainline + 2018-11-04 Uros Bizjak + + PR middle-end/58372 + * g++.dg/pr58372.C: New test. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@266015 138bc75d-0d04-0410-961f-82ee72b054a4 + +diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c +index 1111111..2222222 100644 +--- a/gcc/cfgexpand.c ++++ b/gcc/cfgexpand.c +@@ -6260,6 +6260,14 @@ pass_expand::execute (function *fun) + sbitmap_free (blocks); + purge_all_dead_edges (); + ++ /* After initial rtl generation, call back to finish generating ++ exception support code. We need to do this before cleaning up ++ the CFG as the code does not expect dead landing pads. */ ++ if (fun->eh->region_tree != NULL) ++ finish_eh_generation (); ++ ++ /* Call expand_stack_alignment after finishing all ++ updates to crtl->preferred_stack_boundary. */ + expand_stack_alignment (); + + /* Fixup REG_EQUIV notes in the prologue if there are tailcalls in this +@@ -6267,12 +6275,6 @@ pass_expand::execute (function *fun) + if (crtl->tail_call_emit) + fixup_tail_calls (); + +- /* After initial rtl generation, call back to finish generating +- exception support code. We need to do this before cleaning up +- the CFG as the code does not expect dead landing pads. */ +- if (fun->eh->region_tree != NULL) +- finish_eh_generation (); +- + /* Remove unreachable blocks, otherwise we cannot compute dominators + which are needed for loop state verification. As a side-effect + this also compacts blocks.