From baf4932161ca6dc32a59d89be52a89517a97d152 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 19 May 2017 00:44:29 +0300 Subject: [PATCH] Remove unused ALIGN_DOUBLE macro (TILE-Gx/Pro) (fix commits e35a417, 1240658) * doc/porting.html (ALIGN_DOUBLE): Remove documentation for the macro. * include/private/gcconfig.h [TILEPRO, TILEGX] (ALIGN_DOUBLE): Remove macro (no longer needed). --- doc/porting.html | 6 ------ include/private/gcconfig.h | 3 --- 2 files changed, 9 deletions(-) diff --git a/doc/porting.html b/doc/porting.html index 8f745245..3d2890e7 100644 --- a/doc/porting.html +++ b/doc/porting.html @@ -196,12 +196,6 @@ word stores of 0 are used instead.
HEAP_START may be defined as the initial address hint for mmap-based allocation. -
ALIGN_DOUBLE -
-Should be defined if the architecture requires double-word alignment -of GC_malloced memory, e.g. 8-byte alignment with a -32-bit ABI. Most modern machines are likely to require this. -This is no longer needed for GC7 and later.

Additional requirements for a basic port

In some cases, you may have to add additional platform-specific code diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 8c530557..b011bb27 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -2599,7 +2599,6 @@ # define CPP_WORDSZ 32 # define MACH_TYPE "TILEPro" # define ALIGNMENT 4 -# define ALIGN_DOUBLE # define PREFETCH(x) __insn_prefetch(x) # define CACHE_LINE_SIZE 64 # ifdef LINUX @@ -2616,8 +2615,6 @@ # define MACH_TYPE "TILE-Gx" # define ALIGNMENT __SIZEOF_POINTER__ # if CPP_WORDSZ < 64 -# define ALIGN_DOUBLE /* Guarantee 64-bit alignment for allocations. */ - /* Take advantage of 64-bit stores. */ # define CLEAR_DOUBLE(x) (*(long long *)(x) = 0) # endif # define PREFETCH(x) __insn_prefetch_l1(x) -- 2.40.0