* [Bug lto/64636] Bootstrapping gcc-4.9.2 fails if lto is enabled
2015-01-16 21:57 [Bug lto/64636] New: Bootstrapping gcc-4.9.2 fails if lto is enabled carson at taltos dot org
@ 2015-01-17 0:44 ` carson at taltos dot org
2015-01-17 0:46 ` carson at taltos dot org
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: carson at taltos dot org @ 2015-01-17 0:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636
--- Comment #1 from Carson Gaspar <carson at taltos dot org> ---
Created attachment 34467
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34467&action=edit
preprocessed regex.i
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug lto/64636] Bootstrapping gcc-4.9.2 fails if lto is enabled
2015-01-16 21:57 [Bug lto/64636] New: Bootstrapping gcc-4.9.2 fails if lto is enabled carson at taltos dot org
2015-01-17 0:44 ` [Bug lto/64636] " carson at taltos dot org
@ 2015-01-17 0:46 ` carson at taltos dot org
2020-05-13 20:21 ` [Bug lto/64636] LTO PGO bootstrap fails on linux-sparc64 in stream_out_histogram_value ostash at ostash dot kiev.ua
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: carson at taltos dot org @ 2015-01-17 0:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636
--- Comment #2 from Carson Gaspar <carson at taltos dot org> ---
Removing -fprofile-use also makes the compilation work, so it appears to be a
problem with profile feedback combined with LTO. Either works individually, but
error out if used together.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug lto/64636] LTO PGO bootstrap fails on linux-sparc64 in stream_out_histogram_value
2015-01-16 21:57 [Bug lto/64636] New: Bootstrapping gcc-4.9.2 fails if lto is enabled carson at taltos dot org
2015-01-17 0:44 ` [Bug lto/64636] " carson at taltos dot org
2015-01-17 0:46 ` carson at taltos dot org
@ 2020-05-13 20:21 ` ostash at ostash dot kiev.ua
2020-06-16 20:06 ` grgoffe at yahoo dot com
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ostash at ostash dot kiev.ua @ 2020-05-13 20:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636
Viktor Ostashevskyi <ostash at ostash dot kiev.ua> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ostash at ostash dot kiev.ua
--- Comment #10 from Viktor Ostashevskyi <ostash at ostash dot kiev.ua> ---
Hello,
During GCC 10.1.0 bootstrap in LTO+PGO mode, configured as:
Configured with: ../gcc-10.1.0/configure --disable-multiarch
--disable-libquadmath --disable-libquadmath-support --disable-libssp
--disable-libstdcxx-pch --disable-multilib --disable-nls
--enable-checking=release --enable-__cxa_atexit --enable-languages=c,c++
--enable-libstdcxx-debug --enable-lto --enable-plugin --enable-threads=posix
--enable-tls --with-build-config=bootstrap-lto
--with-default-libstdcxx-abi=gcc4-compatible --with-linker-hash-style=gnu
--with-system-zlib --with-zstd=no --host=x86_64-pc-linux-gnu
--build=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
I got following ICE:
/ostash/buildtc10/gcc-10.1.0-build/./prev-gcc/xgcc
-B/ostash/buildtc10/gcc-10.1.0-build/./prev-gcc/
-B/ostash/tc10/x86_64-pc-linux-gnu/bin/ -B/ostash/tc10/x86_64-pc-linux-gnu/bin/
-B/ostash/tc10/x86_64-pc-linux-gnu/lib/ -isystem
/ostash/tc10/x86_64-pc-linux-gnu/include -isystem
/ostash/tc10/x86_64-pc-linux-gnu/sys-include -c -DHAVE_CONFIG_H
-fprofile-use -flto=jobserver -frandom-seed=1 -I.
-I../../gcc-10.1.0/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat
-Wstrict-prototypes -Wshadow=local -pedantic -D_GNU_SOURCE -fcf-protection
../../gcc-10.1.0/libiberty/hashtab.c -o hashtab.o
during IPA pass: fnsummary
../../gcc-10.1.0/libiberty/hashtab.c:997:1: internal compiler error: in
stream_out_histogram_value, at value-prof.c:338
997 | }
| ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
make[3]: *** [hashtab.o] Error 1
make[3]: Leaving directory `/ostash/buildtc10/gcc-10.1.0-build/libiberty'
make[2]: *** [all-stagefeedback-libiberty] Error 2
make[2]: Leaving directory `/ostash/buildtc10/gcc-10.1.0-build'
make[1]: *** [stagefeedback-bubble] Error 2
make[1]: Leaving directory `/ostash/buildtc10/gcc-10.1.0-build'
make: *** [profiledbootstrap] Error 2
I can provide gcda files if needed.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug lto/64636] LTO PGO bootstrap fails on linux-sparc64 in stream_out_histogram_value
2015-01-16 21:57 [Bug lto/64636] New: Bootstrapping gcc-4.9.2 fails if lto is enabled carson at taltos dot org
` (2 preceding siblings ...)
2020-05-13 20:21 ` [Bug lto/64636] LTO PGO bootstrap fails on linux-sparc64 in stream_out_histogram_value ostash at ostash dot kiev.ua
@ 2020-06-16 20:06 ` grgoffe at yahoo dot com
2020-06-16 20:09 ` grgoffe at yahoo dot com
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: grgoffe at yahoo dot com @ 2020-06-16 20:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636
George R. Goffe <grgoffe at yahoo dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |grgoffe at yahoo dot com
--- Comment #11 from George R. Goffe <grgoffe at yahoo dot com> ---
Created attachment 48747
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48747&action=edit
preprocessed abstract.c produced by -S --save-temps gcc flag
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug lto/64636] LTO PGO bootstrap fails on linux-sparc64 in stream_out_histogram_value
2015-01-16 21:57 [Bug lto/64636] New: Bootstrapping gcc-4.9.2 fails if lto is enabled carson at taltos dot org
` (3 preceding siblings ...)
2020-06-16 20:06 ` grgoffe at yahoo dot com
@ 2020-06-16 20:09 ` grgoffe at yahoo dot com
2020-06-16 20:13 ` grgoffe at yahoo dot com
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: grgoffe at yahoo dot com @ 2020-06-16 20:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636
--- Comment #12 from George R. Goffe <grgoffe at yahoo dot com> ---
Hi,
I am seeing a failure in stream_out_histogram_value building the last release
of python 2.x ( 2.7.18).
I just posted the preprocessed c code for this problem.
Here is the failing command and following output:
/tools/python/Python-2.7.18# gcc -S --save-temps -pthread -c
-fno-strict-aliasing -g -O2 -g -O0 -Wall -Wstrict-prototypes -fprofile-use
-fprofile-correction -flto -fuse-linker-plugin -ffat-lto-objects
-flto-partition=none -g -I. -IInclude -I./Include -fPIC -DPy_BUILD_CORE -o
Objects/abstract.o Objects/abstract.c
during IPA pass: fnsummary
Objects/abstract.c:3124:1: internal compiler error: in
stream_out_histogram_value, at value-prof.c:336
3124 | }
| ^
0x70b9a4 stream_out_histogram_value(output_block*, histogram_value_t*)
../../gcc/gcc/value-prof.c:336
0x16170b0 output_gimple_stmt
../../gcc/gcc/gimple-streamer-out.c:196
0x16170b0 output_bb(output_block*, basic_block_def*, function*)
../../gcc/gcc/gimple-streamer-out.c:231
0xbfa9b4 output_function
../../gcc/gcc/lto-streamer-out.c:2198
0xbfa9b4 lto_output()
../../gcc/gcc/lto-streamer-out.c:2530
0xc91241 write_lto
../../gcc/gcc/passes.c:2612
0xc91241 ipa_write_summaries_1
../../gcc/gcc/passes.c:2676
0xc91241 ipa_write_summaries()
../../gcc/gcc/passes.c:2731
0x9230ab ipa_passes
../../gcc/gcc/cgraphunit.c:2650
0x9230ab symbol_table::compile()
../../gcc/gcc/cgraphunit.c:2737
0x924d3c symbol_table::compile()
../../gcc/gcc/cgraphunit.c:2717
0x924d3c symbol_table::finalize_compilation_unit()
../../gcc/gcc/cgraphunit.c:2984
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug lto/64636] LTO PGO bootstrap fails on linux-sparc64 in stream_out_histogram_value
2015-01-16 21:57 [Bug lto/64636] New: Bootstrapping gcc-4.9.2 fails if lto is enabled carson at taltos dot org
` (4 preceding siblings ...)
2020-06-16 20:09 ` grgoffe at yahoo dot com
@ 2020-06-16 20:13 ` grgoffe at yahoo dot com
2020-09-25 14:21 ` [Bug gcov-profile/64636] " marxin at gcc dot gnu.org
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: grgoffe at yahoo dot com @ 2020-06-16 20:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636
--- Comment #13 from George R. Goffe <grgoffe at yahoo dot com> ---
Hi,
I see that I forgot to mention that the failure generated above was made with
the "latest" gcc in the repo. revision at 280157
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug gcov-profile/64636] LTO PGO bootstrap fails on linux-sparc64 in stream_out_histogram_value
2015-01-16 21:57 [Bug lto/64636] New: Bootstrapping gcc-4.9.2 fails if lto is enabled carson at taltos dot org
` (5 preceding siblings ...)
2020-06-16 20:13 ` grgoffe at yahoo dot com
@ 2020-09-25 14:21 ` marxin at gcc dot gnu.org
2020-09-25 14:21 ` marxin at gcc dot gnu.org
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-09-25 14:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|lto |gcov-profile
CC| |marxin at gcc dot gnu.org
Status|WAITING |ASSIGNED
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug gcov-profile/64636] LTO PGO bootstrap fails on linux-sparc64 in stream_out_histogram_value
2015-01-16 21:57 [Bug lto/64636] New: Bootstrapping gcc-4.9.2 fails if lto is enabled carson at taltos dot org
` (6 preceding siblings ...)
2020-09-25 14:21 ` [Bug gcov-profile/64636] " marxin at gcc dot gnu.org
@ 2020-09-25 14:21 ` marxin at gcc dot gnu.org
2020-09-25 14:26 ` cvs-commit at gcc dot gnu.org
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-09-25 14:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org
--- Comment #14 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug gcov-profile/64636] LTO PGO bootstrap fails on linux-sparc64 in stream_out_histogram_value
2015-01-16 21:57 [Bug lto/64636] New: Bootstrapping gcc-4.9.2 fails if lto is enabled carson at taltos dot org
` (7 preceding siblings ...)
2020-09-25 14:21 ` marxin at gcc dot gnu.org
@ 2020-09-25 14:26 ` cvs-commit at gcc dot gnu.org
2020-09-25 14:27 ` marxin at gcc dot gnu.org
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-09-25 14:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636
--- Comment #15 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Liska <marxin@gcc.gnu.org>:
https://gcc.gnu.org/g:1921ebcaf6467996aede69e1bbe32400d8a20fe7
commit r11-3463-g1921ebcaf6467996aede69e1bbe32400d8a20fe7
Author: Martin Liska <mliska@suse.cz>
Date: Fri Sep 25 16:21:34 2020 +0200
gcov: fix streaming of HIST_TYPE_IOR histogram type.
gcc/ChangeLog:
PR gcov-profile/64636
* value-prof.c (stream_out_histogram_value): Allow negative
values for HIST_TYPE_IOR.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug gcov-profile/64636] LTO PGO bootstrap fails on linux-sparc64 in stream_out_histogram_value
2015-01-16 21:57 [Bug lto/64636] New: Bootstrapping gcc-4.9.2 fails if lto is enabled carson at taltos dot org
` (8 preceding siblings ...)
2020-09-25 14:26 ` cvs-commit at gcc dot gnu.org
@ 2020-09-25 14:27 ` marxin at gcc dot gnu.org
2020-10-01 19:20 ` cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-09-25 14:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|11.0 |
Known to work| |11.0
--- Comment #16 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed on master so far.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug gcov-profile/64636] LTO PGO bootstrap fails on linux-sparc64 in stream_out_histogram_value
2015-01-16 21:57 [Bug lto/64636] New: Bootstrapping gcc-4.9.2 fails if lto is enabled carson at taltos dot org
` (9 preceding siblings ...)
2020-09-25 14:27 ` marxin at gcc dot gnu.org
@ 2020-10-01 19:20 ` cvs-commit at gcc dot gnu.org
2020-10-02 10:06 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-10-01 19:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636
--- Comment #17 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Martin Liska
<marxin@gcc.gnu.org>:
https://gcc.gnu.org/g:84dc3879f377ddaecb4054a7bf7671114dfb7228
commit r10-8840-g84dc3879f377ddaecb4054a7bf7671114dfb7228
Author: Martin Liska <mliska@suse.cz>
Date: Fri Sep 25 16:21:34 2020 +0200
gcov: fix streaming of HIST_TYPE_IOR histogram type.
gcc/ChangeLog:
PR gcov-profile/64636
* value-prof.c (stream_out_histogram_value): Allow negative
values for HIST_TYPE_IOR.
(cherry picked from commit 1921ebcaf6467996aede69e1bbe32400d8a20fe7)
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug gcov-profile/64636] LTO PGO bootstrap fails on linux-sparc64 in stream_out_histogram_value
2015-01-16 21:57 [Bug lto/64636] New: Bootstrapping gcc-4.9.2 fails if lto is enabled carson at taltos dot org
` (10 preceding siblings ...)
2020-10-01 19:20 ` cvs-commit at gcc dot gnu.org
@ 2020-10-02 10:06 ` cvs-commit at gcc dot gnu.org
2020-10-02 10:07 ` marxin at gcc dot gnu.org
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-10-02 10:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636
--- Comment #18 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Martin Liska
<marxin@gcc.gnu.org>:
https://gcc.gnu.org/g:7c55364eaaf5f882e80e8943e702081f9648f582
commit r9-8968-g7c55364eaaf5f882e80e8943e702081f9648f582
Author: Martin Liska <mliska@suse.cz>
Date: Thu Oct 1 21:28:30 2020 +0200
gcov: fix streaming of HIST_TYPE_IOR histogram type.
gcc/ChangeLog:
PR gcov-profile/64636
* value-prof.c (stream_out_histogram_value): Allow negative
values for HIST_TYPE_IOR.
(cherry picked from commit 1921ebcaf6467996aede69e1bbe32400d8a20fe7)
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug gcov-profile/64636] LTO PGO bootstrap fails on linux-sparc64 in stream_out_histogram_value
2015-01-16 21:57 [Bug lto/64636] New: Bootstrapping gcc-4.9.2 fails if lto is enabled carson at taltos dot org
` (11 preceding siblings ...)
2020-10-02 10:06 ` cvs-commit at gcc dot gnu.org
@ 2020-10-02 10:07 ` marxin at gcc dot gnu.org
2021-10-02 7:59 ` pinskia at gcc dot gnu.org
2021-10-02 8:00 ` pinskia at gcc dot gnu.org
14 siblings, 0 replies; 16+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-10-02 10:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #19 from Martin Liška <marxin at gcc dot gnu.org> ---
Resolved.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug gcov-profile/64636] LTO PGO bootstrap fails on linux-sparc64 in stream_out_histogram_value
2015-01-16 21:57 [Bug lto/64636] New: Bootstrapping gcc-4.9.2 fails if lto is enabled carson at taltos dot org
` (12 preceding siblings ...)
2020-10-02 10:07 ` marxin at gcc dot gnu.org
@ 2021-10-02 7:59 ` pinskia at gcc dot gnu.org
2021-10-02 8:00 ` pinskia at gcc dot gnu.org
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-02 7:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikulas at artax dot karlin.mff.cu
| |ni.cz
--- Comment #20 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 72848 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug gcov-profile/64636] LTO PGO bootstrap fails on linux-sparc64 in stream_out_histogram_value
2015-01-16 21:57 [Bug lto/64636] New: Bootstrapping gcc-4.9.2 fails if lto is enabled carson at taltos dot org
` (13 preceding siblings ...)
2021-10-02 7:59 ` pinskia at gcc dot gnu.org
@ 2021-10-02 8:00 ` pinskia at gcc dot gnu.org
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-02 8:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64636
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |10.3.0
Target Milestone|--- |9.4
^ permalink raw reply [flat|nested] 16+ messages in thread