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

            Bug ID: 90064
           Summary: InSituRegion lacks SPARC64 support
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
            Target: sparc*-*-*

Created attachment 46152
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46152&action=edit
InSituRegion SPARC64 support

This tests only FAILs on 64-bit SPARC:

FAIL:
libphobos.phobos_shared/std/experimental/allocator/building_blocks/bitmapped_block.d
(test for excess errors)
Excess errors:
/vol/gcc/src/hg/trunk/solaris/libphobos/src/std/experimental/allocator/building_blocks/region.d:402:
error: undefined identifier 'growDownwards'
/vol/gcc/src/hg/trunk/solaris/libphobos/testsuite/../src/std/experimental/allocator/building_blocks/bitmapped_block.d:698:
error: template instance
std.experimental.allocator.building_blocks.region.InSituRegion!(10240LU, 64LU)
error instantiating
/vol/gcc/src/hg/trunk/solaris/libphobos/testsuite/../src/std/experimental/allocator/building_blocks/bitmapped_block.d:700:
note: while evaluating: static assert(hasMember!(InSituRegion!(10240LU, 64LU),
"allocateAll"))

The fix is trivial: just handle SPARC64 like SPARC.  The attached patch does
that.

Reply via email to