Build stage-1 gcc with ubsan

Prathamesh Kulkarni prathamesh.kulkarni@linaro.org
Thu Dec 1 06:45:00 GMT 2016


On 1 December 2016 at 10:22, Markus Trippelsdorf <markus@trippelsdorf.de> wrote:
> On 2016.12.01 at 03:18 +0530, Prathamesh Kulkarni wrote:
>> Hi,
>> For bootstrap gcc build with ubsan, we have --with-build-config=bootstrap-ubsan,
>> however I was wondering how to build only stage-1 gcc with ubsan ?
>> I tried:
>> CFLAGS="-fsanitize=undefined" CXXFLAGS="-fsanitize=undefined" make -j8
>> but that doesn't seem to work.
>
> CXX="g++ -w -fsanitize=undefined" ../gcc/configure
That worked for me, thanks!

Regards,
Prathamesh
>
> --
> Markus



More information about the Gcc-help mailing list