LLVM/llvm 316411cfe/trunk/test/Unit lit.cfg.py

[test] Fix clang-test for FreeBSD and NetBSD

Lit tries to inject the shared library paths, but no action is taken
when platform.system() is not recognized, results in an environment
variable with an empty name, which is illegal.

The patch fixes this mechanism for FreeBSD and NetBSD, and gives an
warning on other platforms, so that the latecomers don't have to spend
time on debugging lit.

Thanks Zhihao Yuan for the patch!

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

pfSense/pfsense c70811asrc/etc/inc interfaces.inc

Fix the netgraph path for VLAN interfaces.

(cherry picked from commit 1b3d6ddd069c14c3c74b51ac37d2043857912b95)

NAS4Free/nas4free 4792trunk/build CHANGES, trunk/build/ports/zoneinfo distinfo Makefile

Upgrade tzdata to 2017c.

pfSense/pfsense 1b3d6ddsrc/etc/inc interfaces.inc

Fix the netgraph path for VLAN interfaces.

NetBSD/pkgsrc-wip 3aca8adgcc8snapshot distinfo version.mk, gcc8snapshot/patches patch-gcc_config_netbsd.c patch-gcc_config_netbsd.h

gcc8snapshot: Update to gcc-8-20171022

Drop merged patches.

LLVM/llvm 316410compiler-rt/trunk/lib/xray xray_buffer_queue.cc xray_buffer_queue.h

[XRay][compiler-rt] More fixups.

Follow-up to D39175.

LLVM/llvm 316409compiler-rt/trunk/lib/xray xray_buffer_queue.cc xray_buffer_queue.h

[XRay][compiler-rt] Fixup shadowing

Follow-up to D39175.

OpenBSD/src yJHny6Cdistrib/sets/lists/base mi

   sync
VersionDeltaFile
1.865+0-3distrib/sets/lists/base/mi
+0-31 files

FreeBSD/src 324944head/sys/cam cam_iosched.c

Treat a 'current' value of 0 as unlimited as a failsfe.

When limiting I/O, a value of 0 makes no sense as a limit. No progress
can be made. Trade the possibility that someone might be doing
something clever to achieve ultra-low I/O limits vs the damage of not
ever making progress on an I/O in favor of making progress. Now the
machine won't be useless if this accidentally gets requested.

Sponsored by: Netflix

NetBSD/pkgsrc GBPVpIHdoc CHANGES-2017

   Updated cad/pcb to 4.0.1
VersionDeltaFile
1.4606+2-1doc/CHANGES-2017
+2-11 files

NetBSD/src um78dOOdistrib/sets/lists/base mi

   Marked zoneinfo/Canada/East-Saskatchewan as obsolete (zone removed from
   tzdata 201c) - name does not meet guidelines, and was never needed.
VersionDeltaFile
1.1164+2-2distrib/sets/lists/base/mi
+2-21 files

NetBSD/pkgsrc 0StpzjVcad/pcb PLIST distinfo

   Update to pcb-4.0.1

   ========================================================================
   Release notes for pcb-4.0.1
   ========================================================================

   Dear Users,

   This release fixes a number of bugs.

   Kind regards,

   The pcb development team


   Contributors
   ------------
   The following authors contributed to the 4.0.1 release:
   - Milan Prochac
   - Charles Parker
   - Dan McMahill
   - Sergey Alyoshin
   - Igor2
   - Peter Clifton
   - bert

    [110 lines not shown]
VersionDeltaFile
1.20+282-0cad/pcb/PLIST
1.26+5-5cad/pcb/distinfo
1.88+2-3cad/pcb/Makefile
+289-83 files

LLVM/llvm 316408cfe/trunk/lib/AST ExprConstant.cpp, cfe/trunk/test/SemaCXX warn-global-constructors.cpp constant-expression-cxx11.cpp

Unnamed bitfields don't block constant evaluation of constexpr ctors

C++14 [dcl.constexpr]p4 states that in the body of a constexpr
constructor,

> every non-variant non-static data member and base class sub-object
  shall be initialized

However, [class.bit]p2 notes that

> Unnamed bit-fields are not members and cannot be initialized.

Therefore, we should make sure to filter them out of the check that
all fields are initialized.

Fixing this makes the constant evaluator a bit smarter, and
specifically allows constexpr constructors to avoid tripping
-Wglobal-constructors when the type contains unnamed bitfields.

Reviewed at https://reviews.llvm.org/D39035.

LLVM/llvm 316407llvm/trunk/utils/TableGen GlobalISelEmitter.cpp

