LLVM/llvm 356942lldb/trunk/source/API SystemInitializerFull.cpp, lldb/trunk/source/Plugins/ScriptInterpreter/Python ScriptInterpreterPython.cpp ScriptInterpreterPython.h

[ScriptInterpreterPython] Move SWIG initialization into the Python plugin (NFC)

Abstract initialization of the Python SWIG support in the Python plugin.

LLVM/llvm 356941llvm/trunk/include/llvm/MC MCDwarf.h, llvm/trunk/lib/DebugInfo/DWARF DWARFDebugLine.cpp

[llvm] Prevent duplicate files in debug line header in dwarf 5.

Summary:

Motivation: In previous dwarf versions, file name indexes started from 1, and
the primary source file was not explicit. Dwarf 5 standard (6.2.4) prescribes
the primary source file to be explicitly given an entry with an index number 0.

The current implementation honors the specification by just duplicating the
main source file, once with index number 0, and later maybe with another
index number. While this is compliant with the letter of the standard, the
duplication causes problems for consumers of this information such as lldb.
(Some files are duplicated, where only some of them have a line table although
all refer to the same file)

With this change, dwarf 5 debug line section files always start from 0, and
the zeroth entry is not duplicated whenever possible. This requires different
handling of dwarf 4 and dwarf 5 during generation (e.g. when a function returns
an index zero for a file name, it signals an error in dwarf 4, but not in dwarf 5)
However, I think the minor complication is worth it, because it enables all
consumers (lldb, gdb, dwarfdump, objdump, and so on) to treat all files in the
file name list homogenously.

Reviewers: dblaikie, probinson, aprantl, espindola


    [8 lines not shown]

LLVM/llvm 356940cfe/trunk/lib/Analysis ThreadSafetyCommon.cpp, cfe/trunk/test/SemaObjCXX warn-thread-safety-analysis.mm thread-safety-analysis.h

Thread Safety: also look at ObjC methods

Summary:
SExprBuilder::translateDeclRefExpr was only looking at FunctionDecl and not also looking 
at ObjCMethodDecl. It should consider both because the attributes can be used on 
Objective-C as well.

<rdar://problem/48941331>

Reviewers: dexonsmith, erik.pilkington

Subscribers: jkorous, jdoerfert, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D59523

LLVM/llvm 356939llvm/trunk/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/trunk/test/Transforms/SLPVectorizer/X86 PR39774.ll

[SLPVectorizer] Merge reorderAltShuffleOperands into reorderInputsAccordingToOpcode

As discussed on D59738, this generalizes reorderInputsAccordingToOpcode to handle multiple 
+ non-commutative instructions so we can get rid of reorderAltShuffleOperands and make use 
of the extra canonicalizations that reorderInputsAccordingToOpcode brings.

Differential Revision: https://reviews.llvm.org/D59784

NetBSD/pkgsrc-wip 81d2a37freerdp PLIST options.mk, freerdp/patches patch-cmake_InstallFreeRDPMan.cmake

freerdp: add version 2.0.0rc4

FreeNAS/freenas bf10580src/middlewared/middlewared/alert/source smartd.py

Merge remote-tracking branch 'origin/master' into FIX-36298

FreeNAS/freenas ecd4234src/middlewared/middlewared/alert/source smartd.py

Merge pull request #2794 from freenas/FIX-83067-11.3-83475

tkt-83475: Fix smartd not running alert (by themylogin)

FreeNAS/freenas 72b6516gui/common freenasdc.py, src/freenas-installer/etc installer12.sh

Merge remote-tracking branch 'origin/master' into FIX-36298

FreeNAS/freenas b581599src/freenas/etc/ix.rc.d ix-update

Merge pull request #2798 from freenas/FIX-69562-11.3-83539

tkt-83539: Fix "unscheduled system reboot" alert after update (by themylogin)

FreeNAS/freenas 039edecsrc/freenas/etc/ix.rc.d ix-update

Fix "unscheduled system reboot" alert after update

(cherry picked from commit 53102012d4864c01a51da6f51469a8a794a71cb9)

NetBSD/pkgsrc NP7VAvVlang/swi-prolog-packages PLIST.Linux

   swi-prolog-packages: PLIST.Linux catchup for version 8.x

HardenedBSD/hardenedbsd 6026000gnu/usr.bin/binutils/as Makefile, gnu/usr.bin/binutils/ld Makefile

Merge remote-tracking branch 'origin/hardened/current/master' into 
hardened/current/unstable

* origin/hardened/current/master:
  Sort printing of the ID registers on arm64 to be identical to the documentation. This 
