Displaying 1 50 of 4,253,085 commits (0.429s)

LLVM — llvm/trunk/lib/CodeGen/SelectionDAG DAGCombiner.cpp, llvm/trunk/test/CodeGen/X86 fmul-combines.ll

avoid infinite looping when folding vector multiplies of constants (PR22698)

We were missing a check for the following fold in DAGCombiner:

// fold (fmul (fmul x, c1), c2) -> (fmul x, (fmul c1, c2))

If 'x' is also a constant, then we shouldn't do anything. Otherwise, we could end up 
swapping the operands back and forth forever.

This should fix:
http://llvm.org/bugs/show_bug.cgi?id=22698

Differential Revision: http://reviews.llvm.org/D7917

FreeBSD — head/lib/libnv/tests Makefile

Revert r279422.  My "apply patch and commit" script wasn't adding
new files properly.

Pointy hat to: rstone
Delta File
+1 -3 head/lib/libnv/tests/Makefile
+1 -3 1 file

LLVM — llvm/trunk/test/CodeGen/X86 isint.ll

fixed to test only the feature, not the feature and a CPU

FreeBSD — head/lib/libnv/tests Makefile

Tests of basic nvlist add functions

Differential Revision:                https://reviews.freebsd.org/D1869
Reviewed by:                        jfv, pjd
MFC after:                        1 month
Sponsored by:                        Sandvine Inc.
Delta File
+3 -1 head/lib/libnv/tests/Makefile
+3 -1 1 file

FreeBSD — head/lib/libnv dnv.h nv.h

Make libnv headers includable from C++

Differential Revision:                https://reviews.freebsd.org/D1868
Reviewed by:                        jfv, pjd
MFC after:                        1 month
Sponsored by:                        Sandvine Inc.
Delta File
+4 -0 head/lib/libnv/dnv.h
+4 -0 head/lib/libnv/nv.h
+8 -0 2 files

FreeBSD — head/sys/dev/etherswitch/arswitch arswitchreg.h

Add another register definition for the AR8327.

Obtained from:        OpenWRT

LLVM — llvm/trunk/test/DebugInfo piece-verifier.ll, llvm/trunk/test/Transforms/Inline alloca-dbgdeclare.ll

DebugInfo: Convert DW_OP_piece => DW_OP_bit_piece

r228631 stopped using `DW_OP_piece` inside `DIExpression`s in the IR,
but it apparently missed updating these testcases.  Caught by verifier
checks for `MDExpression` while working on moving the new hierarchy into
place.

LLVM — llvm/trunk/test/CodeGen/X86 vselect.ll

make the tested feature (SSE2) explicit

LLVM — llvm/trunk/test/CodeGen/X86 unknown-location.ll

DebugInfo: Fix invalid file reference in CodeGen/X86/unknown-location.ll

There are two types of files in the old (current) debug info schema.

    !0 = !{!"some/filename", !"/path/to/dir"}
    !1 = !{!"0x29", !0} ; [ DW_TAG_file_type ]

!1 has a wrapper class called `DIFile` which inherits from `DIScope` and
is referenced in 'scope' fields.

!0 is called a "file node", and debug info nodes with a 'file' field
point at one of these directly -- although they're built in `DIBuilder`
by sending in a `DIFile` and reaching into it.

In the new hierarchy, I unified these nodes as `MDFile` (which `DIFile`
is a lightweight wrapper for) in r230057.  Moving the new hierarchy into
place (and upgrading testcases) caused CodeGen/X86/unknown-location.ll
to start failing -- apparently "0x29" was previously showing up in the
linetable as a filename, causing:

    .loc 2 4 3

(where 2 points at filename "0x29") instead of:

    .loc 1 4 3

    [4 lines not shown]

LLVM — llvm/trunk/lib/IR DebugInfo.cpp

DebugInfo: Use TempMDNode in DIDescriptor::replaceAllUsesWith()

Start using `TempMDNode` in `DIDescriptor::replaceAllUsesWith()`
(effectively `std::unique_ptr<MDNode, MDNode::deleteTemporary>`).

Besides making ownership more explicit, this prepares for when
`DIDescriptor` refers to nodes that are *not* `MDTuple`.  The old logic
for "replacing" a node with itself used `MDNode::get()` to return a new
(uniqued) `MDTuple`, while the new logic just defers to
`MDNode::replaceWithUniqued()` (which also typically saves an allocation
and RAUW traffic by mutating the temporary in place).
Delta File
+9 -13 llvm/trunk/lib/IR/DebugInfo.cpp
+9 -13 1 file

