[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] gcc patch



Hi Vincent,

Attached is a patch to gcc I've been using for quite some time.

It basically does the same as the Amiga platform in that determination
of the maximum cmdline length can take a very long time, and sometimes
even exhaust system memory.

So we restrict the cmdline length.

Hopefully you can include it within your patches.

Thanks,

Alan.
diff -aurN gcc-4.6.3/libtool.m4 gcc-4.2.3.mint/libtool.m4
--- gcc-4.6.3/libtool.m4	Tue Apr  8 14:25:06 2008
+++ gcc-4.6.3.mint/libtool.m4	Tue Apr  8 14:26:46 2008
@@ -317,6 +317,12 @@
     lt_cv_sys_max_cmd_len=8192;
     ;;
 
+  mint*)
+    # On MiNT this test can take minutes to run, and I'm not sure it's
+    # healthy for this platform. Let's restrict it to 8192.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
     # This has been around since 386BSD, at least.  Likely further.
     if test -x /sbin/sysctl; then
diff -ur gcc-4.6.3/boehm-gc/configure gcc-4.2.3.mint/boehm-gc/configure
--- gcc-4.6.3/boehm-gc/configure	2008-04-16 00:27:25.000000000 +0100
+++ gcc-4.6.3.mint/boehm-gc/configure	2008-04-16 09:33:30.000000000 +0100
@@ -4415,6 +4415,12 @@
     lt_cv_sys_max_cmd_len=8192;
     ;;
 
+  mint*)
+    # On MiNT this test can take minutes to run, and I'm not sure it's
+    # healthy for this platform. Let's restrict it to 8192.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
   amigaos*)
     # On AmigaOS with pdksh, this test takes hours, literally.
     # So we just punt and use a minimum line length of 8192.
diff -ur gcc-4.6.3/libffi/configure gcc-4.2.3.mint/libffi/configure
--- gcc-4.6.3/libffi/configure	2008-04-16 00:27:44.000000000 +0100
+++ gcc-4.6.3.mint/libffi/configure	2008-04-16 09:34:32.000000000 +0100
@@ -3552,6 +3552,12 @@
     lt_cv_sys_max_cmd_len=8192;
     ;;
 
+  mint*)
+    # On MiNT this test can take minutes to run, and I'm not sure it's
+    # healthy for this platform. Let's restrict it to 8192.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
   amigaos*)
     # On AmigaOS with pdksh, this test takes hours, literally.
     # So we just punt and use a minimum line length of 8192.
diff -ur gcc-4.6.3/libgfortran/configure gcc-4.2.3.mint/libgfortran/configure
--- gcc-4.6.3/libgfortran/configure	2008-04-16 00:35:02.000000000 +0100
+++ gcc-4.6.3.mint/libgfortran/configure	2008-04-16 09:35:44.000000000 +0100
@@ -3813,6 +3813,12 @@
     lt_cv_sys_max_cmd_len=8192;
     ;;
 
+  mint*)
+    # On MiNT this test can take minutes to run, and I'm not sure it's
+    # healthy for this platform. Let's restrict it to 8192.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
   amigaos*)
     # On AmigaOS with pdksh, this test takes hours, literally.
     # So we just punt and use a minimum line length of 8192.
diff -ur gcc-4.6.3/libgomp/configure gcc-4.2.3.mint/libgomp/configure
--- gcc-4.6.3/libgomp/configure	2008-04-16 00:27:54.000000000 +0100
+++ gcc-4.6.3.mint/libgomp/configure	2008-04-16 09:35:20.000000000 +0100
@@ -3985,6 +3985,12 @@
     lt_cv_sys_max_cmd_len=8192;
     ;;
 
+  mint*)
+    # On MiNT this test can take minutes to run, and I'm not sure it's
+    # healthy for this platform. Let's restrict it to 8192.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
   amigaos*)
     # On AmigaOS with pdksh, this test takes hours, literally.
     # So we just punt and use a minimum line length of 8192.
diff -ur gcc-4.6.3/libjava/classpath/configure gcc-4.2.3.mint/libjava/classpath/configure
--- gcc-4.6.3/libjava/classpath/configure	2008-04-16 00:25:19.000000000 +0100
+++ gcc-4.6.3.mint/libjava/classpath/configure	2008-04-16 09:36:06.000000000 +0100
@@ -5398,6 +5398,12 @@
     lt_cv_sys_max_cmd_len=8192;
     ;;
 
+  mint*)
+    # On MiNT this test can take minutes to run, and I'm not sure it's
+    # healthy for this platform. Let's restrict it to 8192.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
   amigaos*)
     # On AmigaOS with pdksh, this test takes hours, literally.
     # So we just punt and use a minimum line length of 8192.
diff -ur gcc-4.6.3/libjava/configure gcc-4.2.3.mint/libjava/configure
--- gcc-4.6.3/libjava/configure	2008-04-16 00:35:08.000000000 +0100
+++ gcc-4.6.3.mint/libjava/configure	2008-04-16 09:36:32.000000000 +0100
@@ -5535,6 +5535,12 @@
     lt_cv_sys_max_cmd_len=8192;
     ;;
 
