Re: Compiling for single-threaded use (implicit threading support difference in 4.9.1 vs. 4.8.1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 16, 2014 at 12:06 PM, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> 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




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux