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

            Bug ID: 104612
           Summary: [12 Regression] ICE in mark_jump_label_1 since
                    r12-3435
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

The following testcase ICEs in mark_jump_label_1 with -O2 -m32 -msse2
-mfpmath=sse since r12-3435-g60efb1fee9b8985829abf4ed9958691783c2604e :
struct V { float x, y; };

struct V
foo (struct V v)
{
  struct V ret;
  ret.x = __builtin_copysignf (1.0e+0, v.x);
  ret.y = __builtin_copysignf (1.0e+0, v.y);
  return ret;
}
during RTL pass: expand
glsign.C: In function ‘V foo(V)’:
glsign.C:10:1: internal compiler error: Segmentation fault
   10 | }
      | ^
0x16b9ffe crash_signal
        ../../gcc/toplev.c:328
0x141c59b mark_jump_label_1
        ../../gcc/jump.c:1048
0x141c9ea mark_jump_label_1
        ../../gcc/jump.c:1171
0x141c9ea mark_jump_label_1
        ../../gcc/jump.c:1171
0x141c578 mark_jump_label(rtx_def*, rtx_insn*, int)
        ../../gcc/jump.c:1035
0x141b4e8 mark_all_labels
        ../../gcc/jump.c:332
0x141ad0b rebuild_jump_labels_1
        ../../gcc/jump.c:74
0x141ad7e rebuild_jump_labels(rtx_insn*)
        ../../gcc/jump.c:98
0xfe7673 execute
        ../../gcc/cfgexpand.c:6858
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.

Reply via email to