FreeBSD/ports 490610head/devel/llvm40 Makefile, head/devel/llvm40/files

More throughly disable assertions.  This works around USES=cmake
overriding the CFLAGS used to build. [0]

devel/llvm[45]0: Fix build on GCC systems. [1]

devel/llvm[456]: Avoid realpath calls where possible in the wrapper
script. [2]

PR:            233506 [0], 234647 [1], 234937 [1]
Submitted by:   greg at [0], pkubaj at [1],
               bdrewery [2]
Differential Revision:

FreeBSD/ports 490609head/cad Makefile verilator, head/cad/verilator pkg-plist Makefile

cad/verilator: create port

Verilator is the fastest free Verilog HDL simulator, and beats most commercial
simulators. It compiles synthesizable Verilog (not test-bench code!), plus some
PSL, SystemVerilog and Synthesis assertions into C++ or SystemC code. It is
designed for large projects where fast simulation performance is of primary
concern, and is especially well suited to generate executable models of CPUs
for embedded software design teams.


PR:            230761
Submitted by:   Kevin Zheng <kevinz5000 at>

ZFS on Linux/src 52b6842cmd/ztest ztest.c, module/zfs ddt.c

ztest: scrub ddt repair

The ztest_ddt_repair() test is designed inflict damage to the
ddt which can be repairable by a scrub.  Unfortunately, this
repair logic was broken at some point and it went undetected.
This issue is not specific to ztest, but thankfully this extra
redundancy is rarely enabled and even more rarely needed.

The root cause was identified to be the ddt_bp_create()
function called by dsl_scan_ddt_entry() which did not set the
dedup bit of the generated block pointer.

The consequence of this was that the ZIO_DDT_READ_PIPELINE was
never enabled for the block pointer during the scrub, and the
dedup ditto repair logic was never run.  Note that for demand
reads which don't rely on ddt_bp_create() the required pipeline
stages would be enabled and the repair performed.

This was resolved by unconditionally setting the dedup bit in
ddt_bp_create().  This way all codes paths which may need to
perform a repair from a block pointer generated from the dtt
entry will be able too.  The only exception is that the dedup
bit is cleared in ddt_phys_free() which is required to avoid
leaking space.

    [5 lines not shown]

FreeBSD/ports 490608head/sysutils/helm distinfo Makefile

- Update to 2.12.2

It is a security release:

MFH:           2019Q1

FreeBSD/src 343126stable 12, stable/12/sys/sys random.h param.h

MFC r342398:

Enable sys/random.h #include from C++

And bump __FreeBSD_version, just in case.

PR:            234180
Submitted by:   Ralf van der Enden <tremere AT>

FreeBSD/src 343125head/sys/dev/ioat ioat.h

ioat(4): Set __result_use_check on ioat_acquire_reserve

Even M_WAITOK callers must check for failure.  For example, if the device is
quiescing, either due to automatic error-recovery induced reset, or due to
administrative detach, the routine will return ENXIO and the acquire
reference will not be held.  So, there is no mode in which it is safe to
assume the routine succeeds without checking.

Sponsored by:   Dell EMC Isilon

LLVM/llvm 351496lldb/trunk/tools/debugserver/source CMakeLists.txt, lldb/trunk/unittests CMakeLists.txt

[CMake] Prevent lldbDebugserverCommon from building if you disable debugserver builds

introduced to the debugserver build. If one of these two flags are set, then we
do not build and sign debugserver. However I noticed that we were still building
the lldbDebugserverCommon and lldbDebugserverCommon_NonUI libraries regardless
of whether or not these flags were set. I don't believe we should be building
these libraries unless we are building and signing debugserver.

Reviewers: sgraenitz, davide, JDevlieghere, beanz, vsk, aprantl, labath

Subscribers: mgorny, jfb, lldb-commits

Differential Revision:

LLVM/llvm 351495cfe/trunk/include/clang/Basic, cfe/trunk/test/SemaCXX int-ptr-cast-SFINAE.cpp

Make integral-o-pointer conversions in SFINAE illegal.

As reported in PR40362, allowing the conversion from an integral to a
pointer type (despite being illegal in the C++ standard) will cause
surprsing results when testing for certain behaviors in SFINAE.  This
patch converts the error to a SFINAE Error and adds a test to ensure
that it is still a warning in non-SFINAE but an error in it.

Change-Id: I1f475637fa4d83217ae37dc6b5dbf653e118fae4

HardenedBSD/tools cfa3254release/git release_new_stable_repo.csh

