Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 645776 - sys-devel/gcc-7 produces bad 32-bit binaries with -mbmi
Summary: sys-devel/gcc-7 produces bad 32-bit binaries with -mbmi
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://gcc.gnu.org/viewcvs?rev=25709...
Whiteboard:
Keywords: PATCH
: 649450 (view as bug list)
Depends on:
Blocks: gcc-7-stable
  Show dependency tree
 
Reported: 2018-01-26 02:28 UTC by Mike Lothian
Modified: 2023-02-25 01:09 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix (bmi-fix.patch,1.84 KB, patch)
2018-01-26 02:28 UTC, Mike Lothian
Details | Diff
Updated Fix (bmi-fix.patch.txt,1.23 KB, patch)
2018-01-26 17:52 UTC, Mike Lothian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(+)}