[PATCH] D12689: [libc++][static linking] std streams are not initialized prior to their use in static object constructors

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 10 11:46:36 PDT 2015


rsmith added a subscriber: rsmith.
rsmith added a comment.

Can we instead fix this in Clang by ensuring that libc++ is put at the right position in the static link order so that its initializers run first? libc++'s avoidance of running iostreams init code from every translation unit is a significant startup performance feature, and we shouldn't abandon it unless we really have to.


http://reviews.llvm.org/D12689





More information about the cfe-commits mailing list