Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jun 2020 21:59:33 +0000 (UTC)
From:      Gerald Pfeifer <gerald@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r537509 - head/lang/gcc10
Message-ID:  <202006012159.051LxXVd004346@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gerald
Date: Mon Jun  1 21:59:33 2020
New Revision: 537509
URL: https://svnweb.freebsd.org/changeset/ports/537509

Log:
  Welcome GCC 10.1, the first release of the GCC 10 series!
  
  https://gcc.gnu.org/gcc-10/changes.html has a comprehensive overview of
  many improvements and changes and https://gcc.gnu.org/gcc-10/porting_to.html
  highlights issues you may encounter porting to this version, though this
  release series should not bring too many, -fno-common now being the default
  probably is the one with the largest impact.
  
  To give a brief overview of some of the more noticable changes:
  
  Several new features from the upcoming C2X revision of the ISO C standard
  are supported with -std=c2x and -std=gnu2x. Some of these are also supported
  as extensions when compiling for older language versions.
  
  Several C++20 features have been implemented and the libstdc++ runtime
  library has improved experimental C++2a support.
  
  Caveat: The ABI of passing and returning certain C++ classes by value
  changed on targets including AArch64, ARM, PowerPC ELFv2 in -std=c++17
  and -std=c++20 modes.
  
  -fanalyzer enables a new static analysis pass and associated warnings,
  which is more time-consuming, but detects various common errors such as
  double-free bugs.  This is still work in progress, yet definitely worth
  a try!
  
  Extended characters in identifiers may now be specified directly in the
  input encoding (UTF-8 by default) for the C family of languages, so you
  can write "const int naïve_π = 3;".
  
  The __has_builtin built-in preprocessor operator can be used to query
  support for built-in functions and __builtin_roundeven has been added.
  
  On the Fortran side, the default buffer size for I/O using unformatted
  files has been increased to 1048576 (and can now be set at run time),
  mismatches between actual and dummy argument lists in a single file are
  now rejected with an error (which can be disabled via the new optoins
  -fallow-argument-mismatch), the handling of a BOZ literal constant has
  been reworked to provide better conformance to the Fortran 2008 and 2018
  standards, and more.
  
  Optimization-wise, -fallocation-dce removes unneeded pairs of new and
  delete operators and -fprofile-partial-training, -fprofile-reproducible,
  and -fprofile-prefix-path allow for more control over the use of profiles.
  
  The inter-procedural optimizers (IPO) have seen many improvements: The
  inter-procedural scalar replacement of aggregates (IPA-SRA) pass now
  operates at link time and can remove computing/returning unused return
  values; -finline-functions is now enabled at -O2 and was retuned; inliner
  heuristics and function cloning use value-range information to predict
  the effectivity of individual transformations; and more.
  
  Similarly many improvements around link-time optimizations (LTO): A new
  binary lto-dump shows various information about LTO bytecode object files;
  the parallel phase of LTO automatically detects a running make's jobserver;
  LTO bytecode can be compressed with the zstd algorithm; profile maintenance
  during compilation and hot/cold code partitioning has been improved.
  
  Version 2.6 of the OpenACC specification is now supported by the C, C++ and
  Fortran compilers. GCC 10 adds a number of newly implemented OpenMP 5.0
  features on top of the GCC 9 release such as conditional lastprivate clause,
  scan and loop directives, order(concurrent) and use_device_addr clauses
  support, if clause on simd construct or partial support for the declare
  variant directive, getting closer to full support of the OpenMP 5.0 standard.
  
  A new warning -Wstring-compare, enabled by -Wextra, warns about equality
  and inequality expressions between zero and the result of a call to either
  strcmp and strncmp in some cases. -Wzero-length-bounds, enabled by
  -Warray-bounds, warns about accesses to elements of zero-length arrays
  that might overlap other members of the same object.
  
  Numerous enhancements to existing warnings, e.g. -Warray-bounds detects
  more out-of-bounds accesses to member arrays as well as accesses to elements
  of zero-length arrays, -Wformat-overflow makes full use of string length
  information computed by the strlen optimization pass, -Wrestrict detects
  overlapping accesses to dynamically allocated objects, -Wreturn-local-addr
  diagnoses more instances of return statements returning addresses of
  automatic variables, -Wstringop-overflow detects more out-of-bounds stores
  to member arrays including zero-length arrays, dynamically allocated
  bjects and variable length arrays, as well as more instances of reads
  of unterminated character arrays by string built-in functions,
  -Warith-conversion re-enables warnings from -Wconversion, -Wfloat-conversion,
  and -Wsign-conversion that are now off by default for an expression where the
  result of an arithmetic operation will not fit in the target type due to
  promotion, but the operands of the expression do fit in the target type.
  
  All architectures have seen improvements, and aarch64 notably has seen
  several related to the Scalable Vector Extension (SVE).
  
  The automatic template instantiation at link time (-frepo) has been
  removed (finally).
  
  Offloading to Heterogeneous System Architecture Intermediate Language
  (HSAIL) has been deprecated and will likely be removed in a future release.
  
  PR:		246700

