freebsd-skq/contrib
dim a243faf2d2 MFC r274442:
Pull in r221709 from upstream llvm trunk (by Frédéric Riss):

  Totally forget deallocated SDNodes in SDDbgInfo.

  What would happen before that commit is that the SDDbgValues associated with
  a deallocated SDNode would be marked Invalidated, but SDDbgInfo would keep
  a map entry keyed by the SDNode pointer pointing to this list of invalidated
  SDDbgNodes. As the memory gets reused, the list might get wrongly associated
  with another new SDNode. As the SDDbgValues are cloned when they are transfered,
  this can lead to an exponential number of SDDbgValues being produced during
  DAGCombine like in http://llvm.org/bugs/show_bug.cgi?id=20893

  Note that the previous behavior wasn't really buggy as the invalidation made
  sure that the SDDbgValues won't be used. This commit can be considered a
  memory optimization and as such is really hard to validate in a unit-test.

This should fix abnormally large memory usage and resulting OOM crashes
when compiling certain ports with debug information.

Reported by:	Dmitry Marakasov <amdmi3@amdmi3.ru>
Upstream PRs:	http://llvm.org/PR19031 http://llvm.org/PR20893

MFC r274483:

The fix imported into llvm in r274442 contains some C++11 constructs,
which gcc in base cannot handle.  Replace these with C++98 equivalents.

While here, add the patch for the adapted fix.

