https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121846

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sjames at gcc dot gnu.org

--- Comment #5 from Sam James <sjames at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> (In reply to Robert Seacord from comment #3)
> > > Dup.
> > > 
> > > *** This bug has been marked as a duplicate of bug 112783 ***
> > 
> > I don't think this is a duplicate because I'm reporting this as a bug
> > against the compiler optimizer and not the library.
> 
> yes I know but it was already fixed in GCC 15. See PR 117023 which
> implemented nonnull_if_nonzero  BUT (older) glibc still marks memcpy as
> nonnull so you still get the old behavior in many cases.
>

Unfortunately, we haven't made use of n_i_n in glibc yet, and we haven't
stripped nonnull either. We should probably strip nonnull in places where n_i_n
would be used on the glibc side and backport that.

Reply via email to