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]

GCC feature request: attribute((noreturn)) on asm


I want to declare that the following function does not return, but GCC
complains.

__attribute__((noreturn))
void exec_application(void)
{
	asm("rcall application");
}

bootloader.c: In function 'exec_application':
bootloader.c:154: error: 'noreturn' function does return

Is there any way to hint that we're never coming back from the asm instruction?

Cheers,
Shaun


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