Commit Graph

8215 Commits

Author SHA1 Message Date
christos ecc0c6e2ca Fix stack protector build. 2019-04-07 17:31:32 +00:00
maya 575b128d66 Claim ifunc support on a number of architectures.
(Architecture list taken from src/tests/libexec/ld.elf_so/t_ifunc.c)

This is needed for attribute target_clones to work.

Non-functional until a mknative run. Tested by doing a regular GCC build.
2019-04-07 14:26:26 +00:00
maya b5a049a897 don't append to nbsd_tm_file. This is the sole definition so fine to do.
Only done to reduce diff to upstream.
2019-04-07 14:14:05 +00:00
maya 518582be7b Reduce diff to upstream (in config.gcc):
Make the NETBSD_ENABLE_PTHREADS unconditional (we don't use the else case)
2019-04-07 14:11:23 +00:00
maya 2cea6cc9bf Make the post-netbsd 2.0 case the only case. NFC.
(Reducing diff to upstream)
2019-04-07 14:08:35 +00:00
maya d241ea0e55 workaround gcc/vax bugs 2019-04-07 08:14:20 +00:00
rin ba30cc1583 Handle objdir correctly. 2019-04-07 05:28:09 +00:00
pgoyette c12d65727d revert previkous it isn't needed 2019-04-06 10:37:57 +00:00
pgoyette 428d655f02 Treat implicit-fallthrough only as a warning 2019-04-06 10:29:13 +00:00
kre 1fb928b64f Use __UNCONST() rather than a simple cast to free a const char *
while avoiding gcc noise.
2019-04-06 08:29:01 +00:00
sevan c7785e7255 Fix merge conflicts from pkgsrc-20190405 import 2019-04-06 00:05:47 +00:00
sevan 3393b8dcf9 pkg_install-20190405 2019-04-05 23:41:58 +00:00
maya f9c0d5bcc9 Avoid text relocations on i386 2019-04-05 10:31:53 +00:00
mrg 36f30ad7ad switch hppa to GCC 7.
note vax atf fails same as GCC 6.  hppa mostly works but has an
atf issue also unrelated to the compiler version

note ia64 mostly builds, but the kernel fails earlier than GCC 6.
2019-04-04 21:31:28 +00:00
joerg 0ebf11db7f Use right definitions in src/tools/llvm. 2019-04-04 12:34:31 +00:00
joerg b90b6db247 Use and enable MKLLVMRT for HAVE_MESA_VER=18. 2019-04-03 15:26:34 +00:00
joerg 0a0d40923d Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.
2019-04-03 15:21:58 +00:00
joerg da48f03c8a Revert MKLLVMCMDS changes. 2019-04-03 15:12:44 +00:00
mrg af34d1bb77 - fix missing else in SUBSUBTARGET_OVERRIDE_OPTIONS
- remove obsolete defines, and move stuff to be more like freebsd64.h
- remove common / already correctly defined overrides
2019-04-03 08:31:57 +00:00
mrg 13f13ab7f0 fix error in previous 2019-04-03 02:13:56 +00:00
mrg 5436994bfb make ia64 build with gcc7:
- catch up tmake_file list for ia64-netbsd to gcc 7 standards
- don't build the "tf" extra size version on ia64 like x86.
- regen mknative files
2019-04-02 21:29:46 +00:00
christos 8b0577b612 Vax ain't having any of that newfangled TLS crap (yet). 2019-04-02 21:19:20 +00:00
christos 3f8860fbac regen 2019-04-02 14:17:55 +00:00
christos c3d72cab2c add a missing file 2019-04-02 14:17:36 +00:00
christos c745dd35cf remove debugging code 2019-04-02 03:47:30 +00:00
christos b7ade174e0 Compiling some files with -fPIC and -O2 ends up having global
symbols classified as local in pic mode, and that ends up with PC32
relocations "movl *psp, %rx" (/bin/sh parse.c). Treat pic code as
shared libraries to avoid classifying common initialized symbols
as local. Thanks to thorpej@ for his help.
2019-04-02 02:59:50 +00:00
christos e7cf62c181 Set the maximum column index in a tbl(7) to the maximum *right* edge
of any cell span, not to the maximum *left* edge, which may be smaller
if the last column of the table is only reached by horizontal spans,
but not by any regular cell in any row of the table.
Otherwise, the algorithm calculating column widths accessed memomy
after the end of the colwidth[] array, while it was trying to handle
the rightmost column(s).

Crash reported by Jason Thorpe <thorpej at NetBSD>
via https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=54069
and via Thomas Klausner (wiz@).
Christos@ Zoulas sent a (correct, but slightly confusing) patch.
The patch i'm committing here is easier to understand.
2019-03-29 22:00:31 +00:00
martin d7380df24b Fix edit accident in previous 2019-03-29 16:07:01 +00:00
martin db4fd59d7a Minor adjustment to the input background color (to better match the flag
logo)
2019-03-29 15:56:43 +00:00
christos 999056a38d Move all jemalloc symbols to the private namespace. We can't use visibility
because sun2 links statically.
2019-03-29 15:13:44 +00:00
christos e0dfdcc129 Append DPLIBS to PROGDPLIBS so that we can resolve dependencies for static
linking where order is important.
2019-03-29 14:38:30 +00:00
christos 5bcf5af12f there is no elifdef 2019-03-29 13:04:00 +00:00
christos 08517e77f8 Change strategy: instead of always defining PAGE_SHIFT in vmparam.h, fail
back to using MAX_PAGE_SHIFT.
2019-03-29 12:50:30 +00:00
christos 91e0eec0bd PR/54069: Jason Thorpe: Prevent memory overrun. Can be easily reproduced
with groff_ms.7 and -fsanitize=address.
2019-03-28 20:26:49 +00:00
christos e84e2691a6 Add 2K page size tables (sun2) 2019-03-28 11:56:56 +00:00
christos df26a0474f alignment for sh3 2019-03-27 17:02:20 +00:00
christos 9152849332 add tables for 16K page sizes 2019-03-27 16:16:14 +00:00
christos bc38c2a7b4 vaxinate! 2019-03-27 15:33:52 +00:00
christos 63e04ec117 Handle vax optimizer 2019-03-27 15:30:19 +00:00
martin 8cf10caf3a LG_QUANTUM is 4 for both sparc and sparc64 2019-03-27 12:38:31 +00:00
kre ecc92116fd Merge tzdata2019a 2019-03-26 10:06:49 +00:00
kre 098fe5b7b5 Import tzdata2019a from ftp://ftp.iana.org/tz/releases/tzdata2019a.tar.gz
Release 20198 - 2019-03-25 22:01:33 -0700

  Briefly:
    Palestine summer time starts on 2019-03-30 instead of 2019-03-23.
    Metlakatla switched back to rejoin Alaska Time on 2019-01-20 at 02:00.

    Israel observed summer time in 1980 (08-02/09-13) and 1984 (05-05/08-25).

    Etc/UCT is now a backward-compatibility link to Etc/UTC, instead
    of being a separate zone that generates the abbreviation "UCT".
2019-03-26 10:06:10 +00:00
christos b5d28c4633 descend into jemalloc too. 2019-03-25 22:24:54 +00:00
kre 531e64eefe Make "includes" depend upon uuid/uuid.h (as already did
depends, dependall, and all) rather than unconditionally
"building" it.

This avoids a "file exists" error from an update build
(where the objdir already contained the link to the file.)

ok mrg@ :
 "if it works from a clean objdir, please commit it.  we can fix more later.."
2019-03-24 10:39:45 +00:00
rin b32c6791a1 Remove workaround for internal compiler error.
GCC 7 and 6 work fine without this for both m68k and m68010.
2019-03-24 00:47:16 +00:00
rin 1d1632b562 Fix usage of STACK_ALIGNBYTES in our local change.
Tested on amd64 and i386:
- binaries generated by "gcc -fsanitize=address" work fine
- /usr/tests/usr.bin/{cc,c++}/t_asan_* do not fail
2019-03-24 00:23:59 +00:00
martin afddeacf58 Add size variants for architectures with PGSHIFT = 13 2019-03-21 09:42:44 +00:00
mrg 18e2edb50a split MKLLVM into MKLLVM and MKLLVMCMDS, like MKGCC and MKGCCCMDS:
- only build clang or clang-tblgen if MKLLVMCMDS != "no"
- move HAVE_MESA_VER earlier so we can detect mesa 18 and enable
  MKLLVM on platforms that need it
- move the clang commands and headers into llvmcmds group
- only build the clang specific LLVM libraries if MKLLVMCMDS != "no"

much of this work came from maya@'s github commit
f90685c11d4460d3098fa35f48b58d1893e974e0, reworked for HAVE_MESA_VER
and llvmcmds vs MKCLANG.


build tested on several platforms and on amd64 and i386 with several
different build options (clang build, gcc build, gcc build with llvm
libs).
2019-03-20 22:51:37 +00:00
mrg b950d126e6 updates for xf86-video-intel 6afed33b2d673d88674f0c76efe500ae414e8e1b. 2019-03-20 07:18:07 +00:00
mrg e5309b49fe bump libstdc++.so.
unfortunately, we attempted to do this for netbsd-8 but we did
not actually end up having any ABI incompatibility with that,
as turning off dual ABI in libstdc++ means *only* enabling the
old ABI.  however, enabling dual ABI with C11 defaults (ie,
a forward looking ABI) *is* an ABI-change for some special
cases and thus we should have bumped this a couple of weeks
ago when we re-enabled dual ABI.

call this "nb3 20190319".

mknative-gcc regen all switched ports and almost all of the
unswitched ports.
2019-03-20 05:09:26 +00:00