https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113101
Bug ID: 113101
Summary: compilation crash with option --coverage
Product: gcc
Version: 11.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: gcov-
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113103
Bug ID: 113103
Summary: Segmentation fault with --coverage option
Product: gcc
Version: 11.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: gcov
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113101
--- Comment #2 from Haoxiang Jia ---
Thanks for your prompt help.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113103
--- Comment #2 from Haoxiang Jia ---
But when I remove --coverage option, the binary works normally.
# gcc -o test 1.c 2.c
# ./test
#
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113101
--- Comment #3 from Haoxiang Jia ---
I tried to add the -mcmodel=large option, but the compilation error still
exists.
# g++ --coverage -mcmodel=large -o test test.cpp
/usr/lib/gcc/x86_64-linux-gnu/11/libgcov.a(_gcov.o): in function
`gcov_write_
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113157
Bug ID: 113157
Summary: compilation error in PGO
Product: gcc
Version: 11.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: gcov-profile