<short summary of the patch>
authorCamm Maguire <camm@debian.org>
Sun, 13 Nov 2022 12:55:14 +0000 (12:55 +0000)
committerCamm Maguire <camm@debian.org>
Sun, 13 Nov 2022 12:55:14 +0000 (12:55 +0000)
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.

gcl (2.6.12-101) unstable; urgency=medium

  * Version_2.6.13pre98

Gbp-Pq: Name Version_2_6_13pre98

configure
configure.in
gmp4/acinclude.m4
gmp4/configure
o/error.c
o/main.c
o/sfaslmacho.c
o/string.d
o/unexmacosx.c
unixport/makefile

index 02210e050c76d248257fb0a7d095e342c2e2830d..40d8ed1e35a4b21845d2c4128fb52f55480d127a 100755 (executable)
--- a/configure
+++ b/configure
@@ -3974,7 +3974,7 @@ $as_echo "removing $1 from LDFLAGS" >&6; }
 
 }
 
-add_args_to_cflags -fsigned-char -pipe -fcommon \
+add_args_to_cflags  -fsigned-char -pipe -fcommon \
                     -fno-builtin-malloc -fno-builtin-free \
                     -fno-PIE -fno-pie -fno-PIC -fno-pic \
                    -Wall \
@@ -4036,6 +4036,8 @@ case $use in
        assert_arg_to_cflags -mms-bitfields
         assert_arg_to_ldflags -Wl,--stack,8000000;;
     386-macosx)
+#      assert_arg_to_cflags -Wno-error=implicit-function-declaration
+       add_arg_to_cflags -Wno-incomplete-setjmp-declaration
        assert_arg_to_ldflags -Wl,-no_pie
        if test "$build_cpu" = "x86_64" ; then
            assert_arg_to_cflags -m64
@@ -4246,10 +4248,6 @@ fi
 # for the system.  This can usually be done via the "uname" command, but
 # there are a few systems, like Next, where this doesn't work.
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking system version (for dynamic loading)" >&5
-$as_echo_n "checking system version (for dynamic loading)... " >&6; }
-if machine=`uname -m` ; then true; else machine=unknown ; fi
-
 for ac_prog in makeinfo
 do
   # Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -4295,6 +4293,10 @@ test -n "$MAKEINFO" || MAKEINFO=""false""
 
 
 
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking system version (for dynamic loading)" >&5
+$as_echo_n "checking system version (for dynamic loading)... " >&6; }
+if machine=`uname -m` ; then true; else machine=unknown ; fi
+
 if test -f /usr/lib/NextStep/software_version; then
     system=NEXTSTEP-`${AWK} '/3/,/3/' /usr/lib/NextStep/software_version`
 else
@@ -6191,6 +6193,7 @@ else
 /* end confdefs.h.  */
 
                #include <stdio.h>
+               #include <stdlib.h>
                #define EXTER
                #define INLINE
                #include "$MP_INCLUDE"
@@ -6319,6 +6322,7 @@ else
 /* end confdefs.h.  */
 
                #include <stdio.h>
+               #include <stdlib.h>
                #define EXTER
                #define INLINE
                #include "$MP_INCLUDE"
index ce24405d3f804eae4227611d8c5d980b27e52822..abb5dc5f053b009c080e43b5e24e5d8d895ccd33 100644 (file)
@@ -258,7 +258,7 @@ remove_arg_from_ldflags() {
     
 }
 
-add_args_to_cflags -fsigned-char -pipe -fcommon \
+add_args_to_cflags  -fsigned-char -pipe -fcommon \
                     -fno-builtin-malloc -fno-builtin-free \
                     -fno-PIE -fno-pie -fno-PIC -fno-pic \
                    -Wall \
@@ -294,6 +294,8 @@ case $use in
        assert_arg_to_cflags -mms-bitfields
         assert_arg_to_ldflags -Wl,--stack,8000000;;
     386-macosx)
+#      assert_arg_to_cflags -Wno-error=implicit-function-declaration
+       add_arg_to_cflags -Wno-incomplete-setjmp-declaration
        assert_arg_to_ldflags -Wl,-no_pie
        if test "$build_cpu" = "x86_64" ; then
            assert_arg_to_cflags -m64
