[PATCH] ubsan: Do not run the testsuite if ubsan does not work at all

Mike Stump mikestump@comcast.net
Sat Dec 27 16:10:00 GMT 2014


On Dec 24, 2014, at 3:21 PM, Segher Boessenkool <segher@kernel.crashing.org> wrote:
> I normally build with --disable-libsanitizer, because the sanitizers
> testresults are very unreproducable, so just annoying noise.  This however
> makes most (all?) ubsan testcases fail, since they want to load a shared
> library that does not exist.
> 
> This patch disables the ubsan testcases if a trivial program does not
> run when compiled with ubsan.
> 
> Tested on powerpc64-linux, -m32,-m32/-mpowerpc64,-m64,-m64/-mlra;
> 5452 failures gone, no other changes.
> 
> Okay for mainline?

So, I was hoping the ubsan people would have weighed in...

Ok.  Please watch for nits from them.

Please consider pulling the check out and putting it in at the top of the ubsan.exp type of files.

I suspect there is little need to check this more than once per language or so.



More information about the Gcc-patches mailing list