https://gcc.gnu.org/g:95ba7bce7dfacddaabcbd75f04a68dedc03a2456
commit 95ba7bce7dfacddaabcbd75f04a68dedc03a2456 Author: Michael Meissner <meiss...@linux.ibm.com> Date: Tue Jun 17 04:19:29 2025 -0400 Update ChangeLog.* Diff: --- gcc/ChangeLog.cmodel | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/gcc/ChangeLog.cmodel b/gcc/ChangeLog.cmodel index 7f6ff6340c7d..a2887e8d53f6 100644 --- a/gcc/ChangeLog.cmodel +++ b/gcc/ChangeLog.cmodel @@ -8,28 +8,26 @@ the issues. It is now time to allow -mcmodel=large to generate pc-relative code. This patch allows -mcmodel=large to use prefixed addressing on power10, power11, -and possibly other future PowerPC processors. - -This patch deletes the code that disallows -mprefixed and -mcmodel=large. By -deleting the code, it allows the normal pc-relative addressing to be used. For -static variables, pc-relative addressing will be used. For external variables, -we will generate the normal code that uses '@got@pcrel' addressing to load up -the external address and use this address as a pointer to do the load or store. +and possibly other future PowerPC processors in addition to the current +-mcmodel=medium support. 2025-06-17 Michael Meissner <meiss...@linux.ibm.com> gcc/ PR target/120681 - * config/rs6000/rs6000.cc (rs6000_option_override_internal): Delete code - that forced using TOC addressing for -mcmodel=large instead of - pc-relative addressing. + * config/rs6000/linux64.h (PCREL_SUPPORTED_BY_OS): Allow large code + model as well as medium code model. + * config/rs6000/rs6000.cc (rs6000_option_override_internal): Likewise. + (rs6000_elf_declare_function_name): Don't create the local/non-local + labels for large code model if we are using PC-relative addressing. gcc/testsuite/ PR target/120681 * gcc.target/powerpc/pr120681.c: New test. +==================== Branch work211-cmodel, patch #301 was reverted ==================== ==================== Branch work211-cmodel, patch #300 was reverted ==================== ==================== Branch work211-cmodel, baseline ====================