diff options
author | Rosen Penev <rosenp@gmail.com> | 2019-04-06 23:37:56 -0700 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2019-05-11 23:10:10 +0200 |
commit | 0b2638253321db90e9844f04cd7299c1a2e1633a (patch) | |
tree | 0fd3af340c492fc4f201c3eec3e9e9659ce32cc8 /package/libs/uclibc++/patches/050-Bugfix-erase-on-derived-__base_associative.patch | |
parent | e49b6bb61828b8b903db0ef48113b4065a215c63 (diff) | |
download | upstream-0b2638253321db90e9844f04cd7299c1a2e1633a.tar.gz upstream-0b2638253321db90e9844f04cd7299c1a2e1633a.tar.bz2 upstream-0b2638253321db90e9844f04cd7299c1a2e1633a.zip |
uClibc++: Update to 0.2.5
Switched to xz archives for smaller size.
Removed upstreamed patches.
Reorganized Makefile a little bit for clarity. Build/Prepare is not useful
anymore. Upstream converted the file to LF.
Refreshed config.
Removed -ansi option from the original CFLAGS as this was causing long
long support to be missing.
Removed fPIC. We have the macro $(FPIC) already used. No point in setting
fpic and fPIC together.
Removed pedantic -Wlong-long warnings as they are not useful.
Removed -std=gnu++98. Not only is it unnecessary (it compiles against all
standards), it actually results in a size increase. 75843 vs. 75222 (gcc
in OpenWrt defaults to g++14).
Added --gc-sections to linker flags to reduce size: 72653 vs 75222.
Removed warn linker options. They have been upstreamed.
Tested on Archer C7v2 and GnuBee PC1.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'package/libs/uclibc++/patches/050-Bugfix-erase-on-derived-__base_associative.patch')
-rw-r--r-- | package/libs/uclibc++/patches/050-Bugfix-erase-on-derived-__base_associative.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/package/libs/uclibc++/patches/050-Bugfix-erase-on-derived-__base_associative.patch b/package/libs/uclibc++/patches/050-Bugfix-erase-on-derived-__base_associative.patch deleted file mode 100644 index 2ddb8a984e..0000000000 --- a/package/libs/uclibc++/patches/050-Bugfix-erase-on-derived-__base_associative.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 946b29e62927eadfc4e87f27b8d30e5974b78c4c Mon Sep 17 00:00:00 2001 -From: Ben Kelly <ben@benjii.net> -Date: Mon, 6 Feb 2017 13:08:25 +0200 -Subject: [PATCH] Bugfix erase() on derived __base_associative - -When calling erase() on a containers derived from __base_associative -(e.g. multimap) and providing a pair of iterators a segfault will -occur. - -Example code to reproduce: - - typedef std::multimap<int, int> testmap; - testmap t; - t.insert(std::pair<int, int>(1, 1)); - t.insert(std::pair<int, int>(2, 1)); - t.insert(std::pair<int, int>(3, 1)); - t.erase(t.begin(), t.end()); - -Signed-off-by: Ben Kelly <ben@benjii.net> ---- - include/associative_base | 3 +-- - 1 file changed, 1 insertion(+), 2 deletions(-) - -diff --git a/include/associative_base b/include/associative_base -index 27ae0ef..be8b27f 100644 ---- a/include/associative_base -+++ b/include/associative_base -@@ -200,8 +200,7 @@ public: - } - void erase(iterator first, iterator last){ - while(first != last){ -- backing.erase(first.base_iterator()); -- ++first; -+ first = backing.erase(first.base_iterator()); - } - } - --- -2.7.4 - |