Can gcc itself be tested with ubsan? If so, how?
Gary Oblock
gary@amperecomputing.com
Wed Sep 29 18:55:49 GMT 2021
Toon,
I assume the final compiler built this way has ubsan? I ask because
I'm trying to spot a bug in a new optimization so I want to
run it on a specific test case with the new optimization
enabled.
Thanks,
Gary
________________________________
From: Toon Moene <toon@moene.org>
Sent: Monday, September 27, 2021 11:47 PM
To: Erick Ochoa <eochoa@gcc.gnu.org>; Gary Oblock <gary@amperecomputing.com>
Cc: gcc@gcc.gnu.org <gcc@gcc.gnu.org>
Subject: Re: Can gcc itself be tested with ubsan? If so, how?
[EXTERNAL EMAIL NOTICE: This email originated from an external sender. Please be mindful of safe email handling and proprietary information protection practices.]
On 9/28/21 8:35 AM, Erick Ochoa via Gcc wrote:
>> Can ubsan be used on the compiler itself?
I regularly build the compiler(s) natively with ubsan enabled, see for
instance:
https://gcc.gnu.org/pipermail/gcc-testresults/2021-September/719448.html
The configure line tells you how to do it (towards the end of the mail):
configure flags: --prefix=/home/toon/compilers/install/gcc --with-gnu-as
--with-gnu-ld --enable-languages=all,ada --disable-multilib
--disable-nls --with-build-config=bootstrap-ubsan --enable-checking=all
(the enable-checking part is not relevant, and can be omitted).
Kind regards,
--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
More information about the Gcc
mailing list