[Bug inline-asm/93160] New: ICE: in expand_expr_addr_expr_1, at expr.c:8070

anbu1024.me at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Jan 5 14:46:00 GMT 2020


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

            Bug ID: 93160
           Summary: ICE: in expand_expr_addr_expr_1, at expr.c:8070
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: inline-asm
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anbu1024.me at gmail dot com
  Target Milestone: ---

$ cat test.c 

extern long unsigned int sub_0 ( const char * ) ; 

extern void * sub_1 ( long unsigned int ) ; 

extern int var_0 ; 

void * var_1 = & var_0 ; 

register int var_0 asm ( "%ecx" ) ; 

--------------------------------------------------------------------------------

$ gcc-snapshot10 --versiongcc (GCC) 10.0.0 20191229 (experimental)
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

--------------------------------------------------------------------------------

$ gcc-snapshot10 test.c 
test.c:10:14: warning: call-clobbered register used for global register
variable
   10 | register int var_0 asm ( "%ecx" ) ;
      |              ^~~~~
test.c:10:1: internal compiler error: in expand_expr_addr_expr_1, at
expr.c:8070
   10 | register int var_0 asm ( "%ecx" ) ;
      | ^~~~~~~~
0x633aab expand_expr_addr_expr_1
        ../../gcc-10-20191229/gcc/expr.c:8070
0xa1b8f9 expand_expr_addr_expr
        ../../gcc-10-20191229/gcc/expr.c:8183
0xa1b8f9 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc-10-20191229/gcc/expr.c:11358
0x105d9ab expand_expr
        ../../gcc-10-20191229/gcc/expr.h:282
0x105d9ab output_constant
        ../../gcc-10-20191229/gcc/varasm.c:4993
0x105e274 output_constant
        ../../gcc-10-20191229/gcc/varasm.c:4901
0x105e274 assemble_variable_contents
        ../../gcc-10-20191229/gcc/varasm.c:2148
0x10636ba assemble_variable(tree_node*, int, int, int)
        ../../gcc-10-20191229/gcc/varasm.c:2327
0x1066f29 varpool_node::assemble_decl()
        ../../gcc-10-20191229/gcc/varpool.c:586
0x938c1c output_in_order
        ../../gcc-10-20191229/gcc/cgraphunit.c:2566
0x938c1c symbol_table::compile()
        ../../gcc-10-20191229/gcc/cgraphunit.c:2803
0x93ae8c symbol_table::compile()
        ../../gcc-10-20191229/gcc/cgraphunit.c:2719
0x93ae8c symbol_table::finalize_compilation_unit()
        ../../gcc-10-20191229/gcc/cgraphunit.c:2986
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.


More information about the Gcc-bugs mailing list