[globalisel][tablegen] Remove unused InstructionMatcher's. NFC

LLVM/llvm 316406compiler-rt/trunk/lib/xray xray_buffer_queue.h xray_buffer_queue.cc

[XRay][compiler-rt] Remove C++ STL from the buffer queue implementation

Summary:
This change removes the dependency on C++ standard library
types/functions in the implementation of the buffer queue. This is an
incremental step in resolving llvm.org/PR32274.

Reviewers: dblaikie, pelikan

Subscribers: llvm-commits

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

LLVM/llvm 316405cfe/trunk/lib/Sema SemaTemplate.cpp

Fix template parameter default args missed if redecled

This bug was found via self-build on lld, and worked around
here: https://reviews.llvm.org/rL316180

The issue is that the 'using' causes the lookup to pick up the
first decl. However, when setting inherited default parameters,
we only update 'forward', not 'backward'. SO, only the newest param
list has all the information about the default arguments.

This patch ensures that the list of parameters we look through checks
the newest decl's template parameter list so it doesn't miss a default.

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

FreeBSD/ports 452756head/graphics/mesa-dri distinfo Makefile.common

Update the Mesa ports to 17.2.3

OpenBSD/ports RBy65dysysutils/consolekit Makefile, sysutils/consolekit/patches patch-src_ck-manager_c

   Fix a memory leak in ck-manager (upstream).

NetBSD/src aN5doSndoc 3RDPARTY CHANGES

   Note tzdata2017c
VersionDeltaFile
1.1479+3-3doc/3RDPARTY
1.2326+2-1doc/CHANGES
+5-42 files

FreeBSD/ports 452755head/graphics/libdrm distinfo Makefile

Update to 2.4.84

NetBSD/src k8pxWdzexternal/public-domain/tz/dist TZDATA_VERSION Theory

   Merge tzdata2017c

NetBSD/src mbHKYe3external/public-domain/tz/dist theory.html Makefile

   Import tzdata2017c from ftp://ftp.iana.org/tz/releases/tzdata2017c.tar.gz

      Northern Cyprus switches from +03 to +02/+03 on 2017-10-29.
      Fiji ends DST 2018-01-14, not 2018-01-21.
      Namibia switches from +01/+02 to +02 on 2018-04-01.
      Sudan switches from +03 to +02 on 2017-11-01.
      Tonga likely switches from +13/+14 to +13 on 2017-11-05.
      Turks & Caicos switches from -04 to -05/-04 on 2018-11-04.
      Some corrections to (mostly ancient) historical data.

LLVM/llvm 316404llvm/trunk/include/llvm/Support raw_ostream.h LockFileManager.h, llvm/trunk/lib/IR Core.cpp

[raw_fd_ostream] report actual error in error messages

Summary:
Previously, we would emit error messages like "IO failure on output
stream". This change causes use to include information about what
actually went wrong, e.g. "No space left on device".

Reviewers: sunfish, rnk

Reviewed By: rnk

Subscribers: mehdi_amini, llvm-commits, hiraditya

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

LLVM/llvm 316403cfe/trunk/lib/Analysis AnalysisDeclContext.cpp

[Analyzer] Fix for the memory leak: fix typo in if-statement.

NetBSD/pkgsrc pI7Cq6snet/dnsmasq Makefile

   Add support for LDFLAGS

   This notably fixes building with RELRO enabled.
VersionDeltaFile
1.36+2-1net/dnsmasq/Makefile
+2-11 files

NetBSD/pkgsrc Hka0Qc7fonts/tex-ptex-fonts PLIST

   tex-ptex-fonts: add missing file to PLIST
VersionDeltaFile
1.2+2-1fonts/tex-ptex-fonts/PLIST
+2-11 files

FreeBSD/src 324943stable 11, stable/11/tests/sys/kern ptrace_test.c

MFC r318246,r324566,r324668,r324701:

  r318246:
    Add a regression test for r318191.
  r324566:
    Fix shadowed variable hidden by WARNS changing to 3 in r313006.
  r324668:
    This child is expected to exit on SIGTRAP, don't leave a core behind.
  r324701:
    Add a test for r324671 along with some other masked tests.

HardenedBSD/hardenedbsd 4377f87tests/sys/kern ptrace_test.c

MFC r318246,r324566,r324668,r324701:

  r318246:
    Add a regression test for r318191.
  r324566:
    Fix shadowed variable hidden by WARNS changing to 3 in r313006.
  r324668:
    This child is expected to exit on SIGTRAP, don't leave a core behind.
  r324701:
    Add a test for r324671 along with some other masked tests.

