[148017] trunk/dports/lang/gcc5

takeshi at macports.org takeshi at macports.org
Sun Apr 24 13:47:46 PDT 2016


Revision: 148017
          https://trac.macports.org/changeset/148017
Author:   takeshi at macports.org
Date:     2016-04-24 13:47:46 -0700 (Sun, 24 Apr 2016)
Log Message:
-----------
gcc5: add a patch to avoid internal compiler error, closing #51170

Modified Paths:
--------------
    trunk/dports/lang/gcc5/Portfile

Added Paths:
-----------
    trunk/dports/lang/gcc5/files/patch-gcc-tree-ssa-uninit.c.diff

Modified: trunk/dports/lang/gcc5/Portfile
===================================================================
--- trunk/dports/lang/gcc5/Portfile	2016-04-24 20:35:07 UTC (rev 148016)
+++ trunk/dports/lang/gcc5/Portfile	2016-04-24 20:47:46 UTC (rev 148017)
@@ -10,6 +10,7 @@
 
 epoch               2
 version             5.3.0
+revision            1
 platforms           darwin
 categories          lang
 maintainers         mww openmaintainer
@@ -47,6 +48,9 @@
 # Handle OS X deployment targets correctly (GCC PR target/63810
 # <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63810>).
 patchfiles-append   macosx-version-min.patch
+# Avoid internal compiler error: in prune_uninit_phi_opnds_in_unrealizable_paths (GCC PR tree-optimization/69013
+# <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69013>).
+patchfiles-append   patch-gcc-tree-ssa-uninit.c.diff
 
 set major           [lindex [split ${version} .-] 0]
 

Added: trunk/dports/lang/gcc5/files/patch-gcc-tree-ssa-uninit.c.diff
===================================================================
--- trunk/dports/lang/gcc5/files/patch-gcc-tree-ssa-uninit.c.diff	                        (rev 0)
+++ trunk/dports/lang/gcc5/files/patch-gcc-tree-ssa-uninit.c.diff	2016-04-24 20:47:46 UTC (rev 148017)
@@ -0,0 +1,19 @@
+--- gcc/tree-ssa-uninit.c.orig	2015-09-10 02:14:29.000000000 +0900
++++ gcc/tree-ssa-uninit.c	2016-04-17 05:52:25.000000000 +0900
+@@ -1118,7 +1118,7 @@
+               edge opnd_edge;
+               unsigned uninit_opnds2
+                   = compute_uninit_opnds_pos (opnd_def_phi);
+-              gcc_assert (!MASK_EMPTY (uninit_opnds2));
++              if (!MASK_EMPTY (uninit_opnds2)) {
+               opnd_edge = gimple_phi_arg_edge (phi, i);
+               if (!is_use_properly_guarded (phi,
+                                             opnd_edge->src,
+@@ -1126,6 +1126,7 @@
+                                             uninit_opnds2,
+                                             visited_phis))
+                   return false;
++              }
+             }
+           else
+             return false;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160424/304bf4dd/attachment.html>


More information about the macports-changes mailing list