diff options
author | David Edelsohn <dje.gcc@gmail.com> | 2021-11-17 13:26:36 -0500 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 2021-11-18 09:31:12 -0500 |
commit | e3dbd2e14020d5a4f3401fa60dd5792b99fae108 (patch) | |
tree | 442289c56acc8ce79ff6232a4c2c13f793351822 /gcc | |
parent | 9646a3229b9be134631f191726fa5e2042cfa79c (diff) | |
download | gcc-e3dbd2e14020d5a4f3401fa60dd5792b99fae108.zip gcc-e3dbd2e14020d5a4f3401fa60dd5792b99fae108.tar.gz gcc-e3dbd2e14020d5a4f3401fa60dd5792b99fae108.tar.bz2 |
aix: detect power10 processor.
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/rs6000/driver-rs6000.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/rs6000/driver-rs6000.c b/gcc/config/rs6000/driver-rs6000.c index e23c445..4de373d 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"; } |