mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Update to the 20200621 snapshot of GCC 11.0.0.
Temporarily add files/patch-PR95805 to address the GCC failing the build with clang.
This commit is contained in:
parent
0b4fbde59f
commit
97fbf28a11
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=540377
3 changed files with 51 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME= gcc
|
PORTNAME= gcc
|
||||||
PORTVERSION= 11.0.0.s20200614
|
PORTVERSION= 11.0.0.s20200621
|
||||||
CATEGORIES= lang
|
CATEGORIES= lang
|
||||||
MASTER_SITES= GCC/snapshots/${DIST_VERSION}
|
MASTER_SITES= GCC/snapshots/${DIST_VERSION}
|
||||||
PKGNAMESUFFIX= ${SUFFIX}-devel
|
PKGNAMESUFFIX= ${SUFFIX}-devel
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
TIMESTAMP = 1592293522
|
TIMESTAMP = 1592784068
|
||||||
SHA256 (gcc-11-20200614.tar.xz) = 40635ce0e16ad628ea195270923b2bcbbcb6e1e552e0a18dfc1a9c49f286a741
|
SHA256 (gcc-11-20200621.tar.xz) = ac7566828cba717b23e0a954ac72dff9fa39cddbaa9beb03a3dedf72bccec75c
|
||||||
SIZE (gcc-11-20200614.tar.xz) = 71538232
|
SIZE (gcc-11-20200621.tar.xz) = 71629184
|
||||||
|
|
47
lang/gcc11-devel/files/patch-PR95805
Normal file
47
lang/gcc11-devel/files/patch-PR95805
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
This should be properly fixed upstream by the next snapshot.
|
||||||
|
|
||||||
|
Revert commit 4e49b994de060d4a6c9318d0ed52ef038153426e
|
||||||
|
Author: Richard Sandiford <richard.sandiford@arm.com>
|
||||||
|
Date: Wed Jun 17 17:45:29 2020 +0100
|
||||||
|
|
||||||
|
recog: Tweak insn_gen_fn::operator() definition
|
||||||
|
|
||||||
|
Fixes a “left operand of comma has no effect” warning that some were
|
||||||
|
seeing. Also fixes a spurious ellipsis that Jonathan Wakely pointed
|
||||||
|
out.
|
||||||
|
|
||||||
|
2020-06-17 Richard Sandiford <richard.sandiford@arm.com>
|
||||||
|
|
||||||
|
gcc/
|
||||||
|
* coretypes.h (first_type): New alias template.
|
||||||
|
* recog.h (insn_gen_fn::operator()): Use it instead of a decltype.
|
||||||
|
Remove spurious “...” and split the function type out into a typedef.
|
||||||
|
|
||||||
|
--- gcc/coretypes.h 2020-06-21 22:32:12.000000000 +0000
|
||||||
|
+++ gcc/coretypes.h 2020-06-23 18:56:41.074951000 +0000
|
||||||
|
@@ -359,10 +359,6 @@
|
||||||
|
const ValueType value; /* the value of the name */
|
||||||
|
};
|
||||||
|
|
||||||
|
-/* Alias of the first type, ignoring the second. */
|
||||||
|
-template<typename T1, typename T2>
|
||||||
|
-using first_type = T1;
|
||||||
|
-
|
||||||
|
/* Iterator pair used for a collection iteration with range-based loops. */
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
--- gcc/recog.h
|
||||||
|
+++ gcc/recog.h
|
||||||
|
@@ -295,10 +295,9 @@ struct insn_gen_fn
|
||||||
|
typedef void (*stored_funcptr) (void);
|
||||||
|
|
||||||
|
template<typename ...Ts>
|
||||||
|
- rtx_insn *operator() (Ts... args) const
|
||||||
|
+ rtx_insn *operator() (Ts... args...) const
|
||||||
|
{
|
||||||
|
- typedef rtx_insn *(*funcptr) (first_type<rtx, Ts>...);
|
||||||
|
- return ((funcptr) func) (args...);
|
||||||
|
+ return ((rtx_insn *(*) (decltype(args, NULL_RTX)...)) func) (args...);
|
||||||
|
}
|
||||||
|
|
||||||
|
// This is for compatibility of code that invokes functions like
|
Loading…
Add table
Reference in a new issue