Commit Graph

264626 Commits

Author SHA1 Message Date
mrg
40c539ae8c first cut mknative-gcc for gcc7 amd64. i've hand edited some
libgcc files to ease mknative updates.

not functional yet.
2019-01-19 17:11:52 +00:00
mrg
ac39157870 begin to handle new unwind.h and gthr-default.h stuff.
put gthr stuff in a common makefile.

remove ancient unused Makefile.srcs.
2019-01-19 17:11:02 +00:00
mrg
e521445bd8 also pull out these variables:
enable_execute_stack
	unwind_header
	md_unwind_header
	sfp_machine_header
	thread_header
2019-01-19 17:08:39 +00:00
mrg
1887939342 regen these for <GCC 7.4.0. 2019-01-19 17:04:06 +00:00
dholland
0691ca8da8 i915drmkms requires firmload. PR 53892 2019-01-19 16:58:29 +00:00
kre
66ac24c3bf When we exit from running off the end of the input file (which
includes typing ^D) make sure LINENO is set to indicate the last
(actually one past last) line in the input file, rather than
whatever it was set to by the last command that was actually
executed (which could be some line in a function defined in
some other file).

No effect on exit via an explicit exit command - that would already
set the line number correctly.
2019-01-19 14:20:22 +00:00
kre
f04239a697 Allow the decimal radix character '.' to work, regardless of
what the current locale's radix character happens to be,
while still allowing locale specific entry of fractional
seconds (ie: if you're in locale where the radix character
is ',' you san use "sleep 2.5" or "sleep 2,5" and they
accomplish the same thing).

This avoids issues with the "sleep 0.05" in rc.subr which
generated usage messages when a locale that does not use
'.' as its radix character was in use.

Reported on netbsd-users by Dima Veselov, with the problem
diagnosed by Martin Husemann

While here, tighten the arg validity checking (3+4 is
no longer permitted as a synonym of 3) and allow 0.0
to mean the same thing as 0 rather than being an error.

Also, make the SIGINFO reports a little nicer (IMO).

The ATF tests for sleep all pass (not that that means a lot).
2019-01-19 13:27:12 +00:00
martin
101948139d PR kern/53893: add missing #ifdef DDB around db_printf calls. 2019-01-19 13:17:32 +00:00
kre
cf75e20323 Add some error checking, and stop assuming what the input
will necessarily contain.   Allow defined nodes to use any
intN_t or unintN_t (as well as plain old int) data types
in fields (along with the others that are permitted).

Note: this script is a part of the build procedure for /bin/sh,
the modified version generates the exact same output files
(for the unaltered input specifications) as the previous one
did, hence no visible change is expected (or even possible).

While there is a tiny chance that some host shell will fail
to be able to run this script while building, the script still
uses nothing even slightly exotic, and is much more conservative
than other scripts used during the build process, so there should
be no issues there either.
2019-01-19 13:08:50 +00:00
mrg
ea47ee7d4a add basic gcc-7 support in sets lists and filesystem. mips gained
a header.  assumes it's otherwise mostly the same as gcc-7.
2019-01-19 13:06:50 +00:00
mrg
0b4f44e237 obsolete gcc 5 support.
add gcc 7 support.  call it "nb1 20190119"
2019-01-19 12:58:37 +00:00
mrg
56f09d6642 gcc 7 will use gcc-7 subdir. 2019-01-19 12:57:32 +00:00
mrg
62ffddee45 disable new s-selftest rule that relies upon missing testsuite. 2019-01-19 12:32:06 +00:00
mrg
a41324a9f3 first pass at merging GCC 7.4.0. unlikely to compile.. 2019-01-19 12:10:03 +00:00
mrg
b17d1066a7 import GCC 7.4.0. main changes include:
The non-standard C++0x type traits has_trivial_default_constructor,
has_trivial_copy_constructor and has_trivial_copy_assign have been
removed.

On ARM targets (arm*-*-*), a bug introduced in GCC 5 that affects
conformance to the procedure call standard (AAPCS) has been fixed.

Many optimiser improvements

DWARF-5 support.

Many new and enhanced warnings.

Warnings about format strings now underline the pertinent part of
the string, and can offer suggested fixes.

Several new warnings related to buffer overflows and buffer
truncation.

New __builtin_add_overflow_p, __builtin_sub_overflow_p,
__builtin_mul_overflow_p built-ins added that test for overflow.

