https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355
--- Comment #3 from Sam James <sjames at gcc dot gnu.org> --- --- a/foo.cxx.034t.early_objsz +++ b/foo.cxx.034t.early_objsz @@ -19,14 +19,14 @@ char * strncpy (char * restrict __dest, const char * restrict __src, size_t __le -;; Function gen_blr (_ZL7gen_blrPKc, funcdef_no=61, decl_uid=4325, cgraph_uid=62, symbol_order=61) +;; Function gen_blr (_ZL7gen_blrPKc, funcdef_no=61, decl_uid=4383, cgraph_uid=62, symbol_order=61) Computing maximum subobject size for _20: q1.2_5: maximum subobject size 256 q1.6_9: maximum subobject size 255 q1.10_13: maximum subobject size 255 q1.14_17: maximum subobject size 255 -_20: maximum subobject size 256 +_20: maximum subobject size 0 q1_21: maximum subobject size 255 q1_22: maximum subobject size 255 q1_23: maximum subobject size 255 @@ -318,7 +318,7 @@ void gen_blr (const char * string) # DEBUG INLINE_ENTRY strncpy # DEBUG BEGIN_STMT _84 = __builtin_dynamic_object_size (_20, 1); - _85 = MIN_EXPR <_84, 256>; + _85 = MIN_EXPR <_84, 0>; _86 = __builtin___strncpy_chk (_20, "isc", 3, _85); # DEBUG __dest => NULL # DEBUG __src => NULL @@ -343,7 +343,7 @@ void gen_blr (const char * string)