LLVM — llvm/trunk/test/CodeGen/X86 vselect.ll

fixed to test only the feature, not the feature and a CPU

FreeBSD Ports — head/lang/sagittarius-scheme/files patch-ext_crypto_libtomcrypt-1.17_src_headers_tomcrypt__macros.h

- Change inline constant rotate functions to macros in the crypto
  library libtomcrypt used by the project, to fix compile errors
  with clang 3.6. More details about the fix are in PR 198017

PR:                197395
Submitted by:        dim
Reported by:        portmgr

FreeBSD Ports — head/graphics/qgis pkg-plist Makefile

- Update to 2.8.1

PR:                197928
Submitted by:        Rainer Hurling<rhurlin at gwdg.de> (maintainer)

FreeBSD — head/tools/test README dtrace

Remove the old DTrace test suite makefile - it was somewhat primitive and
mostly unmaintained, and it has been superseded by the infrastructure added
in r279418.

Reviewed by:        ngie
Sponsored by:        EMC / Isilon Storage Divison
Delta File
+0 -1 head/tools/test/README
+0 -0 head/tools/test/dtrace/
+0 -1 2 files

FreeBSD — head/cddl/usr.sbin/dtrace tests, head/cddl/usr.sbin/dtrace/tests Makefile.inc1 Makefile

Add infrastructure to integrate the DTrace test suite with Kyua.

For each test category, we generate a script containing ATF test cases for
the tests under that category. Each test case simply runs dtest.pl (the
upstream test harness) with the corresponding test files. The exclude.sh
script is used to record info about tests which should be skipped or are
expected to fail; it is used to generate atf_skip and atf_expect_fail calls.
The genmakefiles.sh script can be used to regenerate the test makefiles when
new tests are brought it from upstream.

The test suite is currently not connected to the build as there is a small
number of lingering test issues which still need to be worked out. In the
meantime however, the test suite can be easily built and installed
manually from cddl/usr.sbin/dtrace/tests.

Reviewed by:        ngie
Sponsored by:        EMC / Isilon Storage Division

LLVM — llvm/trunk/lib/AsmParser LLParser.cpp, llvm/trunk/lib/IR AsmWriter.cpp

Optimize metadata node fields for CHECK-ability

While gaining practical experience hand-updating CHECK lines (for moving
the new debug info hierarchy into place),  I learnt a few things about
CHECK-ability of the specialized node assembly output.

  - The first part of a `CHECK:` is to identify the "right" node (this
    is especially true if you intend to use the new `CHECK-SAME`
    feature, since the first CHECK needs to identify the node correctly
    before you can split the line).
      - If there's a `tag:`, it should go first.
      - If there's a `name:`, it should go next (followed by the
        `linkageName:`, if any).
      - If there's a `scope:`, it should follow after that.
  - When a node type supports multiple DW_TAGs, but one is implied by
    its name and is overwhelmingly more common, the `tag:` field is
    terribly uninteresting unless it's different.
      - `MDBasicType` is almost always `DW_TAG_base_type`.
      - `MDTemplateValueParameter` is almost always
        `DW_TAG_template_value_parameter`.
  - Printing `name: ""` doesn't improve CHECK-ability, and there are far
    more nodes than I realized that are commonly nameless.
  - There are a few other fields that similarly aren't very interesting
    when they're empty.


    [2 lines not shown]

HardenedBSD — sys/dev/watchdog watchdog.c

    Merge remote-tracking branch 'origin/hardened/current/log' into 
hardened/current/unstable
∈ Oliver Pinter + - 332fd294 - 2015-02-28 23:18:24
    Merge remote-tracking branch 'origin/hardened/current/segvguard' into 
hardened/current/unstable
∈ Oliver Pinter + - a2b66726 - 2015-02-28 23:18:16
    Merge remote-tracking branch 'origin/hardened/current/master' into 
hardened/current/unstable
∈ Oliver Pinter + - 69c25ee1 - 2015-02-28 23:17:41
    Merge remote-tracking branch 'origin/hardened/current/master' into 
