2006-12-13 Ben Elliston <bje@au.ibm.com>

* libnosys/_exit.c (_exit): Finish with an infinite loop to
        eliminate a warning about this noreturn function returning.
This commit is contained in:
Jeff Johnston 2006-12-13 22:57:10 +00:00
parent d7d262442c
commit 057914fee4
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-12-13 Ben Elliston <bje@au.ibm.com>
* libnosys/_exit.c (_exit): Finish with an infinite loop to
eliminate a warning about this noreturn function returning.
2006-12-13 Sa Liu <saliu@de.ibm.com> 2006-12-13 Sa Liu <saliu@de.ibm.com>
* spu/access.c: New file * spu/access.c: New file

View File

@ -12,4 +12,8 @@ _DEFUN (_exit, (rc),
/* Default stub just causes a divide by 0 exception. */ /* Default stub just causes a divide by 0 exception. */
int x = rc / INT_MAX; int x = rc / INT_MAX;
x = 4 / x; x = 4 / x;
/* Convince GCC that this function never returns. */
for (;;)
;
} }