Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 576516 Details for
Bug 685634
{sys-devel/gcc,dev-lang/gnat-gpl}: add a USE for building GCC with LTO
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bootstrap-lto, >=gcc-9.1, no gnat-gpl
0001-sys-devel-gcc-build-lto.patch (text/plain), 2.03 KB, created by
Shane Peelar
on 2019-05-13 21:27:12 UTC
(
hide
)
Description:
bootstrap-lto, >=gcc-9.1, no gnat-gpl
Filename:
MIME Type:
Creator:
Shane Peelar
Created:
2019-05-13 21:27:12 UTC
Size:
2.03 KB
patch
obsolete
>From b0a15e7df824761fb4f3d5ac7fd114953aec4886 Mon Sep 17 00:00:00 2001 >From: Shane Peelar <lookatyouhacker@gmail.com> >Date: Wed, 8 May 2019 14:55:53 -0400 >Subject: [PATCH] {sys-devel/gcc,dev-lang/gnat-gpl}: add a USE for building GCC > with LTO > >Bug: https://bugs.gentoo.org/685634 > >Signed-off-by: Shane Peelar <lookatyouhacker@gmail.com> >--- > eclass/toolchain.eclass | 6 ++++++ > sys-devel/gcc/metadata.xml | 1 + > 2 files changed, 7 insertions(+) > >diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass >index 17850db4304..9df8ecf69be 100644 >--- a/eclass/toolchain.eclass >+++ b/eclass/toolchain.eclass >@@ -174,6 +174,7 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then > tc_version_is_at_least 8.0 && > IUSE+=" systemtap" TC_FEATURES+=(systemtap) > tc_version_is_at_least 9.0 && IUSE+=" d" >+ tc_version_is_at_least 9.1 && IUSE+=" lto" > fi > > SLOT="${GCC_CONFIG_VER}" >@@ -993,6 +994,11 @@ toolchain_src_configure() { > confgcc+=( --enable-libstdcxx-time ) > fi > >+ # Build compiler using LTO >+ if tc_version_is_at_least 9.1 && use_if_iuse lto ; then >+ confgcc+=( --with-build-config=bootstrap-lto ) >+ fi >+ > # Support to disable pch when building libstdcxx > if tc_version_is_at_least 6.0 && ! use_if_iuse pch ; then > confgcc+=( --disable-libstdcxx-pch ) >diff --git a/sys-devel/gcc/metadata.xml b/sys-devel/gcc/metadata.xml >index d70e7213148..1b47b03d910 100644 >--- a/sys-devel/gcc/metadata.xml >+++ b/sys-devel/gcc/metadata.xml >@@ -21,6 +21,7 @@ > This will slow down the compiler a bit as it forces all of the toolchain to be shared libs.</flag> > <flag name="libssp">Build SSP support into a dedicated library rather than use the > code in the C library (DO NOT ENABLE THIS IF YOU DON'T KNOW WHAT IT DOES)</flag> >+ <flag name="lto">Build using Link Time Optimizations (LTO)</flag> > <flag name="mpx">Enable support for Intel Memory Protection Extensions (MPX)</flag> > <flag name="mudflap">Add support for mudflap, a pointer use checking library</flag> > <flag name="nopie">Disable PIE support (NOT FOR GENERAL USE)</flag> >-- >2.21.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 685634
:
576036
|
576182
|
576458
|
576466
| 576516