This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/88033] New: ICE on valid code at -O2 and -O3 on x86-64-linux-gnu: in remove_some_program_points_and_update_live_ranges, at lra-lives.c:1179
- From: "su at cs dot ucdavis.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Nov 2018 13:18:04 +0000
- Subject: [Bug rtl-optimization/88033] New: ICE on valid code at -O2 and -O3 on x86-64-linux-gnu: in remove_some_program_points_and_update_live_ranges, at lra-lives.c:1179
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88033
Bug ID: 88033
Summary: ICE on valid code at -O2 and -O3 on x86-64-linux-gnu:
in remove_some_program_points_and_update_live_ranges,
at lra-lives.c:1179
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: su at cs dot ucdavis.edu
Target Milestone: ---
$ gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/home/su/software/tmp/gcc/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/9.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/home/su/software/tmp/gcc/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 9.0.0 20181115 (experimental) [trunk revision 266173] (GCC)
$
$ gcctk -Os small.c
$
$ gcctk -O2 small.c
during RTL pass: reload
small.c: In function ‘main’:
small.c:17:1: internal compiler error: in
remove_some_program_points_and_update_live_ranges, at lra-lives.c:1179
17 | }
| ^
0xc1e8ef remove_some_program_points_and_update_live_ranges
../../gcc-source-trunk/gcc/lra-lives.c:1179
0xc1e8ef compress_live_ranges
../../gcc-source-trunk/gcc/lra-lives.c:1308
0xc1e8ef lra_create_live_ranges_1
../../gcc-source-trunk/gcc/lra-lives.c:1461
0xc1eb5f lra_create_live_ranges(bool, bool)
../../gcc-source-trunk/gcc/lra-lives.c:1473
0xbfffe0 lra(_IO_FILE*)
../../gcc-source-trunk/gcc/lra.c:2483
0xbb27f9 do_reload
../../gcc-source-trunk/gcc/ira.c:5469
0xbb27f9 execute
../../gcc-source-trunk/gcc/ira.c:5653
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
$
-----------------------------------------------
long a, b, c;
long f (long e)
{
return (e & ~3000000000) < 0 ? a : a - e;
}
int main ()
{
if (!c)
return 0;
int g;
b = f (g);
while (1)
;
return 0;
}