This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ARM calling conventions generated in gcc with different optimizations
- From: Ramana Radhakrishnan <ramana dot gcc at googlemail dot com>
- To: Vasily Golubev <vasily dot golubev at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 23 Sep 2013 16:07:17 +0100
- Subject: Re: ARM calling conventions generated in gcc with different optimizations
- Authentication-results: sourceware.org; auth=none
- References: <CAGKFyZ75=Ws4Nq1-1PgBedw7vdTLwrhY7gMzsB8iWbBbq4+Ugw at mail dot gmail dot com>
- Reply-to: ramrad01 at arm dot com
> And my main question is it possible to rely on this fact when
> compiling with gcc and different levels of optimizations?
No it is not , the compiler (especially trunk) is free to use LR as a
temporary after epilogue has been generated at higher optimization
levels.
> Is it
> possible to generate some straightforward heuristic to detect this
> evens (with\without debug info)?
With debug information you could in theory work this out but not
without it especially if LR were used as a temporary.
regards
Ramana
>
> Thank you in advance for any suggestions!
>
> --
> Best Regards,
> Vasily