Commit Graph

2507 Commits

Author SHA1 Message Date
christos ee0de9e6fd pass lint on vax (avoid zerodivide) 2022-08-27 08:30:04 +00:00
rin 0d696ff8f8 Revert our local fix for GCC 10.3 introduced in rev. 1.25:
http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c#rev1.25

The problem has been fixed differently by upstream:
- master: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=77eccbf39ed55297802bb66dff5f62507a7239e3
- gcc-10: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=6142d65f4f528067f31e86bb97c07a661f2d66e7

No regression observed for ATF on oea (sandpoint), booke (evbppc), and
405 (evbppc). The system boots successfully on 403 (evbppc).
2022-07-24 10:53:17 +00:00
mrg be53bacd52 regen 2022-07-23 19:05:14 +00:00
mrg 8306b1360a arm64 needs additional lse.S builds with GCC 10.4.0. 2022-07-22 21:59:11 +00:00
mrg 96ca164f32 revert the previous; atomicity.cc is also built into here. 2022-07-22 21:51:08 +00:00
mrg 343972289b atomicity.cc has moved into libsupc++ for everyone.
this was a workaround we applied for sparc in PR#54660, and
now is used for all platforms.
2022-07-22 21:28:32 +00:00
mrg e017c8d29d regen everything for GCC 10.4.0. 2022-07-22 21:10:26 +00:00
mrg 9f30ce74df merge GCC 10.4.0. 2022-07-22 20:22:33 +00:00
mrg a448f87c37 initial import of GCC 10.4.0 sources.
mostly a large list of PRs fixed (210 total), plus one x86-64
specific change related to MMX and 64 bit integer return.

https://gcc.gnu.org/gcc-10/changes.html links to the full list
of PRs fixed.
2022-07-22 19:52:30 +00:00
mrg 0f1671f24f initial import of GCC 10.4.0 sources.
mostly a large list of PRs fixed (210 total), plus one x86-64
specific change related to MMX and 64 bit integer return.

https://gcc.gnu.org/gcc-10/changes.html links to the full list
of PRs fixed.
2022-07-22 19:52:28 +00:00
mrg c38f6a9699 fix missing components of c++17.
codecvt.cc was already present and handled for c++98 and c++11,
but cow-string-inst.cc, ostream-inst.cc, and string-inst.cc
were not handled for c++11 and c++17.

move all the handling of this into the Makefiles out of the
mknative-gcc output, and handle the new c++17 files.

fixes a problem reported by dholland.
2022-07-22 07:09:21 +00:00
rin b9429f260c PR toolchain/56268
For NetBSD/m68k, program header is erroneously readable from core dump,
although a page containing it is missing. This spoils relocation for
the main executable, and debugging with core dumps becomes impossible,
as described in the PR.

In order to avoid this failure, add consistency check for program header;
for NetBSD, 1st entry of program header refers program header itself. If
this is not the case, we should be reading random garbage from core dump.

Yes, this is a kind of the hackest hack. But, unable to debug with core
dump is critical. Therefore, I commit this workaround temporarily until
the real cause is found and fixed.

Note that this is not a recent regression for GDB nor kernel, as
mentioned in the PR. These from netbsd-8 and -9 fail in the same way
without this hack.
2022-06-26 08:28:07 +00:00
rin 33bbb384fc PR port-powerpc/56899
Disable 128-bit long double for NetBSD/powerpc.
2022-06-26 05:55:30 +00:00
rin 85b2a9ecdc PR port-powerpc/56899
In addition to ``powerpc'', register NetBSD OS ABI also for ``rs6000'',
which is default target for powerpc.
2022-06-26 05:52:43 +00:00
rin 5900762b3f Regen for everyone, except for coldfire, for which toolchain does
no longer build...

> Part of PR port-powerpc/56899
>
> Set default OS ABI to NetBSD when target is *-*-netbsd*.
>
> This fixes default behaviors of GDB when no executable is loaded
> (== OS ABI is not determined yet).
2022-06-26 05:48:06 +00:00
rin eb44a997af Part of PR port-powerpc/56899
Set default OS ABI to NetBSD when target is *-*-netbsd*.

This fixes default behaviors of GDB when no executable is loaded
(== OS ABI is not determined yet).
2022-06-26 05:44:28 +00:00
hgutch e1596a186e Cherry-picking two upstream commits[1,2] to fix tools build under gcc 12
if MKCROSSGDB is set.  Without these, gcc 12 correctly points out that
certain checkr for pointers being NULL are always false and errors out
due to -Werror=nonnull-compare/-Werror=address (implicitly set by -Wall).

Build failure reported by Piyush Sachdeva.

