https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64715
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|5.0 |6.0
Summary|[5 Regression] |[5/6 Regression]
|__builtin_object_size (..., |__builtin_object_size (...,
|1) fails to locate |1) fails to locate
|subobject |subobject
--- Comment #22 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Workaround for GCC 5 installed, for GCC 6 we really need to fix this properly
and revert the extra objsz pass.
E.g. the new builtin-object-size-15.c test fails miserably if you change all
__builtin_object_size (, 1) calls to __builtin_object_size (, 3) and it really
shouldn't be hard to construct other testcases that are still mishandled.
Nothing to my knowledge uses __bos (, 2) or __bos (, 3), so the former isn't
that big deal, but the patch is really just a temporary band-aid.