Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 645776

Summary: sys-devel/gcc-7 produces bad 32-bit binaries with -mbmi
Product: Gentoo Linux Reporter: Mike Lothian <mike>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: drmccoy, kripton, sigurse
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://gcc.gnu.org/viewcvs?rev=257096&root=gcc&view=rev
See Also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81763
https://bugs.gentoo.org/show_bug.cgi?id=649880
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 646722    
Attachments: Fix
Updated Fix

Description Mike Lothian 2018-01-26 02:28:38 UTC
Created attachment 516742 [details, diff]
Fix

It's taken 8 months but I've finally gotten to the bottom of this issue:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81763

Please could the attached patch be included in future GCC 7 ebuilds
Comment 1 Mike Lothian 2018-01-26 11:13:43 UTC
That isn't the final patch, I'll update it as soon as a final fix is agreed
Comment 2 Mike Lothian 2018-01-26 17:52:44 UTC
Created attachment 516792 [details, diff]
Updated Fix

Here's what landed in master upstream https://gcc.gnu.org/viewcvs?rev=257096&root=gcc&view=rev
Comment 3 Matt Turner gentoo-dev 2018-01-27 04:21:15 UTC
Thanks a ton! Presumably this is the cause of bug 616402?
Comment 4 Mike Lothian 2018-01-30 10:58:58 UTC
I think that's a separate issue
Comment 5 sigurse 2018-03-13 06:35:29 UTC
*** Bug 649450 has been marked as a duplicate of this bug. ***
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2018-06-09 19:12:44 UTC
From bug 645776 -- fixed in gcc-7.3.0-r1 and later.

The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b06fb722b73f8e8c09a906d8f921f9975955a94

commit 7b06fb722b73f8e8c09a906d8f921f9975955a94
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-03-11 10:02:41 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-03-11 10:03:01 +0000

    sys-devel/gcc: bump 1.1 patchset: add i386-bmi tweak, bug #649880
    
    Single new patch:
    + 91_all_bmi-i386-PR-target-81763.patch
    
    No keywords yet to verify minmal sanity.
    
    Bug: https://bugs.gentoo.org/649880
    Bug: https://gcc.gnu.org/PR81763
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sys-devel/gcc/Manifest            |  1 +
 sys-devel/gcc/gcc-7.3.0-r1.ebuild | 25 +++++++++++++++++++++++++
 2 files changed, 26 insertions(+)}