+  mint*)
+    # On MiNT this test can take minutes to run, and I'm not sure it's
+    # healthy for this platform. Let's restrict it to 8192.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
   amigaos*)
     # On AmigaOS with pdksh, this test takes hours, literally.
     # So we just punt and use a minimum line length of 8192.
diff -ur gcc-4.6.3/libjava/libltdl/configure gcc-4.2.3.mint/libjava/libltdl/configure
--- gcc-4.6.3/libjava/libltdl/configure	2008-04-16 00:33:55.000000000 +0100
+++ gcc-4.6.3.mint/libjava/libltdl/configure	2008-04-16 09:37:00.000000000 +0100
@@ -5941,6 +5941,12 @@
     lt_cv_sys_max_cmd_len=8192;
     ;;
 
+  mint*)
+    # On MiNT this test can take minutes to run, and I'm not sure it's
+    # healthy for this platform. Let's restrict it to 8192.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
   amigaos*)
     # On AmigaOS with pdksh, this test takes hours, literally.
     # So we just punt and use a minimum line length of 8192.
diff -ur gcc-4.6.3/libmudflap/configure gcc-4.2.3.mint/libmudflap/configure
--- gcc-4.6.3/libmudflap/configure	2008-04-16 00:35:10.000000000 +0100
+++ gcc-4.6.3.mint/libmudflap/configure	2008-04-16 09:34:13.000000000 +0100
@@ -5484,6 +5484,12 @@
     lt_cv_sys_max_cmd_len=8192;
     ;;
 
+  mint*)
+    # On MiNT this test can take minutes to run, and I'm not sure it's
+    # healthy for this platform. Let's restrict it to 8192.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
   amigaos*)
     # On AmigaOS with pdksh, this test takes hours, literally.
     # So we just punt and use a minimum line length of 8192.
diff -ur gcc-4.6.3/libobjc/configure gcc-4.2.3.mint/libobjc/configure
--- gcc-4.6.3/libobjc/configure	2008-04-16 00:28:07.000000000 +0100
+++ gcc-4.6.3.mint/libobjc/configure	2008-04-16 09:34:46.000000000 +0100
@@ -3406,6 +3406,12 @@
     lt_cv_sys_max_cmd_len=8192;
     ;;
 
+  mint*)
+    # On MiNT this test can take minutes to run, and I'm not sure it's
+    # healthy for this platform. Let's restrict it to 8192.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
   amigaos*)
     # On AmigaOS with pdksh, this test takes hours, literally.
     # So we just punt and use a minimum line length of 8192.
diff -ur gcc-4.6.3/libssp/configure gcc-4.2.3.mint/libssp/configure
--- gcc-4.6.3/libssp/configure	2008-04-16 00:28:07.000000000 +0100
+++ gcc-4.6.3.mint/libssp/configure	2008-04-16 09:33:49.000000000 +0100
@@ -4571,6 +4571,12 @@
     lt_cv_sys_max_cmd_len=8192;
     ;;
 
+  mint*)
+    # On MiNT this test can take minutes to run, and I'm not sure it's
+    # healthy for this platform. Let's restrict it to 8192.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
   amigaos*)
     # On AmigaOS with pdksh, this test takes hours, literally.
     # So we just punt and use a minimum line length of 8192.
diff -ur gcc-4.6.3/libstdc++-v3/configure gcc-4.2.3.mint/libstdc++-v3/configure
--- gcc-4.6.3/libstdc++-v3/configure	2008-04-16 00:35:28.000000000 +0100
+++ gcc-4.6.3.mint/libstdc++-v3/configure	2008-04-16 09:33:10.000000000 +0100
@@ -4379,6 +4379,12 @@
     lt_cv_sys_max_cmd_len=8192;
     ;;
 
+  mint*)
+    # On MiNT this test can take minutes to run, and I'm not sure it's
+    # healthy for this platform. Let's restrict it to 8192.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
   amigaos*)
     # On AmigaOS with pdksh, this test takes hours, literally.
     # So we just punt and use a minimum line length of 8192.
diff -ur gcc-4.6.3/zlib/configure gcc-4.2.3.mint/zlib/configure
--- gcc-4.6.3/zlib/configure	2008-04-16 00:28:38.000000000 +0100
+++ gcc-4.6.3.mint/zlib/configure	2008-04-16 09:35:02.000000000 +0100
@@ -3521,6 +3521,12 @@
     lt_cv_sys_max_cmd_len=8192;
     ;;
 
+  mint*)
+    # On MiNT this test can take minutes to run, and I'm not sure it's
+    # healthy for this platform. Let's restrict it to 8192.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
   amigaos*)
     # On AmigaOS with pdksh, this test takes hours, literally.
     # So we just punt and use a minimum line length of 8192.
diff -aurN gcc-4.6.3/gcc/configure gcc-4.6.3.mint/gcc/configure
--- gcc-4.6.3/gcc/configure	Tue Apr  8 14:25:06 2008
+++ gcc-4.6.3.mint/gcc/configure	Tue Apr  8 14:26:46 2008
@@ -14578,6 +14578,10 @@
     lt_cv_sys_max_cmd_len=8192;
     ;;
 
+  mint*)
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
     # This has been around since 386BSD, at least.  Likely further.
     if test -x /sbin/sysctl; then