This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/64621] MIssed tail call oppurtunity


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]