[Bug target/105010] [13/14/15/16/17 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask
pkubaj at anongoth dot pl
gcc-bugzilla@gcc.gnu.org
Fri May 1 00:01:42 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010
--- Comment #29 from Piotr Kubaj <pkubaj at anongoth dot pl> ---
@segher
Here's the patch I have, GCC now builds for me on powerpc64 with multilib:
--- gcc/config/rs6000/rs6000.cc.orig 2026-04-30 22:11:16 UTC
+++ gcc/config/rs6000/rs6000.cc
@@ -5897,7 +5897,8 @@ rs6000_machine_from_flags (void)
#endif
/* Classic with AltiVec, "G4" */
- if (rs6000_cpu == PROCESSOR_PPC7400 || rs6000_cpu == PROCESSOR_PPC7450)
+ if ((rs6000_cpu == PROCESSOR_PPC7400 || rs6000_cpu == PROCESSOR_PPC7450)
+ && (rs6000_isa_flags & (ISA_2_2_MASKS | OPTION_MASK_PPC_GPOPT)) == 0)
return "\"7450\"";
#if 0
More information about the Gcc-bugs
mailing list