Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 576458 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]
Updated patch to build GCC with LTO
0001-sys-devel-gcc-build-lto-lean.patch (text/plain), 2.73 KB, created by
Shane Peelar
on 2019-05-13 14:15:25 UTC
(
hide
)
Description:
Updated patch to build GCC with LTO
Filename:
MIME Type:
Creator:
Shane Peelar
Created:
2019-05-13 14:15:25 UTC
Size:
2.73 KB
patch
obsolete
>From 5652f8221901601e55d88da7352f22187fa2d063 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> >--- > dev-lang/gnat-gpl/metadata.xml | 1 + > eclass/toolchain.eclass | 6 ++++++ > sys-devel/gcc/metadata.xml | 1 + > 3 files changed, 8 insertions(+) > >diff --git a/dev-lang/gnat-gpl/metadata.xml b/dev-lang/gnat-gpl/metadata.xml >index 1e906679715..18d872644b9 100644 >--- a/dev-lang/gnat-gpl/metadata.xml >+++ b/dev-lang/gnat-gpl/metadata.xml >@@ -18,6 +18,7 @@ > <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="nopie">Disable PIE support (NOT FOR GENERAL USE)</flag> > <flag name="nossp">Disable SSP support (NOT FOR GENERAL USE)</flag> > <flag name="objc">Build support for the Objective C code language >diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass >index 17850db4304..169ef19509f 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-lean ) >+ 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