hardened/current/log
∈ Oliver Pinter + - 7b3d5d1e - 2015-02-28 23:17:33
    Merge remote-tracking branch 'origin/hardened/current/master' into 
hardened/current/segvguard
∈ Oliver Pinter + - 2b0791ea - 2015-02-28 23:17:24
    Merge remote-tracking branch 'origin/hardened/current/master' into 
hardened/current/aslr
∈ Oliver Pinter + - b67911cc - 2015-02-28 23:05:39
Merge remote-tracking branch 'freebsd/master' into hardened/current/master
∈ rstone - 6bb5da29 - 2015-02-28 22:37:48
Add a missing include of an options header.

watchdog.c does an #ifdef DDB but does not #include "opt_ddb.h".
Fixing this turned up a missing include file.

MFC after:        1 week
X-MFC-With:        r261495, r279410
Delta File
+3 -0 sys/dev/watchdog/watchdog.c
+3 -0 1 file

FreeBSD — head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid tst.provregex4.ksh tst.provregex2.ksh, head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt tst.dlclose3.ksh tst.dlclose2.ksh

Use the -shared option to create a shared library.

MFC after:        1 week

FreeBSD — head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid tst.provregex3.ksh

Remove a leading tab that causes a make(1) error when running the test.

MFC after:        1 week

FreeBSD — head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid tst.manypids.ksh

Only kill sleep processes that were forked from the test script.

MFC after:        1 week

HardenedBSD — sys/dev/watchdog watchdog.c

Merge remote-tracking branch 'freebsd/master' into hardened/current/master
∈ rstone - 6bb5da29 - 2015-02-28 22:37:48
Add a missing include of an options header.

watchdog.c does an #ifdef DDB but does not #include "opt_ddb.h".
Fixing this turned up a missing include file.

MFC after:        1 week
X-MFC-With:        r261495, r279410
Delta File
+3 -0 sys/dev/watchdog/watchdog.c
+3 -0 1 file

FreeBSD Ports — head/deskutils Makefile shutter, head/deskutils/shutter pkg-plist Makefile

Shutter is a feature-rich screenshot program for Linux based operating systems
such as Ubuntu. You can take a screenshot of a specific area, window, your
whole screen, or even of a website - apply different effects to it, draw on it
to highlight points, and then upload to an image hosting site, all within one
window. Shutter is free, open-source, and licensed under GPL v3.

WWW: http://shutter-project.org

FreeBSD Ports — head/x11-toolkits Makefile p5-Gtk2-Unique, head/x11-toolkits/p5-Gtk2-Unique Makefile pkg-plist

Perl bindings for the C library "libunique" that provides a mechanism for
writing single instance applications. If you launch a single instance
application twice, the second instance will either just quit or will send a
message to the running instance.

Unique makes it easy to write this kind of applications, by providing a base
class, taking care of all the IPC machinery needed to send messages to a running
instance, and also handling the startup notification side.

WWW: http://search.cpan.org/dist/Gtk2-Unique/

FreeBSD Ports — head/x11-toolkits Makefile p5-Gnome2-Wnck, head/x11-toolkits/p5-Gnome2-Wnck Makefile pkg-plist

This Perl module allows you to use the Window Navigator Construction Kit
library (libwnck for short) from Perl.

WWW: http://search.cpan.org/dist/Gnome2-Wnck/

FreeBSD — head/sys/dev/watchdog watchdog.c

Add a missing include of an options header.

watchdog.c does an #ifdef DDB but does not #include "opt_ddb.h".
Fixing this turned up a missing include file.

MFC after:        1 week
X-MFC-With:        r261495, r279410
Delta File
+3 -0 head/sys/dev/watchdog/watchdog.c
+3 -0 1 file

LLVM — llvm/trunk/lib/IR AutoUpgrade.cpp

fix typo; NFC
Delta File
+1 -1 llvm/trunk/lib/IR/AutoUpgrade.cpp
+1 -1 1 file

FreeBSD — head/sys/fs/nandfs bmap.c

Do not leak 'copy' buffer if bmap_truncate_indirect fails.

Reported by: Brainy Code Scanner, by Maxime Villard.
MFC after: 2 weeks
Delta File
+1 -0 head/sys/fs/nandfs/bmap.c
+1 -0 1 file

HardenedBSD — sys/fs/nandfs bmap.c