Reported by:	bz, kib
Pointy hat to:	dim
2014-11-19 07:24:43 +00:00
..
amd
apr MFC r266728,266731,266735,266736,268135,268960,269833 2014-08-12 01:40:11 +00:00
apr-util MFC r257129,257936,258084,258569,258602,262250,262251 2014-02-20 20:34:01 +00:00
atf MFC r271875, r272046, r272049, r272056 2014-09-30 16:14:02 +00:00
binutils MFC r257302 by rea: 2014-10-17 16:23:36 +00:00
bmake Fix Fx syntax. 2013-09-27 17:42:23 +00:00
bsnmp MFC r260636: 2014-01-14 19:02:14 +00:00
byacc Merge: r272769 2014-10-11 19:38:29 +00:00
bzip2 Remove a few files that are not needed for FreeBSD. 2012-09-11 21:16:22 +00:00
com_err
compiler-rt MFC 264190: 2014-05-17 21:35:26 +00:00
dialog Update dialog to 1.2-20130923. 2013-09-24 14:52:43 +00:00
diff MFC r260358 2014-01-09 23:51:47 +00:00
dtc MFC r261215, r261257 2014-05-15 14:37:52 +00:00
ee Clean some 'svn:executable' properties in the tree. 2013-01-26 22:08:21 +00:00
expat Update base system libexpat to 2.1.0. 2013-02-26 00:58:44 +00:00
file MFC r267897: MFV r267843: 2014-07-11 00:00:00 +00:00
flex Enable GNU m4 compatibility mode. 2013-05-21 19:23:49 +00:00
gcc MFC r268994: C++ exception/unwind handling fix 2014-08-25 18:45:15 +00:00
gcclibs MFC r263775: 2014-04-02 06:17:57 +00:00
gdb MFC r258663: 2013-12-03 19:42:46 +00:00
gdtoa Clean up hardcoded ar(1) flags in the tree to use the global ARFLAGS in 2012-12-06 01:31:25 +00:00
gperf MFC r259756: 2013-12-28 00:03:15 +00:00
groff MFH r261319,261345,261742 mdoc changes to stable/10 2014-03-01 14:44:55 +00:00
hyperv/tools MFC r274383: 2014-11-14 18:30:20 +00:00
ipfilter MFC r271978 2014-10-12 17:03:47 +00:00
jemalloc MF9: Don't fail to build if MALLOC_PRODUCTION is defined in make.conf 2013-12-19 21:03:08 +00:00
ldns MFH (r266114, r266138): upgrade to latest ldns and unbound 2014-07-29 20:57:38 +00:00
ldns-host Import Magerya Vitaly's ldns-host, and build it instead of the BIND version 2013-09-08 19:40:32 +00:00
less Revert files with no local changes to their vendor state to ease future 2013-05-31 00:31:45 +00:00
libarchive MFC r270661: 2014-09-03 08:27:05 +00:00
libbegemot
libc-pwcache Replace our version of the pwcache(3) API with NetBSD's implementation. 2012-10-19 12:44:22 +00:00
libc-vis MFC r271287: 2014-10-08 15:44:11 +00:00
libc++ MFC r270416: 2014-08-26 06:31:52 +00:00
libcxxrt MFC r261609: 2014-02-10 20:25:40 +00:00
libexecinfo MFC r258426: libexecinfo: Include terminating null in byte count 2013-11-25 15:54:18 +00:00
libgnuregex Fix build for FreeBSD. We do not have alloca.h. 2013-06-05 21:28:33 +00:00
libpcap Bulk sync of pf changes from head, in attempt to fixup broken build I 2014-03-12 10:45:58 +00:00
libreadline
libstdc++ MFC r268993, r268893, r268994, plus partial r264070, r264082 2014-08-10 22:26:29 +00:00
libucl MFC: r263648, r264789, r266636 2014-07-19 23:44:57 +00:00
libyaml Import libyaml as libbsdyml (private brand name) 2013-03-04 11:27:41 +00:00
llvm MFC r274442: 2014-11-19 07:24:43 +00:00
mdocml strcmp(3) will suffice here, also follow the style of the remaining file more closely. 2012-10-20 10:16:55 +00:00
mknod Add NetBSD's mtree to the tree and install it as nmtree as the first step 2012-12-21 21:00:00 +00:00
mtree MFC r273796 2014-11-04 22:47:51 +00:00
ncurses
netcat MFC r273619: MFV r273617: netcat from OpenBSD 5.6. 2014-11-08 00:55:06 +00:00
ngatm
ntp MFC r265465: 2014-05-20 00:57:00 +00:00
nvi MFC r259088: Vendor import nvi-2.1.2-c80f493b038 a multikey mapping fix 2014-08-15 19:06:59 +00:00
ofed MFC r272027: 2014-10-02 10:46:12 +00:00
one-true-awk MFC r271879: 2014-10-10 23:18:44 +00:00
openbsm MFC r271577: 2014-09-18 22:17:46 +00:00
openpam MFH (r273273): Merge upstream r825: fix line continuation in whitespace 2014-10-20 08:59:30 +00:00
openresolv According to resolvconf.conf(5) manpage and sources, there is no 2012-08-21 06:14:08 +00:00
opie Restore ABI compatibility with 10.0-RELEASE, so that stable/10 users can use 2014-10-19 12:11:25 +00:00
pam_modules/pam_passwdqc Make the PAM password strength checking module WARNS=2 safe. 2013-08-27 15:50:26 +00:00
pf MFC r261271: 2014-10-29 09:32:36 +00:00
pnpinfo
sendmail MFC: Update for sendmail 8.14.9 import 2014-05-26 15:35:11 +00:00
serf MFC r266728,266731,266735,266736,268135,268960,269833 2014-08-12 01:40:11 +00:00
smbfs MFC r271259: 2014-09-25 17:59:00 +00:00
sqlite3 Introduce svnlite so that we can check out our source code again. 2013-06-18 02:53:45 +00:00
subversion MFC r266728,266731,266735,266736,268135,268960,269833 2014-08-12 01:40:11 +00:00
tcp_wrappers Clean up hardcoded ar(1) flags in the tree to use the global ARFLAGS in 2012-12-06 01:31:25 +00:00
tcpdump Bulk sync of pf changes from head, in attempt to fixup broken build I 2014-03-12 10:45:58 +00:00
tcsh
telnet Fix "automatic" login, broken by revision 69825 (12 years, 5 months ago). 2013-05-31 17:30:12 +00:00
texinfo
tnftp [SA-14:25] Fix kernel stack disclosure in setlogin(2) / getlogin(2). 2014-11-04 23:29:57 +00:00
top MFC r265249,r265250,r265251: 2014-05-17 02:39:20 +00:00
traceroute mdocify and update the traceroute(8) manual page. 2012-06-27 07:41:21 +00:00
tzcode Merge r266111 from head: 2014-05-22 20:55:57 +00:00
tzdata MFC of 274559,tzdata2014j 2014-11-16 04:02:50 +00:00
unbound MFH (r266114, r266138): upgrade to latest ldns and unbound 2014-07-29 20:57:38 +00:00
unvis Replace our (un)vis(1) commands with implementations from NetBSD to 2013-03-15 00:05:50 +00:00
vis MFC r263289: Update NetBSD Foundation copyrights to 2-clause BSD 2014-03-24 13:48:04 +00:00
wpa MFC r263925 2014-04-12 23:48:02 +00:00
xz MFC r273498: MFV r273494: xz 5.0.7. 2014-11-08 00:49:45 +00:00