Re: having multiple copies of _GLOBAL__sub_I__xxxx which are calling std::ios_base::Init::Init()@GLIBCXX_3.4

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

 



On Tue, 10 Jul 2018 at 12:29, Klaus Rudolph <lts-rudolph@xxxxxx> wrote:
>
> I see that gcc emits for every function which uses cout a global constructor call is emitted, even if the function is removed later during link stage.

I don't think it's true that it does it for every function. It does it
once per translation unit, not once per function. Your test is
misleading because you only have one function per TU.



[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