bootstrap: Fix some windows issues [PR 98300]
authorNathan Sidwell <nathan@acm.org>
Thu, 17 Dec 2020 13:57:13 +0000 (05:57 -0800)
committerNathan Sidwell <nathan@acm.org>
Thu, 17 Dec 2020 13:57:13 +0000 (05:57 -0800)
commit096164229a4c2d1efab9f259f50be1bdcdfc8abd
tree0b12ffe2253c9c39b900696978b1b86f09927d32
parent5357b1620c547a6f2bd81e7868c800e2eee97e51
bootstrap: Fix some windows issues [PR 98300]

When breaking out the sample server from the gcc/cp directory, it lost
its check for mmap, and the sample resolver just assumed it was there.
Fixed thusly.  The non-mapping paths in module.cc weren't (recently)
excercised, and led to a signedness warning.  Finally I'd missed
c++tools's config.h.in in the gcc_update script.  There I took the
opportunity of adding a 'tools' segment of the dependency lists.

PR bootstrap/98300
contrib/
* gcc_update: Add c++tools/config.h.in.
c++tools/
* configure.ac: Check for sys/mman.h.
* resolver.cc: Don't assume mmap, O_CLOEXEC are available.  Use
xmalloc.
* config.h.in: Regenerated.
* configure: Regenerated.
gcc/cp/
* module.cc: Fix ::read, ::write result signedness comparisons.
c++tools/config.h.in
c++tools/configure
c++tools/configure.ac
c++tools/resolver.cc
contrib/gcc_update
gcc/cp/module.cc