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

            Bug ID: 67296
           Summary: [HSA] ICE in register allocator (assignment of this
                    argument in a ctor)
           Product: gcc
           Version: hsa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: matz at suse dot de, mjambor at suse dot cz
  Target Milestone: ---

Created attachment 36228
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36228&action=edit
Test case

Hello Michael.

Similar problem as yesterday:

$ ./xg++ -B. /tmp/t.c -fdump-tree-hsagen -fdump-tree-hsagen
/tmp/t.c: In constructor ‘C0::C0()’:
/tmp/t.c:4:25: internal compiler error: in linear_scan_regalloc, at
hsa-regalloc.c:686
   __attribute__ ((hsa)) C0() {}
                         ^
0xd93138 linear_scan_regalloc
        ../../gcc/hsa-regalloc.c:686
0xd93725 regalloc
        ../../gcc/hsa-regalloc.c:793
0xd937de hsa_regalloc()
        ../../gcc/hsa-regalloc.c:813
0xd8ba12 generate_hsa
        ../../gcc/hsa-gen.c:3799
0xd8c5e1 execute
        ../../gcc/hsa-gen.c:4041

$ cat t.c.189t.hsagen 

;; Function C0::C0() (_ZN2C0C2Ev, funcdef_no=1, decl_uid=2259, cgraph_uid=1,
symbol_order=1)

------- Generated SSA form -------

HSAIL IL for __base_ctor 
BB 0:
  ld_kernarg_u64 $_0, [%this]
  Fall-through to BB 1

BB 1:
  ret_none 

------- After out-of-SSA: -------

HSAIL IL for __base_ctor 
BB 0:
  ld_kernarg_u64 $_0, [%this]
  Fall-through to BB 1

BB 1:
  ret_none 

Thanks,
Martin

Reply via email to