[PATCH] Use volatile pointers when attempting to trigger SIGSEGVs

Gary Benson gbenson@redhat.com
Mon Jul 13 13:50:00 GMT 2020


Pedro Alves wrote:
> On 6/30/20 2:42 PM, Gary Benson via Gdb-patches wrote:
> > Hi all,
> > 
> > Clang fails to compile a number of files with the following warning:
> > indirection of non-volatile null pointer will be deleted, not trap
> > [-Wnull-dereference].  This patch qualifies the relevant pointers
> > with 'volatile'.
> > 
> > Checked on Fedora 31 x86_64, GCC and clang.  Ok to commit?
> 
> OK

Thanks, I've pushed it.

Cheers,
Gary

-- 
Gary Benson - he / him / his
Principal Software Engineer, Red Hat



More information about the Gdb-patches mailing list