120 Commits

Author SHA1 Message Date
Bernhard Reutner-Fischer
a52285d2f1 wrapper: Fix handling arguments with spaces
g++-uc -DFOO="BAR BAZ" was not working properly.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2019-04-06 10:46:19 +02:00
Bernhard Reutner-Fischer
62238938ef ChangeLog: add recent items
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2019-04-05 12:06:25 +02:00
Ben Kelly
da23783634 Fix 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>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2018-10-05 16:03:24 +02:00
Bernhard Reutner-Fischer
6c800ded59 ChangeLog: add recent items
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2018-10-05 10:50:49 +02:00
Bernhard Reutner-Fischer
afec012791 buildsys: tweak WARNINGS config name
uClibc uses WARNINGS too so use UCLIBCXX_WARNINGS here to avoid
redefinition warnings on setups using both libs.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-06-18 10:25:16 +02:00
Felix Fietkau
cf73cb907c unwind: Fix ARM EABI build failure
uClibc++ current does not build using an ARM EABI toolchain with the
following build failure:
eh_alloc.cpp
In file included from ../include/basic_definitions:21:0,
                 from ../include/cstdlib:20,
                 from eh_alloc.cpp:20:
../include/system_configuration.h:17:0: warning: "__WARNINGS__" redefined [enabled by default]
/opt/toolchains/armeabi-uclibc-std-0.9.30.2-gcc-4.6.0-binutils-2.20.1/arm-linux-uclibcgnueabi/sysroot/usr/include/bits/uClibc_config.h:223:0: note: this is the location of the previous definition
In file included from eh_alloc.cpp:25:0:
../include/unwind-cxx.h:176:36: error: ISO C++ forbids casting to an array type '_Unwind_Exception_Class'
../include/unwind-cxx.h:177:36: error: ISO C++ forbids casting to an array type '_Unwind_Exception_Class'
../include/unwind-cxx.h:178:35: error: ISO C++ forbids casting to an array type '_Unwind_Exception_Class'
../include/unwind-cxx.h:179:41: error: ISO C++ forbids casting to an array type '_Unwind_Exception_Class'
../include/unwind-cxx.h:180:40: error: ISO C++ forbids casting to an array type '_Unwind_Exception_Class'
../include/unwind-cxx.h:181:39: error: ISO C++ forbids casting to an array type '_Unwind_Exception_Class'
../include/unwind-cxx.h:182:38: error: ISO C++ forbids casting to an array type '_Unwind_Exception_Class'
../include/unwind-cxx.h:183:37: error: ISO C++ forbids casting to an array type '_Unwind_Exception_Class'
make[1]: *** [eh_alloc.o] Error 1
make[1]: Leaving directory `/home/florian/dev/uclibcxx/uClibc++/src'

Workaround this by direclty using the string "GNUCC++".

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-06-14 13:02:14 +02:00
Bernhard Reutner-Fischer
e4c1097fbd Release 0.2.4
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-05-25 23:15:31 +02:00
Bernhard Reutner-Fischer
53ae6c38a7 valarray: bunch of fixes
Fix operator=(const valarray<T>&) DR 630
Adjust constness of operator[](size_t)
Properly implement class member valarray<bool> operator!()
Fix operator|= (const T&) to or, not not
Fix both shift() and cshift() for any overrun and +- offsets
Fix slice_array& operator=(const slice_array&) to return properly
Adjust class gslice default constructor DR 543
Fix valarray<bool> operator>(const T&, const valarray<T>&)
Return the result of all algo
Fix copy'n paster error in atan2() inner fn call
Fix pow  (const T& const valarray<T>&)

Later versions add .swap, prepare for that.
Dump additional observations to TODO

Unnoted: satisfy gcc/libstdc++/testsuite/26_numerics/valarray/dr543.cc really
Unnoted: TR1/2 audit? Check against current boost? ;)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-05-25 22:44:28 +02:00
Bernhard Reutner-Fischer
b18de12d8c istream: fix readin<traits, char, bool>
add test for __istream_readin<traits, char, bool>

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-05-24 10:29:46 +02:00
Bernhard Reutner-Fischer
694fc91927 ChangeLog: fill in missing bits for 0.2.3
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-05-24 10:26:14 +02:00
Garrett Kajmowicz
d45c506094 Have string use some of the base class insert functions to be more complete
Change map::operator[] to not create unnecessary temp objects.
2009-04-03 13:51:00 +00:00
Garrett Kajmowicz
686369818a Make sure that map and multimap properly export the swap() function. 2009-04-01 22:54:12 +00:00
Garrett Kajmowicz
b13aed276b Add support for comparisons between deque iterators and deque const_iterators. 2008-11-28 01:08:54 +00:00
Garrett Kajmowicz
017f87df21 Apply patch for limits<bool> implementation.
Correct implementation of ios_base::width() support.
Add to test suite to verify implementation of ios_base::width()
2008-06-18 23:53:48 +00:00
Garrett Kajmowicz
d93bb2083e Added location for complex tests. 2007-06-03 19:37:05 +00:00
Garrett Kajmowicz
b544421bca Fix string.compare() to do math on the correct variables. 2007-05-30 00:00:54 +00:00
Garrett Kajmowicz
54d73ea7c3 basic_ios::init now sets format flags. 2007-05-27 22:03:58 +00:00
Garrett Kajmowicz
2180360c91 Fixed segfault when attempting to read from a closed file descriptor. 2007-04-28 00:48:50 +00:00
Garrett Kajmowicz
57b6ca63cf Change map, set, and associative_base containers to handle
construct-from-iterator-range correctly.
2007-04-02 00:26:32 +00:00
Garrett Kajmowicz
a082c9f4f1 Fix issues with associative base not copying the value_to_key pointer properly.
Rebase set and multiset on associative_base.  Shrunk source code by ~50k.
2007-03-28 01:38:04 +00:00
Garrett Kajmowicz
995bba5dca Map class is now based on associative base (based on list for now)
Fixed list - no longer returns incorrect iterator with erase()
2007-03-21 04:13:14 +00:00
Garrett Kajmowicz
f4d079f1eb Added base for new associative array design. map, set, etc. will subclass. 2007-03-20 23:49:39 +00:00
Garrett Kajmowicz
42674259e4 ios::exception() now works the way it is supposed to, along with all required side-effects
Added test cases to test ios:exception code (more always needed)
istream::get(char * buffer, streamsize n) now more standards compliant.  Specifically, it fetches
	n-1 characters instead of n characters, terminating with traits::eos().
2007-03-18 21:40:28 +00:00
Garrett Kajmowicz
24e4143897 Don't flush ostream in destructor - let subclasses flush as they see fit. 2007-03-08 02:04:50 +00:00
Garrett Kajmowicz
5c331f1a77 Convert stringtest to use new test framework. Should now be 64bit+ comptatable. 2007-03-03 02:20:17 +00:00
Garrett Kajmowicz
16be2592d6 Add #pragma GCC visibility push/pop in header files 2007-03-02 23:03:05 +00:00
Garrett Kajmowicz
2762d7ddae Removed variable name in function implementation to avoid unused variable warning
Updated ranking for Peter Schueller for bug finding.
2006-12-15 02:02:23 +00:00
Garrett Kajmowicz
d4105c962a Added implementation of deque::swap. Move code from std::swap(deque) and then call this code.
Added tests for deque swapping.  More slow conversion to the TestFramework code for automatic testing.
2006-12-15 01:27:52 +00:00
Garrett Kajmowicz
3c27233dbf basic_ostream objects now flush on destruction. 2006-11-28 13:16:02 +00:00
Garrett Kajmowicz
e4f7eb778c Added changes to .cpp files to make previous commits work correct.
Updated changelog.
2006-10-14 23:26:21 +00:00
Garrett Kajmowicz
d21c7d2ba2 Ifdef out gcc-specific foo. This should allow code to be used by better compilers. 2006-10-11 15:44:40 +00:00
Garrett Kajmowicz
4a204526c3 Fix embarassing equality instead of comparison oversight. 2006-10-06 13:14:51 +00:00
Garrett Kajmowicz
8680f21939 Implementation of locale::name 2006-09-04 19:53:54 +00:00
Garrett Kajmowicz
9cc68b42a4 Change default formating flags for ios_base to comply with the standard. 2006-09-04 19:45:15 +00:00
Garrett Kajmowicz
48126212a5 Bump revision number 2006-09-04 02:34:00 +00:00
Garrett Kajmowicz
0a648b1dde Apply a fix which elliminates possible memory leak in vector. 2006-08-20 17:26:41 +00:00
Garrett Kajmowicz
96ba903e80 Fix bug in list.
Add debugging code to be able to discover problems like this in the future more easily.
2006-07-04 17:19:19 +00:00
Garrett Kajmowicz
ede6ec01a3 Added preliminary version of <limits> code which is horribly incomplete, especially
where it is needed most - floating point specs.
2006-06-25 22:35:07 +00:00
Garrett Kajmowicz
497463d2f4 Elliminate unused architecture configuration code. 2006-06-25 14:31:15 +00:00
Garrett Kajmowicz
0936f57c77 Fixed problem where iod_base::app wasn't being respected. 2006-06-23 01:22:45 +00:00
Garrett Kajmowicz
739dbedbd2 Replace libstdc++ eh_globals code with my own. Now requires configuration
to use thread-local storage.  Hooks provided.
2006-06-11 20:55:59 +00:00
Garrett Kajmowicz
77773002ee Added eh_alloc.cpp, replacing GNU version 2006-05-20 02:25:04 +00:00
Garrett Kajmowicz
953a23ff05 - Clean up double-semicolons
-       Add parent class scoping as appropriate
-       Make ios::Init() exported again
-	Add linking against /lib/ld-linux.so.2 - THIS NEEDS TO BE CLEANER
2006-03-25 01:28:27 +00:00
Garrett Kajmowicz
8011959b57 Implement string::assign(first, last) 2006-03-24 04:08:33 +00:00
Garrett Kajmowicz
7e12ceb36c Convert string::resize() to allow users to specify the filler character 2006-03-08 02:02:39 +00:00
Garrett Kajmowicz
b85d52d2da Implement string::find_last_not_of
Convert to traits::eq for some string functions in compliance with spec
Add more tests to test suite for added code
2006-03-08 01:53:17 +00:00
Garrett Kajmowicz
507e0e20db Implement std::ws
Implement istream>> (*pf)(istream)
Implement istream>> (*pf)(ios_base)
Add testsuite code to check above 2 items
Refactor whitespace-eating code so it's shared by sentry and ws
2006-03-08 01:10:42 +00:00
Garrett Kajmowicz
cf5f46d7ee Now export std::calloc and std::realloc 2006-03-02 01:55:08 +00:00
Peter S. Mazinger
536b366890 typos, Garrett, I hope you don't mind 2006-03-01 11:19:20 +00:00
Garrett Kajmowicz
4eb6e5b555 Long double support now depends on float support in config 2006-02-10 05:26:29 +00:00