diff mbox series

Detect Power10 CPU on AIX

Message ID CAGWvnynP_hAGG0G8NBe8vbhE4uy7EXMki4YD__2V9qVLZgPdoQ@mail.gmail.com
State New
Headers show
Series Detect Power10 CPU on AIX | expand

Commit Message

David Edelsohn Nov. 18, 2021, 2:24 p.m. UTC
For -mcpu=native, GCC needs to detect the processor.  This
    patch adds the processor value for Power10.

            Suggested by Kevin Alder.

            * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
            power10.

Bootstrapped on powerpc-ibm-aix7.2.3.0
diff mbox series

Patch

diff --git a/gcc/config/rs6000/driver-rs6000.c
b/gcc/config/rs6000/driver-rs6000.c
index e23c445b198..4de373da95a 100644
--- a/gcc/config/rs6000/driver-rs6000.c
+++ b/gcc/config/rs6000/driver-rs6000.c
@@ -418,6 +418,9 @@  detect_processor_aix (void)
     case 0x20000:
       return "power9";

+    case 0x40000:
+      return "power10";
+
     default:
       return "powerpc";
     }