summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/gcc8-devel/Makefile6
-rw-r--r--lang/gcc8-devel/distinfo6
-rw-r--r--lang/gcc8-devel/files/patch-clang3.4.1-fixes29
-rw-r--r--lang/gcc8-devel/files/patch-gcc_tree-cfg.c14
4 files changed, 51 insertions, 4 deletions
diff --git a/lang/gcc8-devel/Makefile b/lang/gcc8-devel/Makefile
index 88ba2ad75ca8..d978ee71e5b6 100644
--- a/lang/gcc8-devel/Makefile
+++ b/lang/gcc8-devel/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= gcc
-PORTVERSION= 8.0.0.s20171119
+PORTVERSION= 8.0.0.s20171126
CATEGORIES= lang
MASTER_SITES= GCC/snapshots/${DIST_VERSION}
PKGNAMESUFFIX= ${SUFFIX}-devel
@@ -76,6 +76,10 @@ CONFIGURE_ARGS+=--disable-bootstrap
CONFIGURE_ARGS+=--with-build-config=bootstrap-debug
ALL_TARGET= bootstrap-lean
.endif
+INSTALL_TARGET= install-strip
+.if ${UID} != 0
+BINMODE= 755
+.endif
CONFIGURE_ARGS+=--disable-nls \
--enable-gnu-indirect-function \
--libdir=${TARGLIB} \
diff --git a/lang/gcc8-devel/distinfo b/lang/gcc8-devel/distinfo
index 4b2a269cc5a3..9a1135c718a7 100644
--- a/lang/gcc8-devel/distinfo
+++ b/lang/gcc8-devel/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1511131785
-SHA256 (gcc-8-20171119.tar.xz) = 0b6da0bbddc4379fa9dc7fc11ae6a3d54eb503068c47ebd76d1418010ffac088
-SIZE (gcc-8-20171119.tar.xz) = 60502776
+TIMESTAMP = 1511737702
+SHA256 (gcc-8-20171126.tar.xz) = b3fc82c0714f1489119bfbde242221bdd851e105af236da1f15b4a542da98b51
+SIZE (gcc-8-20171126.tar.xz) = 60566772
diff --git a/lang/gcc8-devel/files/patch-clang3.4.1-fixes b/lang/gcc8-devel/files/patch-clang3.4.1-fixes
new file mode 100644
index 000000000000..e8ff9285ea69
--- /dev/null
+++ b/lang/gcc8-devel/files/patch-clang3.4.1-fixes
@@ -0,0 +1,29 @@
+--- UTC
+Index: gcc/hash-set.h
+===================================================================
+--- gcc/hash-set.h (revision 255155)
++++ gcc/hash-set.h (working copy)
+@@ -150,7 +150,7 @@
+ }
+
+ #define DEFINE_DEBUG_HASH_SET(T) \
+- template static void debug_helper (hash_set<T> &); \
++ template void debug_helper (hash_set<T> &); \
+ DEBUG_FUNCTION void \
+ debug (hash_set<T> &ref) \
+ { \
+Index: gcc/vec.h
+===================================================================
+--- gcc/vec.h (revision 255155)
++++ gcc/vec.h (working copy)
+@@ -453,8 +453,8 @@
+ functions for a type T. */
+
+ #define DEFINE_DEBUG_VEC(T) \
+- template static void debug_helper (vec<T> &); \
+- template static void debug_helper (vec<T, va_gc> &); \
++ template void debug_helper (vec<T> &); \
++ template void debug_helper (vec<T, va_gc> &); \
+ /* Define the vec<T> debug functions. */ \
+ DEBUG_FUNCTION void \
+ debug (vec<T> &ref) \
diff --git a/lang/gcc8-devel/files/patch-gcc_tree-cfg.c b/lang/gcc8-devel/files/patch-gcc_tree-cfg.c
new file mode 100644
index 000000000000..6d7fda4b18d2
--- /dev/null
+++ b/lang/gcc8-devel/files/patch-gcc_tree-cfg.c
@@ -0,0 +1,14 @@
+--- UTC
+Index: gcc/tree-cfg.c
+===================================================================
+--- gcc/tree-cfg.c (revision 255155)
++++ gcc/tree-cfg.c (working copy)
+@@ -3994,7 +3994,7 @@
+ {
+ if (!POINTER_TYPE_P (rhs1_type)
+ || !POINTER_TYPE_P (rhs2_type)
+- || !types_compatible_p (rhs1_type, rhs2_type)
++// || !types_compatible_p (rhs1_type, rhs2_type)
+ || TREE_CODE (lhs_type) != INTEGER_TYPE
+ || TYPE_UNSIGNED (lhs_type)
+ || TYPE_PRECISION (lhs_type) != TYPE_PRECISION (rhs1_type))