IPA: drop implicit_section again
authorMartin Liska <mliska@suse.cz>
Mon, 30 Nov 2020 12:07:27 +0000 (13:07 +0100)
committerMartin Liska <mliska@suse.cz>
Tue, 1 Dec 2020 10:25:34 +0000 (11:25 +0100)
commitcbc4ae2b263bced781a2d2d0cf0085d262040db6
tree7867a3695bcda6042e12cdb991012620c173cce2
parent69157fe75823fc34f1e3265345f2d2b99cd8d380
IPA: drop implicit_section again

As mentioned in the PR, since 4656461585bfd0b9 implicit_section
was not set to false when set_section was called with the argument
equal to NULL.

gcc/ChangeLog:

PR ipa/98057
* symtab.c (symtab_node::set_section_for_node): Drop
implicit_section if x_section is NULL.

gcc/testsuite/ChangeLog:

PR ipa/98057
* g++.dg/ipa/pr98057.C: New test.
gcc/symtab.c
gcc/testsuite/g++.dg/ipa/pr98057.C [new file with mode: 0644]