https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87309
Bug ID: 87309 Summary: Spurious note: messages when building with -fopt-info-vec-optimized Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: iii at linux dot ibm.com Target Milestone: --- $ cat test.cpp void a() {} $ g++ -c test.cpp -fopt-info-vec-optimized -O3 test.cpp:1:6: note: test.cpp:1:11: note: This is coming from DUMP_VECT_SCOPE ("vect_analyze_data_refs"); in vect_analyze_data_refs(). I suspect that alt_flags check around dump_loc call is missing in dump_context::begin_scope.