HardenedBSD/hardenedbsd 437420blib/libc/sys write.2

MFC r324683: write.2: correct maximum nbytes size for EINVAL error

In FreeBSD 11 and later debug.iosize_max_clamp defaults to 0, and the
maximum nbytes count for write(2) is SSIZE_MAX. Update the man page to
document this, and mention the sysctl that can be set to obtain the
previous behaviour.

PR:            196666
Sponsored by:   The FreeBSD Foundation

FreeBSD/src 324942stable 11, stable/11/lib/libc/sys write.2

MFC r324683: write.2: correct maximum nbytes size for EINVAL error

In FreeBSD 11 and later debug.iosize_max_clamp defaults to 0, and the
maximum nbytes count for write(2) is SSIZE_MAX. Update the man page to
document this, and mention the sysctl that can be set to obtain the
previous behaviour.

PR:            196666
Sponsored by:   The FreeBSD Foundation

FreeBSD/ports 452754head/comms/freedv Makefile distinfo, head/comms/freedv/files patch-CMakeLists.txt

V1.2.2 July 2017
----------------

1/ Improvements to Hamlib support, error message reporting, serial rate box.

2/ Disabled unused UDP comms/egexp processing to clean up Options dialog.

LLVM/llvm 316402cfe/trunk/lib/Analysis BodyFarm.cpp, cfe/trunk/test/Analysis call_once.cpp

[Analyzer] Handle implicit function reference in bodyfarming std::call_once

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

LLVM/llvm 316401llvm/trunk/lib/Transforms/ObjCARC PtrState.cpp, llvm/trunk/test/Transforms/ObjCARC invoke-2.ll

ObjCARC: do not increment past the end of the BB

The `BasicBlock::getFirstInsertionPt` call may return `std::end` for the
BB.  Dereferencing the end iterator results in an assertion failure
"(!NodePtr->isKnownSentinel()), function operator*".  Ensure that the
returned iterator is valid before dereferencing it.  If the end is
returned, move one position backward to get a valid insertion point.

NetBSD/pkgsrc GhlHY3onet/nstx Makefile distinfo, net/nstx/patches patch-aa

   Add support for CFLAGS and LDFLAGS

   This notably fixes building with RELRO enabled.

   Bump PKGREVISION, since this generates a different binary now that SSP and
   FORTIFY are enabled.

LLVM/llvm 316400cfe/trunk/include/clang/Analysis BodyFarm.h AnalysisDeclContext.h, cfe/trunk/lib/Analysis BodyFarm.h AnalysisDeclContext.cpp

[Analyzer] Do not use static storage to for implementations created in BodyFarm.cpp

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

LLVM/llvm 316399cfe/trunk/lib/StaticAnalyzer/Core Store.cpp, cfe/trunk/test/Analysis ptr-arith.c

[analyzer] Fix handling of labels in getLValueElement

In getLValueElement Base may represent the address of a label 
(as in the newly-added test case), in this case it's not a loc::MemRegionVal 
and Base.castAs<loc::MemRegionVal>() triggers an assert, this diff makes 
getLValueElement return UnknownVal instead.

Differential revision: https://reviews.llvm.org/D39174

LLVM/llvm 316398llvm/trunk/include/llvm/DebugInfo/CodeView CodeViewSymbols.def, llvm/trunk/lib/DebugInfo/CodeView TypeIndexDiscovery.cpp

[codeview] Add support for inlinee lists

This adds type index discovery and dumper support for symbol record kind
0x1168, which is a list of inlined function ids. This symbol kind is
undocumented, but S_INLINEES is consistent with the existing
nomenclature.

Fixes PR34222

LLVM/llvm 316397llvm/trunk/include/llvm/IR PassManager.h

[PM] Fix Typo

Patch by Nick Sarnie.

LLVM/llvm 316396llvm/trunk/lib/CodeGen MachineOutliner.cpp, llvm/trunk/test/CodeGen/AArch64 machine-outliner-remarks.ll

[MachineOutliner] Add optimisation remarks for successful outlining

This commit adds optimisation remarks for outlining which fire when a function
is successfully outlined.

To do this, OutlinedFunctions must now contain references to their Candidates.
Since the Candidates must still be sorted and worked on separately, this is
done by working on everything in terms of shared_ptrs to Candidates. This is
good; it means that we can easily move everything to outlining in terms of
the OutlinedFunctions rather than the individual Candidates. This is far more
intuitive than what's currently there!

