NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/60289: NetBSD 11 gcc mis-optimises some NULL checks



The following reply was made to PR toolchain/60289; it has been noted by GNATS.

From: Christos Zoulas <christos%zoulas.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: toolchain-manager%netbsd.org@localhost,
 gnats-admin%netbsd.org@localhost,
 netbsd-bugs%netbsd.org@localhost
Subject: Re: toolchain/60289: NetBSD 11 gcc mis-optimises some NULL checks
Date: Sat, 23 May 2026 16:28:06 -0400

 --Apple-Mail=_C0AD64E4-92BB-4398-B39F-BD45041F0A5F
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii
 
 &barp->foo is UB if barp is NULL, so the compiler skips the next test.
 This is what the language lawyers have decided.
 
 christos
 
 
 --Apple-Mail=_C0AD64E4-92BB-4398-B39F-BD45041F0A5F
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename=signature.asc
 Content-Type: application/pgp-signature;
 	name=signature.asc
 Content-Description: Message signed with OpenPGP
 
 -----BEGIN PGP SIGNATURE-----
 Comment: GPGTools - http://gpgtools.org
 
 iF0EARECAB0WIQS+BJlbqPkO0MDBdsRxESqxbLM7OgUCahIN1wAKCRBxESqxbLM7
 OpbzAJ4qmEjMbRrRgT0u0M3GUTAWthHaNwCgxVqqZQFBPCzyeG3v/j1NQYn5Q0s=
 =zWhX
 -----END PGP SIGNATURE-----
 
 --Apple-Mail=_C0AD64E4-92BB-4398-B39F-BD45041F0A5F--
 



Home | Main Index | Thread Index | Old Index