Compiling for single-threaded use (implicit threading support difference in 4.9.1 vs. 4.8.1)
Johan Alfredsson
sduvan.gcc@gmail.com
Thu Oct 16 17:51:00 GMT 2014
On Thu, Oct 16, 2014 at 12:06 PM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 16 October 2014 15:43, Johan Alfredsson wrote:
>> Sorry, my mistake. It turned out that librt was implicitly linked in
>> in the 4.9.1 case. However, the only things I use from librt are high
>> precision timers, so a switch to ensure no performance hit in my own
>> code would be great.
>
> Which suggests you were using --enable-libstdcxx-time=rt and so were
> not using the same configuration for both compilers.
No, this was something that happened due to the configuration of our
in-house build system. As I said, the configuration of the compilers
were identical.
> If you had told us the actual configurations for both versions that
> would have been obvious!
I did, and that was not the issue here.
> As Marc says, use a newer glibc to get high-precision timers without
> needing librt.
I'll look into that.
Thanks,
/Johan
More information about the Gcc-help
mailing list