The C++ front end has experimental support for all of the current
C++17 draft.

The -fverbose-asm option has been expanded to prints comments
showing the source lines that correspond to the assembly.

The gcc and g++ driver programs will now provide suggestions for
misspelled arguments to command-line options.


AArch64 specific:

GCC has been updated to the latest revision of the procedure call
standard (AAPCS64) to provide support for parameter passing when
data types have been over-aligned.

The ARMv8.2-A and ARMv8.3-A architecture are now supported.

ARM specific:

Support for the ARMv5 and ARMv5E architectures has been
deprecated (which have no known implementations).

A new command-line option -mpure-code has been added. It does not
allow constant data to be placed in code sections.

x86 specific:

Support for the AVX-512 4FMAPS, 4VNNIW, VPOPCNTDQ and Software
Guard Extensions (SGX) ISA extensions has been added.

PPC specific:

GCC now diagnoses inline assembly that clobbers register r2.

RISC-V specific:

Support for the RISC-V instruction set has been added.

SH specific:

Support for SH5/SH64 has been removed.

Support for SH2A has been enhanced.
2019-01-19 10:13:58 +00:00
skrll
cf574490c6 Increase MSGBUFSIZE 2019-01-19 09:11:55 +00:00
christos
3f3dbbcd73 add a range and a repeat regex test. 2019-01-19 01:02:12 +00:00
christos
d7ebb8dfb4 PR/53885: Martijn Dekker: Add ERE support from
https://opensource.apple.com/tarballs/awk/awk-24.tar.gz
2019-01-19 00:37:41 +00:00
macallan
3c64c6cf95 allow font loading, resizing etc. 2019-01-19 00:16:43 +00:00
mrg
529b231fc9 link in libexecinfo. 2019-01-18 23:05:30 +00:00
skrll
8c499c7d34 Add support for "bootargs" environment variable from jmcneill@
Doesn't work with some (all?) u-boots.
2019-01-18 19:41:03 +00:00
jdolecek
ce95c4acc1 revert rev 1.73 - while it apparently helped Christos case, it re-broke
the disk detection on several other systems, so need something else
2019-01-18 19:16:50 +00:00
scole
6001fabeed Add DPRINTF function, use kstack variable for proc0 memory, reorder some functions so ci initialized before use 2019-01-18 18:47:16 +00:00
scole
ac4496f49f hopefully fix deadlock issue in cpu_switchto. pointed out by <mrg> (Thanks!) 2019-01-18 18:03:06 +00:00
christos
8d69f81137 - mark gcc=5 files obsolete
- make includes always available, not only when gcccmds
- mark files obsolete consistently
2019-01-18 17:49:55 +00:00
christos
a9dc9217bb Descend and build includes even if mkgcccmds=no because we need the header
files during cross build too.
2019-01-18 17:31:39 +00:00
christos
ededf16281 If we are building gcc, we always install the include files, otherwise
we can't build things even when cross-compiling because of missing header
files (like stdatomic.h). Really all the md/ad header files now will be
installed when mkgcccmds=no, but I've only fixed m68k.
2019-01-18 17:30:31 +00:00
skrll
69e8dca2e5 Adapt https://svnweb.freebsd.org/base?view=revision&revision=342113 to
NetBSD.

This brings us resolving for dynamically loaded libraries and makes
tests/libexec/ld.elf_so/t_thread_local_dtor pass.

With suggestions from joerg@
2019-01-18 11:59:03 +00:00
skrll
374c49c6e2 KNF 2019-01-18 07:05:36 +00:00
skrll
d11d80eced Default to USBREV_3_0 if usbrev is unknown. 2019-01-18 07:03:02 +00:00
kre
e8ed7c888d Finish (hopefully) the second half of 1.47 ... make sure
that when traps are marked as invalid, we never use them
for anything except output from the trap command.

Fixes issues where sub-shells of shells which use traps
(eg: to trap SIGPIPE) can end up looping forever if the
signal occurs in a sub-shell (where the trap is supposed
to be reset to its default).   Reported, and mostly
analyzed by Martijn Dekker.
2019-01-18 06:28:09 +00:00
mrg
8f49d6e252 rework size_arrays():
- avoid calloc, use bozomalloc
- minor CSE
- fix bozoprefs->size setting when increasing the size (new total was
  being added to the prior total.)  found by clang static analyzer
  from rajeev_v_pillai.

