[Bug c++/95917] coroutine functions leak under freestanding mode causing dependencies and binary bloat.

euloanty at live dot com gcc-bugzilla@gcc.gnu.org
Fri Jun 26 18:51:09 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95917

--- Comment #1 from fdlbxtqi <euloanty at live dot com> ---

  void __dummy_resume_destroy() __attribute__((__weak__));
  void __dummy_resume_destroy() {}

  struct __noop_coro_frame
  {
    void (*__r)() = __dummy_resume_destroy;
    void (*__d)() = __dummy_resume_destroy;
    struct noop_coroutine_promise __p;
  } __noop_coro_fr __attribute__((__weak__));


Please inline ALL your functions.

inline this variable PLEASE.


More information about the Gcc-bugs mailing list