How does std::string allocate memory in GCC with -fwhole-program?

后端 未结 1 1053
情话喂你
情话喂你 2021-01-02 12:17

Update: The following problem appears to depend on the -fwhole-program option.

I\'ve been playing around a bit with memory allocation,

相关标签:
1条回答
  • 2021-01-02 12:47

    Looking at the output of g++ ... -S with / without -fwhole-program it appears that the whole custom new/delete operators aren't emitted at all when using fwhole-program.

    I'm starting to suspect we're looking at a bug here.

    0 讨论(0)
提交回复
热议问题