will simplify checking new fields when they are added.
  HBSD: Revert "Fix GNU objdump build under WITH_PIE"
  HBSD: Revert "Apply WITH_PIE changes to other binutils components"
  Initialize scheduler specific data for the FCFS scheduler. This is joint work with rrs@. 
The issue was reported by using syzkaller.
  Improve locking when tearing down an SCTP association. This is joint work with rrs@ and 
the issue was found by syzkaller.
  Change all kernel C-type macros into static inline functions.

NetBSD/pkgsrc 0FQ369Ylang/swi-prolog-lite PLIST.Linux

   swi-prolog-lite: PLIST.Linux catchup for version 8.x
VersionDeltaFile
1.1+3-0lang/swi-prolog-lite/PLIST.Linux
+3-01 files

FreeBSD/doc 52896head/de_DE.ISO8859-1/books/handbook/advanced-networking chapter.xml

Update to r52392:

Correct two instances where IPv6 SLAAC "router solicitation" should have
been named "router advertisement" istead.

HardenedBSD/hardenedbsd 8163432sys/arm64/arm64 identcpu.c, sys/netinet sctp_pcb.c sctp_ss_functions.c

Merge branch 'freebsd/current/master' into hardened/current/master

* freebsd/current/master:
  Sort printing of the ID registers on arm64 to be identical to the documentation. This 
will simplify checking new fields when they are added.
  Initialize scheduler specific data for the FCFS scheduler. This is joint work with rrs@. 
The issue was reported by using syzkaller.
  Improve locking when tearing down an SCTP association. This is joint work with rrs@ and 
the issue was found by syzkaller.
  Change all kernel C-type macros into static inline functions.

FreeNAS/freenas 407aec4src/middlewared/middlewared/rclone/remote onedrive.py pcloud.py

Merge pull request #2797 from freenas/fix-rest-cloud-sync-oauth

Use OAuth portal for rest of cloud sync oauth providers

FreeNAS/freenas a970432src/middlewared/middlewared/plugins system.py

Proper default crash reporting value

NetBSD/src 7PakLZpshare/man/man4 options.4, sys/arch/alpha/alpha fp_complete.c compat_16_machdep.c

   Remove compat_osf1, discussed on tech-kern@.

FreeNAS/freenas e140b6bsrc/middlewared/middlewared/plugins jail.py

Correctly display post install messages

This commit fixes a bug where we did not display the post install messages for a plugin 
correctly.
Ticket: #83491

FreeNAS/freenas ebbbc02src/middlewared/middlewared/rclone/remote onedrive.py pcloud.py

Use OAuth portal for rest of cloud sync oauth providers

FreeNAS/freenas fd20940src/middlewared/middlewared/plugins jail.py

Correctly display post install messages

This commit fixes a bug where we did not display the post install messages for a plugin 
correctly.
Ticket: #83491

(cherry picked from commit 68b253aaa64bd47d68498847b63fb1ff43acc1d5)

NetBSD/pkgsrc-wip fa009e4gitea PLIST Makefile, gitea/files app.ini.sample

Remove gitea, imported.

FreeNAS/freenas 68b253asrc/middlewared/middlewared/plugins jail.py

Correctly display post install messages

This commit fixes a bug where we did not display the post install messages for a plugin 
correctly.
Ticket: #83491

NetBSD/pkgsrc-wip c70166darduino-ctags distinfo

arduino-ctags: update distinfo

OpenBSD/src ew5hqFSusr.bin/tmux server-client.c tmux.1

   Add StatusDefault binding for the mouse on any otherwise unassigned
   parts of the status line, from Avi Halachmi.
VersionDeltaFile
1.274+71-19usr.bin/tmux/server-client.c
1.632+12-12usr.bin/tmux/tmux.1
1.877+3-1usr.bin/tmux/tmux.h
+86-323 files

LLVM/llvm 356938llvm/trunk/lib/CodeGen/SelectionDAG SelectionDAG.cpp, llvm/trunk/test/CodeGen/X86 avx512-insert-extract.ll select.ll

[SelectionDAG] Add icmp UNDEF handling to SelectionDAG::FoldSetCC

First half of PR40800, this patch adds DAG undef handling to icmp instructions to match 
the behaviour in llvm::ConstantFoldCompareInstruction and SimplifyICmpInst, this permits 
constant folding of vector comparisons where some elements had been reduced to UNDEF (by 
SimplifyDemandedVectorElts etc.).

