https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115687
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > There is some code in cse.cc which does handle this. > See > https://gcc.gnu.org/onlinedocs/gccint/Misc.html#index- > TARGET_005fCONST_005fANCHOR also. MIPS, aarch64 and rs6000 all define TARGET_CONST_ANCHOR (well MIPS sets targetm.const_anchor depending on if it is mips16/micromips or mips32/64).