Bug 71555 - ICE: compilation "never" finishes with -O -mtune=sandybridge -mavx512bw
Summary: ICE: compilation "never" finishes with -O -mtune=sandybridge -mavx512bw
Status: SUSPENDED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 7.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: compile-time-hog, ra
Depends on:
Blocks:
 
Reported: 2016-06-16 10:28 UTC by Zdenek Sojka
Modified: 2019-11-14 08:47 UTC (History)
3 users (show)

See Also:
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Build: x86_64-pc-linux-gnu
Known to work: 6.1.1
Known to fail: 7.0
Last reconfirmed: 2016-06-16 00:00:00


Attachments
reduced testcase (103 bytes, text/plain)
2016-06-16 10:28 UTC, Zdenek Sojka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zdenek Sojka 2016-06-16 10:28:37 UTC
Created attachment 38710 [details]
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O -mtune=sandybridge -mavx512bw testcase.c
(nothing)

The cc1 process is slowly eating memory.

Backtrace:
(gdb) bt
#0  bitmap_set_bit (head=head@entry=0x7fffffffcfc0, bit=1153) at /repo/gcc-trunk/gcc/bitmap.c:602
#1  0x0000000000a346f7 in assign_spill_hard_regs (n=1, pseudo_regnos=0x25f7260) at /repo/gcc-trunk/gcc/lra-spills.c:275
#2  lra_spill () at /repo/gcc-trunk/gcc/lra-spills.c:587
#3  0x0000000000a0b2ad in lra (f=<optimized out>) at /repo/gcc-trunk/gcc/lra.c:2380
#4  0x00000000009b24ba in do_reload () at /repo/gcc-trunk/gcc/ira.c:5384
#5  (anonymous namespace)::pass_reload::execute (this=<optimized out>) at /repo/gcc-trunk/gcc/ira.c:5568
#6  0x0000000000ab8447 in execute_one_pass (pass=pass@entry=0x228db00) at /repo/gcc-trunk/gcc/passes.c:2344
#7  0x0000000000ab8a18 in execute_pass_list_1 (pass=0x228db00) at /repo/gcc-trunk/gcc/passes.c:2428
#8  0x0000000000ab8a2a in execute_pass_list_1 (pass=0x228ca80) at /repo/gcc-trunk/gcc/passes.c:2429
#9  0x0000000000ab8a75 in execute_pass_list (fn=<optimized out>, pass=<optimized out>) at /repo/gcc-trunk/gcc/passes.c:2439
#10 0x000000000076a554 in cgraph_node::expand (this=this@entry=0x7ffff6e4c000) at /repo/gcc-trunk/gcc/cgraphunit.c:1983
#11 0x000000000076beaf in expand_all_functions () at /repo/gcc-trunk/gcc/cgraphunit.c:2119
#12 symbol_table::compile (this=this@entry=0x7ffff6c580a8) at /repo/gcc-trunk/gcc/cgraphunit.c:2475
#13 0x000000000076e18a in symbol_table::compile (this=0x7ffff6c580a8) at /repo/gcc-trunk/gcc/cgraphunit.c:2568
#14 symbol_table::finalize_compilation_unit (this=0x7ffff6c580a8) at /repo/gcc-trunk/gcc/cgraphunit.c:2565
#15 0x0000000000bc1fcb in compile_file () at /repo/gcc-trunk/gcc/toplev.c:490
#16 0x00000000005c92fa in do_compile () at /repo/gcc-trunk/gcc/toplev.c:1998
#17 toplev::main (this=this@entry=0x7fffffffd2e0, argc=<optimized out>, argc@entry=16, argv=<optimized out>, argv@entry=0x7fffffffd3e8) at /repo/gcc-trunk/gcc/toplev.c:2127
#18 0x00000000005cb2b7 in main (argc=16, argv=0x7fffffffd3e8) at /repo/gcc-trunk/gcc/main.c:39
Comment 1 Martin Liška 2016-06-16 10:57:19 UTC
Confirmed on trunk.
Comment 2 Jakub Jelinek 2016-06-16 14:36:40 UTC
Started with r235523.
Comment 3 uros 2016-06-26 20:57:07 UTC
Author: uros
Date: Sun Jun 26 20:56:34 2016
New Revision: 237792

URL: https://gcc.gnu.org/viewcvs?rev=237792&root=gcc&view=rev
Log:
	PR target/70902
	PR target/71453
	PR target/71555
	PR target/71596
	PR target/71657
	* config/i386/i386.c (TARGET_SPILL_CLASS): #if 0 out the definition.
	(ix86_spill_class): Disable to always return NO_REGS.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
Comment 4 Uroš Bizjak 2016-06-26 21:05:46 UTC
Suspended until the infrastructure is ready.
Comment 5 Jakub Jelinek 2016-11-05 16:10:13 UTC
As it has been disabled, it is not a regression anymore.
Comment 6 Jakub Jelinek 2017-05-02 15:57:40 UTC
GCC 7.1 has been released.
Comment 7 Richard Biener 2018-01-25 08:22:20 UTC
GCC 7.3 is being released, adjusting target milestone.