public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/97367] New: powerpc64 g5 and cell optimizations result in .machine power7
@ 2020-10-11 10:59 rene at exactcode dot de
  2020-12-06 15:27 ` [Bug target/97367] " mikpelinux at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: rene at exactcode dot de @ 2020-10-11 10:59 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97367
           Summary: powerpc64 g5 and cell optimizations result in .machine
                    power7
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rene at exactcode dot de
  Target Milestone: ---

Created attachment 49341
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49341&action=edit
Patch

Since reworking the rs6000 .machine output selection in commit
e154242724b084380e3221df7c08fcdbd8460674 22 May 2019, compiling glibc with
either G5 or cell results in power7 assembly optimizations to be chosen, which
obviously crash with illegal instructions. This is because gcc's .machine
output was accidentally changed due to OPTION_MASK_ALTIVEC only otherwise
present in IBM CPUs since power7.

powerpc64-t2-linux-gnu-gcc  test.c -S -o - -mcpu=G5
        .file   "test.c"
        .machine power7
        .abiversion 2
        .section        ".text"
        .ident  "GCC: (GNU) 10.2.0"
        .section        .note.GNU-stack,"",@progbits

Attached patch fixes this to filter out ALTIVEC just like GFXOPT and GPOPT.

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

end of thread, other threads:[~2024-06-12 19:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-11 10:59 [Bug target/97367] New: powerpc64 g5 and cell optimizations result in .machine power7 rene at exactcode dot de
2020-12-06 15:27 ` [Bug target/97367] " mikpelinux at gmail dot com
2021-04-28 10:24 ` redi at gcc dot gnu.org
2021-04-28 10:33 ` redi at gcc dot gnu.org
2021-04-28 10:36 ` redi at gcc dot gnu.org
2024-03-08  8:59 ` rene at exactcode dot de
2024-03-08  9:21 ` sjames at gcc dot gnu.org
2024-03-08 21:30 ` bergner at gcc dot gnu.org
2024-06-12 19:51 ` redi 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).