[Bug preprocessor/45227] libcpp Makefile does not enable instrumentation

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 4 05:46:12 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45227

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So -fprofile-generate is passed from the toplevel directory as expected.

/home/apinski/src/upstream-gcc/gcc/objdir1/./prev-gcc/xg++
-B/home/apinski/src/upstream-gcc/gcc/objdir1/./prev-gcc/
-B/usr/local/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs

-I/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu

-I/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/include
 -I/home/apinski/src/upstream-gcc/gcc/libstdc++-v3/libsupc++
-L/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
 -I../../libcpp -I. -I../../libcpp/../include -I../../libcpp/include  -g -O2
-fno-checking -gtoggle -fprofile-generate -W -Wall -Wno-narrowing
-Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long -Werror
-fno-exceptions -fno-rtti -I../../libcpp -I. -I../../libcpp/../include
-I../../libcpp/include    -c -o charset.o -MT charset.o -MMD -MP -MF
.deps/charset.Tpo ../../libcpp/charset.c

This has been true since profiledbootstrap was done.

>I noticed this while doing a coverage enabled build. 

What are the options you used to do a coverate enabled build?


More information about the Gcc-bugs mailing list