This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
GCC feature request: attribute((noreturn)) on asm
- From: "Shaun Jackman" <sjackman at gmail dot com>
- To: "GCC Bugs" <gcc-bugs at gcc dot gnu dot org>
- Date: Fri, 14 Dec 2007 12:24:38 -0700
- Subject: GCC feature request: attribute((noreturn)) on asm
- Reply-to: "Shaun Jackman" <sjackman at gmail dot com>
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