]> granicus.if.org Git - gc/commitdiff
Fix missing #error pragma
authorIvan Maidanski <ivmai@mail.ru>
Wed, 12 Oct 2016 19:42:41 +0000 (22:42 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 10 Nov 2016 07:30:14 +0000 (10:30 +0300)
(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.

dyn_load.c
include/private/gc_hdrs.h
include/private/gc_priv.h
pthread_stop_world.c

index 9411f4feafd8b1947855b31365a8d3d9d312eb6a..63a9b0fc9d7a6d9c1e5a7f33c2b30b8bdea3874b 100644 (file)
@@ -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 <stdio.h>
@@ -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
index 89914284b5aa35f54be608ef79e57aa8447f753a..4540ac6b038056704c06d02da758807e402fbffb 100644 (file)
@@ -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
 
 /*
index 0c89e20d7f265b7e0324b44c11ca271c74061bdb..9303e74dcc30eafc57fe0063e7f2a71fd6b0f3b9 100644 (file)
@@ -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
index a68e92225fb8d876a4ff0d8d9132ed58bf0a3e27..2ab6cd702ad6cef405dcca42958062b7e3795dc4 100644 (file)
@@ -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 */