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

            Bug ID: 70878
           Summary: ICE in expand_expr_addr_expr_1, at expr.c:7680
           Product: gcc
           Version: 6.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---

/* gcc -fsanitize=undefined */
void * sbrk ()
{
 volatile register __attribute__ ((__spu_vector__)) unsigned int sp_r1 __asm__
("1");

 __builtin_spu_extract (sp_r1, 0);
}
/*
 /home/vitti/f95/cc/gccerr38.c: In function ‘sbrk’:
/home/vitti/f95/cc/gccerr38.c:3:2: warning: ‘__spu_vector__’ attribute
directive ignored [-Wattributes]
  volatile register __attribute__ ((__spu_vector__)) unsigned int sp_r1 __asm__
("1");
  ^~~~~~~~
/home/vitti/f95/cc/gccerr38.c:5:2: warning: implicit declaration of function
‘__builtin_spu_extract’ [-Wimplicit-function-declaration]
  __builtin_spu_extract (sp_r1, 0);
  ^~~~~~~~~~~~~~~~~~~~~
/home/vitti/f95/cc/gccerr38.c:1:8: internal compiler error: in
expand_expr_addr_expr_1, at expr.c:7680
 void * sbrk ()
        ^~~~
0x77627d expand_expr_addr_expr_1
        ../../gcc-6.1.0/gcc/expr.c:7680
0x7645b3 expand_expr_addr_expr
        ../../gcc-6.1.0/gcc/expr.c:7793
0x7645b3 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc-6.1.0/gcc/expr.c:10825
0x774ddc expand_expr
        ../../gcc-6.1.0/gcc/expr.h:256
0x774ddc expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        ../../gcc-6.1.0/gcc/expr.c:8180
0x69201e expand_gimple_stmt_1
        ../../gcc-6.1.0/gcc/cfgexpand.c:3653
0x69201e expand_gimple_stmt
        ../../gcc-6.1.0/gcc/cfgexpand.c:3714
0x693435 expand_gimple_basic_block
        ../../gcc-6.1.0/gcc/cfgexpand.c:5720
0x698316 execute
        ../../gcc-6.1.0/gcc/cfgexpand.c:6335
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
*/

Reply via email to