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