Do not leak 'copy' buffer if bmap_truncate_indirect fails.

Reported by: Brainy Code Scanner, by Maxime Villard.
MFC after: 2 weeks
Delta File
+1 -0 sys/fs/nandfs/bmap.c
+1 -0 1 file

LLVM — llvm/trunk/include/llvm/IR DebugInfoMetadata.h

Fix buildbot issues for MDScope::getFile() after r230871

I hope this extra cast will make everyone happy...

HardenedBSD — sys/dev/sfxge sfxge_rx.h

Unbreak 'make depend' with sfxge by removing debugging code activated in the
INET || INET6 case

X-MFC with: r279398
Pointyhat to: arybchik
Delta File
+0 -1 sys/dev/sfxge/sfxge_rx.h
+0 -1 1 file

FreeBSD — head/sys/dev/sfxge sfxge_rx.h

Unbreak 'make depend' with sfxge by removing debugging code activated in the
INET || INET6 case

X-MFC with: r279398
Pointyhat to: arybchik
Delta File
+0 -1 head/sys/dev/sfxge/sfxge_rx.h
+0 -1 1 file

FreeBSD — head/sys/kern uipc_syscalls.c

Correct the use of an unitialized variable in sendfind_getobj()

When sendfile_getobj() is called on a DTYPE_SHM file, it never
initializes error, which is eventually returned to the caller.

Differential Revision:                https://reviews.freebsd.org/D1989
Reviewed by:                        kib
Reported by:                         Brainy Code Scanner, by Maxime Villard.
Delta File
+1 -0 head/sys/kern/uipc_syscalls.c
+1 -0 1 file

HardenedBSD — sys/kern uipc_syscalls.c

Correct the use of an unitialized variable in sendfind_getobj()

When sendfile_getobj() is called on a DTYPE_SHM file, it never
initializes error, which is eventually returned to the caller.

Differential Revision:                https://reviews.freebsd.org/D1989
Reviewed by:                        kib
Reported by:                         Brainy Code Scanner, by Maxime Villard.
Delta File
+1 -0 sys/kern/uipc_syscalls.c
+1 -0 1 file

LLVM — llvm/trunk/include/llvm/IR DebugInfoMetadata.h, llvm/trunk/unittests/IR MetadataTest.cpp

IR: Specialize MDScope::getFile() for MDFile

Fix `MDScope::getFile()` so that it correctly returns a valid `MDFile`
even when it's an instance of `MDFile`.  This logic is necessary because
of r230057.  I'm working on moving the new hierarchy into place
out-of-tree (on track to commit Monday morning, BTW), and this was
exposed by a few failing tests.

LLVM — llvm/trunk/test/Transforms/Inline inline_dbg_declare.ll

Fix line endings on Transforms/Inline/inline_dbg_declare.ll

FreeBSD Ports — head/sysutils/spiped Makefile, head/sysutils/spiped/files extra-patch-proto_proto__conn.c

Add patch to work around bug in FreeBSD before r226610 (MFCed to stable/9
as r230953): Add #include <sys/types.h> before <netinet/tcp.h>.  This was
breaking the build on FreeBSD 8.4.

While I'm here, quiesce portlint by switching from EXTRACT_SUFX=.tgz to
the new spelling USES=tar:tgz.

FreeBSD — user/dchagin/lemul Makefile.inc1 ObsoleteFiles.inc, user/dchagin/lemul/bin/sh sh.1 expand.c

Merge from head.

FreeBSD Ports — head/security/libgcrypt Makefile distinfo

security/libgcrypt: 1.6.2 -> 1.6.3

Changes:
http://lists.gnupg.org/pipermail/gnupg-announce/2015q1/000364.html

PR:                198109
Submitted by:        Carlos Jacobo Puga Medina <cpm at fbsd.es> (maintainer)

FreeBSD — head/sys/dev/gpio ofw_gpiobus.c gpiobusvar.h

Add ofw_gpiobus_parse_gpios(), a new public function, to parse the gpios
property for devices that doesn't descend directly from gpiobus.

The parser supports multiple pins, different GPIO controllers and can use
arbitrary names for the property (to match the many linux variants:
cd-gpios, power-gpios, wp-gpios, etc.).

Pass the driver name on ofw_gpiobus_add_fdt_child().  Update gpioled to
match.

