[Bug middle-end/81657] [8 Regression] FAIL: gcc.dg/20050503-1.c scan-assembler-not call
wilco at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 18 18:26:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81657
--- Comment #7 from Wilco <wilco at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #6)
> (In reply to Wilco from comment #5)
> > Note there are other optimizations which can block a tailcall, for example:
> >
> > void *f (void *p) { return __builtin_strchr (p, 0); }
>
> This is irrelevant since this refers to mempcpy only, nothing else.
No it is relevant as strchr is used far more often than mempcpy. There are
likely other cases too. So if we want to add a mechanism to prefer tailcalls,
it would need to be a generic one rather than something hacked just for one
function.
More information about the Gcc-bugs
mailing list