[Bug middle-end/70090] add non-constant variant of __builtin_object_size for _FORTIFY_SOURCE and -fsanitize=object-size

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Sep 15 19:52:00 GMT 2016


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.


More information about the Gcc-bugs mailing list