diff options
author | Jakub Jelinek <jakub@redhat.com> | 2024-10-22 20:21:56 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2024-10-22 20:21:56 +0200 |
commit | f616bc412c820d1fe1211ab68873607d7bfe2709 (patch) | |
tree | 1a1a3d1edbaec88e5f0d350e56816f379aeceb85 /gcc/fortran/options.cc | |
parent | 8f173da4520ddf64f3926580042f1103146bf0bd (diff) | |
download | gcc-f616bc412c820d1fe1211ab68873607d7bfe2709.zip gcc-f616bc412c820d1fe1211ab68873607d7bfe2709.tar.gz gcc-f616bc412c820d1fe1211ab68873607d7bfe2709.tar.bz2 |
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 <jakub@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.
Diffstat (limited to 'gcc/fortran/options.cc')
0 files changed, 0 insertions, 0 deletions