[Bug c++/89325] [7/8/9 Regression] False warnings about "optimization attribute" on operators when -fno-ipa-cp-clone
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325 --- Comment #4 from Jakub Jelinek --- Author: jakub Date: Wed Apr 17 19:24:55 2019 New Revision: 270422 URL: https://gcc.gnu.org/viewcvs?rev=270422&root=gcc&view=rev Log: PR c++/89325 * g++.dg/ext/attrib58.C: New test. * g++.dg/ext/attrib59.C: New test. * g++.dg/ext/attrib60.C: New test. Added: trunk/gcc/testsuite/g++.dg/ext/attrib58.C trunk/gcc/testsuite/g++.dg/ext/attrib59.C trunk/gcc/testsuite/g++.dg/ext/attrib60.C Modified: trunk/gcc/testsuite/ChangeLog
[Bug c++/89325] [7/8/9 Regression] False warnings about "optimization attribute" on operators when -fno-ipa-cp-clone
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325 Jakub Jelinek changed: What|Removed |Added URL||https://gcc.gnu.org/ml/gcc- ||patches/2019-04/msg00494.ht ||ml --- Comment #3 from Jakub Jelinek --- Testsuite patch https://gcc.gnu.org/ml/gcc-patches/2019-04/msg00494.html
[Bug c++/89325] [7/8/9 Regression] False warnings about "optimization attribute" on operators when -fno-ipa-cp-clone
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org, ||nathan at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- Doesn't look like hidden to me, I'd say that r265744 has been the right fix for this. The diagnose_mismatched_attributes has been simply placed way too early, before we check if the two decls actually shouldn't be merged because they have different arguments (and not extern "C"). I'd say we should just say this is fixed for 9 and decide how to fix on release branches. Let me prepare a patch with some testcases for trunk.
[Bug c++/89325] [7/8/9 Regression] False warnings about "optimization attribute" on operators when -fno-ipa-cp-clone
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325 Richard Biener changed: What|Removed |Added Keywords||diagnostic Priority|P3 |P2 Target Milestone|--- |7.5 Summary|False warnings about|[7/8/9 Regression] False |"optimization attribute" on |warnings about |operators when |"optimization attribute" on |-fno-ipa-cp-clone |operators when ||-fno-ipa-cp-clone