Re: [v3] libstdc++/57920

2013-07-24 Thread Paolo Carlini
Hi, On 07/23/2013 12:45 PM, Chung-Ju Wu wrote: 2013/7/23 Paolo Carlini : ... in the future, when we manage to actually avoid including from I think we can avoid including it from if we play a bit with void*. Should be safe aliasing-wise. Something like the below, completely untested. I test

Re: [v3] libstdc++/57920

2013-07-23 Thread Chung-Ju Wu
2013/7/23 Paolo Carlini : > ... in the future, when we manage to actually avoid including from > I think we can avoid including it from if we play a bit > with void*. Should be safe aliasing-wise. Something like the below, > completely untested. I tested it on my target. At least the elf toolc

Re: [v3] libstdc++/57920

2013-07-23 Thread Paolo Carlini
On 07/23/2013 11:56 AM, Paolo Carlini wrote: ... in the future, when we manage to actually avoid including from The C++11 string conversions could be exported by the *.so, aren't templates. Paolo.

Re: [v3] libstdc++/57920

2013-07-23 Thread Paolo Carlini
... in the future, when we manage to actually avoid including from I think we can avoid including it from if we play a bit with void*. Should be safe aliasing-wise. Something like the below, completely untested. Paolo. Index: include/bits/random.h ===

Re: [v3] libstdc++/57920

2013-07-23 Thread Chung-Ju Wu
2013/7/23 Paolo Carlini : > On 07/23/2013 11:26 AM, Paolo Carlini wrote: >> >> Currently you can't really get the error above. > > Ah Ok, now I see when it can happen, not on Linux, it can happen when > string_conversions.h aren't available. Ok, I'll add back the include > momentarily. > > Paolo.

Re: [v3] libstdc++/57920

2013-07-23 Thread Paolo Carlini
On 07/23/2013 11:26 AM, Paolo Carlini wrote: Currently you can't really get the error above. Ah Ok, now I see when it can happen, not on Linux, it can happen when string_conversions.h aren't available. Ok, I'll add back the include momentarily. Paolo.

Re: [v3] libstdc++/57920

2013-07-23 Thread Paolo Carlini
Hi, On 07/23/2013 11:17 AM, Chung-Ju Wu wrote: 2013/7/22 Paolo Carlini : Hi, see audit trail for details. I tested on x86_64-linux (with/without _GLIBCXX_X86_RDRAND artificially undefined) the below straightforward patch and checked by hand the strace. I'm going to apply it soon. Thanks, Paol

Re: [v3] libstdc++/57920

2013-07-23 Thread Chung-Ju Wu
2013/7/22 Paolo Carlini : > Hi, > > see audit trail for details. I tested on x86_64-linux (with/without > _GLIBCXX_X86_RDRAND artificially undefined) the below straightforward patch > and checked by hand the strace. I'm going to apply it soon. > > Thanks, > Paolo. > > /// Hi, Paolo

[v3] libstdc++/57920

2013-07-22 Thread Paolo Carlini
Hi, see audit trail for details. I tested on x86_64-linux (with/without _GLIBCXX_X86_RDRAND artificially undefined) the below straightforward patch and checked by hand the strace. I'm going to apply it soon. Thanks, Paolo. /// 2013-07-22 Paolo Carlini PR c++/57920