pass httpd to size_arrays() now.
free(NULL) is legal.
2019-01-18 06:04:10 +00:00
mrg
5335936687 fix a few problems pointed out by clang static analyzer, from rajeev_v_pillai:
- bozostrnsep() may return with "in = NULL", so check for it.
- nul terminating in bozo_escape_rfc3986() can be simpler
- don't use uniinit variables in check_remap()
- don't use re-used freed data in check_virtual().  this one is tricky as
  the original code was:
	free(request->hr_file);
	request->hr_file = bozostrdup(httpd, request, s ? s : "/");
  however, bozostrdup() may reference request->hr_file.
2019-01-18 05:48:31 +00:00
mrg
f1c249720f add missing notable things i've done since netbsd-8:
fsdb(8): Add "saveblks" command. [mrg 20170804]
	gzip(1): Add SIGINFO support. [mrg 20170804]
	sparc: Fix time goes backwards. [mrg 20180112]
	midiplay: Add -s option to send all sounds off. [mrg 20180503]
	usb(4): Many fixes to abort issues fixed for all USB controllers.
		[mrg/skrll/riastradh 20180809]
	nullfs(4): Add 32-bit support. [mrg 20180811]
	i915(4): Pull in support for KabyLake CPUs. [mrg 20180913]
	usb(4): Handle most cases of early boot USB keyboard. [mrg 20180916]
	httpd(8): Update to bozohttpd-20181215. [mrg 20181215]
	crashme(9): Add framework for testing kernel crash dumps. [mrg 20190109]
2019-01-18 04:14:47 +00:00
macallan
b135601990 don't crash when we're not the console 2019-01-17 23:05:15 +00:00
kamil
1514387ab8 Add a new example kernel module: mapper
Basic implementation of mmap.

Submitted by Akul Pillai.
2019-01-17 20:47:42 +00:00
christos
76718fd7da Use the proper stack aligment for the architecture. Fixes broken asan
tests on i386.
2019-01-17 20:36:51 +00:00
maxv
3b6bd9f01b Increase VM_PHYSSEG_MAX from 32 to 64. Saw an example on tech-kern@ of a
heavily fragmented memory map.
2019-01-17 19:26:03 +00:00
christos
9115af4f14 Enable stdatomic.h in all except lint (thanks joerg@) 2019-01-17 18:44:50 +00:00
maxv
73b2ed774d Simplify pmap_sync_pv: just pass a pa, and build the pte inside. 2019-01-17 14:24:51 +00:00
jmcneill
47334d6753 Add exynos5422-odroidhc1.dts 2019-01-17 13:51:25 +00:00
skrll
f68c63dab4 KNF 2019-01-17 12:49:53 +00:00
hannken
cf7182fc62 Use cv_broadcast() on "sc_sync_wait" to prevent deadlock
when more than one thread try to "DIOCCACHESYNC" at the
same time.
2019-01-17 10:20:01 +00:00
hannken
d99716dabb Use PRIu64 for "uint64_t tp_refcnt". 2019-01-17 10:18:52 +00:00
wiz
845dfb2f5e Add missing width argument to Bl. Remove Pp before It. 2019-01-17 08:53:17 +00:00
mrg
9b91523ebd - call this 20190116
- adjust the directory indexing again:
  - don't include "index.html" in html headers
  - additional escaping of names
  - re-add top/bottom borders
  - adds an aquamarine table header
  - Zebra-stripes table rows using CSS instead of code
  all from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>
2019-01-17 07:46:16 +00:00
mrg
d1eeb82409 add 'check' target to toplevel makefile.
fix the t11.out output now that CGI parsing works better.
2019-01-17 07:39:00 +00:00
mrg
9c0805993a - fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().

both from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>
2019-01-17 07:34:06 +00:00
gutteridge
9eac6fa178 compat_netbsd32(8): brief adjustments concerning ARM binary support.
At present, aarch64 doesn't actually offer OABI compatibility. Also
note that this provides OABI vs. EABI compatibility for 32-bit ARM
ports. Addresses the remainder of PR misc/48968.
2019-01-17 07:05:24 +00:00
gutteridge
e5663ad9a9 btpand(8): replace dhclient(8) references with dhcpcd(8)
Addresses part of PR misc/53669.
2019-01-17 05:52:21 +00:00