public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/111054] New: [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability
@ 2023-08-17 21:50 zsojka at seznam dot cz
2023-08-17 22:34 ` [Bug middle-end/111054] " pinskia at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: zsojka at seznam dot cz @ 2023-08-17 21:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111054
Bug ID: 111054
Summary: [14 Regression] ICE: in to_sreal, at
profile-count.cc:472 with -O3
-fno-guess-branch-probability
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Created attachment 55749
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55749&action=edit
reduced testcase
Compiler output:
$ x86_64-pc-linux-gnu-gcc -O3 -fno-guess-branch-probability testcase.c
during GIMPLE pass: lsplit
testcase.c: In function 'foo':
testcase.c:5:1: internal compiler error: in to_sreal, at profile-count.cc:472
5 | foo (void)
| ^~~
0x7c20ad profile_probability::to_sreal() const
/repo/gcc-trunk/gcc/profile-count.cc:472
0x16112e2 split_loop
/repo/gcc-trunk/gcc/tree-ssa-loop-split.cc:716
0x1611d89 tree_ssa_split_loops
/repo/gcc-trunk/gcc/tree-ssa-loop-split.cc:1773
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r14-3275-20230817153757-gc6259c4975e-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r14-3275-20230817153757-gc6259c4975e-checking-yes-rtl-df-extra-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.0 20230817 (experimental) (GCC)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/111054] [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability
2023-08-17 21:50 [Bug middle-end/111054] New: [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability zsojka at seznam dot cz
@ 2023-08-17 22:34 ` pinskia at gcc dot gnu.org
2023-08-20 8:22 ` pinskia at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-08-17 22:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111054
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |14.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/111054] [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability
2023-08-17 21:50 [Bug middle-end/111054] New: [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability zsojka at seznam dot cz
2023-08-17 22:34 ` [Bug middle-end/111054] " pinskia at gcc dot gnu.org
@ 2023-08-20 8:22 ` pinskia at gcc dot gnu.org
2023-08-22 12:41 ` hubicka at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-08-20 8:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111054
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2023-08-20
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/111054] [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability
2023-08-17 21:50 [Bug middle-end/111054] New: [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability zsojka at seznam dot cz
2023-08-17 22:34 ` [Bug middle-end/111054] " pinskia at gcc dot gnu.org
2023-08-20 8:22 ` pinskia at gcc dot gnu.org
@ 2023-08-22 12:41 ` hubicka at gcc dot gnu.org
2023-09-20 16:55 ` pinskia at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: hubicka at gcc dot gnu.org @ 2023-08-22 12:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111054
--- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
This is a missing check for profile presence (we can not convert undefined
probability to sreal). I will fix that.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/111054] [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability
2023-08-17 21:50 [Bug middle-end/111054] New: [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability zsojka at seznam dot cz
` (2 preceding siblings ...)
2023-08-22 12:41 ` hubicka at gcc dot gnu.org
@ 2023-09-20 16:55 ` pinskia at gcc dot gnu.org
2023-10-17 12:26 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-20 16:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111054
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |19373742 at buaa dot edu.cn
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 111483 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/111054] [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability
2023-08-17 21:50 [Bug middle-end/111054] New: [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability zsojka at seznam dot cz
` (3 preceding siblings ...)
2023-09-20 16:55 ` pinskia at gcc dot gnu.org
@ 2023-10-17 12:26 ` rguenth at gcc dot gnu.org
2024-01-19 17:50 ` [Bug middle-end/111054] [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability since r14-2967 jakub at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-10-17 12:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111054
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2023-08-20 00:00:00 |2023-10-17
Priority|P3 |P1
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Re-confirmed.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/111054] [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability since r14-2967
2023-08-17 21:50 [Bug middle-end/111054] New: [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability zsojka at seznam dot cz
` (4 preceding siblings ...)
2023-10-17 12:26 ` rguenth at gcc dot gnu.org
@ 2024-01-19 17:50 ` jakub at gcc dot gnu.org
2024-02-14 16:37 ` cvs-commit at gcc dot gnu.org
2024-02-14 16:39 ` hubicka at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-01-19 17:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111054
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[14 Regression] ICE: in |[14 Regression] ICE: in
|to_sreal, at |to_sreal, at
|profile-count.cc:472 with |profile-count.cc:472 with
|-O3 |-O3
|-fno-guess-branch-probabili |-fno-guess-branch-probabili
|ty |ty since r14-2967
CC| |jakub at gcc dot gnu.org
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r14-2967-gd6ac3aae2a32869d9d37f3bc7783d9bbad27d72b
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/111054] [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability since r14-2967
2023-08-17 21:50 [Bug middle-end/111054] New: [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability zsojka at seznam dot cz
` (5 preceding siblings ...)
2024-01-19 17:50 ` [Bug middle-end/111054] [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability since r14-2967 jakub at gcc dot gnu.org
@ 2024-02-14 16:37 ` cvs-commit at gcc dot gnu.org
2024-02-14 16:39 ` hubicka at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-02-14 16:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111054
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jan Hubicka <hubicka@gcc.gnu.org>:
https://gcc.gnu.org/g:8d51bfe0f97a27c749c36003867901338833340a
commit r14-8985-g8d51bfe0f97a27c749c36003867901338833340a
Author: Jan Hubicka <jh@suse.cz>
Date: Wed Feb 14 17:37:34 2024 +0100
Fix ICE in loop splitting with -fno-guess-branch-probability
PR tree-optimization/111054
gcc/ChangeLog:
* tree-ssa-loop-split.cc (split_loop): Check for profile being
present.
gcc/testsuite/ChangeLog:
* gcc.c-torture/compile/pr111054.c: New test.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/111054] [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability since r14-2967
2023-08-17 21:50 [Bug middle-end/111054] New: [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability zsojka at seznam dot cz
` (6 preceding siblings ...)
2024-02-14 16:37 ` cvs-commit at gcc dot gnu.org
@ 2024-02-14 16:39 ` hubicka at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: hubicka at gcc dot gnu.org @ 2024-02-14 16:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111054
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-02-14 16:39 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-17 21:50 [Bug middle-end/111054] New: [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability zsojka at seznam dot cz
2023-08-17 22:34 ` [Bug middle-end/111054] " pinskia at gcc dot gnu.org
2023-08-20 8:22 ` pinskia at gcc dot gnu.org
2023-08-22 12:41 ` hubicka at gcc dot gnu.org
2023-09-20 16:55 ` pinskia at gcc dot gnu.org
2023-10-17 12:26 ` rguenth at gcc dot gnu.org
2024-01-19 17:50 ` [Bug middle-end/111054] [14 Regression] ICE: in to_sreal, at profile-count.cc:472 with -O3 -fno-guess-branch-probability since r14-2967 jakub at gcc dot gnu.org
2024-02-14 16:37 ` cvs-commit at gcc dot gnu.org
2024-02-14 16:39 ` hubicka at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).