aboutsummaryrefslogtreecommitdiff
path: root/contrib
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade our copy of llvm/clang to 3.3 release.Dimitry Andric2013-06-12922-19703/+52679
| | | | | | | | | Release notes are still in the works, these will follow soon. MFC after: 1 month Notes: svn path=/head/; revision=251662
* Fix build for FreeBSD. We do not have alloca.h.Jung-uk Kim2013-06-051-0/+2
| | | | Notes: svn path=/head/; revision=251437
* Add GNU regex from glibc 2.17.Jung-uk Kim2013-06-056-0/+11388
| | | | Notes: svn path=/head/; revision=251436
* Pull in r183297 from upstream llvm trunk:Dimitry Andric2013-06-051-3/+31
| | | | | | | | | | | | | | | | | | | | | | PR15662: Optimized debug info produces out of order function parameters When a function is inlined we lazily construct the variables representing the function's parameters. After that, we add any remaining unused parameters. If the function doesn't use all the parameters, or uses them out of order, then the DWARF would produce them in that order, producing a parameter order that doesn't match the source. This fix causes us to always keep the arg variables at the start of the variable list & in the original order from the source. Reported by: avg MFC after: 1 week Notes: svn path=/head/; revision=251431
* Update to bmake-20130604 to fix file descriptor leak.Simon J. Gerraty2013-06-055-22/+42
| | | | Notes: svn path=/head/; revision=251422
* Update jemalloc to version 3.4.0.Jason Evans2013-06-0319-164/+341
| | | | Notes: svn path=/head/; revision=251300
* Revert: Use time_t instead of long for archive timestamps.Pedro F. Giffuni2013-06-017-24/+15
| | | | | | | Back out for now: this breaks the i386 build and requires some revision. Notes: svn path=/head/; revision=251227
* BFD: Use time_t instead of long for archive timestamps.Pedro F. Giffuni2013-06-017-15/+24
| | | | | | | | | | | This basically follows the suggestion in the binutils code and is more in line with what BSD ar(1) does. Obtained from: OpenBSD MFC after: 2 weeks. Notes: svn path=/head/; revision=251225
* Pull in r183033 and r183036 from LLVM trunk:Ed Schouten2013-06-011-28/+105
| | | | | | | | | | | | | | | | | | | | | | | | | Add support for optimized (non-generic) atomic libcalls. For integer types of sizes 1, 2, 4 and 8, libcompiler-rt (and libgcc) provide atomic functions that pass parameters by value and return results directly. libgcc and libcompiler-rt only provide optimized libcalls for __atomic_fetch_*, as generic libcalls on non-integer types would make little sense. This means that we can finally make __atomic_fetch_* work on architectures for which we don't provide these operations as builtins (e.g. ARM). This should fix the dreaded "cannot compile this atomic library call yet" error that would pop up once every while. This should make it possible for me to get C11 atomics working on all of our platforms. Notes: svn path=/head/; revision=251216
* GCC: bring back experimental support for amdfam10/barcelona CPUs.Pedro F. Giffuni2013-06-0115-165/+1515
| | | | | | | | | | | | | | | | Initial support for the AMD amdfam10 chipsets has been available in the gcc43 branch under GPLv2. AMD and some linux distributions (OpenSUSE) did a backport of the amdfam10 support and made it available. This is a revised subset of the support initially brought in in r236962 and later reverted. The collateral efects seem to have disappeared but it is still recommended to set the CPUTYPE with caution. Reviewed by: jkim (ages ago) MFC after: 3 weeks Notes: svn path=/head/; revision=251212
* MFV: Redo the fixup using the submitted version accepted by upstream.Xin LI2013-05-311-3/+1
|\ | | | | | | Notes: svn path=/head/; revision=251210
* | Fix "automatic" login, broken by revision 69825 (12 years, 5 months ago).Marcel Moolenaar2013-05-311-14/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "automatic" login feature is described as follows: The USER environment variable holds the name of the person telnetting in. This is the username of the person on the client machine. The traditional behaviour is to execute login(1) with this username first, meaning that login(1) will prompt for the password only. If login fails, login(1) will retry, but now prompt for the username before prompting for the password. This feature got broken by how the environment got scrubbed. Before the change in r69825 we removed variables that we deemed dangerous. Starting with r69825 we only keep those variable we know to be safe. The USER environment variable fell through the cracks. It suddenly got scrubbed (i.e. removed from the environment) while still being checked for. It also got explicitly removed from the environment to handle the failed login case. The fix is to obtain the value of the USER environment variable before we scrub the environment and used the "cached" in subsequent checks. This guarantees that the environment does not contain the USER variable in the end, while still being able to implement "automatic" login. Obtained from: Juniper Networks, Inc. Notes: svn path=/head/; revision=251188
* | Revert files with no local changes to their vendor state to ease futureXin LI2013-05-315-6/+0
| | | | | | | | | | | | | | upgrading. Notes: svn path=/head/; revision=251170
* | Remove unused files.Xin LI2013-05-3123-12238/+0
| | | | | | | | Notes: svn path=/head/; revision=251169
* | Diff reduction against tcpdump revision ↵Xin LI2013-05-301-2/+1
| | | | | | | | | | | | | | 949a22064d3534eddeb8aa2b9c36a50e45fe16fa. Notes: svn path=/head/; revision=251161
* | MFV: tcpdump 4.4.0.Xin LI2013-05-3039-7877/+4631
|\| | | | | | | | | | | | | MFC after: 4 weeks Notes: svn path=/head/; revision=251158
* | Update byacc to 20130304Baptiste Daroussin2013-05-3037-1724/+1768
| | | | | | | | Notes: svn path=/head/; revision=251143
* | MFV: libpcap 1.4.0.Xin LI2013-05-3054-4050/+8632
|\ \ | | | | | | | | | | | | | | | | | | MFC after: 4 weeks Notes: svn path=/head/; revision=251129
* | | Modify atf::fs::path::get_process_helpers_path API to properlyMarcel Moolenaar2013-05-294-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | handle pathing with detail/ tests. Based on patch pushed upstream to ATF project. Obtained from: Garrett Cooper <yaneurabeya@gmail.com> Notes: svn path=/head/; revision=251108
* | | Fix warnings from newer clang versions about constexpr member functionsDimitry Andric2013-05-281-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not being implicitly const in libc++'s <chrono> header. The warnings have been introduced because of new language rules recently adopted by the C++ WG. More info: <http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2013/n3598.html> MFC after: 3 days Notes: svn path=/head/; revision=251066
* | | Pull in r182656 from upstream llvm trunk:Dimitry Andric2013-05-261-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LoopVectorize: LoopSimplify can't canonicalize loops with an indirectbr in it, don't assert on those cases. Fixes PR16139. This should fix clang assertion failures when optimizing at -O3, similar to: Assertion failed: (TheLoop->getLoopPreheader() && "No preheader!!"), function canVectorize, file contrib/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp, line 2171. Reported by: O. Hartmann <ohartman@zedat.fu-berlin.de> PR: ports/178332, ports/178977 MFC after: 3 days Notes: svn path=/head/; revision=250997
* | | Make the malloc(3) family of functions weak and make their non-weakMarcel Moolenaar2013-05-251-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implementations visible for use by applications. The functions $F that are now weak symbols are: allocm, calloc, dallocm, free, malloc, malloc_usable_size, nallocm, posix_memalign, rallocm, realloc, sallocm The non-weak implementations of $F are exported as __$F. Submitted by: stevek@juniper.net Reviewed by: jasone@, kib@ Approved by: jasone@ (jemalloc) Obtained from: juniper Networks, Inc Notes: svn path=/head/; revision=250991
* | | Work around build breakages with GCC 4.2.Jung-uk Kim2013-05-231-0/+1
| | | | | | | | | | | | | | | | | | | | | Reported by: tinderbox Notes: svn path=/head/; revision=250926
* | | Enable GNU m4 compatibility mode.Jung-uk Kim2013-05-211-1/+1
| | | | | | | | | | | | Notes: svn path=/head/; revision=250879
* | | Allow YY_NO_UNPUT to disable unput() for backward compatibility.Jung-uk Kim2013-05-211-0/+5
| | | | | | | | | | | | Notes: svn path=/head/; revision=250878
* | | Define yy_current_buffer for backward compatibility.Jung-uk Kim2013-05-211-0/+1
| | | | | | | | | | | | Notes: svn path=/head/; revision=250877
* | | Do not use log10(3) to get rid of libm dependency. It is really not useful.Jung-uk Kim2013-05-213-3/+5
| | | | | | | | | | | | Notes: svn path=/head/; revision=250876
* | | Reduce compiler warnings.Jung-uk Kim2013-05-219-9/+16
| | | | | | | | | | | | Notes: svn path=/head/; revision=250875
* | | Apply still relevant local changes.Jung-uk Kim2013-05-2113-101/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r124183: Work around a `label defined but not used' warning. r179549: De-register declarations. r179657: De-register declarations in non-dot-c files. r181269: Mark yy_fatal_error() as __dead2. r228992: Spelling fixes. r240518: Correct double "the the". Notes: svn path=/head/; revision=250874
* | | Add flex 2.5.37 from flex.sourceforge.net to contrib.Jung-uk Kim2013-05-2137-0/+28800
| | | | | | | | | | | | Notes: svn path=/head/; revision=250873
* | | Sync with upstream version (20130520) that includes same fixes made last week.Simon J. Gerraty2013-05-2016-235/+418
| | | | | | | | | | | | Notes: svn path=/head/; revision=250837
* | | Fix wildcard srcs for phony targetsSimon J. Gerraty2013-05-181-6/+6
| | | | | | | | | | | | Notes: svn path=/head/; revision=250773
* | | Match what is in netbsd.Simon J. Gerraty2013-05-181-1/+1
| | | | | | | | | | | | Notes: svn path=/head/; revision=250771
* | | Var_Delete: expand name to delete if needed.Simon J. Gerraty2013-05-181-3/+12
| | | | | | | | | | | | Notes: svn path=/head/; revision=250770
* | | We really need to get the bsd.own.mk from this tree so theSimon J. Gerraty2013-05-171-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | correct options are set. Also defined NO_PWD_OVERRIDE to match behavior of fmake. Notes: svn path=/head/; revision=250750
* | | Add tcp header flags ECE and CWR defined in RFC 3168.Hiren Panchasara2013-05-163-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 140349 Submitted by: Alan Amesbury <amesbury@umn.edu> (earlier version) Reviewed by: delphij Approved by: sbruno (mentor) Notes: svn path=/head/; revision=250693
* | | Rename O_DIRECTORY to O_TMP_DIRECTORY to avoid shadowing the fcntl.hJaakko Heinonen2013-05-153-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | O_DIRECTORY flag. PR: bin/173924 Obtained from: git://repo.or.cz/nvi.git Notes: svn path=/head/; revision=250667
* | | Pull in r181286 from upstream llvm trunk:Dimitry Andric2013-05-131-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LoopVectorize: getConsecutiveVector must respect signed arithmetic We were passing an i32 to ConstantInt::get where an i64 was needed and we must also pass the sign if we pass negatives numbers. The start index passed to getConsecutiveVector must also be signed. Should fix PR15882. This should fix Firefox crashes some people have been reporting, when it is compiled with -O3. Notes: svn path=/head/; revision=250593
* | | MFV: less v458.Xin LI2013-05-1314-457/+492
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=250592
* | | | Add support for "d" floating-point suffix, as defined by draft N1312Pedro F. Giffuni2013-05-123-3/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of TR 24732. Emit pedantic warning if the feature is being used. Should solve GCC bug 39027. Obtained from: OpenBSD MFC after: 2 weeks Notes: svn path=/head/; revision=250566
* | | | Update the gcc43 changelog.Pedro F. Giffuni2013-05-121-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The issue solved in r250392 actually originated upstream and was fixed in upstream gcc43 branch in 2006/10/24 (under GPLv2). Register it in the appropriate ChangeLog for reference. MFC after: 3 days Notes: svn path=/head/; revision=250550
* | | | For some reason, the gcc intrinsics header tmmintrin.h was imported withDimitry Andric2013-05-081-224/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | two copies of itself pasted together. Remove the extraneous copy. MFC after: 3 days Notes: svn path=/head/; revision=250392
* | | | Register OID for HAST module.Mikolaj Golub2013-05-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=250380
* | | | Completely rewrite the interface to smbdev switching from dev_cloneDavide Italiano2013-05-042-33/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to cdevpriv(9). This commit changes the semantic of mount_smbfs in userland as well, which now passes file descriptor in order to to mount a specific filesystem istance. Reviewed by: attilio, ed Tested by: martymac Notes: svn path=/head/; revision=250236
* | | | Improve compatibility with recent flex from flex.sourceforge.net.Jung-uk Kim2013-05-032-6/+6
| | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=250227
* | | | Local hack to allow smooth transition for ports.Simon J. Gerraty2013-05-011-1/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bsd.port.mk can set .MAKE.FreeBSD_UL=yes to cause :L and :U to have their old behavior. This should be reverted when 8.3 is EOL. PR: 173299 Reviewed by: obrien Notes: svn path=/head/; revision=250164
* | | | Merge libc++ trunk r180598. Contains several minor cleanups and bugDimitry Andric2013-04-2783-1090/+1601
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes, no major changes. MFC after: 2 weeks Notes: svn path=/head/; revision=249998
* | | | Merge libcxxrt c812a07cd2f95c1403baf0bbe0366e7618d1d6d3:Dimitry Andric2013-04-272-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't call the _fast version of the TLS accessor in terminate() or unexpected(). 1) TLS may not have been set up yet. 2) When we're in one of these functions, Really Bad Stuff has happened and potentially saving a few cycles really isn't important. * Merge in fixes from FreeBSD trunk to make atomics work with recent clang. MFC after: 1 week Notes: svn path=/head/; revision=249993
* | | | Restore the ipNetToMedia MIB, that was broken with new ARP commitGleb Smirnoff2013-04-251-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the r186119. Submitted by: Konstantin Kukushkin <dark rambler-co.ru> Notes: svn path=/head/; revision=249896
* | | | Pull in r180121 from upstream llvm trunk:Dimitry Andric2013-04-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LoopVectorizer: Fix 15830. When scalarizing and unrolling stores make sure that the order in which the elements are scalarized is the same as the original order. This fixes a miscompilation in FreeBSD's regex library. This should fix lib/libc/regex/regcomp.c at -O3 with clang 3.3 r178860 on CPUs with SSE. Before this change, the vectorizer could incorrectly rearrange the second loop in computejumps(), leading to possibly invalid entries in the re_gets::charjump table. The net result was that for example "sed s/@CC@/foo/" failed to work correctly, leading to trouble with many configure scripts. Notes: svn path=/head/; revision=249817