HBSD: simplify the release process

Add a helper script to fetch the metadata from the jenkins server.
The NOTES file still should be filled manually, but the formatting is
done with the newer stuff.

Signed-off-by: Oliver Pinter <oliver.pinter at>

NetBSD/src n86TLFHsys/arch/sparc/dev cgfourteen.c

   don't crash when we're not the console
+4-151 files

NetBSD/pkgsrc-wip e6c79c5s6-portable-utils distinfo Makefile

s6-portable-utils: update to From the changelog:

- Adaptation to skalibs-

OpenBSD/src D7pe4VWshare/man/man9 tvtohz.9

   clarify and docuement what happens when a tv or ts exceeps INT_MIN ticks.
   with some help from cheloha and schwarze
+7-61 files

NetBSD/pkgsrc-wip e3cce60s6-dns distinfo Makefile

s6-dns: update to From the changelog:

- Adaptation to skalibs-
- skadns now uses the textclient API/ABI instead of the skaclient one.
  The change is invisible, but it's leaner and faster.
- Major types overhaul to make them more POSIXly correct.
- Fixed a long-standing bug that sometimes prevented DNS reply headers
  from being correctly decoded on big-endian machines.

LLVM/llvm 351494llvm/trunk/test/CodeGen/AMDGPU si-sgpr-spill.ll si-spill-cf.ll

AMDGPU: Convert tests away from llvm.SI.load.const

LLVM/llvm 351493llvm/trunk/include/llvm/Demangle DemangleConfig.h

Address Ried's post-commit review comment on r351477.

LLVM/llvm 351492llvm/trunk/lib/Transforms/IPO HotColdSplitting.cpp, llvm/trunk/test/Transforms/HotColdSplit split-phis-in-exit-blocks.ll

[HotColdSplit] Allow outlining with live outputs

Prior to r348205, extracting code regions with live output values was
disabled because of a miscompilation (PR39433). Lift the restriction as
PR39433 has been addressed.

Tested on LNT+externals, on a run of check-llvm in a stage2 build, and
with a full build of iOS (with hot/cold splitting enabled).

As a drive-by, remove an errant TODO.

LLVM/llvm 351491llvm/trunk/lib/Transforms/IPO HotColdSplitting.cpp, llvm/trunk/test/Transforms/HotColdSplit resume.ll

[HotColdSplit] Consider resume instructions to be cold

Resuming exception unwinding is roughly as unlikely as throwing an

Tested on LNT+externals (in particular, the C++ EH regression tests
provide end-to-end test coverage), as well as with a full build of iOS.

LLVM/llvm 351490lldb/trunk/packages/Python/lldbsuite/test/arm/breakpoint-thumb-codesection, lldb/trunk/packages/Python/lldbsuite/test/expression_command/rdar44436068

Don't run on darwin systems;
we don't use a thumb code section.

Don't run on armv7k; it's not a supported
type on that target.

NetBSD/pkgsrc nd8RQlimk/defaults options.description

   Improve 'tai-system-clock' description.
+1-11 files

LLVM/llvm 351489lldb/trunk CMakeLists.txt, lldb/trunk/test CMakeLists.txt

[CMake] Fix lldb-test-depends target

The lldb-test-depends target was using the old CMake variable name
LLDB_TEST_DEPENDS instead of LLDB_TEST_DEPS. This patch moves the target
definition and makes it use the correct one.

OpenBSD/src BuDZphqgnu/llvm/lib/Target/Sparc SparcISelLowering.cpp

   Use a 64-bit register when required for inline asm on sparc64.
   Without this, values get truncated to 32-bit.  Makes a sparc64 kernel
   actually work when compiled with clang.

   ok pguenther@, visa@

LLVM/llvm 351488lld/trunk/wasm OutputSegment.h Writer.cpp

[WebAssembly] Fix windows compiler warning by using explicit 64bit shift. NFC.

Differential Revision:

OpenBSD/ports 9qKiGhyfonts Makefile

+2-11 files

Illumos/gate 9c65d7dusr/src/uts/common/fs/hsfs hsfs_vnops.c, usr/src/uts/common/fs/ufs ufs_vnops.c

10211 UFS freebehind can induce hat_pageunload()/htable_purge_hat() race
Reviewed by: Jerry Jelinek <jerry.jelinek at>
Reviewed by: Robert Mustacchi <rm at>
Reviewed by: Patrick Mooney <patrick.mooney at>
Reviewed by: John Levon <john.levon at>