This involved a lot of tweaking to reduced tests as bugpoint loves to reduce icmp 
arguments to undef........

Differential Revision: https://reviews.llvm.org/D59363

NetBSD/pkgsrc-wip 3c3e85barduino-ctags distinfo, arduino-ctags/patches patch-lregex.c patch-options.c

arduino-ctags: patching __unused__ and __printf__ macros

OpenBSD/src VJrVAC4sys/arch/amd64/amd64 pctr.c ipifuncs.c, sys/arch/amd64/include pctr.h intrdefs.h

   Fix pctr(4) issues with MP and suspend:
    - use an IPI to notify other CPUs toi update CR4 and the MSRs
    - use the cpu(4) resume callback to restore the pctr(4) settings after
      suspend/hibernate

   ok kettenis@ deraadt@

FreeBSD/ports 496855head/textproc/sk-mythes distinfo Makefile

Update to 2019.03.20

FreeBSD/ports 496854head/german/mythes distinfo Makefile

Update to 2019.03.24

FreeBSD/ports 496853head/sysutils/rubygem-parallel distinfo Makefile

FreeBSD/ports 496852head/devel/rubygem-jekyll-coffeescript distinfo Makefile

FreeBSD/ports 496851head/devel/py-isort distinfo Makefile

FreeBSD/ports 496850head/graphics/libpuzzle Makefile files, head/graphics/libpuzzle/files patch-src_Makefile.am

Fix build after base r345349

PR:            236141

OpenBSD/src M2iKHGbsys/arch/amd64/amd64 intr.c, sys/arch/amd64/include intrdefs.h

   X86_IPI_NAMES's only use was #if 0'ed out; delete both

   ok kettenis@ deraadt@

LLVM/llvm 356937llvm/trunk/lib/CodeGen CodeGenPrepare.cpp

[CGP] Build the DominatorTree lazily

Summary:
In r355512 CGP was changed to build the DominatorTree only once per
function traversal, to avoid repeatedly building it each time it was
accessed. This solved one compile time issue but introduced another. In
the second case, we now were building the DT unnecessarily many times
when we performed many function traversals (i.e. more than once per
function when running CGP because of changes made each time).

Change to saving the DT in the CodeGenPrepare object, and building it
lazily when needed. It is reset whenever we need to rebuild it.

The case that exposed the issue there are 617 functions, and we walk
them (i.e. execute the "while (MadeChange)" loop in runOnFunction) a
total of 12083 times (so previously we were building the DT 12083
times). With this patch we only build the DT 844 times (average of 1.37
times per function). We dropped the total time to compile this file from
538.11s without this patch to 339.63s with it.

There is still an issue as CGP is taking much longer than all other
passes even with this patch, and before a recent compiler release cut at
r355392 the total time to this compile was only 97 sec with a huge
reduction in CGP time. I suspect that one of the other recent changes to
CGP led to iterating each function many more times on average, but I

    [9 lines not shown]

LLVM/llvm 356936openmp/trunk/runtime/test/ompt/misc interoperability.cpp

Fix interoperability test compilation on FreeBSD

Summary:
While building the 8.0 releases on FreeBSD, I encountered the following
error in the regression tests, where ompt/misc/interoperability.cpp
failed to compile, with:

```
projects/openmp/runtime/test/ompt/misc/interoperability.cpp:7:10: fatal error: 'alloca.h' 
file not found
#include <alloca.h>
         ^~~~~~~~~~
```

Like on NetBSD, alloca(3) is defined in <stdlib.h> instead.

Reviewers: emaste, jlpeyton, krytarowski, mgorny, protze.joachim

Reviewed By: jlpeyton

Subscribers: jdoerfert, openmp-commits

Tags: #openmp

Differential Revision: https://reviews.llvm.org/D59736

LLVM/llvm 356935pstl/trunk/test test_partial_sort.cpp

[pstl] Gate usage of TBB in test on whether TBB is used as a backend

__PSTL_USE_PAR_POLICIES is the wrong macro to use there, since the PSTL
could conceivably be using parallel policies but not TBB as a backend.

LLVM/llvm 356934openmp/trunk/runtime/src kmp_wrapper_getpid.h

Fix gettid warnings on FreeBSD

Summary:
[Split off from D59451 to get this fix in separately]

While building the 8.0 releases on FreeBSD, I encountered the following
warnings in openmp quite a few times:

