Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Sep 2021 06:12:21 GMT
From:      Gerald Pfeifer <gerald@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 45943b854c98 - main - lang/gcc12-devel: Update to the 20210912 snapshot of GCC 12.0.0
Message-ID:  <202109180612.18I6CLO2047502@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by gerald:

URL: https://cgit.FreeBSD.org/ports/commit/?id=45943b854c98a2300f9c35dcf9b88d889fd33709

commit 45943b854c98a2300f9c35dcf9b88d889fd33709
Author:     Gerald Pfeifer <gerald@FreeBSD.org>
AuthorDate: 2021-09-18 04:45:22 +0000
Commit:     Gerald Pfeifer <gerald@FreeBSD.org>
CommitDate: 2021-09-18 06:11:44 +0000

    lang/gcc12-devel: Update to the 20210912 snapshot of GCC 12.0.0
    
    Add files/patch-gcc-analyzer-bootstrap to fix bootstrap with clang.
    
    Add files/patch-libgfortran-bootstrap to fix bootstrap on i386 and
    FreeBSD's idiosyncratic floating point settings.
    
    Temporarily mark BROKEN on amd64 due to an internal error, but
    at least give aarch64, i386, and powerpc* the chance to test drive
    after we already had to skip another snapshot.
---
 lang/gcc12-devel/Makefile                           |  3 ++-
 lang/gcc12-devel/distinfo                           |  6 +++---
 lang/gcc12-devel/files/patch-gcc-analyzer-bootstrap | 16 ++++++++++++++++
 lang/gcc12-devel/files/patch-libgfortran-bootstrap  | 11 +++++++++++
 4 files changed, 32 insertions(+), 4 deletions(-)

diff --git a/lang/gcc12-devel/Makefile b/lang/gcc12-devel/Makefile
index ffe4b3f6c0af..5ca10e783c84 100644
--- a/lang/gcc12-devel/Makefile
+++ b/lang/gcc12-devel/Makefile
@@ -1,7 +1,7 @@
 # Created by: Gerald Pfeifer <gerald@FreeBSD.org>
 
 PORTNAME=	gcc
-PORTVERSION=	12.0.0.s20210829
+PORTVERSION=	12.0.0.s20210912
 CATEGORIES=	lang
 MASTER_SITES=	GCC/snapshots/${DIST_VERSION}
 PKGNAMESUFFIX=	${SUFFIX}-devel
@@ -13,6 +13,7 @@ COMMENT=	GNU Compiler Collection 12
 LICENSE=	GPLv3 GPLv3RLE
 LICENSE_COMB=	multi
 
+BROKEN_amd64=	internal compiler error (since addressed)
 ONLY_FOR_ARCHS=	aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le
 
 LIB_DEPENDS=	libgmp.so:math/gmp \
diff --git a/lang/gcc12-devel/distinfo b/lang/gcc12-devel/distinfo
index 45fdd618c282..72b0013244cd 100644
--- a/lang/gcc12-devel/distinfo
+++ b/lang/gcc12-devel/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1630471544
-SHA256 (gcc-12-20210829.tar.xz) = 92f5c1bbd5743a4b5df95a9baef1984703f61cdd30e7c95289c466ca0b62a046
-SIZE (gcc-12-20210829.tar.xz) = 76732280
+TIMESTAMP = 1631917313
+SHA256 (gcc-12-20210912.tar.xz) = 895846b1fe9c641883e5846efaefb9deda41e043df7ec6c9e5ebc1314c686959
+SIZE (gcc-12-20210912.tar.xz) = 76874620
diff --git a/lang/gcc12-devel/files/patch-gcc-analyzer-bootstrap b/lang/gcc12-devel/files/patch-gcc-analyzer-bootstrap
new file mode 100644
index 000000000000..07d71aeaf8e4
--- /dev/null
+++ b/lang/gcc12-devel/files/patch-gcc-analyzer-bootstrap
@@ -0,0 +1,16 @@
+commit 745781d24cd7562202687cfbe05597ee673d4537
+Author: Maxim Blinov <maxim.blinov@embecosm.com>
+Date:   Fri Sep 17 00:32:58 2021 +0200
+
+    analyzer: Fix bootstrap with clang
+    
+--- gcc/analyzer/engine.cc
++++ gcc/analyzer/engine.cc
+@@ -19,6 +19,7 @@ along with GCC; see the file COPYING3.  If not see
+ <http://www.gnu.org/licenses/>.  */
+ 
+ #include "config.h"
++#define INCLUDE_UNIQUE_PTR
+ #include "system.h"
+ #include "coretypes.h"
+ #include "tree.h"
diff --git a/lang/gcc12-devel/files/patch-libgfortran-bootstrap b/lang/gcc12-devel/files/patch-libgfortran-bootstrap
new file mode 100644
index 000000000000..d3221a1b1368
--- /dev/null
+++ b/lang/gcc12-devel/files/patch-libgfortran-bootstrap
@@ -0,0 +1,11 @@
+--- libgfortran/ISO_Fortran_binding.h.orig	2021-09-12 22:32:09.000000000 +0000
++++ libgfortran/ISO_Fortran_binding.h	2021-09-18 04:42:43.658569000 +0000
+@@ -227,7 +227,7 @@
+ #define CFI_type_long_double_Complex CFI_type_double_Complex
+ 
+ /* This is the 80-bit encoding on x86; Fortran assigns it kind 10.  */
+-#elif (LDBL_MANT_DIG == 64 \
++#elif ((LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 53) \
+        && LDBL_MIN_EXP == -16381 \
+        && LDBL_MAX_EXP == 16384)
+ #define CFI_type_long_double (CFI_type_Real + (10 << CFI_type_kind_shift))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109180612.18I6CLO2047502>