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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |4.3.4
            Version|unknown                     |6.0
           Keywords|                            |accepts-invalid
   Last reconfirmed|                            |2015-05-18
          Component|tree-optimization           |middle-end
     Ever confirmed|0                           |1
            Summary|Another label as values ICE |[4.8/4.9/5/6 Regression]
                   |                            |Another label as values ICE
                   |                            |in gen_reg_rtx, at
                   |                            |emit-rtl.c:1059
   Target Milestone|---                         |4.8.5

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.

t.c:10:1: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1059
 }
 ^
0x95343b gen_reg_rtx(machine_mode)
        /space/rguenther/src/svn/trunk2/gcc/emit-rtl.c:1059
0xc8a3da maybe_legitimize_operand
        /space/rguenther/src/svn/trunk2/gcc/optabs.c:8296
0xc8a739 maybe_legitimize_operands(insn_code, unsigned int, unsigned int,
expand_operand*)
        /space/rguenther/src/svn/trunk2/gcc/optabs.c:8369
0xc8a7ca maybe_gen_insn(insn_code, unsigned int, expand_operand*)
        /space/rguenther/src/svn/trunk2/gcc/optabs.c:8387
0xc79a83 expand_binop_directly
        /space/rguenther/src/svn/trunk2/gcc/optabs.c:1496
0xc79d0c expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def*,
int, optab_methods)
        /space/rguenther/src/svn/trunk2/gcc/optabs.c:1566
...
0x1103344 expand_expr
        /space/rguenther/src/svn/trunk2/gcc/expr.h:254
0x111098b output_constant
        /space/rguenther/src/svn/trunk2/gcc/varasm.c:4793

while for example GCC 4.3 says

> gcc-4.3 -S t.c -O2
t.c: In function ‘test’:
t.c:4: error: initializer element is not computable at load time

and

> gcc-4.8 -S t.c -O2
t.c:10:1: internal compiler error: output_operand: invalid expression as
operand
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.opensuse.org/> for instructions.


I think the initializers are simply not valid.

Reply via email to