(Remarks are output when a function is created for some group of Candidates.
In a later commit, all of the outlining logic should be rewritten so that we
loop over OutlinedFunctions rather than over Candidates.)
 

NetBSD/src RYjR5Vnsys/dev/pci if_wmreg.h if_wm.c

   fix wm(4) vlan panic. Reported and tested by Tom Ivar Helbekkmo, thanks.

   wm(4) used PRI bits and CFI bit as vlantag by mistake. It is found out
   by if_ether.h:r1.67.

   XXX need pullup-8
VersionDeltaFile
1.104+13-1sys/dev/pci/if_wmreg.h
1.542+5-5sys/dev/pci/if_wm.c
+18-62 files

LLVM/llvm 316395compiler-rt/trunk/lib/fuzzer FuzzerLoop.cpp

[Sanitizers-libFuzzer] Addressing coding style issues.

Summary: The result of clang-format and few manual changes (as prompted on D39155).

Reviewers: vitalybuka

Subscribers: llvm-commits

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

NetBSD/pkgsrc SSatwW7misc/figlet Makefile

   Add support for CFLAGS and LDFLAGS

   This notably fixes building with RELRO enabled.

   Bump PKGREVISION, since this generates a different binary now that SSP and
   FORTIFY are enabled.
VersionDeltaFile
1.26+4-1misc/figlet/Makefile
+4-11 files

LLVM/llvm 316394libcxx/trunk/fuzzing fuzzing.cpp fuzzing.h

More fuzzing interfaces

LLVM/llvm 316393lldb/trunk/packages/Python/lldbsuite/test dotest.py

[lldbtests] Handle errors instead of crashing.

If you pass an invalid compiler/debugger path on the cmdline to `dotest.py`  this is what 
you get.

  Traceback (most recent call last):
  [...]
    File "dotest.py", line 7, in <module>
      lldbsuite.test.run_suite()
  [...]

And with the patch applied:

  /home/davide/work/build-lldb/bin/clandasfasg is not a valid path, exiting

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

FreeBSD/ports 452753branches 2017Q4, branches/2017Q4/emulators/rpcs3 Makefile distinfo

MFH: r451396 r451641 r452036 r452523 r452749

emulators/rpcs3: update to 0.0.3.469

- Convert to WRKSRC helpers

Changes:        https://github.com/RPCS3/rpcs3/compare/eb8af974...96fd8556
Approved by:    ports-secteam (swills)

LLVM/llvm 316392lld/trunk/test/COFF pdb-thunk.yaml

[PDB] Add test for S_THUNK32 records

I locally reverted r316385 and confirmed that this test fails without
it.

Really fixes the cause of PR35014.

LLVM/llvm 316391lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-server gdbremote_testcase.py

Use ipv4 localhost address in lldb-server tests

Since the ipv6 patch, we've experienced occasional flakyness in
lldb-server tests. This was due to the fact that lldb-server was trying
to listen on both v4 and v6 localhost sockets (and consider it a success
if at least one of them succeeded), while the test framework was only
trying to connect to the v4 one.

This change makes sure lldb-server only listens on the v4 socket.

LLVM/llvm 316390lldb/trunk/source/Symbol Symtab.cpp

[Symbol] Remove dead code. NFCI.

FreeBSD/src 324941head/lib/libc/sys aio_suspend.2 lio_listio.2, head/sys/kern vfs_aio.c

Remove artificial restriction on lio_listio's operation count

In r322258 I made p1003_1b.aio_listio_max a tunable. However, further
investigation shows that there was never any good reason for that limit to
exist in the first place. It's used in two completely different ways:

* To size a UMA zone, which globally limits the number of concurrent
  aio_suspend calls.

* To artifically limit the number of operations in a single lio_listio call.
  There doesn't seem to be any memory allocation associated with this limit.

This change does two things:

* Properly names aio_suspend's UMA zone, and sizes it based on a new constant.

* Eliminates the artifical restriction on lio_listio. Instead, lio_listio
  calls will now be limited by the more generous max_aio_queue_per_proc. The
  old p1003_1b.aio_listio_max is now an alias for
  vfs.aio.max_aio_queue_per_proc, so sysconf(3) will still work with
  _SC_AIO_LISTIO_MAX.

Reported by:    bde
Reviewed by:    jhb
MFC after:      3 weeks

    [2 lines not shown]

FreeBSD/ports 452752head/games/openbor distinfo Makefile

games/openbor: update to 4542

Changes:        https://github.com/DCurrent/openbor/compare/4539...55b816d