]> git.ipfire.org Git - thirdparty/gcc.git/commit
lto: Handle RAW_DATA_CST in compare_tree_sccs_1 [PR117201]
authorJakub Jelinek <jakub@redhat.com>
Fri, 25 Oct 2024 12:05:37 +0000 (14:05 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 25 Oct 2024 12:05:37 +0000 (14:05 +0200)
commit432044b24a0460b31e332cf6ff92dc97ad1e8508
treec6d0590e3d3a6473475eb26fff6060ab3ac9a8a7
parent35c3aac80e7a18c32436259143cba0f47bd0cb5a
lto: Handle RAW_DATA_CST in compare_tree_sccs_1 [PR117201]

I've missed I need to add RAW_DATA_CST support in compare_tree_sccs_1,
because without that it considers all RAW_DATA_CSTs to be equivalent,
regardless of their length or content.

2024-10-24  Jakub Jelinek  <jakub@redhat.com>

PR lto/117201
PR lto/117288
* lto-common.cc (compare_tree_sccs_1): Handle RAW_DATA_CST.

* gcc.dg/lto/pr117201_0.c: New test.
* gcc.dg/lto/pr117288_0.c: New test.
gcc/lto/lto-common.cc
gcc/testsuite/gcc.dg/lto/pr117201_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr117288_0.c [new file with mode: 0644]