This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/80641] [7/8 Regression] Warning with std::vector resize in loop


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641

--- Comment #7 from Jeffrey A. Law <law at redhat dot com> ---
So based my findings around c#5 we can classify this as a false positive.  GCC
has enough information lying around to prove the problematical memset can never
be reached, but fails to do so.

Martin's patch to drop some annotations into our std::vector implementation is
being discussed on the libstdc++ list.  I think if/when that patch goes forward
we reduce this to a non-regression misssed optimization -- and we'll probably
need to include cpp output for the testcase so that it's note tainted in the
future with Martin's annotations.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]