pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/gcc7 gcc7: update to 7.3.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/eb1fdb95d0c8
branches: trunk
changeset: 374585:eb1fdb95d0c8
user: maya <maya%pkgsrc.org@localhost>
date: Thu Jan 25 23:27:30 2018 +0000
description:
gcc7: update to 7.3.0
Local changes:
Remove patch hunks merged upstream (non-c99 compatibility cabs workaround,
linking to libc by default on netbsd).
GCC changes:
Added code generation options to mitigate Spectre variant 2 (CVE-2017-5715)
for the powerpc and x86 targets.
RTEMS: Support has been added for Epiphany target.
List of bugs fixed:
https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&list_id=199567&resolution=FIXED&target_milestone=7.3
diffstat:
lang/gcc7/distinfo | 15 +--
lang/gcc7/patches/patch-gcc_config.gcc | 18 +--
lang/gcc7/patches/patch-gcc_config_netbsd.c | 104 ----------------------------
lang/gcc7/patches/patch-gcc_config_netbsd.h | 33 ++------
lang/gcc7/version.mk | 4 +-
5 files changed, 26 insertions(+), 148 deletions(-)
diffs (236 lines):
diff -r 17827d3af71b -r eb1fdb95d0c8 lang/gcc7/distinfo
--- a/lang/gcc7/distinfo Thu Jan 25 20:13:25 2018 +0000
+++ b/lang/gcc7/distinfo Thu Jan 25 23:27:30 2018 +0000
@@ -1,20 +1,19 @@
-$NetBSD: distinfo,v 1.7 2017/09/26 06:10:27 maya Exp $
+$NetBSD: distinfo,v 1.8 2018/01/25 23:27:30 maya Exp $
-SHA1 (gcc-7.2.0.tar.xz) = 08a88199ed94fdf4940d118ba3c07028245cd5b7
-RMD160 (gcc-7.2.0.tar.xz) = fa8eed36c78cf135f9cc88e60845996b5cfaba52
-SHA512 (gcc-7.2.0.tar.xz) = f853cd6530b4055d8d8289da74687cb4c6d5f363598d386332d31852b581bac76c3adb7d61889edec3b779f63d8646f0122840f12965ce4a4389ba535dbbb6e1
-Size (gcc-7.2.0.tar.xz) = 62312628 bytes
+SHA1 (gcc-7.3.0.tar.xz) = 9689b9cae7b2886fdaa08449a26701f095c04e48
+RMD160 (gcc-7.3.0.tar.xz) = 31f6934a0e0c0ca84b6668110f9afdb91c1f9023
+SHA512 (gcc-7.3.0.tar.xz) = ad41a7e4584e40e92cdf860bc0288500fbaf5dfb7e8c3fcabe9eba809c87bcfa85b46c19c19921b0cdf6d05483faede8287bb9ea120c0d1559449a70e602c8d4
+Size (gcc-7.3.0.tar.xz) = 62462388 bytes
SHA1 (isl-0.16.1.tar.bz2) = c5a2b201bf05229647e73203c0bf2d9679d4d21f
RMD160 (isl-0.16.1.tar.bz2) = 5a99db3fe0d0a1f6bbac1ed4448f2403495c55b2
SHA512 (isl-0.16.1.tar.bz2) = c188667a84dc5bdddb4ab7c35f89c91bf15a8171f4fcaf41301cf285fb7328846d9a367c096012fec4cc69d244f0bc9e95d84c09ec097394cd4093076f2a041b
Size (isl-0.16.1.tar.bz2) = 1626446 bytes
SHA1 (patch-contrib_download__prerequisites) = 86c6c16e0e3e3a0bcb38579a8b4004f603fac1ca
SHA1 (patch-gcc_Makefile.in) = c0f97c75ba1d37eae894141edd58bb36b734f651
-SHA1 (patch-gcc_config.gcc) = fea8288c22bb2c4dd44a5e77c8f92dee8f8f6b18
+SHA1 (patch-gcc_config.gcc) = 943797cbbdbf25885b4f16a1a027d137ef68357e
SHA1 (patch-gcc_config_arm_arm.h) = 92c8bff1063e153fec4454e6dea5334a42b0dad6
SHA1 (patch-gcc_config_netbsd-protos.h) = 6d28864b4ccc8c1a63fe28e43601b84b63a00633
-SHA1 (patch-gcc_config_netbsd.c) = 85f786bce881ef2fc348f98ef81fdbc001076183
-SHA1 (patch-gcc_config_netbsd.h) = 81891a83bb17b99fdb2c9381b8e8a1767391c695
+SHA1 (patch-gcc_config_netbsd.h) = 8861abb345b3ad72574fbe7afca2ea78b81d9632
SHA1 (patch-gcc_config_t-netbsd) = 802ad5706aa7ca9629f8e237f08fbb1569d28846
SHA1 (patch-gcc_config_x-netbsd) = 6dc3d78e26df62054ea29f98ca51592858e671e3
SHA1 (patch-gcc_configure) = 15fb7af267b79965f83bc64ce8aad1279b0ea52d
diff -r 17827d3af71b -r eb1fdb95d0c8 lang/gcc7/patches/patch-gcc_config.gcc
--- a/lang/gcc7/patches/patch-gcc_config.gcc Thu Jan 25 20:13:25 2018 +0000
+++ b/lang/gcc7/patches/patch-gcc_config.gcc Thu Jan 25 23:27:30 2018 +0000
@@ -1,25 +1,21 @@
-$NetBSD: patch-gcc_config.gcc,v 1.1 2017/05/03 00:21:03 maya Exp $
+$NetBSD: patch-gcc_config.gcc,v 1.2 2018/01/25 23:27:30 maya Exp $
---- gcc/config.gcc.orig 2016-12-10 21:07:10.000000000 +0000
+Workaround netbsd's compatibility non-C99 cabs (causes gfortran link failures)
+
+--- gcc/config.gcc.orig 2018-01-08 13:39:11.000000000 +0000
+++ gcc/config.gcc
-@@ -765,10 +765,15 @@ case ${target} in
- target_has_targetcm=yes
- ;;
- *-*-netbsd*)
-- tmake_file="t-slibgcc"
-+ tmake_file="t-slibgcc t-netbsd"
+@@ -781,6 +781,10 @@ case ${target} in
gas=yes
gnu_ld=yes
use_gcc_stdint=wrap
-+ # cabs/cabsf are renamed to __c99_cabs/cabsf
++# cabs/cabsf are renamed to __c99_cabs/cabsf
+ tm_p_file="${tm_p_file} netbsd-protos.h"
+ target_gtfiles="${target_gtfiles} \$(srcdir)/config/netbsd.c"
+ extra_objs="${extra_objs} netbsd.o"
-+
# NetBSD 2.0 and later get POSIX threads enabled by default.
# Allow them to be explicitly enabled on any other version.
-@@ -1460,10 +1465,12 @@ x86_64-*-freebsd*)
+@@ -1487,10 +1491,12 @@ x86_64-*-freebsd*)
i[34567]86-*-netbsdelf*)
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-stdint.h netbsd-elf.h i386/netbsd-elf.h"
extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
diff -r 17827d3af71b -r eb1fdb95d0c8 lang/gcc7/patches/patch-gcc_config_netbsd.c
--- a/lang/gcc7/patches/patch-gcc_config_netbsd.c Thu Jan 25 20:13:25 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,104 +0,0 @@
-$NetBSD: patch-gcc_config_netbsd.c,v 1.1 2017/05/03 00:21:03 maya Exp $
-
---- gcc/config/netbsd.c.orig 2016-11-04 16:18:21.025368203 +0000
-+++ gcc/config/netbsd.c
-@@ -0,0 +1,99 @@
-+/* Functions for generic NetBSD as target machine for GNU C compiler.
-+ Copyright (C) 1989-2014 Free Software Foundation, Inc.
-+ Contributed by Apple Computer Inc.
-+
-+This file is part of GCC.
-+
-+GCC is free software; you can redistribute it and/or modify
-+it under the terms of the GNU General Public License as published by
-+the Free Software Foundation; either version 3, or (at your option)
-+any later version.
-+
-+GCC is distributed in the hope that it will be useful,
-+but WITHOUT ANY WARRANTY; without even the implied warranty of
-+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+GNU General Public License for more details.
-+
-+You should have received a copy of the GNU General Public License
-+along with GCC; see the file COPYING3. If not see
-+<http://www.gnu.org/licenses/>. */
-+
-+
-+#include "config.h"
-+#include "system.h"
-+#include "coretypes.h"
-+#include "backend.h"
-+#include "target.h"
-+#include "cfghooks.h"
-+#include "tree.h"
-+#include "gimple.h"
-+#include "rtl.h"
-+#include "df.h"
-+#include "memmodel.h"
-+#include "regs.h"
-+#include "insn-config.h"
-+#include "conditions.h"
-+#include "insn-flags.h"
-+#include "output.h"
-+#include "insn-attr.h"
-+#include "flags.h"
-+#include "alias.h"
-+#include "fold-const.h"
-+#include "stringpool.h"
-+#include "varasm.h"
-+#include "stor-layout.h"
-+#include "expmed.h"
-+#include "dojump.h"
-+#include "explow.h"
-+#include "calls.h"
-+#include "emit-rtl.h"
-+#include "stmt.h"
-+#include "expr.h"
-+#include "reload.h"
-+#include "langhooks.h"
-+#include "target.h"
-+#include "tm_p.h"
-+#include "diagnostic-core.h"
-+#include "toplev.h"
-+#include "cfgrtl.h"
-+#include "cfganal.h"
-+#include "lcm.h"
-+#include "cfgbuild.h"
-+#include "cfgcleanup.h"
-+#include "debug.h"
-+#include "internal-fn.h"
-+#include "gimple-fold.h"
-+#include "tree-eh.h"
-+#include "gimplify.h"
-+#include "cgraph.h"
-+#include "alloc-pool.h"
-+#include "lto-streamer.h"
-+#include "lto-section-names.h"
-+
-+static void
-+netbsd_patch_builtin (enum built_in_function fncode)
-+{
-+ tree fn = builtin_decl_explicit (fncode);
-+ tree sym;
-+ char *newname;
-+
-+ if (!fn)
-+ return;
-+
-+ sym = DECL_ASSEMBLER_NAME (fn);
-+ newname = ACONCAT (("__c99_", IDENTIFIER_POINTER (sym), NULL));
-+
-+ set_user_assembler_name (fn, newname);
-+
-+ fn = builtin_decl_implicit (fncode);
-+ if (fn)
-+ set_user_assembler_name (fn, newname);
-+}
-+
-+void
-+netbsd_patch_builtins (void)
-+{
-+ netbsd_patch_builtin (BUILT_IN_CABSF);
-+ netbsd_patch_builtin (BUILT_IN_CABS);
-+ netbsd_patch_builtin (BUILT_IN_CABSL);
-+}
diff -r 17827d3af71b -r eb1fdb95d0c8 lang/gcc7/patches/patch-gcc_config_netbsd.h
--- a/lang/gcc7/patches/patch-gcc_config_netbsd.h Thu Jan 25 20:13:25 2018 +0000
+++ b/lang/gcc7/patches/patch-gcc_config_netbsd.h Thu Jan 25 23:27:30 2018 +0000
@@ -1,9 +1,9 @@
-$NetBSD: patch-gcc_config_netbsd.h,v 1.1 2017/05/03 00:21:03 maya Exp $
+$NetBSD: patch-gcc_config_netbsd.h,v 1.2 2018/01/25 23:27:30 maya Exp $
-when using shared, link against libc
-another unexplained change`
+Handle netbsd's compatibility non-C99 cabs (causes link
+failure with gfortran)
---- gcc/config/netbsd.h.orig 2014-01-02 22:23:26.000000000 +0000
+--- gcc/config/netbsd.h.orig 2017-09-29 21:34:00.000000000 +0000
+++ gcc/config/netbsd.h
@@ -17,6 +17,9 @@ You should have received a copy of the G
along with GCC; see the file COPYING3. If not see
@@ -15,29 +15,16 @@
/* TARGET_OS_CPP_BUILTINS() common to all NetBSD targets. */
#define NETBSD_OS_CPP_BUILTINS_COMMON() \
do \
-@@ -96,6 +99,7 @@ along with GCC; see the file COPYING3.
- %{!pg:-lposix}} \
- %{p:-lposix_p} \
- %{pg:-lposix_p}} \
-+ %{shared:-lc} \
- %{!shared: \
- %{!symbolic: \
- %{!p: \
-@@ -109,6 +113,7 @@ along with GCC; see the file COPYING3.
- %{!pg:-lposix}} \
- %{p:-lposix_p} \
- %{pg:-lposix_p}} \
-+ %{shared:-lc} \
- %{!shared: \
- %{!symbolic: \
- %{!p: \
-@@ -175,3 +180,9 @@ along with GCC; see the file COPYING3.
-
+@@ -181,6 +184,12 @@ along with GCC; see the file COPYING3.
#undef WINT_TYPE
#define WINT_TYPE "int"
-+
+
+#undef SUBTARGET_INIT_BUILTINS
+#define SUBTARGET_INIT_BUILTINS \
+do { \
+ netbsd_patch_builtins (); \
+} while(0)
++
+ #undef SUBTARGET_INIT_BUILTINS
+ #define SUBTARGET_INIT_BUILTINS \
+ do { \
diff -r 17827d3af71b -r eb1fdb95d0c8 lang/gcc7/version.mk
--- a/lang/gcc7/version.mk Thu Jan 25 20:13:25 2018 +0000
+++ b/lang/gcc7/version.mk Thu Jan 25 23:27:30 2018 +0000
@@ -1,2 +1,2 @@
-# $NetBSD: version.mk,v 1.3 2017/09/26 06:10:27 maya Exp $
-GCC7_DIST_VERSION:=7.2.0
+# $NetBSD: version.mk,v 1.4 2018/01/25 23:27:30 maya Exp $
+GCC7_DIST_VERSION:=7.3.0
Home |
Main Index |
Thread Index |
Old Index