This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/74765] missing uninitialized warning (parenthesis, TREE_NO_WARNING abuse)
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 12 Aug 2016 12:56:46 +0000
- Subject: [Bug c++/74765] missing uninitialized warning (parenthesis, TREE_NO_WARNING abuse)
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
- References: <bug-74765-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=74765
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I wonder if we can somehow "annotate" locations with NO_WARNING
(warning-option)
instead of relying on bits on tree nodes / stmts. Maybe even as simple as a
global hash_map <location, diag-desc> that could also be used to tack warnings
to locations and emit those only if the location remains in the IL stream
after dead code elimination...