[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=fb6262e8534e0148a4a424e9e5138159af19faf1;hp=f681e5867de63f1c8ca692023cf86e4c884fdae7
[2] https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=da7ee7f9ce2fc8c278a46e0b360d44319a5a1e7a;hp=cb2e519a5e41052a4dd55be4f1c4d818d2e8af9d
2022-06-25 17:46:05 +00:00
christos 1e12237fc9 Fix readelf: Error: LEB value too large when running:
readelf --debug-dump /usr/libdata/lib/libc.so.X.Y.debug
Apply patch from:
    https://www.mail-archive.com/bug-binutils@gnu.org/msg35315.html
affects objdump, readelf.
2022-06-17 16:45:22 +00:00
christos 4201267123 fix lint 2021-12-15 13:29:14 +00:00
christos dd5129739b no lint (c++) 2021-12-15 13:28:29 +00:00
christos d29ed3894b Disable lint, some of the code is c++ and some we can't handle __extension__
in struct in libctf ctf-error.c
2021-12-14 23:57:48 +00:00
christos cbffe7eabb deal with alloca for lint. 2021-12-14 21:38:24 +00:00
christos 7759889604 avoid __extension__ redefinition 2021-12-14 21:38:06 +00:00
mrg d914a3c1b9 remove clause 3 from all my licenses that aren't conflicting with
another copyright claim line.  again.  (i did this in 2008 and then
did not update all of my personal templates.)
2021-12-11 19:24:18 +00:00
mrg c4608cd252 mknative-binutils for all targets.
fixes 'const' vs 'iconv', yytext pointer, and initfini.
2021-12-06 08:13:41 +00:00
christos eca0413b65 Remove extra _, thanks RVP 2021-11-15 12:38:41 +00:00
christos 73709ac578 fix the remaining vestiges of __sigaction14; now the tsan signal tests work. 2021-11-13 15:34:39 +00:00
hannken c60326deac Libtsan intercepts the pthread exported functions with
dlsym(RTLD_NEXT, func_name).  This fails for pthread_join() as it
is present both as a stub in libc and as real operation in libpthread
and the search order is "libtsan.so libc.so libpthread.so".

Force the order "libtsan.so libpthread.so libc.so" so symbols
get intercepted from libpthread first.

Ok: Matthew Green <mrg@netbsd.org>
2021-11-07 09:22:58 +00:00
christos 570cbab4d2 more underscore 2021-10-28 14:31:20 +00:00
christos 617abbe007 fix sparc: use mcontext to fetch pc and sp 2021-10-28 11:22:41 +00:00
martin 03523a19ee Make this compilable as tool with MKCROSSGDB=yes 2021-10-01 17:20:32 +00:00
jmcneill 0d362dae7a oops, re-enable host_detect_local_cpu for NetBSD 2021-09-18 19:59:11 +00:00
jmcneill 1af43c0ad6 Fix build on macOS 11.6 arm64 hosts. 2021-09-18 10:45:11 +00:00
christos a043955316 Patch the build script and toolchain to allow passing through
HOST_CPPFLAGS, HOST_CXXFLAGS, but not LIBRARY_PATH because it breaks
the build. These variables are necessary to support building NetBSD
from a GNU Guix or NixOS host, where /usr/include, /lib, and all
but /bin/sh do not exist.  In many cases, support for HOST_CPPFLAGS
was incomplete. From Ryan Sundberg
2021-09-18 01:47:07 +00:00
christos 1d13b09f36 Add missing parentheses around ternary operator (Etienne Brateau, via
Damien Zammit)
2021-08-29 08:41:57 +00:00
mrg ab57e84c1b fix arm64 builds: turn off MKCOMPAT for GCC
no idea why it was enabled as we can't easily target 32 bit.

if we figure this out for aarch32, the subdir names etc will
probably be different, or we can just revive the deleted
files no longer referenced with this commit.
2021-08-19 06:52:37 +00:00
mrg c7f5e91fa9 remove unused oabi mknative output. 2021-08-16 18:43:06 +00:00
mrg 67b89a9d15 note sh3 switched. 2021-08-16 17:42:05 +00:00
mrg 22cfb1f2ea install experimental/* and ext/opt_random.h. they're expected to
be there (and the latter was removed by accident.)

regen for everyone (also picks up missing tgmath.h for many ports.)

fixes build of pkgsrc/databases/mongodb for me.
2021-08-16 06:56:20 +00:00
christos 528f04f801 provide an equivalent alignment for __float128 for clang and i386 that
does not have it. Idea from mrg@
2021-07-17 16:31:51 +00:00
christos a60b166b0e clang does not support __float128 in our configuration and i386 2021-07-14 13:24:58 +00:00
skrll 10ddebb360 Fix a comment 2021-07-13 06:56:09 +00:00
mrg 16ea282704 define a X86_32_ASAN_BIT_OFFSET macro that defaults differently on
netbsd/i386 than other x86-32 targets.

fixes PR#56280.
2021-07-11 22:41:38 +00:00
mrg 7af90b5921 remove an old #if 0'd section. 2021-07-10 22:39:56 +00:00
thorpej 25ae879cc5 Remote -O0 hack for alpha; root cause has been addressed. 2021-07-06 12:41:00 +00:00
hgutch fb0e1b46a6 GCC git commit 91f66e78cc141da77ff9e0e3c8519e1af3f26c07[1] introduced
a regression in sh.  In addition to the intended change (based on the
commit message), an apparently unintended change was made, inverting a
comparison.  This broke sh builds and our workaround (so far) was to
compile xlint/lint1 with -O0.

Revert the comparison to what it was before and remove the -O0 hack
from xlint/lint1.

[1] https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=91f66e78cc141da77ff9e0e3c8519e1af3f26c07
2021-07-05 10:34:25 +00:00
cjep 0c942b0abf PR toolchain/56180. Additional to yesterday's commit in gcc, also needed in
gcc.old. Add configuration so that gcc can find the LTO plugin when
cross-building NetBSD from OpenBSD hosts.
2021-06-29 08:51:03 +00:00
cjep 87a9dd8907 PR toolchain/56180. Add configuration so that gcc can find the LTO
plugin when cross-building NetBSD from OpenBSD hosts. Discussed with mrg.
2021-06-28 09:13:10 +00:00
riastradh fc9d104b4a gdbserver(1): Work around clang build failure. 2021-06-20 12:29:58 +00:00
mrg 5be704ed29 switch m68000, m68k and 32 bit arm to GCC 10. just sh3 left!
special thanks to rin for fixing arm32.
2021-06-19 06:19:35 +00:00