* [Bug middle-end/64809] ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode)
2015-01-27 1:11 [Bug c/64809] New: ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode) su at cs dot ucdavis.edu
@ 2015-01-27 7:11 ` trippels at gcc dot gnu.org
2015-01-27 7:14 ` trippels at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-01-27 7:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64809
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-01-27
CC| |trippels at gcc dot gnu.org
Component|c |middle-end
Target Milestone|--- |5.0
Ever confirmed|0 |1
--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
==5842== Invalid read of size 4
==5842== at 0x71563B: reorder_operands(basic_block_def*) (cfgexpand.c:5031)
==5842== by 0x721229: expand_gimple_basic_block(basic_block_def*, bool)
(cfgexpand.c:5091)
==5842== by 0x722637: (anonymous namespace)::pass_expand::execute(function*)
(cfgexpand.c:6003)
==5842== by 0xA28D0E: execute_one_pass(opt_pass*) (passes.c:2326)
==5842== by 0xA29185: execute_pass_list_1(opt_pass*) [clone .constprop.73]
(passes.c:2378)
==5842== by 0xA291D8: execute_pass_list(function*, opt_pass*)
(passes.c:2389)
==5842== by 0x74E04B: cgraph_node::expand() (cgraphunit.c:1804)
==5842== by 0x74F768: expand_all_functions (cgraphunit.c:1940)
==5842== by 0x74F768: symbol_table::compile() [clone .part.53]
(cgraphunit.c:2293)
==5842== by 0x75167F: compile (timevar.h:110)
==5842== by 0x75167F: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2370)
==5842== by 0x5F92CA: c_write_global_declarations() (c-decl.c:10789)
==5842== by 0xAE3203: compile_file() (toplev.c:606)
==5842== by 0x5E041A: do_compile (toplev.c:2045)
==5842== by 0x5E041A: toplev::main(int, char**) (toplev.c:2142)
==5842== Address 0x607cf2c is 54,956 bytes inside an unallocated block of size
98,160 in arena "client"
==5842==
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/64809] ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode)
2015-01-27 1:11 [Bug c/64809] New: ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode) su at cs dot ucdavis.edu
2015-01-27 7:11 ` [Bug middle-end/64809] " trippels at gcc dot gnu.org
@ 2015-01-27 7:14 ` trippels at gcc dot gnu.org
2015-01-27 9:15 ` [Bug middle-end/64809] [5 Regression] " jakub at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-01-27 7:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64809
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ienkovich at gcc dot gnu.org
--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Started with r219646.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/64809] [5 Regression] ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode)
2015-01-27 1:11 [Bug c/64809] New: ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode) su at cs dot ucdavis.edu
2015-01-27 7:11 ` [Bug middle-end/64809] " trippels at gcc dot gnu.org
2015-01-27 7:14 ` trippels at gcc dot gnu.org
@ 2015-01-27 9:15 ` jakub at gcc dot gnu.org
2015-01-27 9:43 ` trippels at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-27 9:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64809
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
CC| |jakub at gcc dot gnu.org
Summary|ICE at -O3 with -g enabled |[5 Regression] ICE at -O3
|on x86_64-linux-gnu (in |with -g enabled on
|32-bit mode) |x86_64-linux-gnu (in 32-bit
| |mode)
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I can't seem to reproduce this, even with valgrind.
Line 5031 is:
lattice[i] += lattice[gimple_uid (def_stmt)];
But adding a gcc_assert (gimple_bb (def_stmt) == bb);
ICEs on this testcase, so the assumptions that we only TER inside bbs is
apparently false, either due to some bug or intentionally so.
In that case, either we need to fix that bug or change reorder_operands back to
check gimple_bb (def_stmt) == bb in all 3 spots where reorder_operands calls
get_gimple_for_ssa_name.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/64809] [5 Regression] ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode)
2015-01-27 1:11 [Bug c/64809] New: ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode) su at cs dot ucdavis.edu
` (2 preceding siblings ...)
2015-01-27 9:15 ` [Bug middle-end/64809] [5 Regression] " jakub at gcc dot gnu.org
@ 2015-01-27 9:43 ` trippels at gcc dot gnu.org
2015-01-27 10:16 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-01-27 9:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64809
--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Please note that the testcase is nondeterministic. That is also the reason
why it is hard to reduce. You may need to run gcc several times to hit the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/64809] [5 Regression] ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode)
2015-01-27 1:11 [Bug c/64809] New: ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode) su at cs dot ucdavis.edu
` (3 preceding siblings ...)
2015-01-27 9:43 ` trippels at gcc dot gnu.org
@ 2015-01-27 10:16 ` jakub at gcc dot gnu.org
2015-01-27 11:13 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-27 10:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64809
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 34590
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34590&action=edit
gcc5-pr64809.patch
IMHO in any case we should apply something like the attached patch, there is no
point to even look at the debug stmts and TER really shouldn't make any
guarantees for uses in debug stmts, those must be by definition ignored for TER
purposes. Whether that is sufficient is another question.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/64809] [5 Regression] ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode)
2015-01-27 1:11 [Bug c/64809] New: ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode) su at cs dot ucdavis.edu
` (4 preceding siblings ...)
2015-01-27 10:16 ` jakub at gcc dot gnu.org
@ 2015-01-27 11:13 ` rguenth at gcc dot gnu.org
2015-01-27 16:41 ` ysrumyan at gmail dot com
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-01-27 11:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64809
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu.org
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #5)
> Created attachment 34590 [details]
> gcc5-pr64809.patch
>
> IMHO in any case we should apply something like the attached patch, there is
> no point to even look at the debug stmts and TER really shouldn't make any
> guarantees for uses in debug stmts, those must be by definition ignored for
> TER purposes. Whether that is sufficient is another question.
Agreed.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/64809] [5 Regression] ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode)
2015-01-27 1:11 [Bug c/64809] New: ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode) su at cs dot ucdavis.edu
` (5 preceding siblings ...)
2015-01-27 11:13 ` rguenth at gcc dot gnu.org
@ 2015-01-27 16:41 ` ysrumyan at gmail dot com
2015-01-28 11:47 ` ienkovich at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ysrumyan at gmail dot com @ 2015-01-27 16:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64809
Yuri Rumyantsev <ysrumyan at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ysrumyan at gmail dot com
--- Comment #7 from Yuri Rumyantsev <ysrumyan at gmail dot com> ---
I sent the patch with regression test for review.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/64809] [5 Regression] ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode)
2015-01-27 1:11 [Bug c/64809] New: ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode) su at cs dot ucdavis.edu
` (6 preceding siblings ...)
2015-01-27 16:41 ` ysrumyan at gmail dot com
@ 2015-01-28 11:47 ` ienkovich at gcc dot gnu.org
2015-01-28 14:02 ` jakub at gcc dot gnu.org
2015-01-29 12:21 ` ienkovich at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: ienkovich at gcc dot gnu.org @ 2015-01-28 11:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64809
--- Comment #8 from ienkovich at gcc dot gnu.org ---
Author: ienkovich
Date: Wed Jan 28 11:46:44 2015
New Revision: 220205
URL: https://gcc.gnu.org/viewcvs?rev=220205&root=gcc&view=rev
Log:
gcc/
PR middle-end/64809
* cfgexpand.c (reorder_operands): Skip debug gimples.
gcc/testsuite/
PR middle-end/64809
* gcc.dg/pr64809.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr64809.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cfgexpand.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/64809] [5 Regression] ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode)
2015-01-27 1:11 [Bug c/64809] New: ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode) su at cs dot ucdavis.edu
` (7 preceding siblings ...)
2015-01-28 11:47 ` ienkovich at gcc dot gnu.org
@ 2015-01-28 14:02 ` jakub at gcc dot gnu.org
2015-01-29 12:21 ` ienkovich at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-28 14:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64809
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/64809] [5 Regression] ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode)
2015-01-27 1:11 [Bug c/64809] New: ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode) su at cs dot ucdavis.edu
` (8 preceding siblings ...)
2015-01-28 14:02 ` jakub at gcc dot gnu.org
@ 2015-01-29 12:21 ` ienkovich at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: ienkovich at gcc dot gnu.org @ 2015-01-29 12:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64809
--- Comment #10 from ienkovich at gcc dot gnu.org ---
Author: ienkovich
Date: Thu Jan 29 12:20:55 2015
New Revision: 220241
URL: https://gcc.gnu.org/viewcvs?rev=220241&root=gcc&view=rev
Log:
gcc/testsuite/
PR middle-end/64809
* gcc.dg/pr64809.c: Delete.
Removed:
trunk/gcc/testsuite/gcc.dg/pr64809.c
Modified:
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 11+ messages in thread