https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66978

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 36042
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36042&action=edit
A testcase

(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /export/build/gnu/gcc/build-x86_64-linux/gcc/cc1
-fpreprocessed x.i -quiet -dumpbase x.i -mx32 -mtune=generic -march=x86-64
-auxbase-strip x.s -O2 -version -o x.s
GNU C11 (GCC) version 6.0.0 20150723 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 5.2.1 20150716 (Red Hat 5.2.1-1), GMP version
6.0.0, MPFR version 3.1.2, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C11 (GCC) version 6.0.0 20150723 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 5.2.1 20150716 (Red Hat 5.2.1-1), GMP version
6.0.0, MPFR version 3.1.2, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 79713220058827192abd81c1ee93d8e2

Breakpoint 1, fancy_abort (
    file=0x18c3238 "/export/gnu/import/git/sources/gcc/gcc/expr.c", line=3552, 
    function=0x18c49a8 <emit_move_insn(rtx_def*, rtx_def*)::__FUNCTION__>
"emit_move_insn") at /export/gnu/import/git/sources/gcc/gcc/diagnostic.c:1340
1340      internal_error ("in %s, at %s:%d", function, trim_filename (file),
line);
(gdb) f 2
#2  0x0000000000a55587 in expand_function_start (
    subr=<function_decl 0x7ffff13dcd20 hack_digit>)
    at /export/gnu/import/git/sources/gcc/gcc/function.c:5210
5210          insn = emit_move_insn (local, chain);
(gdb) call debug_rtx (chain)
(reg:SI 39 r10 [ CHAIN.8 ])
(gdb) call debug_rtx (local)
(reg/f:DI 87 [ CHAIN.8 ])
(gdb)

Reply via email to