Make IPA-SRA follow comdat-local rules (PR 91956)
authorMartin Jambor <mjambor@suse.cz>
Mon, 25 Nov 2019 10:09:42 +0000 (11:09 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Mon, 25 Nov 2019 10:09:42 +0000 (11:09 +0100)
commited649cda944c2ff0b77f0203bf83f106e930c5e8
treed1cb5d2e303d82acf499b8d891ab40e4e3abcef7
parent5b01f1a57cc90bcee58ccf75e6062748e1d66448
Make IPA-SRA follow comdat-local rules (PR 91956)

2019-11-25  Martin Jambor  <mjambor@suse.cz>

PR ipa/91956
* ipa-sra.c (process_isra_node_results): Put the new node to the
same comdat group as the original node.

testsuite/
* g++.dg/ipa/pr91956.C: New test.

From-SVN: r278669
gcc/ChangeLog
gcc/ipa-sra.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr91956.C [new file with mode: 0644]