public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/110940] New: ICE at -O3 on x86_64-linux-gnu: in apply_scale, at profile-count.h:1180
@ 2023-08-08 3:28 zhendong.su at inf dot ethz.ch
2023-08-08 6:17 ` [Bug rtl-optimization/110940] [14 Regression] " pinskia at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: zhendong.su at inf dot ethz.ch @ 2023-08-08 3:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110940
Bug ID: 110940
Summary: ICE at -O3 on x86_64-linux-gnu: in apply_scale, at
profile-count.h:1180
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: zhendong.su at inf dot ethz.ch
Target Milestone: ---
This appears to be a recent regression.
Compiler Explorer: https://godbolt.org/z/evGMc8xEW
[595] % gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/local/home/suz/suz-local/software/local/gcc-trunk/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-trunk/configure --disable-bootstrap
--enable-checking=yes --prefix=/local/suz-local/software/local/gcc-trunk
--enable-sanitizers --enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.0.0 20230808 (experimental) (GCC)
[596] %
[596] % gcctk -O3 -c small.c
during GIMPLE pass: vect
small.c: In function ‘main’:
small.c:3:5: internal compiler error: in apply_scale, at profile-count.h:1180
3 | int main() {
| ^~~~
0xab66c3 profile_count::apply_scale(profile_count, profile_count) const
../../gcc-trunk/gcc/profile-count.h:1180
0x10311cf fold_loop_internal_call(gimple*, tree_node*)
../../gcc-trunk/gcc/tree-cfg.cc:7738
0x12d2ef5 execute
../../gcc-trunk/gcc/tree-vectorizer.cc:1328
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.
[597] %
[597] % cat small.c
int a, b[1], c, *d = &a, e, f, g, h, i, j;
extern int l();
int main() {
if (l())
for (;;)
for (; g;)
for (; e;)
for (; a;)
for (; f;)
for (; h;)
for (; i;)
for (; c;)
for (; j;)
;
l();
for (; c; c++)
b[*d] = 0;
return 0;
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/110940] [14 Regression] ICE at -O3 on x86_64-linux-gnu: in apply_scale, at profile-count.h:1180
2023-08-08 3:28 [Bug rtl-optimization/110940] New: ICE at -O3 on x86_64-linux-gnu: in apply_scale, at profile-count.h:1180 zhendong.su at inf dot ethz.ch
@ 2023-08-08 6:17 ` pinskia at gcc dot gnu.org
2023-08-15 13:31 ` [Bug tree-optimization/110940] " hubicka at gcc dot gnu.org
2023-08-23 9:15 ` cvs-commit at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-08-08 6:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110940
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE at -O3 on |[14 Regression] ICE at -O3
|x86_64-linux-gnu: in |on x86_64-linux-gnu: in
|apply_scale, at |apply_scale, at
|profile-count.h:1180 |profile-count.h:1180
Keywords| |ice-on-valid-code
Version|unknown |14.0
Target Milestone|--- |14.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/110940] [14 Regression] ICE at -O3 on x86_64-linux-gnu: in apply_scale, at profile-count.h:1180
2023-08-08 3:28 [Bug rtl-optimization/110940] New: ICE at -O3 on x86_64-linux-gnu: in apply_scale, at profile-count.h:1180 zhendong.su at inf dot ethz.ch
2023-08-08 6:17 ` [Bug rtl-optimization/110940] [14 Regression] " pinskia at gcc dot gnu.org
@ 2023-08-15 13:31 ` hubicka at gcc dot gnu.org
2023-08-23 9:15 ` cvs-commit at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: hubicka at gcc dot gnu.org @ 2023-08-15 13:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110940
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Fixed by g:882af290c137dfab5d99b88e6dbecc5e75d85a0b
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/110940] [14 Regression] ICE at -O3 on x86_64-linux-gnu: in apply_scale, at profile-count.h:1180
2023-08-08 3:28 [Bug rtl-optimization/110940] New: ICE at -O3 on x86_64-linux-gnu: in apply_scale, at profile-count.h:1180 zhendong.su at inf dot ethz.ch
2023-08-08 6:17 ` [Bug rtl-optimization/110940] [14 Regression] " pinskia at gcc dot gnu.org
2023-08-15 13:31 ` [Bug tree-optimization/110940] " hubicka at gcc dot gnu.org
@ 2023-08-23 9:15 ` cvs-commit at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-08-23 9:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110940
--- Comment #2 from CVS 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:7a2e232fa6e0ce2120dedcb340d683f6ac9b3f19
commit r14-3406-g7a2e232fa6e0ce2120dedcb340d683f6ac9b3f19
Author: Jan Hubicka <jh@suse.cz>
Date: Wed Aug 23 11:14:53 2023 +0200
Add testcase for PR110940
gcc/testsuite/ChangeLog:
PR middle-end/110940
* gcc.c-torture/compile/pr110940.c: New test.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-08-23 9:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-08 3:28 [Bug rtl-optimization/110940] New: ICE at -O3 on x86_64-linux-gnu: in apply_scale, at profile-count.h:1180 zhendong.su at inf dot ethz.ch
2023-08-08 6:17 ` [Bug rtl-optimization/110940] [14 Regression] " pinskia at gcc dot gnu.org
2023-08-15 13:31 ` [Bug tree-optimization/110940] " hubicka at gcc dot gnu.org
2023-08-23 9:15 ` cvs-commit 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).