public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/65289] New: [5.0 regression] ICE when compiling libjpegturbo with -floop-nest-optimize
@ 2015-03-03 0:37 matt at use dot net
2015-03-03 0:45 ` [Bug middle-end/65289] " matt at use dot net
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: matt at use dot net @ 2015-03-03 0:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65289
Bug ID: 65289
Summary: [5.0 regression] ICE when compiling libjpegturbo with
-floop-nest-optimize
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: matt at use dot net
Created attachment 34929
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34929&action=edit
pre-processed source file that reproduces the crash
Using either Ubuntu's gcc-snapshot on amd64 and my armv6j cross-compiling
toolchain, I get a crash when compiling libjpegturbo 1.4.0 from sources when
using -floop-nest-optimize. Pre-processed source is attached (generated by
cross-toolchain, but amd64 GCC reproduces same crash).
The crash does NOT happen with 4.9.1 from Ubuntu 14.10 on amd64.
Ubuntu version string:
gcc (Ubuntu 20150225-1ubuntu1) 5.0.0 20150225 (experimental) [trunk revision
220970]
armv6j cross-compiler built from SVN version string:
arm-kindle-linux-gnueabi-gcc (GCC) 5.0.0 20150224 (experimental)
To reproduce:
CFLAGS="-O2 -floop-nest-optimize" CC=/path/to/gcc5/bin/gcc ./configure
--disable-static --without-simd && make
.... or....
/path/to/gcc5/bin/gcc -O2 -floop-nest-optimize turbojpeg.c.i
result:
turbojpeg.c: In function 'tjCompress2':
turbojpeg.c:713:6: error: loop 3's latch is marked as part of irreducible
region
DLLEXPORT int DLLCALL tjCompress2(tjhandle handle, unsigned char *srcBuf,
^
turbojpeg.c:713:6: error: edge from 64 to 78 should be marked irreducible
turbojpeg.c:713:6: error: basic block 78 should be marked irreducible
turbojpeg.c:713:6: error: edge from 78 to 82 should be marked irreducible
turbojpeg.c:713:6: error: edge from 78 to 92 should be marked irreducible
turbojpeg.c:713:6: error: basic block 92 should be marked irreducible
turbojpeg.c:713:6: error: edge from 92 to 98 should be marked irreducible
turbojpeg.c:713:6: error: edge from 92 to 95 should be marked irreducible
turbojpeg.c:713:6: error: basic block 95 should be marked irreducible
turbojpeg.c:713:6: error: edge from 95 to 93 should be marked irreducible
turbojpeg.c:713:6: error: basic block 98 should be marked irreducible
turbojpeg.c:713:6: error: edge from 98 to 96 should be marked irreducible
turbojpeg.c:713:6: error: edge from 99 to 100 should be marked irreducible
turbojpeg.c:713:6: error: basic block 100 should be marked irreducible
turbojpeg.c:713:6: error: edge from 100 to 94 should be marked irreducible
turbojpeg.c:713:6: error: basic block 94 should be marked irreducible
turbojpeg.c:713:6: error: edge from 94 to 93 should be marked irreducible
turbojpeg.c:713:6: error: basic block 93 should be marked irreducible
turbojpeg.c:713:6: error: edge from 93 to 81 should be marked irreducible
turbojpeg.c:713:6: error: basic block 81 should be marked irreducible
turbojpeg.c:713:6: error: edge from 81 to 79 should be marked irreducible
turbojpeg.c:713:6: error: basic block 82 should be marked irreducible
turbojpeg.c:713:6: error: edge from 82 to 88 should be marked irreducible
turbojpeg.c:713:6: error: edge from 82 to 85 should be marked irreducible
turbojpeg.c:713:6: error: basic block 85 should be marked irreducible
turbojpeg.c:713:6: error: edge from 85 to 83 should be marked irreducible
turbojpeg.c:713:6: error: basic block 88 should be marked irreducible
turbojpeg.c:713:6: error: edge from 88 to 86 should be marked irreducible
turbojpeg.c:713:6: error: edge from 89 to 90 should be marked irreducible
turbojpeg.c:713:6: error: basic block 90 should be marked irreducible
turbojpeg.c:713:6: error: edge from 90 to 84 should be marked irreducible
turbojpeg.c:713:6: error: basic block 84 should be marked irreducible
turbojpeg.c:713:6: error: edge from 84 to 83 should be marked irreducible
turbojpeg.c:713:6: error: basic block 83 should be marked irreducible
turbojpeg.c:713:6: error: edge from 83 to 80 should be marked irreducible
turbojpeg.c:713:6: error: basic block 80 should be marked irreducible
turbojpeg.c:713:6: error: edge from 80 to 79 should be marked irreducible
turbojpeg.c:713:6: error: basic block 79 should be marked irreducible
turbojpeg.c:713:6: error: edge from 79 to 67 should be marked irreducible
turbojpeg.c:713:6: error: basic block 67 should be marked irreducible
turbojpeg.c:713:6: error: edge from 67 to 65 should be marked irreducible
turbojpeg.c:713:6: error: edge from 68 to 71 should be marked irreducible
turbojpeg.c:713:6: error: basic block 71 should be marked irreducible
turbojpeg.c:713:6: error: edge from 71 to 69 should be marked irreducible
turbojpeg.c:713:6: error: basic block 72 should not be marked irreducible
turbojpeg.c:713:6: error: edge from 72 to 77 should not be marked irreducible
turbojpeg.c:713:6: error: basic block 77 should not be marked irreducible
turbojpeg.c:713:6: error: edge from 77 to 75 should not be marked irreducible
turbojpeg.c:713:6: error: basic block 75 should not be marked irreducible
turbojpeg.c:713:6: error: edge from 75 to 76 should be marked irreducible
turbojpeg.c:713:6: error: basic block 73 should not be marked irreducible
turbojpeg.c:713:6: error: edge from 73 to 72 should not be marked irreducible
turbojpeg.c:713:6: error: basic block 76 should be marked irreducible
turbojpeg.c:713:6: error: edge from 76 to 70 should be marked irreducible
turbojpeg.c:713:6: internal compiler error: in verify_loop_structure, at
cfgloop.c:1652
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/65289] [5.0 regression] ICE when compiling libjpegturbo with -floop-nest-optimize
2015-03-03 0:37 [Bug middle-end/65289] New: [5.0 regression] ICE when compiling libjpegturbo with -floop-nest-optimize matt at use dot net
@ 2015-03-03 0:45 ` matt at use dot net
2015-03-03 9:53 ` [Bug middle-end/65289] [5 " rguenth at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: matt at use dot net @ 2015-03-03 0:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65289
--- Comment #1 from Matt Hargett <matt at use dot net> ---
Also reproducible with -O2 -fgraphite-identity .
I use both of these optimizations regularly to help get the most out of
prefetch on the embedded ARM targets I work on.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/65289] [5 regression] ICE when compiling libjpegturbo with -floop-nest-optimize
2015-03-03 0:37 [Bug middle-end/65289] New: [5.0 regression] ICE when compiling libjpegturbo with -floop-nest-optimize matt at use dot net
2015-03-03 0:45 ` [Bug middle-end/65289] " matt at use dot net
@ 2015-03-03 9:53 ` rguenth at gcc dot gnu.org
2015-04-22 11:58 ` [Bug middle-end/65289] [5/6 " jakub at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-03-03 9:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65289
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |5.0
Summary|[5.0 regression] ICE when |[5 regression] ICE when
|compiling libjpegturbo with |compiling libjpegturbo with
|-floop-nest-optimize |-floop-nest-optimize
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/65289] [5/6 regression] ICE when compiling libjpegturbo with -floop-nest-optimize
2015-03-03 0:37 [Bug middle-end/65289] New: [5.0 regression] ICE when compiling libjpegturbo with -floop-nest-optimize matt at use dot net
2015-03-03 0:45 ` [Bug middle-end/65289] " matt at use dot net
2015-03-03 9:53 ` [Bug middle-end/65289] [5 " rguenth at gcc dot gnu.org
@ 2015-04-22 11:58 ` jakub at gcc dot gnu.org
2015-07-16 9:15 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-22 11:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65289
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|5.0 |5.2
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 5.1 has been released.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/65289] [5/6 regression] ICE when compiling libjpegturbo with -floop-nest-optimize
2015-03-03 0:37 [Bug middle-end/65289] New: [5.0 regression] ICE when compiling libjpegturbo with -floop-nest-optimize matt at use dot net
` (2 preceding siblings ...)
2015-04-22 11:58 ` [Bug middle-end/65289] [5/6 " jakub at gcc dot gnu.org
@ 2015-07-16 9:15 ` rguenth at gcc dot gnu.org
2021-05-14 9:47 ` [Bug middle-end/65289] [9/10/11/12 " jakub at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-07-16 9:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65289
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|5.2 |5.3
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 5.2 is being released, adjusting target milestone to 5.3.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/65289] [9/10/11/12 regression] ICE when compiling libjpegturbo with -floop-nest-optimize
2015-03-03 0:37 [Bug middle-end/65289] New: [5.0 regression] ICE when compiling libjpegturbo with -floop-nest-optimize matt at use dot net
` (3 preceding siblings ...)
2015-07-16 9:15 ` rguenth at gcc dot gnu.org
@ 2021-05-14 9:47 ` jakub at gcc dot gnu.org
2021-06-01 8:06 ` rguenth at gcc dot gnu.org
2021-12-19 4:49 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-14 9:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65289
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|8.5 |9.4
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 8 branch is being closed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/65289] [9/10/11/12 regression] ICE when compiling libjpegturbo with -floop-nest-optimize
2015-03-03 0:37 [Bug middle-end/65289] New: [5.0 regression] ICE when compiling libjpegturbo with -floop-nest-optimize matt at use dot net
` (4 preceding siblings ...)
2021-05-14 9:47 ` [Bug middle-end/65289] [9/10/11/12 " jakub at gcc dot gnu.org
@ 2021-06-01 8:06 ` rguenth at gcc dot gnu.org
2021-12-19 4:49 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01 8:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65289
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.4 |9.5
--- Comment #13 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/65289] [9/10/11/12 regression] ICE when compiling libjpegturbo with -floop-nest-optimize
2015-03-03 0:37 [Bug middle-end/65289] New: [5.0 regression] ICE when compiling libjpegturbo with -floop-nest-optimize matt at use dot net
` (5 preceding siblings ...)
2021-06-01 8:06 ` rguenth at gcc dot gnu.org
@ 2021-12-19 4:49 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-19 4:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65289
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Keywords| |ice-checking,
| |ice-on-valid-code
Target Milestone|9.5 |6.0
Resolution|--- |FIXED
--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed a long time ago.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-12-19 4:49 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-03 0:37 [Bug middle-end/65289] New: [5.0 regression] ICE when compiling libjpegturbo with -floop-nest-optimize matt at use dot net
2015-03-03 0:45 ` [Bug middle-end/65289] " matt at use dot net
2015-03-03 9:53 ` [Bug middle-end/65289] [5 " rguenth at gcc dot gnu.org
2015-04-22 11:58 ` [Bug middle-end/65289] [5/6 " jakub at gcc dot gnu.org
2015-07-16 9:15 ` rguenth at gcc dot gnu.org
2021-05-14 9:47 ` [Bug middle-end/65289] [9/10/11/12 " jakub at gcc dot gnu.org
2021-06-01 8:06 ` rguenth at gcc dot gnu.org
2021-12-19 4:49 ` pinskia 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).