[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/16934] gc-sections fails to remove unused C++ member functions
From: |
amodra at gmail dot com |
Subject: |
[Bug ld/16934] gc-sections fails to remove unused C++ member functions |
Date: |
Sat, 30 Jul 2022 01:58:20 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=16934
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|WAITING |RESOLVED
--- Comment #8 from Alan Modra <amodra at gmail dot com> ---
What you'd need is some way for the linker to recognise that references from
vtables should not be followed for the purpose of marking sections against
garbage collection, and some way of marking the functions called at their call
sites. The former is easy enough, the latter is impossible. The linker can't
know the function called, by the very nature of virtual functions.
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug ld/16934] gc-sections fails to remove unused C++ member functions,
amodra at gmail dot com <=