diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2021-04-20 12:00:50 +0000 |
---|---|---|
committer | Segher Boessenkool <segher@kernel.crashing.org> | 2021-04-20 13:55:04 +0000 |
commit | 8bd3b0c11cb08f63d2ca41a21596d16635626661 (patch) | |
tree | 79c8767d859eacd010aeeeb8d5a4179cab2816c6 | |
parent | 432a5b8744bc89f1975cba37cefd9f545f8abe86 (diff) | |
download | gcc-8bd3b0c11cb08f63d2ca41a21596d16635626661.zip gcc-8bd3b0c11cb08f63d2ca41a21596d16635626661.tar.gz gcc-8bd3b0c11cb08f63d2ca41a21596d16635626661.tar.bz2 |
rs6000: Fix cpu selection w/ isel (PR100108)
There are various non-IBM CPUs with isel as well, so it is easiest if we
just don't consider that flag here (it is not needed).
2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
PR target/100108
* config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
OPTION_MASK_ISEL.
(cherry picked from commit 6156df483fa50a08f561b6c248819f2992aa380d)
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 48b8efd..844fee88 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -5765,7 +5765,7 @@ rs6000_machine_from_flags (void) HOST_WIDE_INT flags = rs6000_isa_flags; /* Disable the flags that should never influence the .machine selection. */ - flags &= ~(OPTION_MASK_PPC_GFXOPT | OPTION_MASK_PPC_GPOPT); + flags &= ~(OPTION_MASK_PPC_GFXOPT | OPTION_MASK_PPC_GPOPT | OPTION_MASK_ISEL); if ((flags & (ISA_3_1_MASKS_SERVER & ~ISA_3_0_MASKS_SERVER)) != 0) return "power10"; |