trunk/gcc220/vcs_diff_scripts.patch results

File details

./trunk/gcc220/vcs_diff_scripts.patch 2026-09-15-05:39

Used binaries

   

Binaries version

> uname -a
OpenBSD cfarm220.cfarm.net 7.9 GENERIC.MP#8 amd64

Full file content

 
diff --git a/scripts/check-all-rtl.sh b/scripts/check-all-rtl.sh
index b24b91e..ab93514 100755
--- a/scripts/check-all-rtl.sh
+++ b/scripts/check-all-rtl.sh
@@ -136,6 +136,8 @@ function fileage ()
   echo $(dateDiff "$filedate" "$now_stamp")
 }
 
+last_time_in_secs=`$DATE --utc +%s`
+
 function time_since_last ()
 {
   declare -g diffSec
@@ -203,6 +205,9 @@ function lecho ()
 
 function rm_lockfile ()
 {
+  if [ -n "${REPORT_ULIMIT:-}" ] ; then
+    mecho "ulimit_at_exit is \"`ulimit -a`\""
+  fi
   if [ -f "$LOCKFILE" ] ; then
     $MV -f "$LOCKFILE" "$TIMESTAMPFILE"
     mv_res=$?
@@ -913,7 +918,8 @@ elif [ "X$machine_host" == "Xgcc220" ] ; then
   NATIVE_OPT="-Aas"
   COMPILE_EACH_CPU=1
   MAKEJOPT="-j 4"
-  ULIMIT_TIME=999
+  ULIMIT_TIME=2500
+  REPORT_ULIMIT=1
   TRUNK_FPMAKEOPT="-T 4"
 ## gcc430 is a x86_64-freebsd VM
 elif [ "X$machine_host" == "Xgcc430" ] ; then
@@ -1055,7 +1061,13 @@ PRLIMIT=` { which prlimit || true ; } 2> /dev/null`
 if [ -n "$PRLIMIT" ] ; then
   $PRLIMIT --cpu=$ULIMIT_TIME: --pid=$$ > /dev/null 2>&1
 else
+  if [ -n "${REPORT_ULIMIT:-}" ] ; then
+    mecho "ulimit_at_start is \"`ulimit -a`\""
+  fi
   ulimit -S -t $ULIMIT_TIME  > /dev/null 2>&1
+  if [ -n "${REPORT_ULIMIT:-}" ] ; then
+    mecho "ulimit_after_first is \"`ulimit -a`\""
+  fi
 fi
 
 BINDIRSUFFIX=""