[Bug c++/105979] New: ICE in change_stack, at reg-stack.cc:2660

gscfq@t-online.de gcc-bugzilla@gcc.gnu.org
Tue Jun 14 17:51:57 GMT 2022


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

            Bug ID: 105979
           Summary: ICE in change_stack, at reg-stack.cc:2660
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started with r9, at -O1, with file g++.dg/ext/pr84828.C :


$ gcc-13-20220612 -c pr84828.C -O1 -mfpmath=387 -fno-tree-loop-optimize
pr84828.C: In function 'void foo(float, double)':
pr84828.C:10:7: error: output constraint 0 must specify a single register
   10 |       asm volatile ("" : "+f" (c));     // { dg-error "must specify a
single register" }
      |       ^~~
during RTL pass: stack
pr84828.C:13:1: internal compiler error: in change_stack, at reg-stack.cc:2660
   13 | }
      | ^
0x103d37c change_stack
        ../../gcc/reg-stack.cc:2660
0x1041a57 compensate_edge
        ../../gcc/reg-stack.cc:2941
0x1041a57 compensate_edges
        ../../gcc/reg-stack.cc:2972
0x1041a57 convert_regs
        ../../gcc/reg-stack.cc:3276
0x1041a57 reg_to_stack
        ../../gcc/reg-stack.cc:3385
0x1041a57 rest_of_handle_stack_regs
        ../../gcc/reg-stack.cc:3441
0x1041a57 execute
        ../../gcc/reg-stack.cc:3473


More information about the Gcc-bugs mailing list