Added:
  head/lang/gcc10/
     - copied from r537448, head/lang/gcc10-devel/
Modified:
  head/lang/gcc10/Makefile
  head/lang/gcc10/distinfo

Modified: head/lang/gcc10/Makefile
==============================================================================
--- head/lang/gcc10-devel/Makefile	Sun May 31 21:51:42 2020	(r537448)
+++ head/lang/gcc10/Makefile	Mon Jun  1 21:59:33 2020	(r537509)
@@ -2,11 +2,10 @@
 # $FreeBSD$
 
 PORTNAME=	gcc
-PORTVERSION=	10.1.1.s20200523
+PORTVERSION=	10.1.0
 CATEGORIES=	lang
-MASTER_SITES=	GCC/snapshots/${DIST_VERSION}
-PKGNAMESUFFIX=	${SUFFIX}-devel
-DISTNAME=	gcc-${DIST_VERSION}
+MASTER_SITES=	GCC
+PKGNAMESUFFIX=	${SUFFIX}
 
 MAINTAINER=	gerald@FreeBSD.org
 COMMENT=	GNU Compiler Collection 10
@@ -29,15 +28,11 @@ USES=		compiler cpe gmake iconv libtool makeinfo perl5
 USE_BINUTILS=	yes
 USE_PERL5=	build
 
+CONFLICTS=	gcc10-devel-10.*
+
 CPE_VENDOR=	gnu
-CPE_VERSION=	${GCC_VERSION}
 
-# DIST_VERSION relates to downloads, GCC_VERSION and SUFFIX to names
-# of executables and directories once installed.  A PORTVERSION of
-# Y.2.1.s20140817 results in values of Y-20140817, Y.2.1, and Y
-# for these three.
-DIST_VERSION=	${PORTVERSION:C/([0-9]+).*\.s([0-9]+)/\1-\2/}
-GCC_VERSION=	${PORTVERSION:C/(.+)\.s[0-9]{8}/\1/}
+GCC_VERSION=	${PORTVERSION}
 SUFFIX=		${PORTVERSION:C/([0-9]+).*/\1/}
 SSP_UNSAFE=	yes
 CFLAGS:=	${CFLAGS:N-mretpoline}
@@ -71,7 +66,7 @@ CONFIGURE_ENV+=	UNAME_m="powerpc64"
 . if defined(PPC_ABI) && ${PPC_ABI} == ELFv2
 CONFIGURE_ARGS+=	--with-abi=elfv2
 . else
-USE_GCC=	yes
+USE_GCC=	9
 . endif
 .endif
 
@@ -115,10 +110,9 @@ INFO=		gcc${SUFFIX}/cpp \
 		gcc${SUFFIX}/gccint \
 		gcc${SUFFIX}/gfortran \
 		gcc${SUFFIX}/libgomp
-.if ${ARCH} == amd64 || ${ARCH} == i386
+# Release tarballs (as opposed to snapshots) always carry this.
 INFO+=		gcc${SUFFIX}/libquadmath \
 		gcc${SUFFIX}/libitm
-.endif
 SUB_FILES=	pkg-message
 SUB_LIST+=	TARGLIB=${TARGLIB}
 

Modified: head/lang/gcc10/distinfo
==============================================================================
--- head/lang/gcc10-devel/distinfo	Sun May 31 21:51:42 2020	(r537448)
+++ head/lang/gcc10/distinfo	Mon Jun  1 21:59:33 2020	(r537509)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1590328322
-SHA256 (gcc-10-20200523.tar.xz) = a97b3a74f377f7c98a1aa8a5fc3160b8f477ad9aca009ee18c132924ac618f85
-SIZE (gcc-10-20200523.tar.xz) = 71279032
+TIMESTAMP = 1590963530
+SHA256 (gcc-10.1.0.tar.xz) = b6898a23844b656f1b68691c5c012036c2e694ac4b53a8918d4712ad876e7ea2
+SIZE (gcc-10.1.0.tar.xz) = 74591240



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