https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111643
--- Comment #11 from Lukas Grätz <lukas.gra...@tu-darmstadt.de> --- (In reply to Alexander Monakov from comment #10) > (In reply to Lukas Grätz from comment #9) > > I also wondered whether > > > > int bar_alias (void) { return bar_original(); } > > > > could be a portable alternative to attribute alias. Except that current GCC > > does not translate it that way. > > That's because function addresses are significant and so > > &bar_alias == &bar_original > > must evaluate to false, but would be true for aliases. > > In theory compilers could do better by introducing fall-through aliases: > https://gcc.gnu.org/wiki/ > cauldron2019talks?action=AttachFile&do=view&target=fallthrough-aliases.pdf Thanks a lot! I haven't thought about function addresses. Is there hope that fall-through aliases get into gcc? Then my perhaps my instrumentation fall-through would also be possible to implement.