```
In file included from projects/openmp/runtime/src/kmp_settings.cpp:27:
projects/openmp/runtime/src/kmp_wrapper_getpid.h:35:2: warning: #warning is a language 
extension [-Wpedantic]
#warning No gettid found, use getpid instead
 ^
projects/openmp/runtime/src/kmp_wrapper_getpid.h:35:2: warning: No gettid found, use 
getpid instead [-W#warnings]
2 warnings generated.
```

I added a gettid wrapper that uses FreeBSD's pthread_getthreadid_np(3)
function for this.

Reviewers: emaste, jlpeyton, krytarowski, mgorny, protze.joachim

Reviewed By: jlpeyton

    [6 lines not shown]

OpenBSD/src nAVjMM6share/man/man8 ssl.8

   update the example key size; from randy hartman
   ok tedu sobrado deraadt
VersionDeltaFile
1.67+3-3share/man/man8/ssl.8
+3-31 files

HardenedBSD/hardenedbsd 5f07a1dsys/dev/pms/RefTisa/tisa/sassata/sas/ini itdio.c

Merge branch 'freebsd/10-stable/master' into hardened/10-stable/master

* freebsd/10-stable/master:
  MFC r345009:

FreeBSD/src 345511stable 12, stable/12/sys/kern uipc_socket.c

Merge r344741:
  Remove bogus assert that I added in r319722. It is a legitimate case
  to call soabort() on a newborn socket created by sonewconn() in case
  if further setup of PCB failed. Code in sofree() handles such socket
  correctly.

  Submitted by: jtl, rrs

LLVM/llvm 356933openmp/trunk/runtime/src kmp_runtime.cpp

[OpenMP] Fix pause check with version info

Add 5.0 guard to pause code for now.

Patch by Terry Wilmarth

Differential Revision: https://reviews.llvm.org/D59428

FreeBSD/ports 496849head/sysutils/zol distinfo Makefile, head/sysutils/zol-kmod Makefile distinfo

- Update to 20190325

- Fix an issue linking with libgeom
- Fix missing debug file if DEBUG is set on zol-kmo

FreeBSD/ports 496848head/graphics/opensubdiv Makefile

Fix build with DEFAULT_VERSIONS=python=3.x

PR:            234687

OpenBSD/src zH21n5Iregress/lib/libssl/tlsext tlsexttest.c

   Update regress following sigalgs changes.
VersionDeltaFile
1.29+1-17regress/lib/libssl/tlsext/tlsexttest.c
+1-171 files

LLVM/llvm 356932lld/trunk/test/wasm target-feature-required.yaml target-feature-used.yaml, lld/trunk/wasm Writer.cpp Driver.cpp

Revert "[WebAssembly] Add linker options to control feature checking"

This reverts commit 5991328c96b6146999cfa74ede42901f8c01f2fa.

FreeBSD/ports 496847head/Mk bsd.default-versions.mk

Adjust documented values for LLVM_DEFAULT

- Add 80 (current default) but -devel is also possible
- Drop 50 as it's being phased out (see bug 236412)

PR:            235215
Reported by:    Graham Perrin

FreeBSD/ports 496846head/devel/cquery Makefile

devel/cquery: unbreak with DEFAULT_VERSIONS+=llvm=-devel

Don't try hard to make LIB_DEPENDS pick the specific version when this
is already enforced by BUILD_DEPENDS. The left field in _DEPENDS lines
isn't recorded into binary packages, anyway.

=======================<phase: lib-depends    >============================
===>   cquery-20180718_4 depends on shared library: libclang.so.-devel - not found
===>   Installing existing package /packages/All/llvm-devel-9.0.d20190226.txz
[120i386-default-llvm90-job-03] Installing llvm-devel-9.0.d20190226...
the most recent version of llvm-devel-9.0.d20190226 is already installed
===>   cquery-20180718_4 depends on shared library: libclang.so.-devel - not found
*** Error code 1

FreeBSD/ports 496845head/devel/ccls Makefile

devel/ccls: unbreak with DEFAULT_VERSIONS+=llvm=-devel

Don't try hard to make LIB_DEPENDS pick the specific version when this
is already enforced by BUILD_DEPENDS. The left field in _DEPENDS lines
isn't recorded into binary packages, anyway.

=======================<phase: lib-depends    >============================
===>   ccls-0.20190301_2 depends on shared library: libLLVM--devel.so - not found
===>   Installing existing package /packages/All/llvm-devel-9.0.d20190226.txz
[120i386-default-llvm90-job-07] Installing llvm-devel-9.0.d20190226...
the most recent version of llvm-devel-9.0.d20190226 is already installed
===>   ccls-0.20190301_2 depends on shared library: libLLVM--devel.so - not found
*** Error code 1