This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/46893] New: [4.5/4.6 Regression] ICE: in trunc_int_for_mode, at explow.c:56 with -O -g


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46893

           Summary: [4.5/4.6 Regression] ICE: in trunc_int_for_mode, at
                    explow.c:56 with -O -g
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


Created attachment 22714
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22714
reduced testcase (from gcc.dg/980526-1.c)

Compiler output:
$ gcc -O -g pr46893.c        
pr46893.c: In function 'foo':
pr46893.c:12:1: internal compiler error: in trunc_int_for_mode, at explow.c:56
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

(gdb) bt
#0  fancy_abort (file=0x1103c60 "/mnt/svn/gcc-trunk/gcc/explow.c", line=56,
function=0x1103db0 "trunc_int_for_mode")
    at /mnt/svn/gcc-trunk/gcc/diagnostic.c:892
#1  0x000000000068c5ef in trunc_int_for_mode (c=<value optimized out>,
mode=<value optimized out>)
    at /mnt/svn/gcc-trunk/gcc/explow.c:56
#2  0x0000000000671df9 in gen_int_mode (c=<value optimized out>, mode=<value
optimized out>)
    at /mnt/svn/gcc-trunk/gcc/emit-rtl.c:426
#3  0x00000000008b7a76 in simplify_const_unary_operation (code=<value optimized
out>, mode=DFmode, op=0x7ffff5ccf390, 
    op_mode=<value optimized out>) at
/mnt/svn/gcc-trunk/gcc/simplify-rtx.c:1377
#4  0x00000000008b3c50 in simplify_unary_operation (code=NEG, mode=DFmode,
op=0x7ffff5ccf390, op_mode=DFmode)
    at /mnt/svn/gcc-trunk/gcc/simplify-rtx.c:522
#5  0x0000000000608246 in cselib_expand_value_rtx_1 (orig=0x7ffff5ccf3b0,
evd=<value optimized out>, 
    max_depth=<value optimized out>) at /mnt/svn/gcc-trunk/gcc/cselib.c:1475
#6  0x000000000060964f in cselib_expand_value_rtx_cb (orig=<value optimized
out>, regs_active=<value optimized out>, 
    max_depth=<value optimized out>, cb=<value optimized out>, data=<value
optimized out>)
    at /mnt/svn/gcc-trunk/gcc/cselib.c:1226
#7  0x0000000000a7bc22 in vt_expand_loc_callback (x=0x17e1e30, regs=0x17a44c0,
max_depth=8, data=0x7fffffffd370)
    at /mnt/svn/gcc-trunk/gcc/var-tracking.c:7008
#8  0x0000000000607fc2 in cselib_expand_value_rtx_1 (orig=0x17e1e30,
evd=0x7fffffffd340, max_depth=8)
    at /mnt/svn/gcc-trunk/gcc/cselib.c:1379
#9  0x000000000060964f in cselib_expand_value_rtx_cb (orig=<value optimized
out>, regs_active=<value optimized out>, 
    max_depth=<value optimized out>, cb=<value optimized out>, data=<value
optimized out>)
    at /mnt/svn/gcc-trunk/gcc/cselib.c:1226
#10 0x0000000000a68f8b in vt_expand_loc (loc=<value optimized out>, vars=<value
optimized out>)
    at /mnt/svn/gcc-trunk/gcc/var-tracking.c:7071
#11 0x0000000000a77e72 in vt_expand_loc (varp=0x17bc340, data=<value optimized
out>)
    at /mnt/svn/gcc-trunk/gcc/var-tracking.c:7065
#12 emit_note_insn_var_location (varp=0x17bc340, data=<value optimized out>) at
/mnt/svn/gcc-trunk/gcc/var-tracking.c:7182
#13 0x00000000010a6028 in htab_traverse_noresize (htab=<value optimized out>, 
    callback=0xa777e0 <emit_note_insn_var_location>, info=0x7fffffffd590) at
/mnt/svn/gcc-trunk/libiberty/hashtab.c:784
#14 0x0000000000a6f74d in emit_notes_for_changes (insn=0x7ffff7ee8798,
where=EMIT_NOTE_AFTER_INSN, 
    vars=<value optimized out>) at /mnt/svn/gcc-trunk/gcc/var-tracking.c:7531
#15 0x0000000000a756bd in emit_notes_in_bb () at
/mnt/svn/gcc-trunk/gcc/var-tracking.c:7930
#16 vt_emit_notes () at /mnt/svn/gcc-trunk/gcc/var-tracking.c:7997
#17 0x0000000000a7b713 in variable_tracking_main_1 () at
/mnt/svn/gcc-trunk/gcc/var-tracking.c:8609
#18 variable_tracking_main () at /mnt/svn/gcc-trunk/gcc/var-tracking.c:8623
#19 0x00000000007ec63f in execute_one_pass (pass=0x16366a0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1553
#20 0x00000000007ec905 in execute_pass_list (pass=0x16366a0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1608
#21 0x00000000007ec917 in execute_pass_list (pass=0x16331a0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1609
#22 0x00000000007ec917 in execute_pass_list (pass=0x1633200) at
/mnt/svn/gcc-trunk/gcc/passes.c:1609
#23 0x000000000092d156 in tree_rest_of_compilation (fndecl=0x7ffff5cc3f00) at
/mnt/svn/gcc-trunk/gcc/tree-optimize.c:422
#24 0x0000000000af2962 in cgraph_expand_function (node=0x7ffff5cc8160) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1508
#25 0x0000000000af4f3a in cgraph_expand_all_functions () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1567
#26 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1827
#27 0x0000000000af54ba in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1031
#28 0x0000000000508cdc in c_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/c-decl.c:9845
#29 0x00000000008d69d6 in compile_file (argc=14, argv=0x7fffffffdb28) at
/mnt/svn/gcc-trunk/gcc/toplev.c:591
#30 do_compile (argc=14, argv=0x7fffffffdb28) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1874
#31 toplev_main (argc=14, argv=0x7fffffffdb28) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1937
#32 0x00007ffff6586bbd in __libc_start_main () from /lib/libc.so.6
#33 0x00000000004ef6b9 in _start ()


Tested revisions:
r167621 - crash
4.5 r166509 - crash
4.4 r166509 - OK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]