This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: long-calls in ARM
I have tried to compile some functions with anm attribute like this:
void __attribute__((__section__".interntext",mlong-call))) function1 (int a, int b)
void __attribute__((__section__".interntext",mlong-call))) function2 (int a, int b)
And I have seen that the calls made inside function1 to function2 are short calls and
vice versa. (and functions compiled in another file make long calls correctly, I
haven't tested what happens with other functions in section .interntext but in
different source files).
This is very good for me, but is this its expected behaviour?