[Bug middle-end/61630] New: [4.10 Regression] ICE in symtab_get_node

dje at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 27 14:14:00 GMT 2014


            Bug ID: 61630
           Summary: [4.10 Regression] ICE in symtab_get_node
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dje at gcc dot gnu.org

gcc -O1 gcc.dg/noncompile/920507-1.c
internal compiler error: in symtab_get_node, at cgraph.h:1154

(gdb) run -O1 920507-1.c
Starting program: /tmp/20140626/gcc/cc1 -O1 920507-1.c
Analyzing compilation unit
Performing interprocedural optimizations
 <*free_lang_data> <visibility> <early_local_cleanups> <*free_inline_summary>
<whole-program> <profile_estimate> <cdtor> <inline> <pure-const> <static-var>
<single-use> <comdats>Assembling functions:
920507-1.c: In function 'x':
920507-1.c:5:16: error: invalid register name for 'a'
  register int *a asm("unknown_register");  /* { dg-error "invalid register" }

Breakpoint 1, _Z11fancy_abortPKciS0_ (
    file=0x10fbe450 "/nasfarm/edelsohn/src/src/gcc/cgraph.h", line=1154, 
    function=0x10fbe440 "symtab_get_node")
    at /nasfarm/edelsohn/src/src/gcc/diagnostic.c:1190
1190      internal_error ("in %s, at %s:%d", function, trim_filename (file),

(gdb) where
#0  _Z11fancy_abortPKciS0_ (
    file=0x10fbe450 "/nasfarm/edelsohn/src/src/gcc/cgraph.h", line=1154, 
    function=0x10fbe440 "symtab_get_node")
    at /nasfarm/edelsohn/src/src/gcc/diagnostic.c:1190
#1  0x10206974 in _Z13make_decl_rtlP9tree_node (decl=0x700da000)
    at /nasfarm/edelsohn/src/src/gcc/varasm.c:2381
#2  0x101d4c24 in _Z24rest_of_decl_compilationP9tree_nodeii (decl=0x700da000, 
    top_level=0, at_end=0) at /nasfarm/edelsohn/src/src/gcc/passes.c:215
#3  0x10820604 in _ZL14expand_one_varP9tree_nodebb (var=0x10fbe450, 
    toplevel=130, really_expand=64)
    at /nasfarm/edelsohn/src/src/gcc/cfgexpand.c:2324
#4  0x10820dd0 in _ZL26expand_used_vars_for_blockP9tree_nodeb (
    block=0x700c1038, toplevel=true)
    at /nasfarm/edelsohn/src/src/gcc/cfgexpand.c:1339
#5  0x10823764 in _ZL16expand_used_varsv ()
    at /nasfarm/edelsohn/src/src/gcc/cfgexpand.c:1806
#6  0x1082d9cc in _ZN12_GLOBAL__N_111pass_expand7executeEP8function (
    this=0x10fbe450, fun=0x700d9000)
    at /nasfarm/edelsohn/src/src/gcc/cfgexpand.c:5672
#7  0x101d76fc in _Z16execute_one_passP8opt_pass (pass=0x302a5d78)
    at /nasfarm/edelsohn/src/src/gcc/passes.c:2179
#8  0x101d7bf0 in _ZL19execute_pass_list_1P8opt_pass (pass=0x302a5d78)
    at /nasfarm/edelsohn/src/src/gcc/passes.c:2232
(gdb) up
#1  0x10206974 in _Z13make_decl_rtlP9tree_node (decl=0x700da000)
    at /nasfarm/edelsohn/src/src/gcc/varasm.c:2381
(gdb) print decl
$1 = (tree) 0x700da000
(gdb) pt
warning: Expression is not an assignment (and might have no effect)
 <var_decl 700da000 a
    type <pointer_type 70014cc0
        type <integer_type 70014360 int public SI
            size <integer_cst 70005240 constant 32>
            unit size <integer_cst 70005258 constant 4>
            align 32 symtab 0 alias set -1 canonical type 70014360 precision 32
min <integer_cst 70005480 -2147483648> max <integer_cst 70005498 2147483647>
            pointer_to_this <pointer_type 70014cc0>>
        sizes-gimplified unsigned SI size <integer_cst 70005240 32> unit size
<integer_cst 70005258 4>
        align 32 symtab 0 alias set -1 canonical type 70014cc0
        pointer_to_this <pointer_type 700c2ba0>>
    used unsigned regdecl decl_4 SI file 920507-1.c line 5 col 16 size
<integer_cst 70005240 32> unit size <integer_cst 70005258 4>
    align 32 context <function_decl 700bfa80 x>>

More information about the Gcc-bugs mailing list