This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/81128] Function multi-versioning does not work with -O
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 Jun 2017 13:30:49 +0000
- Subject: [Bug ipa/81128] Function multi-versioning does not work with -O
- Auto-submitted: auto-generated
- References: <bug-81128-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81128
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nathan at gcc dot gnu.org
--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
Well, I'm also not sure how it should behave. What happens currently is that we
have static alias and static resolver. Thus ipa-visibility finds out that call
to do_it_right_at_runtime can be replaced with resolve_do_it_right_at_runtime.
Then inlining happens. I'm adding Nathan who implemented ifunc support in GCC
and should know answer.
I suggest to not evaluate ifunc alias as not interposable. That would prevent
the problem.