Re: [PATCH 2/3] libstdc++: Add put_time support.

2014-10-14 Thread Rüdiger Sonderfeld
On Tuesday 14 October 2014 18:01:59 Jonathan Wakely wrote: > So let's just test the full name and not worry about how it's > abbreviated. > > Tested x86_64-linux, committed to trunk. Sorry for causing the trouble. I had it tested on my local machine. Maybe the de_DE.utf8 locale is different.

Re: [PATCH 1/2] libstdc++: Add std::align.

2014-10-13 Thread Rüdiger Sonderfeld
On Monday 13 October 2014 11:03:51 Jonathan Wakely wrote: > Fixed (the new function should be in namespace std!) and applied to > trunk. Thanks for the patch. Thanks for merging and improving my patches! If you have the time maybe you could also look at the put_time patch. Unlike get_time it do

[PATCHv3 2/2] libstdc++: Add std::aligned_union.

2014-04-16 Thread Rüdiger Sonderfeld
Of course I forgot to replace one _M_ instance. This should work now. Sorry about this. -- 8< - >8 -- C++11: [meta.trans.other] * libstdc++-v3/testsuite/20_util/aligned_union/1.cc: New file. * libstdc++-v3/include/std/type_traits (__strict

[PATCHv2 2/2] libstdc++: Add std::aligned_union.

2014-04-16 Thread Rüdiger Sonderfeld
4 index 000..5285bb0 --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/aligned_union/1.cc @@ -0,0 +1,72 @@ +// { dg-options " -std=gnu++11 " } +// { dg-do compile } + +// 2014-04-16 Rüdiger Sonderfeld + +// Copyright (C) 2014 Free Software Foundation, Inc. +// +// This file is part of

[PATCH 2/2] libstdc++: Add std::aligned_union.

2014-04-16 Thread Rüdiger Sonderfeld
C++11: [meta.trans.other] * libstdc++-v3/testsuite/20_util/aligned_union/1.cc: New file. * libstdc++-v3/include/std/type_traits (__strictest_alignment): New helper struct. (aligned_union): New struct (C++11). (aligned_union_t): New type alias (C++14). --- libstdc++-v3/include/std/type_trait

[PATCH 1/2] libstdc++: Add std::align.

2014-04-16 Thread Rüdiger Sonderfeld
C++11 [ptr.align]. This should probably not be inline. But for now this avoids any ABI changes. * libstdc++-v3/testsuite/20_util/align/1.cc: New file. * libstdc++-v3/include/std/memory (align): New function. --- libstdc++-v3/include/std/memory | 35 + libstdc++-v3/testsuit

Re: [PATCH 1/3] libstdc++: Add time_get::get support.

2014-04-16 Thread Rüdiger Sonderfeld
On Tuesday 15 April 2014 23:36:51 Paolo Carlini wrote: > Those should be isolated and a compiler bug report opened including a > minimized reproducer. I'm not sure if this is a compiler bug or simply due to the fact that I didn't add the virtual function to the ABI linker script. > Anyway, the r

[PATCH 3/3] libstdc++: Add get_time support.

2014-04-15 Thread Rüdiger Sonderfeld
* libstdc++-v3/include/std/iomanip (_Get_time): New struct. (get_time): New manipulator [ext.manip]. (operator>>): New overloaded function. * libstdc++-v3/testsuite/27_io/manipulators/extended/get_time/char/1.cc: * libstdc++-v3/testsuite/27_io/manipulators/extended/get_time/char/2.cc: * libstdc

[PATCH 2/3] libstdc++: Add put_time support.

2014-04-15 Thread Rüdiger Sonderfeld
Described in [ext.manip]. * libstdc++-v3/include/std/iomanip (_Put_time): New struct. (put_time): New manipulator. (operator<<): New overloaded function. * libstdc++-v3/testsuite/27_io/manipulators/extended/put_time/char/1.cc: * libstdc++-v3/testsuite/27_io/manipulators/extended/put_time/char/

[PATCH 1/3] libstdc++: Add time_get::get support.

2014-04-15 Thread Rüdiger Sonderfeld
This patch adds support for std::time_get::get and std::time_get::do_get [locale.time.get]. Currently do_get is not virtual because this caused segfault errors for me. * libstdc++-v3/include/bits/locale_facets_nonio.h (time_get::get): (time_get::do_get): New method (C++11). * libstdc++-v3/incl

[PATCH v2] libstdc++: Add hexfloat/defaultfloat io manipulators.

2014-03-27 Thread Rüdiger Sonderfeld
char/hexfloat.cc: New file. Signed-off-by: Rüdiger Sonderfeld --- libstdc++-v3/include/bits/ios_base.h | 21 +++ libstdc++-v3/src/c++98/locale_facets.cc| 4 + .../inserters_arithmetic/char/hexfloat.cc | 141 + 3 files changed, 166 inser

[PATCH] libstdc++: Add hexfloat/defaultfloat io manipulators.

2014-03-27 Thread Rüdiger Sonderfeld
the FSF papers. Signed-off-by: Rüdiger Sonderfeld --- libstdc++-v3/ChangeLog | 9 ++ libstdc++-v3/include/bits/ios_base.h | 20 +++ libstdc++-v3/src/c++98/locale_facets.cc| 2 + .../inserters_arithmetic/char/hexfloat.cc

[PATCH] add DECL_SOURCE_COLUMN to tree.h (trivial)

2012-06-20 Thread Rüdiger Sonderfeld
need copyright assignment. However I have signed copyright assignment for Emacs and maybe that will work too (not sure if this has to be signed for every project). gcc/ChangeLog 2012-06-20 Rüdiger Sonderfeld * tree.h (DECL_SOURCE_COLUMN): New accessor Regards, RüdigerIn