This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/70090] add non-constant variant of __builtin_object_size for _FORTIFY_SOURCE and -fsanitize=object-size
- 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: Thu, 15 Sep 2016 19:52:34 +0000
- Subject: [Bug middle-end/70090] add non-constant variant of __builtin_object_size for _FORTIFY_SOURCE and -fsanitize=object-size
- Auto-submitted: auto-generated
- References: <bug-70090-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70090
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-09-15
CC| |msebor at gcc dot gnu.org
Component|c |middle-end
Ever confirmed|0 |1
Known to fail| |5.3.0, 6.2.0, 7.0
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed. I'm changing the component from C to middle-end since this
limitation affects C++ as well and the solution involves changing the middle
end.
__builtin_object_size suffers from other limitations as well. Not all of those
require introducing a runtime form of the intrinsic (though the most general
cases do). An example where the built-in gives up too easily is bug 77608.