public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/108853] New: Add new -mcpu=e500 alias for -mcpu=8540
@ 2023-02-19 23:18 pali at kernel dot org
  2023-02-21 22:48 ` [Bug target/108853] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pali at kernel dot org @ 2023-02-19 23:18 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108853
           Summary: Add new -mcpu=e500 alias for -mcpu=8540
           Product: gcc
           Version: 12.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pali at kernel dot org
  Target Milestone: ---
            Target: powerpc*

To compile code for powerpc e500 core it is needed to specify -mcpu=8540
option. Name 8540 refers to the SoC MPC8540, which was the first released HW
product with powerpc e500 core. All other powerpc gcc's -mcpu options specify
core names and not the SoC/product name.

So for consistent naming I would propose to add a new option -mcpu=e500 as an
alias to -mcpu=8540. Note that other projects like binutils/as and LLVM use
"e500" name for specifying e500 core, and not 8540 word like gcc.

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

* [Bug target/108853] Add new -mcpu=e500 alias for -mcpu=8540
  2023-02-19 23:18 [Bug target/108853] New: Add new -mcpu=e500 alias for -mcpu=8540 pali at kernel dot org
@ 2023-02-21 22:48 ` pinskia at gcc dot gnu.org
  2023-02-21 22:52 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-02-21 22:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Does anyone still use the e500 core? I thought the last SoC that had that core
was years ago and even no longer supported by FreeScale/NXP.

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

* [Bug target/108853] Add new -mcpu=e500 alias for -mcpu=8540
  2023-02-19 23:18 [Bug target/108853] New: Add new -mcpu=e500 alias for -mcpu=8540 pali at kernel dot org
  2023-02-21 22:48 ` [Bug target/108853] " pinskia at gcc dot gnu.org
@ 2023-02-21 22:52 ` pinskia at gcc dot gnu.org
  2023-02-21 23:02 ` pali at kernel dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-02-21 22:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
e500 support was mostly removed out of GCC too.

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

* [Bug target/108853] Add new -mcpu=e500 alias for -mcpu=8540
  2023-02-19 23:18 [Bug target/108853] New: Add new -mcpu=e500 alias for -mcpu=8540 pali at kernel dot org
  2023-02-21 22:48 ` [Bug target/108853] " pinskia at gcc dot gnu.org
  2023-02-21 22:52 ` pinskia at gcc dot gnu.org
@ 2023-02-21 23:02 ` pali at kernel dot org
  2023-02-21 23:07 ` pinskia at gcc dot gnu.org
  2023-05-08  9:58 ` pali at kernel dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pali at kernel dot org @ 2023-02-21 23:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Pali Rohár <pali at kernel dot org> ---
I'm still using processors with e500 cores with recent Linux kernel versions
and I know also other people who also still using them.

Note that NXP still supports some QorIQ processors which have integrated e500
cores. So it is not truth that they are no longer supported by FreeScale/NXP.

I know that e500 support was mostly removed out of GCC, but something is still
there.

And due to this removal, LLVM and clang recently gained some usable e500v2
implementation. I was told that it was heavily tested on FreeBSD with desktop
applications.

Also musl libc in last year got e500 support.

So, no, e500 cpu core is not dead and people still care about it.

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

* [Bug target/108853] Add new -mcpu=e500 alias for -mcpu=8540
  2023-02-19 23:18 [Bug target/108853] New: Add new -mcpu=e500 alias for -mcpu=8540 pali at kernel dot org
                   ` (2 preceding siblings ...)
  2023-02-21 23:02 ` pali at kernel dot org
@ 2023-02-21 23:07 ` pinskia at gcc dot gnu.org
  2023-05-08  9:58 ` pali at kernel dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-02-21 23:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Pali Rohár from comment #3)
> And due to this removal, LLVM and clang recently gained some usable e500v2
> implementation. I was told that it was heavily tested on FreeBSD with
> desktop applications.

Well nobody took time to step up and it was proposed for over 3/4 years before
it was finally removed even. And NXP didn't care.

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

* [Bug target/108853] Add new -mcpu=e500 alias for -mcpu=8540
  2023-02-19 23:18 [Bug target/108853] New: Add new -mcpu=e500 alias for -mcpu=8540 pali at kernel dot org
                   ` (3 preceding siblings ...)
  2023-02-21 23:07 ` pinskia at gcc dot gnu.org
@ 2023-05-08  9:58 ` pali at kernel dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pali at kernel dot org @ 2023-05-08  9:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Pali Rohár <pali at kernel dot org> ---
Back to the original question. Can gcc add a new option -mcpu=e500 as alias to
-mcpu=8540 ?

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

end of thread, other threads:[~2023-05-08  9:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-19 23:18 [Bug target/108853] New: Add new -mcpu=e500 alias for -mcpu=8540 pali at kernel dot org
2023-02-21 22:48 ` [Bug target/108853] " pinskia at gcc dot gnu.org
2023-02-21 22:52 ` pinskia at gcc dot gnu.org
2023-02-21 23:02 ` pali at kernel dot org
2023-02-21 23:07 ` pinskia at gcc dot gnu.org
2023-05-08  9:58 ` pali at kernel dot 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).