An usage example of ofw_gpiobus_parse_gpios() will follow soon.

HardenedBSD — sys/dev/gpio ofw_gpiobus.c gpiobusvar.h

Add ofw_gpiobus_parse_gpios(), a new public function, to parse the gpios
property for devices that doesn't descend directly from gpiobus.

The parser supports multiple pins, different GPIO controllers and can use
arbitrary names for the property (to match the many linux variants:
cd-gpios, power-gpios, wp-gpios, etc.).

Pass the driver name on ofw_gpiobus_add_fdt_child().  Update gpioled to
match.

An usage example of ofw_gpiobus_parse_gpios() will follow soon.

FreeBSD — user/dchagin/lemul/sys/compat/linux linux_socket.c

Fix an mbuf(9) leak in sendmsg() under failure condition and
remove unneeded check for failed M_WAITOK allocation.

Found by: Brainy Code Scanner
Reported by: Maxime Villard <max at M00nBSD.net>

HardenedBSD — sys/amd64/amd64 mp_machdep.c, sys/i386/i386 mp_machdep.c

Supposed fix for some SandyBridge mobile CPUs hang on AP startup when
x2APIC mode is detected and enabled.  Current theory is that switching
the APIC mode while an IPI is in flight might be the issue.

Postpone switching to x2APIC mode until we are guaranteed that all
starting IPIs are already send and aknowledged.  Use aps_ready signal
as an indication that the BSP is done with us.

Tested by:        adrian
Sponsored by:        The FreeBSD Foundation
MFC after:        2 months

FreeBSD — head/sys/amd64/amd64 mp_machdep.c, head/sys/i386/i386 mp_machdep.c

Supposed fix for some SandyBridge mobile CPUs hang on AP startup when
x2APIC mode is detected and enabled.  Current theory is that switching
the APIC mode while an IPI is in flight might be the issue.

Postpone switching to x2APIC mode until we are guaranteed that all
starting IPIs are already send and aknowledged.  Use aps_ready signal
as an indication that the BSP is done with us.

Tested by:        adrian
Sponsored by:        The FreeBSD Foundation
MFC after:        2 months

DragonFlyBSD — sys/sys signalvar.h systm.h

kernel: Mark sigexit() and cpu_halt() as not returning.
Delta File
+1 -1 sys/sys/signalvar.h
+1 -1 sys/sys/systm.h
+2 -2 2 files

FreeBSD — head/sys/nfs krpc_subr.c

Avoid closing unallocated socket in case socreate fails.

Found by: Brainy Code Scanner
Reported by: Maxime Villard <max at M00nBSD.net>
MFC after: 2 weeks
Delta File
+1 -1 head/sys/nfs/krpc_subr.c
+1 -1 1 file

HardenedBSD — sys/nfs krpc_subr.c

Avoid closing unallocated socket in case socreate fails.

Found by: Brainy Code Scanner
Reported by: Maxime Villard <max at M00nBSD.net>
MFC after: 2 weeks
Delta File
+1 -1 sys/nfs/krpc_subr.c
+1 -1 1 file

HardenedBSD — lib/libc/iconv citrus_iconv.c

Avoid lookup of CODESET aliases using uninitialized path

We do not use iconv.alias file, so avoid using the vestiges
of the code that do.

Differential Revision:        https://reviews.freebsd.org/D1729
Reviewed by: emaste
MFC after: 2 weeks
Delta File
+8 -0 lib/libc/iconv/citrus_iconv.c
+8 -0 1 file

FreeBSD — head/lib/libc/iconv citrus_iconv.c

Avoid lookup of CODESET aliases using uninitialized path

We do not use iconv.alias file, so avoid using the vestiges
of the code that do.

Differential Revision:        https://reviews.freebsd.org/D1729
Reviewed by: emaste
MFC after: 2 weeks

LLVM — llvm/trunk/include/llvm/DebugInfo/PDB PDBTypes.h PDB.h, llvm/trunk/include/llvm/DebugInfo/PDB/DIA DIASession.h

[llvm-pdbdump] Better error handling.

Previously it was impossible to distinguish between "There is
no PDB implementation for this platform" and "I tried to load
the PDB, but couldn't find the file", making it hard to figure
out if you built llvm-pdbdump incorrectly or if you just mistyped
a file name.

This patch adds proper error handling so that we can know exactly
what went wrong.