https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199
--- Comment #14 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:f616bc412c820d1fe1211ab68873607d7bfe2709 commit r15-4552-gf616bc412c820d1fe1211ab68873607d7bfe2709 Author: Jakub Jelinek <ja...@redhat.com> Date: Tue Oct 22 20:21:56 2024 +0200 varasm: Handle RAW_DATA_CST in compare_constant [PR117199] On the following testcase without LTO we unnecessarily don't merge two identical .LC* constants (constant hashing computes the same hash, but as compare_constant returned false for the RAW_DATA_CST in it, it never compares equal), and with LTO fails to link because LTO assumes such constants have to be merged and so doesn't emit the other constant. 2024-10-22 Jakub Jelinek <ja...@redhat.com> PR middle-end/117199 * varasm.cc (compare_constant): Handle RAW_DATA_CST. Formatting fix in the STRING_CST case. * gcc.dg/lto/pr117199_0.c: New test.