Please backport r267167 | hubicka | 2018-12-15 11:30:45 +0100 (Sat, 15 Dec 2018) | 7 lines * ipa.c (cgraph_build_static_cdtor_1): Add OPTIMIZATION and TARGET parameters. (cgraph_build_static_cdtor): Update. (build_cdtor): Use OPTIMIZATION and TARGET of the first real cdtor callsed. https://github.com/gcc-mirror/gcc/commit/332446ac24e5b37f441f7c9cb0b97fc36f9f0aa3
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=d3e7c05cbf9c7590bb3a21158613e24a05036c83 commit d3e7c05cbf9c7590bb3a21158613e24a05036c83 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2019-02-11 21:58:50 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2019-02-11 21:58:50 +0000 7.4.0: lto: fix target-specific option leak into global constructors Picked upstream patch as-is: https://github.com/gcc-mirror/gcc/commit/332446ac24e5b37f441f7c9cb0b97fc36f9f0aa3 Bug: https://bugs.gentoo.org/677724 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> 7.4.0/gentoo/22_all_lto-ctor-dtor-target.patch | 64 ++++++++++++++++++++++++++ 7.4.0/gentoo/README.history | 1 + 2 files changed, 65 insertions(+) https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=770623b579388a4f62b15071f778d387a7446f32 commit 770623b579388a4f62b15071f778d387a7446f32 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2019-02-11 21:57:23 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2019-02-11 21:57:23 +0000 8.2.0: lto: fix target-specific option leak into global constructors Picked upstream patch as-is: https://github.com/gcc-mirror/gcc/commit/332446ac24e5b37f441f7c9cb0b97fc36f9f0aa3 Bug: https://bugs.gentoo.org/677724 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> 8.2.0/gentoo/117_all_lto-ctor-dtor-target.patch | 64 +++++++++++++++++++++++++ 8.2.0/gentoo/README.history | 1 + 2 files changed, 65 insertions(+)
Pulled patch as-is to 8.2.0 and 7.4.0. Please test it by dropping it to /etc/portage/patches/sys-devel/gcc:8.2.0/ or similar until we cut a new patch release.
Was released with gcc-8.3.0: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c316784999beaf6b9a3699a54aa4e0c27421d7fc
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=b6c8ba65d3aeccf17fc8010370c22baf908da339 commit b6c8ba65d3aeccf17fc8010370c22baf908da339 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2019-06-01 08:07:17 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2019-06-01 08:07:17 +0000 7.4.0: backport PGO fix Bug: https://bugs.gentoo.org/677724 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> 7.4.0/gentoo/23_all-pgo.patch | 59 +++++++++++++++++++++++++++++++++++++++++++ 7.4.0/gentoo/README.history | 3 +++ 2 files changed, 62 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b05c25d58e86b89acaaf634b4e1b1f77b5ac54a commit 7b05c25d58e86b89acaaf634b4e1b1f77b5ac54a Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2019-06-01 08:10:24 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2019-06-01 08:10:24 +0000 sys-devel/gcc: 7.4.0: cut 1.3 patchset Single new patch to backport PGO fix. Bug: https://bugs.gentoo.org/677724 Package-Manager: Portage-2.3.67, Repoman-2.3.13 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-7.4.0-r2.ebuild | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+)