Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Test version zsh-3.1.6-test-1



Peter Stephenson wrote:

> Much of the new code is fairly well tested, so my main interest now is to
> sort out compilation problems for systems we may not have tried.  In
> particular, it would be helpful if anyone compiling this (including regular
> zsh-workers) could check against the notes for their configuration in
> Etc/MACHINES, and drop a note to zsh-workers@xxxxxxxxxxxxxx about anything
> different, i.e. successful compilations on configurations not mentioned at
> all, or problems not mentioned for configurations which are supposed to
> work, or problems which seem to have been exaggerated --- don't assume we
> know anything machine-specific which isn't in Etc/MACHINES.

Under DU 4.0 with gcc-2.8.1 I get a SEGV in a piece of completely
correct C-code in bin_read(). I can work around this by using the
patch below -- which, of course, is completely silly.

Dunno if this should be included, but the SEGV is deadly: it fails on
e.g. the read in compinit.

Bye
 Sven

diff -u ../zn/os/builtin.c Src/builtin.c
--- ../zn/os/builtin.c	Tue Jul 13 10:58:50 1999
+++ Src/builtin.c	Tue Jul 13 13:22:33 1999
@@ -3251,10 +3251,15 @@
     }
 
     firstarg = *args;
-    if (*args && **args == '?')
-	args++;
-    /* default result parameter */
-    reply = *args ? *args++ : ops['A'] ? "reply" : "REPLY";
+    if (*args && **args == '?') {
+    	args++;
+	/* default result parameter */
+	reply = *args ? *args++ : ops['A'] ? "reply" : "REPLY";
+	/* (If we put this reply=... after the `if' gcc-2.8.1 under
+	   Digital Unix 4.0 generates incorrect code.) */
+    } else
+	reply = *args ? *args++ : ops['A'] ? "reply" : "REPLY";
+
     if (ops['A'] && *args) {
 	zwarnnam(name, "only one array argument allowed", NULL, 0);
 	return 1;

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author