From: Xavier Leroy Date: Thu, 12 Dec 2019 15:41:17 +0000 (+0100) Subject: Avoid duplicate definitions of "common" global variables X-Git-Tag: archive/raspbian/4.08.1-10+rpi1^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=be3226ab40c585d57afaa37aaec256661612110c;p=ocaml.git Avoid duplicate definitions of "common" global variables The variables are caml_debug_info and caml_atom_table. The multiple definitions look like a cut-and-paste error. They cause problems with C compilers that don't follow the "common" model. Bug: https://github.com/ocaml/ocaml/issues/9144 Bug-Debian: https://bugs.debian.org/957623 Gbp-Pq: Name 0007-Avoid-duplicate-definitions-of-common-global-variabl.patch --- diff --git a/runtime/backtrace.c b/runtime/backtrace.c index a3c2c08f..ddf7af14 100644 --- a/runtime/backtrace.c +++ b/runtime/backtrace.c @@ -27,9 +27,6 @@ #include "caml/backtrace_prim.h" #include "caml/fail.h" -/* The table of debug information fragments */ -struct ext_table caml_debug_info; - CAMLexport int32_t caml_backtrace_active = 0; CAMLexport int32_t caml_backtrace_pos = 0; CAMLexport backtrace_slot * caml_backtrace_buffer = NULL; diff --git a/runtime/startup_nat.c b/runtime/startup_nat.c index 43b85e31..5b200362 100644 --- a/runtime/startup_nat.c +++ b/runtime/startup_nat.c @@ -44,7 +44,6 @@ #endif extern int caml_parser_trace; -CAMLexport header_t caml_atom_table[256]; char * caml_code_area_start, * caml_code_area_end; struct ext_table caml_code_fragments_table;