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]

force function to jump


Hi all,

I'm linking with a library which has some functions in it which say that their
caller enters with a jmp.  I was wondering if there is a way to declare a
function so it always enters with a jmp.  I've tried attribute noreturn, but
when looking at the assembly, it used a call.

For now, I've just used __asm__ ("jmp something;").

Thanks,

Yamin

----------------------------------------
This mail sent through www.mywaterloo.ca


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