Package: libgc-source Version: 8.0.4-3 Severity: normal Tags: patch Dear Maintainer,
Dear Maintainer, Please consider adding support of ARC architecture with a patch below. It's a back-port of upstream change [1] which will be a part of the next release whenever it happens. This is needed as we work on a Debian port for ARCprocessors. [1] https://github.com/ivmai/bdwgc/commit/968818a12c361a3a7fa6e8d8b851d04847335e58 -Alexey --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -658,6 +658,10 @@ EXTERN_C_BEGIN # define NONSTOP # define mach_type_known # endif +# if defined(__arc__) && defined(LINUX) +# define ARC +# define mach_type_known +# endif # if defined(__hexagon__) && defined(LINUX) # define HEXAGON # define mach_type_known @@ -2812,6 +2816,21 @@ EXTERN_C_BEGIN # endif # endif /* X86_64 */ +# ifdef ARC +# define CPP_WORDSZ 32 +# define MACH_TYPE "ARC" +# define ALIGNMENT 4 +# define CACHE_LINE_SIZE 64 +# ifdef LINUX +# define OS_TYPE "LINUX" +# define LINUX_STACKBOTTOM +# define COUNT_UNMAPPED_REGIONS +# define DYNAMIC_LOADING + extern int __data_start[] __attribute__((__weak__)); +# define DATASTART ((ptr_t)__data_start) +# endif +# endif /* ARC */ + # ifdef HEXAGON # define CPP_WORDSZ 32 # define MACH_TYPE "HEXAGON" -- System Information: Debian Release: bullseye/sid APT prefers focal-updates APT policy: (500, 'focal-updates'), (500, 'focal-security'), (500, 'focal-proposed'), (500, 'focal'), (100, 'focal-backports') Architecture: amd64 (x86_64) Kernel: Linux 5.4.72-microsoft-standard-WSL2 (SMP w/12 CPU cores) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: unable to detect