Commit Graph

241751 Commits

Author SHA1 Message Date
mrg
0bcf063564 revert most of the previous and re-do it to be valid, re-fixing i386 psABI
support with -m32.
2016-03-27 17:17:59 +00:00
christos
32b59da6c9 Allow for testing other than /bin/sh using TEST_SH (from kre@) 2016-03-27 14:57:50 +00:00
christos
aa36454cd0 Finish these tests (or at least, fill in the place holder tests
with actual code ... tests are never really finished.)  One of these
new tests was how the bug in PR bin/50993 was discovered. (from kre@)
2016-03-27 14:53:17 +00:00
christos
bb5046e57f PR bin/50993 - lots of new here document tests to validate all of
the changes made to fix that PR.   LOTS more tests...  A few general
improvements to the way the tests work and results are reported
as well. (from kre@)
2016-03-27 14:52:40 +00:00
christos
e0530cd421 More tests, add protection against shells that allow wait N
to wait for the same process over and over again (forever) (???)
This test now takes slightly over 20 seconds to complete (elapsed
time) caused by all the waiting on sleep commands being run in
the background. (from kre@)
2016-03-27 14:50:40 +00:00
christos
c43f84898f Finish TEST_SH - all tests should support it now.
Misc other KNF changes, minor bug fixes, and a few minor
extra tests added. (from kre@)
2016-03-27 14:50:01 +00:00
christos
8130505f80 Avoid relying on the test shell correctly implementing $(( ))
in order for some of the redirect tests to terminate. (from kre@)
2016-03-27 14:49:07 +00:00
christos
7c8885a4e7 Move the parseredir internal subroutine out of readtoken1() into being
a real function of its own (also inspired by FreeBSD - though for
this one other sh differences require slightly different code.) (from kre@)
2016-03-27 14:40:20 +00:00
christos
1d1484aa26 PR bin/50993 - this is a significant rewrite of the way that here
documents are processed.  Now, when first detected, they are
simply read (the only change made to the text is to join lines
ended with a \ to the subsequent line, otherwise end marker detection
does not work correctly (for here docs with an unquoted endmarker
only of course.)  This patch also moves the "internal subroutine"
for looking for the end marker out of readtoken1() (which had to
happen as readtoken1 is no longer reading the here doc when it is
needed) - that uses code mostly taken from FreeBSD's sh (thanks!)
and along the way results in some restrictions on what the end
marker can be being removed.   We still do not allow all we should.
(from kre@)
2016-03-27 14:39:33 +00:00
christos
1d4fbce984 Cease "support" for <redirect> fn() { ...
Any redirect (or redirects) before a function definition were
allowed by the parser, but otherwise totally ignored.  The standard
syntax does not permit redirects there, now, neither do we. (from kre@)
2016-03-27 14:36:29 +00:00
christos
f9acd92dd8 Finish constifying the new parsebackquote() function. Save a
variable or two...   Should change nothing. (from kre@)
2016-03-27 14:35:30 +00:00
christos
ca12a0b88a General KNF and source code cleanups, avoid scattering the
magic string " \t\n" all over the place, slightly improved
syntax error messages, restructured some of the code for
clarity, don't allow IFS to be imported through the environment,
and remove the (never) conditionally compiled ATTY option.
Apart from one or two syntax error messages, and ignoring IFS
if present in the environment, this is intended to have no
user visible changes. (from kre@)
2016-03-27 14:34:46 +00:00
skrll
420f6b0097 Switch hppa to gcc 5.3 2016-03-27 10:46:41 +00:00
mrg
0fd71d0df7 add a normal kernel that builds with PAE enabled. this is not yet
hooked into the normal build, but this is a working configuration
and on my 16GB test system, works fine.
2016-03-27 05:14:14 +00:00
mrg
d993c21bf1 don't set PREFERRED_STACK_BOUNDARY_DEFAULT, in particular, don't set it
to 64 (8 bytes) for 64-bit targets, where 16 byte alignment is required.
this fixes GCC 5 and ssh on modern intel cpus, and perhaps more.
2016-03-27 04:18:09 +00:00
mrg
3bd6f79dca - figured out the ldap/ssh problem. was miscompiled crtbeginS.o which
has been worked around.
- update some testing info.
- merge or1k/riscv descriptions that are actually the same problem.
2016-03-27 00:07:20 +00:00
mrg
09a7b9833f add a hack for GCC 5 and non-x86 platforms:
build crtbeginS.o with -O1 as GCC tries to be very smart with the
__DTOR_LIST__ as it believes it knows the size of the array at
compile time (which is not true until link time).  on SPARC and
MIPS, the result was emitting a call to 0.

technically, i believe that GCC isn't "wrong" to make this choice,
as the array is declared with a well-known initialiser size in the
crtbegin.c compilation unit, and we have noticed that the libgcc
version of this code has some hacks added, most likely to avoid
being bitten by this optimisation.


this makes sshd work for me on earm and sparc with GCC 5.
2016-03-27 00:03:06 +00:00
martin
0b2c20760e Do not touch FP register on softfloat kernels. 2016-03-26 17:40:02 +00:00
martin
b1d4b53a67 Fix set lists for mips64 and gcc 5.3 2016-03-26 17:16:48 +00:00
martin
0eb7da4d7a David Binderman in PR port-newsmips/51014:
Move initialization of remain_cnt up to the declaration.
XXX the #ifdef here does not make much sense to me, but I know nothing
about the hardware. I'd guess it could be removed or inverted and #error'd
instead.
2016-03-26 17:14:38 +00:00
martin
07a988af43 David Binderman in port-arm/51013: masking of rxbdtlen happened before
the value was read - move it down a few lines.
2016-03-26 17:04:03 +00:00
hannken
d222105946 Whhen spec_strategy() extracts v_rdev take care to avoid a
race with spec_revoke.

Fixes PR kern/50467 Panic from disconnecting phone while reading its contents
2016-03-26 14:58:13 +00:00
martin
1d9390077f Do not store FP registers in softfloat userland 2016-03-26 11:57:32 +00:00
martin
c22389e399 Fix comment 2016-03-26 11:49:10 +00:00
mrg
6647f806a6 note (belatedly) gdb 7.10 import. 2016-03-26 10:40:05 +00:00
mrg
f9dc4a2c0b switch sparc to GDB 7.10. works for me. 2016-03-26 10:38:22 +00:00
martin
251567c563 Switch playstation2 over to gcc 5.3, binutils 2.26 and gdb 7.10 2016-03-26 10:35:14 +00:00
mrg
1353e79727 mknative-gdb for sparc and gdb 7.10 2016-03-26 10:29:44 +00:00
skrll
dc4391d06a Restore HOST1X and AHB_A2 to pmap_devmap to give pmap less work to do 2016-03-26 09:07:31 +00:00
mrg
c6df9b1e81 use --with-diagnostics-color=auto-if-env as the default for GCC 5. 2016-03-26 09:02:56 +00:00
mrg
fbf2aacce9 sparc has the ldap problem 2016-03-26 09:01:20 +00:00
mrg
2a660b745c mknative-binutils for mips64* and binutils 2.26. 2016-03-26 08:52:22 +00:00
skrll
3e98a566a4 G/C old structs 2016-03-26 08:42:07 +00:00
skrll
b5a4e0ca09 Too many ;; in previous 2016-03-26 08:41:16 +00:00
skrll
fe5f2f1cd4 Attempt to fix mergo for mips 2016-03-26 08:39:55 +00:00
mrg
a9eeed2076 mknative-gdb for mips64eb. 2016-03-26 08:09:54 +00:00
mrg
813ae8862d mknative-gdb for mips64el. 2016-03-26 07:38:55 +00:00
martin
6e8af743d4 Make sure to define __SOFT_FP__ when building a SOFTFLOAT userland 2016-03-26 07:31:11 +00:00
martin
68f0e74d44 Make the softfloat variant compile 2016-03-26 07:21:11 +00:00
joerg
f6d6965b37 If a protected symbol is defined in a shared library, it should still
provide an implementation. Fix the merging rules.
2016-03-25 23:04:41 +00:00
riastradh
bec9c2fe3c KNF 2016-03-25 22:13:23 +00:00
nakayama
01ff6a8d1b Fix probably a typo. 2016-03-25 14:58:53 +00:00
shm
606dc45ebf Add support for clac and stac instructions. 2016-03-25 10:14:43 +00:00
skrll
48d314007f Match with binutils 2016-03-25 09:29:01 +00:00
skrll
40c9ab5d24 Fix mergo for mips 2016-03-25 09:27:43 +00:00
mbalmer
9949b464d8 Note Lua patch level. 2016-03-25 08:16:57 +00:00
mbalmer
fbad720175 Apply second and third patch from http://lua.org/bugs.html. 2016-03-25 08:15:20 +00:00
wiz
bb83bac5d1 Sort SYNOPSIS. Fix xref. 2016-03-25 07:48:16 +00:00
riastradh
998b234a2c No CRT_HAS_128BIT for pcc, which lacks attribute((mode(TI))). 2016-03-25 03:51:19 +00:00
christos
204c2b27e8 update VAX 2016-03-24 21:46:28 +00:00