Commit Graph

87753 Commits

Author SHA1 Message Date
tv
4218eaa025 Some patches from Marc Espie that make autoconf 2.52 work with the updated
/usr/bin/m4.  (Turn off some GNU m4 checks, and go back to non-frozen
source files.)
2001-11-14 19:53:25 +00:00
tv
2766c577c2 Import autoconf 2.52 for the benefit of maintaining src/tools. 2001-11-14 19:47:22 +00:00
thorpej
f01d91b750 If MACHINE_ARCH == arm, set USE_NEW_TOOLCHAIN=yes and OBJECT_FMT=ELF.
It is infeasible for some ARM ports to use anything but ELF/new-toolchain,
and this allows for the ARM ports that aren't ready for ELF to stay at
MACHINE_ARCH == arm32 until they're ready.  The rest of the ARM ports
have a userbase such that if a flag day happens with the compiler (there
are a couple of ABI issues still being discussed), that it won't matter
so much.

Discussed with Ben Harris, Matt Thomas, and Chris Gilbert.
2001-11-14 19:46:38 +00:00
tv
a4c4ea7686 Fix a very old and annoying bug: Adding suffixes to sufflist wasn't setting
a refCount of 1 to indicate its presence on sufflist.  Hence suffixes were
being removed by Suff_EndTransform() and being freed before all the
referential links were removed.  This resulted in a malloc warning on 1.5.x:
  make in free(): warning: chunk is already free.

This could be reproduced with the following simple Makefile passed to
"make -r":
=====
.SUFFIXES: .l .c
.l.c:
foo:
2001-11-14 19:27:40 +00:00
christos
66a8284d66 mention that we ignore negative fds. 2001-11-14 18:48:11 +00:00
christos
88db539589 Make poll(2) ignore negative file descriptors (Bang Jun-Young). 2001-11-14 18:43:58 +00:00
thorpej
bd15cfaed8 Merge the thorpej-mips-cache branch onto the trunk. This is an
overhaul of how caches are handled for NetBSD's MIPS ports.
2001-11-14 18:26:21 +00:00
thorpej
af66038f73 Merge the thorpej-mips-cache branch onto the trunk. This is an
overhaul of how caches are handled for NetBSD's MIPS ports.
2001-11-14 18:15:10 +00:00
he
ed00fe0aee Plug a memory leak when setting PWD -- don't mark the variable with
VTEXTFIXED because the value is dynamically allocated.  Fix from
Tor Egge, FreeBSD PR#31533.
2001-11-14 18:04:36 +00:00
augustss
effc318eca Regen. 2001-11-14 17:50:44 +00:00
augustss
77a68c4bf2 Add another printer dongle. 2001-11-14 17:50:21 +00:00
tv
6b68aed49a Add m4 to host tools (not built by default). 2001-11-14 15:32:05 +00:00
tv
650b2f0a52 Get first getopt string right; provide better usage message. 2001-11-14 14:57:04 +00:00
tv
edef067add Document -o. 2001-11-14 14:49:38 +00:00
tv
f69c13a649 Whitespace nit. 2001-11-14 14:44:29 +00:00
tv
428a14fd18 Make this buildable as a reachover host tool. 2001-11-14 14:22:09 +00:00
hubertf
95bf3bc4cd add pseudo-device rnd - it's needed by sshd 2001-11-14 13:25:19 +00:00
tv
4b087712af Pull in various changes from OpenBSD, most from Marc Espie, including:
* Provide some GNUisms as extensions.
* Provide dynamically growable string space.
* Make define(defn(foo)) work correctly for builtins.
(The current version is supposed to be capable of satisfying autoconf.)

All still relevant NetBSD changes have been preserved in this version, and
formatting and style fixes have been applied in various places.

Thanks to Masao Uebayashi <uebayasi@soum.co.jp> for pointing this out.
2001-11-14 06:16:07 +00:00
enami
6737e7d6b2 Test absense of command differently to avoid null pointer deference
when only whitespaces are given.
2001-11-14 03:01:15 +00:00
itojun
d67d6cd1bb initialize sockaddr_in6 correctly. sync with kame 2001-11-14 01:56:29 +00:00
itojun
a6b4b2d5a5 use strncpy instead of strcpy, just in case. sync with kame 2001-11-14 01:55:38 +00:00
thorpej
be13b85887 * Give the XScale its own cpu_control() entry point; we have to flush
the Branch Target Buffer of the BPRD bit changes.
* Enable Branch Prediction on the XScale by default.
* Don't invalidate the Branch Target Buffer explicitly. the i80200
  manual (section 5.1, Branch Target Buffer Operation) notes that
  manual software management of the BTB is unnecessary; it is flushed
  implicitly when:
     * processor resets
     * FCSE process ID is written
     * I-cache is invalidated
