From: Ivan Maidanski Date: Wed, 12 Oct 2016 19:42:41 +0000 (+0300) Subject: Fix missing #error pragma X-Git-Tag: v7.4.6~221 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c46482e2b308f1076033c4816857d4215aaf63fa;p=gc Fix missing #error pragma (Cherry-pick commit 1037cd6 from 'release-7_6' branch.) * dyn_load.c [DYNAMIC_LOADING && !PCR && !DARWIN]: Replace "-->" with * dyn_load.c [SOLARISDL && !PCR && !GC_SOLARIS_THREADS && THREADS]: Likewise. * include/private/gc_hdrs [CPP_WORDSZ!=32 && CPP_WORDSZ<36]: Likewise. * include/private/gc_priv.h [!HBLKSIZE]: Likewise. * pthread_stop_world.c [!NSIG]: Likewise. --- diff --git a/dyn_load.c b/dyn_load.c index 9411f4fe..63a9b0fc 100644 --- a/dyn_load.c +++ b/dyn_load.c @@ -61,9 +61,8 @@ STATIC GC_has_static_roots_func GC_has_static_roots = 0; !(defined(OPENBSD) && (defined(__ELF__) || defined(M68K))) && \ !(defined(NETBSD) && defined(__ELF__)) && !defined(HURD) && \ !defined(DARWIN) && !defined(CYGWIN32) - --> We only know how to find data segments of dynamic libraries for the - --> above. Additional SVR4 variants might not be too - --> hard to add. +# error We only know how to find data segments of dynamic libraries for above. +# error Additional SVR4 variants might not be too hard to add. #endif #include @@ -214,7 +213,7 @@ GC_FirstDLOpenedLinkMap(void) /* Add dynamic library data sections to the root set. */ # if !defined(PCR) && !defined(GC_SOLARIS_THREADS) && defined(THREADS) - --> fix mutual exclusion with dlopen +# error Fix mutual exclusion with dlopen # endif # ifndef USE_PROC_FOR_LIBRARIES diff --git a/include/private/gc_hdrs.h b/include/private/gc_hdrs.h index 89914284..4540ac6b 100644 --- a/include/private/gc_hdrs.h +++ b/include/private/gc_hdrs.h @@ -18,7 +18,7 @@ typedef struct hblkhdr hdr; #if CPP_WORDSZ != 32 && CPP_WORDSZ < 36 - --> Get a real machine. +# error Get a real machine #endif /* diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index 0c89e20d..9303e74d 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -736,7 +736,7 @@ GC_EXTERN GC_warn_proc GC_current_warn_proc; # elif HBLKSIZE == 16384 # define CPP_LOG_HBLKSIZE 14 # else - --> fix HBLKSIZE +# error fix HBLKSIZE # endif # undef HBLKSIZE #endif diff --git a/pthread_stop_world.c b/pthread_stop_world.c index a68e9222..2ab6cd70 100644 --- a/pthread_stop_world.c +++ b/pthread_stop_world.c @@ -59,7 +59,7 @@ int GC_nacl_thread_used[MAX_NACL_GC_THREADS]; # elif defined(__SIGRTMAX) # define NSIG (__SIGRTMAX+1) # else - --> please fix it +# error define NSIG # endif # endif /* NSIG */