This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/64621] MIssed tail call oppurtunity
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 Jan 2015 18:10:22 +0000
- Subject: [Bug middle-end/64621] MIssed tail call oppurtunity
- Auto-submitted: auto-generated
- References: <bug-64621-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64621
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #1)
> Well, this really really asks for the function signatures to be updated to
> the
> call ABI at the GIMPLE level...
>
> OTOH, (int) strtol (...) possibly truncates the value so it's not a noop
> (it's a noop on i?86 only).
Actually it is a NOP on targets which define the upper bits of the register
being undefined when returning. That includes x86_64 and aarch64.
Thanks,
Andrew Pinski