Bug 68872 - -mcpu=powerpc64le does not pass -mpower8 to gas
Summary: -mcpu=powerpc64le does not pass -mpower8 to gas
Status: CLOSED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 6.0
: P3 normal
Target Milestone: 6.0
Assignee: Peter Bergner
URL: https://gcc.gnu.org/ml/gcc-patches/20...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-12 10:23 UTC by Alan Modra
Modified: 2015-12-22 20:55 UTC (History)
5 users (show)

See Also:
Host:
Target: powerpc64le
Build:
Known to work:
Known to fail:
Last reconfirmed: 2015-12-22 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Modra 2015-12-12 10:23:26 UTC
This results in failures assembling "mfcr r,mask" and also wrong "at" branch hints.  See https://sourceware.org/bugzilla/show_bug.cgi?id=19359 for a testcase.
Comment 1 Peter Bergner 2015-12-15 23:50:28 UTC
As I mentioned in the binutils bug, I think -mcpu=powerpc64le should mimic -mcpu=power8.  I'll have a look at making that change.
Comment 2 Peter Bergner 2015-12-22 18:23:52 UTC
Patch summitted:

  https://gcc.gnu.org/ml/gcc-patches/2015-12/msg02054.html
Comment 3 Peter Bergner 2015-12-22 19:35:10 UTC
(In reply to Peter Bergner from comment #2)
> Patch summitted:
> 
>   https://gcc.gnu.org/ml/gcc-patches/2015-12/msg02054.html

Patch committed, but without the aix*.h file hunks.
Comment 4 Peter Bergner 2015-12-22 20:55:08 UTC
Fix backported to gcc-5-branch and gcc-4_0-branch too.
Comment 5 Peter Bergner 2015-12-22 20:55:27 UTC
Closing as fixed.