Bug 23945 - [4.1 Regression] segv in is_gimple_variable() in tree-gimple.c:239
Summary: [4.1 Regression] segv in is_gimple_variable() in tree-gimple.c:239
Status: RESOLVED DUPLICATE of bug 22438
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: 4.1.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-18 11:51 UTC by marcus
Modified: 2005-09-18 14:44 UTC (History)
2 users (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
Known to work: 4.0.2
Known to fail: 4.1.0
Last reconfirmed: 2005-09-18 12:50:03


Attachments
bits.i (121 bytes, text/plain)
2005-09-18 11:52 UTC, marcus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description marcus 2005-09-18 11:51:49 UTC
gdb cc1 
r ~/bits.i -O2 
Starting 
program: /home/marcus/projects/gcc/BIN/libexec/gcc/x86_64-unknown-linux-gnu/4.1.0/cc1 
~/bits.i -O2 
 f 
Analyzing compilation unitPerforming intraprocedural optimizations 
Assembling functions: 
 f 
Program received signal SIGSEGV, Segmentation fault. 
is_gimple_variable (t=0x0) at /home/marcus/projects/gcc/gcc/tree-gimple.c:239 
239       return (TREE_CODE (t) == VAR_DECL 
(gdb) bt 
#0  is_gimple_variable (t=0x0) 
at /home/marcus/projects/gcc/gcc/tree-gimple.c:239 
#1  0x00000000004840b9 in is_gimple_val (t=0x0) 
at /home/marcus/projects/gcc/gcc/tree-gimple.c:366 
#2  0x000000000048a3b0 in force_gimple_operand (expr=0x0, stmts=0x7fffffffd4e8, 
simple=0 '\0', var=0x2aaaaadf15a0) 
    at /home/marcus/projects/gcc/gcc/gimplify.c:4929 
#3  0x00000000004efc2d in rewrite_use_nonlinear_expr (data=0x7fffffffd6e0, 
use=0xbf5300, cand=<value optimized out>) 
    at /home/marcus/projects/gcc/gcc/tree-ssa-loop-ivopts.c:5377 
#4  0x00000000004f49e4 in rewrite_uses (data=0x7fffffffd6e0) 
at /home/marcus/projects/gcc/gcc/tree-ssa-loop-ivopts.c:5736 
#5  0x00000000004f6117 in tree_ssa_iv_optimize (loops=0xbd78d0) 
at /home/marcus/projects/gcc/gcc/tree-ssa-loop-ivopts.c:5960
Comment 1 marcus 2005-09-18 11:52:18 UTC
Created attachment 9761 [details]
bits.i

gcc -c -O2 bits.i
Comment 2 Richard Biener 2005-09-18 12:50:03 UTC
get_computation (data->current_loop, use, cand); returns NULL and we happily
apply force_gimple_operand to it.  Bad.

Zdenek, can you investigate?
Thx.
Comment 3 Richard Biener 2005-09-18 14:44:09 UTC
A dup, actually.

*** This bug has been marked as a duplicate of 22438 ***