public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/96786] New: rs6000: We output the wrong .machine for -mcpu=7450
@ 2020-08-25 18:13 segher at gcc dot gnu.org
  2020-08-25 18:23 ` [Bug target/96786] " segher at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: segher at gcc dot gnu.org @ 2020-08-25 18:13 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96786
           Summary: rs6000: We output the wrong .machine for -mcpu=7450
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: segher at gcc dot gnu.org
  Target Milestone: ---

Reported by Sergei in
https://sourceware.org/bugzilla/show_bug.cgi?id=26522

This happens since gcc.gnu.org/g:2d94f7dea9c7 (but that is just what
triggered it, not the bug itself), so on GCC 10 and later.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/96786] rs6000: We output the wrong .machine for -mcpu=7450
  2020-08-25 18:13 [Bug target/96786] New: rs6000: We output the wrong .machine for -mcpu=7450 segher at gcc dot gnu.org
@ 2020-08-25 18:23 ` segher at gcc dot gnu.org
  2020-08-25 18:23 ` segher at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: segher at gcc dot gnu.org @ 2020-08-25 18:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Perhaps we should just ignore AltiVec for the .machine selection?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/96786] rs6000: We output the wrong .machine for -mcpu=7450
  2020-08-25 18:13 [Bug target/96786] New: rs6000: We output the wrong .machine for -mcpu=7450 segher at gcc dot gnu.org
  2020-08-25 18:23 ` [Bug target/96786] " segher at gcc dot gnu.org
@ 2020-08-25 18:23 ` segher at gcc dot gnu.org
  2022-08-10 20:17 ` erhard_f at mailbox dot org
  2022-08-10 20:59 ` segher at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: segher at gcc dot gnu.org @ 2020-08-25 18:23 UTC (permalink / raw)
  To: gcc-bugs

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

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-08-25
     Ever confirmed|0                           |1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/96786] rs6000: We output the wrong .machine for -mcpu=7450
  2020-08-25 18:13 [Bug target/96786] New: rs6000: We output the wrong .machine for -mcpu=7450 segher at gcc dot gnu.org
  2020-08-25 18:23 ` [Bug target/96786] " segher at gcc dot gnu.org
  2020-08-25 18:23 ` segher at gcc dot gnu.org
@ 2022-08-10 20:17 ` erhard_f at mailbox dot org
  2022-08-10 20:59 ` segher at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: erhard_f at mailbox dot org @ 2022-08-10 20:17 UTC (permalink / raw)
  To: gcc-bugs

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

Erhard F. <erhard_f at mailbox dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |erhard_f at mailbox dot org

--- Comment #2 from Erhard F. <erhard_f at mailbox dot org> ---
This seems to have been fixed meanwhile. My Gentoo ppc/ppc64 box says:

 # gcc-9.5.0 -S -m32 -mcpu=7450 -frecord-gcc-switches -xc -o - - < /dev/null |
grep -E 'mcpu|machine'
        .ascii  "-mcpu=7450"

 # gcc-10.4.0 -S -m32 -mcpu=7450 -frecord-gcc-switches -xc -o - - < /dev/null |
grep -E 'mcpu|machine'
        .machine "7450"
        .ascii  "-mcpu=7450"

 # gcc-11.3.0 -S -m32 -mcpu=7450 -frecord-gcc-switches -xc -o - - < /dev/null |
grep -E 'mcpu|machine'
        .machine power7
        .string "GNU C17 11.3.0 -msecure-plt -m32 -mcpu=7450"

 # gcc-12.1.1 -S -m32 -mcpu=7450 -frecord-gcc-switches -xc -o - - < /dev/null |
grep -E 'mcpu|machine'
        .machine "7450"
        .string "GNU C17 12.1.1 20220625 -msecure-plt -m32 -mcpu=7450"

This would be on the 32bit chroot of my Talos II.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/96786] rs6000: We output the wrong .machine for -mcpu=7450
  2020-08-25 18:13 [Bug target/96786] New: rs6000: We output the wrong .machine for -mcpu=7450 segher at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2022-08-10 20:17 ` erhard_f at mailbox dot org
@ 2022-08-10 20:59 ` segher at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: segher at gcc dot gnu.org @ 2022-08-10 20:59 UTC (permalink / raw)
  To: gcc-bugs

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

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Yes, I fuxed it in g:77eccbf39ed.  That needed the g:80fcc4b6afee fixup, and
will need more work in the future. but this PR is fixed indeed :-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-08-10 20:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-25 18:13 [Bug target/96786] New: rs6000: We output the wrong .machine for -mcpu=7450 segher at gcc dot gnu.org
2020-08-25 18:23 ` [Bug target/96786] " segher at gcc dot gnu.org
2020-08-25 18:23 ` segher at gcc dot gnu.org
2022-08-10 20:17 ` erhard_f at mailbox dot org
2022-08-10 20:59 ` segher at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).