LLVM/llvm 351487cfe/trunk/lib/CodeGen CGExprAgg.cpp CGExprCXX.cpp, cfe/trunk/test/CodeGenCXX cxx1y-init-captures-eh.cpp

Fix cleanup registration for lambda captures.

Lambda captures should be destroyed if an exception is thrown only if
the construction of the complete lambda-expression has not completed.
(If the lambda-expression has been fully constructed, any exception will
invoke its destructor, which will destroy the captures.)

This is directly modeled after how we handle the equivalent situation in

Note that EmitLambdaLValue was unreachable because in C++11 onwards the
frontend never creates the awkward situation where a prvalue expression
(such as a lambda) is used in an lvalue context (such as the left-hand
side of a class member access).

OpenBSD/ports lQ4nwRWfonts/tamsyn-font Makefile distinfo, fonts/tamsyn-font/pkg PLIST DESCR

   import tamsyn a monospaced bitmap font for programming

   ok landry@ on an earlier version, feedback and ok fcambus@

FreeBSD/src 343124head/stand/libsa printf.c stand.h

libsa: add asprintf()

asprintf() is a nice tool for string processing.

MFC after:      2 weeks

LLVM/llvm 351486lldb/trunk/lit/Quit TestQuitExitCodeHex0.test TestQuitExitCodeHexA.test, lldb/trunk/lit/tools/lldb-mi/target target-select-so-path.test

[lit] Make sure tests are actually skipped on darwin and windows.

NetBSD/pkgsrc prk2ukldoc CHANGES-2019

   doc: Updated www/logswan to 2.0.3
+2-11 files

NetBSD/pkgsrc 3wNLPMHwww/logswan Makefile distinfo

   logswan: Update to 2.0.3

   Update submitted by Frederic Cambus, the upstream developer of this package.

   author's notes

   Notable changes:

   - Logswan now links against geography/libmaxminddb instead of net/GeoIP
   - Take back MAINTAINER, as I'm upstream for this package

   upstream changelog

   Logswan 2.0.3 (2018-10-15)

   - Use -std=c11, Logswan requires a C11 compiler for libmaxminddb
   - Enable support for parsing HTTP/2.0 requests, for real this time
   - Revert back to using INT64_MAX for strtonum() maxval, as maxval is long long
     and using UINT64_MAX caused bandwidth parsing to always fail (Thanks James Loh
     for reporting the issue)
   - Move maps of countries and continents to separate files

   Logswan 2.0.2 (2018-08-05)

    [19 lines not shown]
+10-102 files

FreeBSD/src 343123head/stand/libsa/zfs zfsimpl.c

loader should ignore active multi_vdev_crash_dump feature on zpool

Since the loader zfs reader does not need to read the dump zvol, we can
just enable the feature.

illumos issue #9051

MFC after:      2 weeks

LLVM/llvm 351485llvm/trunk/lib/Target/Mips MipsISelLowering.cpp MipsAsmPrinter.cpp, llvm/trunk/test/CodeGen/Mips reloc-jalr.ll

[mips] Emit .reloc R_{MICRO}MIPS_JALR along with j(al)r(c) $25

The callee address is added as an optional operand (MCSymbol) in
AdjustInstrPostInstrSelection() and then used by asm printer to insert:
'.reloc tmplabel, R_MIPS_JALR, symbol
Controlled with '-mips-jalr-reloc', default is true.

Differential revision:

LLVM/llvm 351484cfe/trunk/include/clang/Basic, cfe/trunk/lib/Sema SemaInit.cpp

Add -Wctad-maybe-unsupported to diagnose CTAD on types with no user defined deduction 

Some style guides want to allow using CTAD only on types that "opt-in"; i.e. on types that 
are designed to support it and not just types that *happen* to work with it.

This patch implements the `-Wctad-maybe-unsupported` warning, which is off by default, 
which warns when CTAD is used on a type that does not define any deduction guides.

The following pattern can be used to suppress the warning in cases where the type 
intentionally doesn't define any deduction guides:

struct allow_ctad_t;

template <class T>
struct TestSuppression {
  TestSuppression(T) {}
TestSuppression(allow_ctad_t)->TestSuppression<void>; // guides with incomplete parameter 
types are never considered.

Reviewers: rsmith, james.dennett, gromer

