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
--- 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"