Commit Graph

9859 Commits

Author SHA1 Message Date
cjep c83e65e698 Whilst debugging the nbmakeinfo tool on an OpenBSD box, I noticed
two changes in OpenBSD's makeinfo sources. One addresses an out of bounds
access issue and the other an off-by-one issue.

Fixes PR toolchain/56179. Reviewed by christos.
2021-06-07 20:27:59 +00:00
christos 1107fae2d2 enable gdbserver for amd64 (so that we don't break its build). 2021-06-07 14:24:42 +00:00
christos a66f3670d9 regen mipsn64el 2021-06-06 01:09:08 +00:00
rin 7b1352c2f3 Add missing nbsd_init_abi() call to aarch64_nbsd_init_abi().
Fix tests/usr.bin/gdb/t_regress:pie on aarch64eb (types of auxv was
misinterpreted), and hopefully other strange behaviors on aarch64{,eb}.

This is a regression introduced in GDB11. Neither gdb.old nor release
branches are affected.
2021-06-04 01:42:14 +00:00
rin c89b19724b Sort ${MACHINE}'s. No functional changes. 2021-06-03 07:37:00 +00:00
rin 42e92a46dc For amiga, use wskbd as default, which is only supported protocol today. 2021-06-03 07:34:29 +00:00
rin c9540f6f13 PR toolchain/55837
Get rid of -O0 hack for GDB for hard-float arm. This was necessary because
libunwind did not support s0-s31. Note that for *most* cases (not all!),
-O0 stops using VFP registers for general purposes.

Also note that this hack was incomplete. We had to compile every functions
with -O0, that can be unwinded. Otherwise, GDB crashed every time exceptions
were raised.
2021-05-31 22:33:19 +00:00
joerg 9a3318469d Stop using -fcommon, xsrc should be fixed. 2021-05-31 21:45:41 +00:00
joerg b3e06b24c0 Use -fcommon 2021-05-31 00:04:15 +00:00
joerg 729a28aac6 Various X drivers still need -fcommon, so add it. 2021-05-30 22:24:35 +00:00
thorpej 1e5f9ecd1c Minimal change to suppress unaligned access errors on NetBSD/alpha; add
the UNALIGNED decoration to icmp6 related structures.

PR bin/56199.
2021-05-30 21:48:42 +00:00
thorpej daed3b997c Minimal change to suppress unaligned access errors on NetBSD/alpha; add
the UNALIGNED decoration to struct icmp.

PR bin/56199.
2021-05-30 21:01:43 +00:00
joerg a6d457667a Remove old version of libc++, migrated to external/apache2/dist/libcxx
to match the rest of the mono-repo imports.
2021-05-30 03:26:33 +00:00
joerg a34819e0d3 Remove files no longer used by 249b40b558955afe5ac2b549edcf2d7f859c8cc9 2021-05-30 02:58:06 +00:00
joerg a956dc8220 Always use C++17 string_view, the emulation is just broken. 2021-05-30 02:23:25 +00:00
joerg 8a6356f70d Ignore pointer sign cast issues with clang. 2021-05-30 02:22:19 +00:00
joerg 97ed88ec7e Ignore pointer cast warnings for clang, too. Use -Wno-format more
selectively.
2021-05-30 02:20:09 +00:00
joerg 53d1339bf7 Update LLVM build system for 249b40b558955afe5ac2b549edcf2d7f859c8cc9
This enables the use of modules for a significant build performance gain
when building with clang as host compiler or when using HAVE_LLVM=yes.
Switch libc++ to using the copy from the mono-repo.
2021-05-30 01:56:44 +00:00
joerg 4d6fc14bc9 Import libc++ 249b40b558955afe5ac2b549edcf2d7f859c8cc9 2021-05-30 01:29:16 +00:00
joerg 82d56013d7 Import LLVM 249b40b558955afe5ac2b549edcf2d7f859c8cc9. 2021-05-30 01:26:32 +00:00
joerg e038c9c467 Import clang 249b40b558955afe5ac2b549edcf2d7f859c8cc9. 2021-05-30 01:25:15 +00:00
joerg 006b832c46 Cast to enums via uintptr_t to avoid compiler warnings. 2021-05-30 00:19:08 +00:00
joerg 387d62228c Merge 47661d00cd4d6cd728ae31b0bb29a49a6c06272a 2021-05-30 00:12:31 +00:00
joerg ef049e9fc7 Import libcxxrt 47661d00cd4d6cd728ae31b0bb29a49a6c06272a
The repository moved to https://github.com/libcxxrt/libcxxrt in the mean
time, but keep it on the same branch as before. This primarily brings
C++14 support.
2021-05-30 00:08:19 +00:00
rin cd9f2afc58 Make wskbd(4) default for mac68k; no other protocol is available. 2021-05-29 12:15:32 +00:00
mrg 41b9942230 switch mips* and i386 to GCC 10.
arm32 (significant issues remaining), m68k (seems fine, but x68k
needs to reduce support in loadbsd), and sh3 remaining.
2021-05-27 06:58:27 +00:00
jdc af78ad58e0 Restore the build of the pnozz driver on sparc, now that it has EXA support. 2021-05-27 04:54:21 +00:00
jdc c1739f3a47 Update the pnozz files list for EXA support. 2021-05-27 04:53:44 +00:00
christos 946275102f merge local changes between dhcp-4.4.2 and dhcp-4.4.2-P1 2021-05-26 22:52:31 +00:00
christos 2e8b2e06c5 Import dhcp-4.4.2-P1:
! Corrected a buffer overwrite possible when parsing hexadecimal
   literals with more than 1024 octets. Reported by Jon Franklin from Dell,
   and also by Pawel Wieczorkiewicz from Amazon Web Services.
   [Gitlab #182]
   CVE: CVE-2021-25217
2021-05-26 22:48:40 +00:00
christos 2f967ad4a3 Add missing call to libdhcp_callbacks_register(). Should stop
dhcrelay() crashing when accessing *libdhcp_callbacks.local_port.
(from mrg@)
2021-05-21 21:07:37 +00:00
hannken b3278aea3c Replace the Solaris style endian check (exactly one of
_LITTLE_ENDIAN or _BIG_ENDIAN is defined) with standard check
"#if BYTE_ORDER == BIG_ENDIAN" like we do it elseware.

Should fix PR 56191 (ZFS tests fail on sparc64)
2021-05-21 17:32:49 +00:00
christos 407a19b76a restore -iremap functionality which was omitted by a merge botch, and then
remove as unused later.
2021-05-18 21:34:03 +00:00
rin 5b02012073 Fix search for collating symbols in form of [[.foo.]], as in a similar
manner as already done for POSIX character classes by upstream:

fd5795cc98 (diff-42d58222b328681b9923634991312932089876a0242f78cf488157aa24969c1a)

(We already have this change since initial import to external/bsd/nvi.)

Found by tnozaki. Thanks!
2021-05-17 04:01:57 +00:00
rillig ca8378a5d8 wpa: fix Clang build
src/external/bsd/wpa/bin/hostapd/../../dist/src/common/dpp.c:5377:7:
error: format specifies type 'unsigned long' but the argument has type
'os_time_t' (aka 'long long') [-Werror,-Wformat]
2021-05-15 19:19:55 +00:00
nia b4dc6216b2 this is not FreeBSD 2021-05-13 09:05:19 +00:00
nia a7a8521793 zfs: this is not FreeBSD 2021-05-13 09:03:35 +00:00
rin 86042b19c0 Cherry-pick upstream fix for GCC10 regression to -misel option.
Assembler codes generated by GCC are identical with that of our local
fix in rev 1.26 for 32-bit processors, and no significant changes for
64-bit processors also.

master: https://gcc.gnu.org/g:6156df483fa50a08f561b6c248819f2992aa380d
gcc-10: https://gcc.gnu.org/g:5f665c1ca452673e9812cd92b07bd31441c0ac5b
(diffs are same)

commit r12-9-g6156df483fa50a08f561b6c248819f2992aa380d
Author: Segher Boessenkool <segher@kernel.crashing.org>
Date:   Tue Apr 20 12:00:50 2021 +0000

    rs6000: Fix cpu selection w/ isel (PR100108)

    There are various non-IBM CPUs with isel as well, so it is easiest if we
    just don't consider that flag here (it is not needed).

    2021-04-20  Segher Boessenkool  <segher@kernel.crashing.org>

            PR target/100108
            * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
            OPTION_MASK_ISEL.
2021-05-11 01:47:20 +00:00
rin 5811b9203b In preparation to import upstream fix, revert our local fix in rev 1.26:
http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c#rev1.26

> Fix regression introduced to GCC10, where it wrongly recognizes 32-bit
> processors as POWER9 if -misel flag is specified.
2021-05-11 01:39:09 +00:00
christos 2d56ebfab5 PR/56153: Rin Okuyama: alpha miscompiles malloca() macro. 2021-05-08 12:23:47 +00:00
rin 893bd8c6b1 For GCC10, add -Wno-unused-result for alloca(0) here and there. 2021-05-07 12:19:48 +00:00
christos bcc4e02eb3 Don't free things twice (Kengo Nakahara) 2021-05-07 11:11:11 +00:00
mrg f119d7e9a4 avoid GCC-10 warnings. 2021-05-06 06:52:18 +00:00
rillig 77a04ba4f7 libXaw: fix Clang build
--- Pixmap.pico ---
error: unknown warning option '-Wno-discarded-qualifiers'; did you mean
'-Wno-ignored-qualifiers'? [-Werror,-Wunknown-warning-option]
2021-05-04 17:47:05 +00:00
rillig 9b7284c255 compiler_rt: build .a.syms files as part of dependall
The previous target 'all' is a top-level target intended to be specified
by the user.  During the regular build, 'dependall' is used instead of
'all'.  The target 'realall' is common to those two.
2021-05-04 17:23:53 +00:00
rillig 2ef2b36bb5 bind: remove unnecessary CONSTCOND
Lint does not need this anymore, since 2021-01-31.
2021-05-04 13:40:34 +00:00
rillig b640b0e245 bind: fix Clang build
I had already fixed this on 2021-03-27, but the fix was accidentally
reverted on 2021-04-29 when updating to bind 9.16.15.
2021-05-04 13:16:06 +00:00
nakayama ed748a1dd8 Remove duplicate lines. 2021-05-03 08:44:05 +00:00
rillig deeb39e782 compiler_rt: generate symbol table early
These libraries have the special feature that they install both the .a
library as well as the .a.syms that is generated from them.  To avoid
the transformation rule .a.a.syms to apply to the files in ${DESTDIR},
that rule has to be disabled during the installation phase.

If the transformation rule were active during installation, the .a.syms
file in ${DESTDIR} would have more than one possible source file, which
eventually leads to an error during installation since in the command
"install a b c", the last argument must be a directory, not a file.

The installation phase should be as minimal as possible anyway,
therefore move the generation of the .syms files to the build phase.

This hopefully fixes the build for HAVE_LLVM=yes, which has been broken
for several weeks now, at least for the official builds.
2021-04-30 22:48:37 +00:00
nia a0412fee12 zfs: Fix up references to FreeBSD 2021-04-30 18:59:30 +00:00