    [6 lines not shown]

LLVM/llvm 351483llvm/trunk/lib/Transforms/IPO HotColdSplitting.cpp, llvm/trunk/test/Transforms/HotColdSplit eh-pads.ll

[HotColdSplit] Relax requirement that the cold sink block be extractable

Relaxing this requirement creates opportunities to split code dominated
by an EH pad.

Tested on LNT+externals.

FreeNAS/freenas aad8ccdsrc/middlewared/middlewared/plugins

Address Reviews

FreeBSD/src 343122head/usr.sbin/freebsd-update

freebsd-update: Clarify unsupported release upgrade error message

Notify users that upgrading from -CURRENT or -STABLE is unsupported by

Also ensure --currently-running provides a correctly formatted release
(as done by -r).

PR:            234771
Submitted by:   Gerald Aryeetey <>
Reported by:    yuri
Reviewed by:    bcran
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
Differential Revision:

LLVM/llvm 351482libcxxabi/trunk/src/demangle ItaniumDemangle.h, libcxxabi/trunk/test test_demangle.pass.cpp

[demangler] Support for block literals.

LLVM/llvm 351481libcxxabi/trunk/src/demangle ItaniumDemangle.h, libcxxabi/trunk/test test_demangle.pass.cpp

[demangler] Ignore leading underscores if present

On MacOS, symbols start with a leading underscore, so just parse and
ignore it if present.

OpenBSD/ports hPOVUvCsysutils/d-feet Makefile, sysutils/d-feet/patches patch-src_dfeet_bus_watch_py

   Fix self.__command_line to display the command associated with the
   specified process ID.

NetBSD/src Is5R2Jzsys/sys module_hook.h

   The return value of a hook is not necessarily an error code, so
   rename the variable appropriately.

+5-51 files

NetBSD/pkgsrc VIopxT9databases/tdb distinfo, devel/talloc distinfo

   Update patch for install_name on Darwin

LLVM/llvm 351480llvm/trunk/lib/Transforms/IPO HotColdSplitting.cpp, llvm/trunk/test/Transforms/HotColdSplit do-not-split.ll extraction-subregion-breaks-phis.ll

[HotColdSplit] Simplify tests by lowering their splitting thresholds

This gets rid of the brittle/mysterious calls to @sink()/@sideeffect()
peppered throughout the test cases. They are no longer needed to force
splitting to occur.

FreeBSD/ports 490607head/archivers/py-borgbackup distinfo Makefile

archivers/py-borgbackup: update to 1.1.8

PR:            235025
Submitted by:   jjuanino at (maintainer)

LLVM/llvm 351479compiler-rt/trunk/include CMakeLists.txt

xray: Add missing header to list of installed headers.

Spotted by gn's llvm/utils/gn/build/ script.

Differential Revision:

FreeBSD/ports 490606branches 2019Q1, branches/2019Q1/devel/jenkins-lts distinfo Makefile

MFH: r490497

- Update to 2.150.2

Approved by:    swils (maintainer, implicitly)
Security:       debf6353-5753-4e9a-b710-a83ecdd743de
Sponsored by:   The FreeBSD Foundation

Approved by:    ports-secteam (miwi)

FreeBSD/ports 490605branches 2019Q1, branches/2019Q1/devel/jenkins distinfo Makefile

MFH: r490496

- Update to 2.160

Security:       debf6353-5753-4e9a-b710-a83ecdd743de
Sponsored by:   The FreeBSD Foundation

Approved by:    ports-secteam (miwi)

LLVM/llvm 351478cfe/trunk/unittests/Lex PPCallbacksTest.cpp

Fix -Wsign-compare in new tests

LLVM/llvm 351477llvm/trunk/include/llvm/Demangle DemangleConfig.h

Fix an MSVC bot failure from r351474.

LLVM/llvm 351476llvm/trunk/lib/Passes PassBuilder.cpp, llvm/trunk/lib/Transforms/IPO PassManagerBuilder.cpp

[SampleFDO] Skip profile reading when flattened profile used in ThinLTO postlink

If the sample profile has no inlining hierachy information included, we call
the sample profile is flattened. For flattened profile, in ThinLTO postlink
phase, SampleProfileLoader's hot function inlining and profile annotation will
do nothing, so it is better to save the effort to read in the profile and run
the sample profile loader pass. It is helpful for reducing compile time when
the flattened profile is huge.

Differential Revision:

NetBSD/src Ywylwlnsys/modules/examples README Makefile, sys/modules/examples/mapper mapper.c cmd_mapper.c

   Add a new example kernel module: mapper

   Basic implementation of mmap.

   Submitted by Akul Pillai.