This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/71831] __builtin_object_size poor results with no optimization
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 12 Jul 2016 15:22:49 +0000
- Subject: [Bug tree-optimization/71831] __builtin_object_size poor results with no optimization
- Auto-submitted: auto-generated
- References: <bug-71831-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71831
--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Yes, I understand and agree with that. What I envision is handling just the
basic cases like the ones in comment #2 (and similar) that don't involve the
objsz machinery. My -Wformat-length patch (bug 49905) already uses a simple
form of this enhancement to detect buffer overflow without optimization.