@@ -453,12 +455,12 @@ fi
 # for the system.  This can usually be done via the "uname" command, but
 # there are a few systems, like Next, where this doesn't work.
 
-AC_MSG_CHECKING([system version (for dynamic loading)])
-if machine=`uname -m` ; then true; else machine=unknown ; fi
-
 AC_CHECK_PROGS(MAKEINFO,makeinfo,"false")
 AC_SUBST(MAKEINFO)
 
+AC_MSG_CHECKING([system version (for dynamic loading)])
+if machine=`uname -m` ; then true; else machine=unknown ; fi
+
 if test -f /usr/lib/NextStep/software_version; then
     system=NEXTSTEP-`${AWK} '/3/,/3/' /usr/lib/NextStep/software_version`
 else
@@ -971,6 +973,7 @@ AC_RUN_IFELSE(
     [AC_LANG_PROGRAM(
            [[
                #include <stdio.h>
+               #include <stdlib.h>
                #define EXTER
                #define INLINE
                #include "$MP_INCLUDE"
@@ -1019,6 +1022,7 @@ AC_RUN_IFELSE(
     [AC_LANG_PROGRAM(
            [[
                #include <stdio.h>
+               #include <stdlib.h>
                #define EXTER
                #define INLINE
                #include "$MP_INCLUDE"
index 227712a5db0f39762e1404adbe611a2e0ea96e3f..138e2f52eb534ca9e35eb94f570e5daddc51ae55 100644 (file)
@@ -610,10 +610,11 @@ GMP_PROG_CC_WORKS_PART([$1], [long long reliability test 1],
 #if defined (__GNUC__) && ! defined (__cplusplus)
 typedef unsigned long long t1;typedef t1*t2;
 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
-{t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
-f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
-for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
-h(){}g(){}
+{t1 c=0,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
+int h(){return 0;}
+int g(){return 0;}
+int f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
+        for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();} return 0;}
 #else
 int dummy;
 #endif
@@ -625,8 +626,8 @@ GMP_PROG_CC_WORKS_PART([$1], [long long reliability test 2],
    1666 to get an ICE with -O1 -mpowerpc64.  */
 
 #if defined (__GNUC__) && ! defined (__cplusplus)
-f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}
-g(){}
+int g(){return 0;}
+int f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();return 0;}
 #else
 int dummy;
 #endif
@@ -3812,6 +3813,7 @@ AC_DEFUN([GMP_PROG_CC_FOR_BUILD_WORKS],
 # remove anything that might look like compiler output to our "||" expression
 rm -f conftest* a.out b.out a.exe a_out.exe
 cat >conftest.c <<EOF
+#include <stdlib.h>
 int
 main ()
 {
@@ -3886,6 +3888,7 @@ AC_DEFUN([GMP_PROG_EXEEXT_FOR_BUILD],
 AC_CACHE_CHECK([for build system executable suffix],
                gmp_cv_prog_exeext_for_build,
 [cat >conftest.c <<EOF
+#include <stdlib.h>
 int
 main ()
 {
@@ -3922,6 +3925,7 @@ AC_DEFUN([GMP_C_FOR_BUILD_ANSI],
 AC_CACHE_CHECK([whether build system compiler is ANSI],
                gmp_cv_c_for_build_ansi,
 [cat >conftest.c <<EOF
+#include <stdlib.h>
 int
 main (int argc, char **argv)
 {
@@ -3956,6 +3960,7 @@ AC_DEFUN([GMP_CHECK_LIBM_FOR_BUILD],
 AC_CACHE_CHECK([for build system compiler math library],
                gmp_cv_check_libm_for_build,
 [cat >conftest.c <<EOF
+#include <stdlib.h>
 int
 main ()
 {
index 73e0975d7834391c655e0f58f5b98d004ddb8423..06e5e0fac5bde0022caed6958c46129b7e4e2861 100755 (executable)
@@ -808,6 +808,7 @@ infodir
 docdir
 oldincludedir
 includedir
+runstatedir
 localstatedir
 sharedstatedir
 sysconfdir
@@ -909,6 +910,7 @@ datadir='${datarootdir}'
 sysconfdir='${prefix}/etc'
 sharedstatedir='${prefix}/com'
 localstatedir='${prefix}/var'
+runstatedir='${localstatedir}/run'
 includedir='${prefix}/include'
 oldincludedir='/usr/include'
 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1161,6 +1163,15 @@ do
   | -silent | --silent | --silen | --sile | --sil)
     silent=yes ;;
 
+  -runstatedir | --runstatedir | --runstatedi | --runstated \
+  | --runstate | --runstat | --runsta | --runst | --runs \
+  | --run | --ru | --r)
+    ac_prev=runstatedir ;;
+  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
+  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
+  | --run=* | --ru=* | --r=*)
+    runstatedir=$ac_optarg ;;
+
   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
     ac_prev=sbindir ;;
   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1298,7 +1309,7 @@ fi
 for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                datadir sysconfdir sharedstatedir localstatedir includedir \
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
-               libdir localedir mandir
+               libdir localedir mandir runstatedir
 do
   eval ac_val=\$$ac_var
   # Remove trailing slashes.
@@ -1451,6 +1462,7 @@ Fine tuning of the installation directories:
   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
+  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   --libdir=DIR            object code libraries [EPREFIX/lib]
   --includedir=DIR        C header files [PREFIX/include]
   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
@@ -6335,10 +6347,11 @@ if test "$gmp_prog_cc_works" = yes; then
 #if defined (__GNUC__) && ! defined (__cplusplus)
 typedef unsigned long long t1;typedef t1*t2;
 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
-{t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
-f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
-for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
-h(){}g(){}
+{t1 c=0,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
+int h(){return 0;}
+int g(){return 0;}
+int f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
+        for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();} return 0;}
 #else
 int dummy;
 #endif
@@ -6397,8 +6410,8 @@ if test "$gmp_prog_cc_works" = yes; then
    1666 to get an ICE with -O1 -mpowerpc64.  */
 
 #if defined (__GNUC__) && ! defined (__cplusplus)
-f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}
-g(){}
+int g(){return 0;}
+int f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();return 0;}
 #else
 int dummy;
 #endif
@@ -7888,10 +7901,11 @@ if test "$gmp_prog_cc_works" = yes; then
 #if defined (__GNUC__) && ! defined (__cplusplus)
 typedef unsigned long long t1;typedef t1*t2;
 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
-{t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
-f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
-for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
-h(){}g(){}
+{t1 c=0,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
+int h(){return 0;}
+int g(){return 0;}
+int f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
+        for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();} return 0;}
 #else
 int dummy;
 #endif
@@ -7950,8 +7964,8 @@ if test "$gmp_prog_cc_works" = yes; then
    1666 to get an ICE with -O1 -mpowerpc64.  */
 
 #if defined (__GNUC__) && ! defined (__cplusplus)
-f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}
-g(){}
+int g(){return 0;}
+int f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();return 0;}
 #else
 int dummy;
 #endif
@@ -9716,6 +9730,7 @@ $as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; }
 # remove anything that might look like compiler output to our "||" expression
 rm -f conftest* a.out b.out a.exe a_out.exe
 cat >conftest.c <<EOF
+#include <stdlib.h>
 int
 main ()
 {
@@ -9748,6 +9763,7 @@ $as_echo_n "checking build system compiler $HOST_CC... " >&6; }
 # remove anything that might look like compiler output to our "||" expression
 rm -f conftest* a.out b.out a.exe a_out.exe
 cat >conftest.c <<EOF
+#include <stdlib.h>
 int
 main ()
 {
@@ -9781,6 +9797,7 @@ $as_echo_n "checking build system compiler $i... " >&6; }
 # remove anything that might look like compiler output to our "||" expression
 rm -f conftest* a.out b.out a.exe a_out.exe
 cat >conftest.c <<EOF
+#include <stdlib.h>
 int
 main ()
 {
@@ -9860,6 +9877,7 @@ if ${gmp_cv_prog_exeext_for_build+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat >conftest.c <<EOF
+#include <stdlib.h>
 int
 main ()
 {
@@ -9897,6 +9915,7 @@ if ${gmp_cv_c_for_build_ansi+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat >conftest.c <<EOF
+#include <stdlib.h>
 int
 main (int argc, char **argv)
 {
@@ -9932,6 +9951,7 @@ if ${gmp_cv_check_libm_for_build+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat >conftest.c <<EOF
+#include <stdlib.h>
 int
 main ()
 {
index c9f855c6554c5a6df08407f2589cd9db2f83e242..81861f9513d740b03836dfa587b1e27b649f9b95 100755 (executable)
--- a/o/error.c
+++ b/o/error.c
@@ -146,7 +146,7 @@ Icall_gen_error_handler(object ci,object cs,object en,object es,ufixnum n,...) {
     b[i]= va_arg(ap,object);
   va_end(ap);
 
-  return IapplyVector(sSuniversal_error_handler,n,b);
+  IapplyVector(sSuniversal_error_handler,n,b);
 
 }
 
index d5e9ff3c172a958a3da03d2aa1c1c75ce8b54f01..30bb4e6d4e981574503aca31578a0f80a186b284 100755 (executable)
--- a/o/main.c
+++ b/o/main.c
@@ -28,6 +28,8 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 #include <unistd.h>
 #include <string.h>
 #include <fcntl.h>
+#include <sys/stat.h>
+#include <sys/types.h>
 
 static void
 init_main(void);
@@ -462,6 +464,8 @@ DEFUN_NEW("EQUAL-TAIL-RECURSION-CHECK",object,fSequal_tail_recursion_check,SI,1,
   RETURN1((object)(w-stack_to_be_allocated));
 }
 
+#if !defined(DARWIN)&&!defined(__MINGW32__)
+
 static int
 mbin(const char *s,char *o) {
 
@@ -497,7 +501,7 @@ which(const char *n,char *o) {
 
 }
 
-
+#endif
 
 int
 main(int argc, char **argv, char **envp) {
index 233b80c47437f014bafebc40b715439c6d8d85d3..ff9da57ac696eb94343013e3449d2e1a02d4d099 100644 (file)
@@ -31,7 +31,7 @@
       (_fl<=S_SYMBOL_STUBS || _fl==S_16BYTE_LITERALS) && _fl!=S_ZEROFILL;})
 
 
-#define MASK(n) (~(~0L << (n)))
+#define MASK(n) (~(~0ULL << (n)))
 
 
 
index 4c76c71c828bade0c581033b18bf5353dd8f4175..d025fe34087b7dc495306a76a9881f618c01b04c 100755 (executable)
@@ -24,6 +24,7 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
        string routines
 */
 
+#include <string.h>
 #include "include.h"
 
 object sKstart1;
index d38a792dda32f1f7a41057de104ecdee60f29d33..9d57b73292044d53d8dde28166979ca14fa0708c 100644 (file)
@@ -560,7 +560,7 @@ copy_data_segment (struct load_command *lc)
       sc.fileoff = curr_file_offset;
       sc.filesize = core_end-mach_mapstart;
       sc.maxprot = VM_PROT_READ | VM_PROT_WRITE | VM_PROT_EXECUTE;
-      sc.initprot = VM_PROT_READ | VM_PROT_WRITE | VM_PROT_EXECUTE;
+      sc.initprot = VM_PROT_READ | VM_PROT_WRITE /* | VM_PROT_EXECUTE */;
       sc.nsects = 0;
       sc.flags = 0;
 
index 1dfee3ce2f3cd61f2d2bf16592e68b418e0e007f..8bf14bd6198736fe27cf9f457c1959244cf893d7 100644 (file)
@@ -85,7 +85,6 @@ sys_init.lsp: sys_init.lsp.in
                -e "s#@LI-OPT-TWO@#\"$(O2FLAGS)\"#1" \
                -e "s#@LI-INIT-LSP@#\"$@\"#1" >$@
 
-
 saved_%:raw_% $(RSYM) sys_init.lsp raw_%_map msys \
                $(CMPDIR)/gcl_cmpmain.lsp \
                $(CMPDIR)/gcl_lfun_list.lsp \