https://gcc.gnu.org/g:e327786cde08a3d7414a52cb2d6f4f1c5b17066a
commit e327786cde08a3d7414a52cb2d6f4f1c5b17066a Author: Michael Meissner <[email protected]> Date: Thu Nov 6 22:23:42 2025 -0500 Update ChangeLog.* Diff: --- gcc/ChangeLog.meissner | 52 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog.meissner b/gcc/ChangeLog.meissner index a2b3bd48df2f..9d601d9eab21 100644 --- a/gcc/ChangeLog.meissner +++ b/gcc/ChangeLog.meissner @@ -1,11 +1,54 @@ ==================== Branch work224, patch #1 ==================== -Add -mcpu=future option. +Add -mcpu=future option to the PowerPC. -2025-11-06 Michael Meissner <[email protected]> +This patch adds support for -mcpu=future to the PowerPC. This is a +simplified version of the patch to add -mcpu=future support. In +previous versions of the patch, I attempted to fix a lot of the +infrastructure issues I have noticed over the years. + +This patch just adds support for -mcpu=future. Thanks to a question +from Surya Kumari Jangal, I figured out a new method to do this patch. + +In the past, we would always add a new ISA flag for the cpu +(i.e. -mpower11). But this means the user could potentially use +-mfuture instead of -mcpu=future. To discourage this, we would then +add a warning not to use the -m<xxx> direction. + +This patch now uses a separate variable (TARGET_FUTURE) that is set +separately when the cpu type is set. This way we don't have to create +a new dummy ISA option. + +The changes in this patch include: + + * The TARGET_FUTURE variable is set both in the inital cpu setup. + + * It is stored and restored as part of the target attribute and target + pragma support. + + * The internal debug option -mdebug=reg now prints whether the TARGET_FUTURE + field is set. + + * The macro _ARCH_FUTURE is defined if the user used -mcpu=future. + + * I added 2 tests to make sure -mcpu=future works. + + * If the user uses -mcpu=future, -mfuture is passed to the assembler. + + * I added support so the configuration option --with-cpu=future is + used, it will set the default cpu type. + +Can I check this patch into the GCC trunk? + +2025-11-07 Michael Meissner <[email protected]> gcc/ + * config.gcc (powerpc*-*-*): Add support for --with-cpu=future. + * config/rs6000/aix71.h (ASM_CPU_SPEC): Pass -mfuture to the assembler + if -mcpu=future is used. + * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise. + * config/rs6000/aix73.h (ASM_CPU_SPEC): Likewise. * config/rs6000/rs6000-c.cc (rs6000_target_modify_macros): Define _ARCH_FUTURE if -mcpu=future was used. (rs6000_cpu_cpp_builtins): Likewise. @@ -26,9 +69,12 @@ gcc/ (rs6000_function_specific_print): Likewise. (rs6000_print_options_internal): Likewise. (rs6000_print_isa_options): Likewise. - * config/rs6000/rs6000.h (TARGET_FUTURE): New macro. + * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mfuture to the assembler + if -mcpu=future is used. + (TARGET_FUTURE): New macro. * config/rs6000/rs6000.opt (TARGET_FUTURE): New target variable. (x_TARGET_FUTURE): Likewise. + * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=future. gcc/testsuite/
