summaryrefslogtreecommitdiff
path: root/sys-devel/gcc/gcc-10.0.1_pre9999.ebuild
blob: b0210fa880a8c807e1f458ae0e608fc9bbe0fbba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

PATCH_GCC_VER="9.2.0" # reuse subset of patches for latest for live ebuilds gcc
PATCH_VER="4"

inherit toolchain

# Don't keyword live ebuilds
#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86"

# No gcc-10 branch yet
EGIT_BRANCH=master

RDEPEND=""
DEPEND="${RDEPEND}
	elibc_glibc? ( >=sys-libs/glibc-2.13 )
	>=${CATEGORY}/binutils-2.20"

if [[ ${CATEGORY} != cross-* ]] ; then
	PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.13 )"
fi

src_prepare() {
	local p ignore_patches=(
		04_all_default-ssp-fix.patch # needs a port
		11_all_extra-options.patch # needs a port
		15_all_disable-systemtap-switch.patch # needs a port

		25_all_ia64-bootstrap.patch # upstreamed
		27_all_sparc-PIC-constant-PR91472.patch # upstreamed
		28_all_sparc-fpu-subregs-91269.patch # upstreamed
		29_all_mips_split_move-SEGV.patch # upstreamed
		30_all_arm64-march-native.patch # upstreamed
		31_all_openmp-for-SEGV.patch # upstreamed
		32_all_sparc-PIC-constant-part2.patch # upstreamed
		33_all_extend-lifetime.patch # upstreamed
	)
	for p in "${ignore_patches[@]}"; do
		rm "${WORKDIR}"/patch/"${p}" || die "failed to delete '${p}'"
	done

	toolchain_src_prepare
}