2001-11-14 01:00:05 +00:00
tv
5489b30b60 ${MAKE} print-objdir -> ${PRINTOBJDIR} 2001-11-14 00:58:48 +00:00
tv
8bef0452bd ${MAKE} print-objdir -> ${PRINTOBJDIR} 2001-11-14 00:41:52 +00:00
thorpej
91f49d269d Eliminate some duplicated code here (similar to XScale code):
* sa110_cache_purgeD() is the same as sa110_cache_cleanD() on the
  SA-1 -- make it an alias.
* sa110_cache_syncI() and sa110_cache_purgeID() are identical to
  sa110_cache_cleanD() on the SA-1, with the exception that the
  I-cache must also be flushed.  Save code duplication by moving
  the I-cache flush before the D-cache clean and letting it fall
  through.
2001-11-14 00:08:05 +00:00
tv
23b305bcfa * Use -isystem instead of -idirafter for ${DESTDIR}/usr/include.
* Provide defaults for HOST_AR and HOST_RANLIB.
* Formatting cleanup.
2001-11-13 20:25:38 +00:00
chris
4d1b8d545e Sync to libc version of divsi3.S. This is to fix up the stack for 8 byte alignment. 2001-11-13 20:06:40 +00:00
chris
aadbf924e6 Update asm files to use sp instead of r13. Also tweak a couple of bits in the longjmp code to save an instruction. 2001-11-13 20:04:52 +00:00
chris
d4ffdc1db0 Update arm libc files for 8 byte aligned stack. 2001-11-13 20:03:38 +00:00
tv
d4c01db697 Turn off kernel rcsids by default on a.out, but let it be turned on again
with the option USE_KERNEL_RCSIDS.  (On a.out, these strings are actually
allocated memory and loaded; on ELF, they exist in a non-loaded file section.)
2001-11-13 19:52:39 +00:00
tv
7df9c95b77 Only put LintSys*.c in DPSRCS; the others are static files. 2001-11-13 19:16:41 +00:00
tv
8db91a3669 Revert part of rev. 1.20 -- $DESTDIR and $TOOLDIR are deliberately shown
symbolically with "-n", as these may come from mk.conf after building the
bootstrap make.  Add a comment to that effect.
2001-11-13 19:03:08 +00:00
tv
c750bb2e19 Clean up a little more (DPSRCS already goes in CLEANFILES; reduce
redundancy of DPSRCS).
2001-11-13 18:57:47 +00:00
tv
4f2487f123 Update to match libc's new .S build rules. 2001-11-13 18:55:00 +00:00
tv
75b1d2a008 No need for the .for in this case (holdover from earlier noncommitted
version of the simplification).
2001-11-13 18:46:17 +00:00
tv
68e6fca807 Make this match the new .S extension of syscalls. 2001-11-13 18:39:10 +00:00
augustss
b684acbf39 Add wsmux (it seems to work now). 2001-11-13 17:56:30 +00:00
augustss
c5477b70aa The wsmux pseudo device does not need a count anymore. 2001-11-13 17:54:46 +00:00
tv
6ba13bbf13 Reverse the order of "make cleandir" and "make obj" back to the way they
were historically.  Discrepancy noted by atatat.
2001-11-13 17:47:16 +00:00
augustss
6a161b0a72 Add a DISGNOSTIC message. 2001-11-13 17:45:07 +00:00
tv
0b806103d9 "${FOO}" -> ${FOO:Q} 2001-11-13 17:37:03 +00:00
tv
25c34dba0d Move host program overrides of INSTALL and MKDEP to <bsd.hostprog.mk>. 2001-11-13 17:36:14 +00:00
tv
9f22792e0b No need for ${CPP}; just compile the .S if m68k || i386.
Formatting cleanup.
2001-11-13 17:26:52 +00:00
tv
0b5c0ba712 Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.
2001-11-13 17:14:27 +00:00
tv
6cb9463f87 Build *_tab.h as part of DPSRCS to make "make depend" work correctly. 2001-11-13 17:01:23 +00:00
tv
259ff4e7d0 Re-add MKTOOLS as a "yes"/"no" only variable, which prevents recursion on "no"
into the src/tools subdirs on all/depend/dependall/install.  Other recursive
targets are not affected.
2001-11-13 16:17:24 +00:00
tv
f4381c7fc4 Make previous a bit cleaner, too: just refer to all these files by the
.S extension; no need to do all the :.o=.S transforms.
2001-11-13 16:03:53 +00:00
tv
af17e1a352 Rather than build in tools' and lib' twice, build tools' and lib'
completely and install them, then skip recursing into those directories
on the final dependall/install.
2001-11-13 15:56:28 +00:00
tv
be1b573f6d One More Time: Make _mvcpp work on an UPDATE install (without bombing). 2001-11-13 15:32:15 +00:00
tv
958e3755af Make _mvcpp work on an UPDATE reinstall. 2001-11-13 15:30:06 +00:00