This is the mail archive of the gcc-help@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]

How to force gcc to long-call a function (on MIPS)?


Here is my code

--------------------------------------------------
typedef int (*MY_FUNC_ENTRY)(int) __attribute__(( far ));
...
((MY_FUNC_ENTRY)func_entry)(para);
---------------------------------------------------

But gcc still generates 'jal ADDR' instead of 'jalr $reg' for this function call.
How to force gcc to generate 'jalr' for this call?


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