https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98121
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2020-12-03
Component|target |other
Ever confirmed|0 |1
Target Milestone|--- |11.0
Status|UNCONFIRMED |NEW
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to H.J. Lu from comment #2)
> The issue here is that what should happen when definitions marked with used
> attribute and unmarked definitions are put in the same section. It has
> nothing
> to do with .retain.
If we cant to use SHF_GNU_RETAIN on used attribute, compiler can do
1. Issue an error.
2. issue a warning and mark the unmarked definition as used.
3. Silently mark the unmarked definition as used.