Mercurial > hg > xemacs-beta
annotate src/m/mips4.h @ 4686:cdabd56ce1b5
Fix various small issues with the multiple-value implementation.
lisp/ChangeLog addition:
2009-08-31 Aidan Kehoe <kehoea@parhasard.net>
* byte-optimize.el (byte-optimize-form-code-walker):
Be careful about discarding multiple values when optimising
#'prog1 calls.
(byte-optimize-or):
Preserve any trailing nil, as this is a supported way to
explicitly discard multiple values.
(byte-optimize-cond-1):
Discard multiple values with a singleton followed by no more
clauses.
* bytecomp.el (progn):
(prog1):
(prog2):
Be careful about discarding multiple values in the byte-hunk
handler of these three forms.
* bytecomp.el (byte-compile-prog1, byte-compile-prog2):
Don't call #'values explicitly, use `(or ,(pop form) nil) instead,
since that compiles to bytecode, not a funcall.
* bytecomp.el (byte-compile-values):
With one non-const argument, byte-compile to `(or ,(second form)
nil), not an explicit #'values call.
* bytecomp.el (byte-compile-insert-header):
Be nicer in the error message to emacs versions that don't
understand our bytecode.
src/ChangeLog addition:
2009-08-31 Aidan Kehoe <kehoea@parhasard.net>
* eval.c (For, Fand):
Don't declare val as REGISTER in these functions, for some reason
it breaks the non-DEBUG union build. These functions are only
called from interpreted code, the performance implication doesn't
matter. Thank you Robert Delius Royar!
* eval.c (Fmultiple_value_list_internal):
Error on too many arguments.
tests/ChangeLog addition:
2009-08-31 Aidan Kehoe <kehoea@parhasard.net>
* automated/lisp-tests.el (Assert-rounding):
Remove an overly-verbose failure message here.
Correct a couple of tests which were buggy in themselves. Add
three new tests, checking the behaviour of #'or and #'and when
passed zero arguments, and a Known-Bug-Expect-Failure call
involving letf and values. (The bug predates the C-level
multiple-value implementation.)
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 06 Sep 2009 19:36:02 +0100 |
parents | 3ecd8885ac67 |
children |
rev | line source |
---|---|
428 | 1 /* Synched up with: FSF 19.31. */ |
2 | |
3 /* machine description file for Mips running RISCOS version 4. */ | |
4 | |
5 #include "mips.h" | |
6 | |
7 /* The following line tells the configuration script what sort of | |
8 operating system this machine is likely to run. | |
9 USUAL-OPSYS="note" | |
10 | |
11 NOTE-START | |
12 Use -opsystem=usg5-2-2 normally, or -opsystem=bsd4-3 with the BSD | |
13 world. | |
14 NOTE-END */ | |
15 | |
16 #if 0 | |
17 /* Define MIPS2 if you have an R6000 or R4000. */ | |
18 #define MIPS2 | |
19 #endif | |
20 | |
21 #ifdef __GNUC__ | |
22 #define C_DEBUG_SWITCH "-g -O" | |
23 #else | |
24 /* We used to have -systype bsd43, but a configure change | |
25 now takes care of that option. */ | |
26 #ifdef MIPS2 | |
27 #define C_DEBUG_SWITCH "-DMips -g3 -Wf,-XNd4000 -O -Olimit 2000 -mips2" | |
28 #else | |
29 #define C_DEBUG_SWITCH "-DMips -g3 -Wf,-XNd4000 -O -Olimit 2000" | |
30 #endif | |
31 #endif | |
32 | |
33 #ifdef TERMINFO | |
34 #undef TERMINFO | |
35 #endif | |
36 | |
37 #define START_FILES "pre-crt0.o /lib/crt1.o" | |
38 /* Used to have -lisode, but jlp@math.byu.edu says remove it | |
39 (for RISCOS 4.52). */ | |
40 /* ethanb@ptolemy.astro.washington.edu says crtn.o uses _ctype | |
41 and therefore we must search libc again after crtn.o. | |
42 The -L is used to force second -lc to find the sysv version | |
43 of libc.a, which is needed because the BSD libc.a | |
44 doesn't have _ctype. */ | |
45 #define LIB_STANDARD "-lc /lib/crtn.o -L/usr/lib -lc" | |
46 | |
47 | |
48 #define COFF | |
49 #undef LD_SWITCH_MACHINE | |
50 #define LD_SWITCH_MACHINE "-systype bsd43 -g3 -D 800000" | |
51 | |
52 #define NO_MODE_T | |
53 | |
54 /* These are needed on Riscos 4.0. | |
55 It appears that's the only system which uses mips4.h and defined BSD. */ | |
56 #ifdef BSD | |
57 #undef HAVE_XRMSETDATABASE | |
58 #undef HAVE_XSCREENRESOURCESTRING | |
59 #endif |