diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index 0dd35fa0d..e747db1a8 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -1,3 +1,8 @@ +2006-12-13 Ben Elliston + + * libnosys/_exit.c (_exit): Finish with an infinite loop to + eliminate a warning about this noreturn function returning. + 2006-12-13 Sa Liu * spu/access.c: New file diff --git a/libgloss/libnosys/_exit.c b/libgloss/libnosys/_exit.c index d4dd23239..3fdf7f081 100644 --- a/libgloss/libnosys/_exit.c +++ b/libgloss/libnosys/_exit.c @@ -12,4 +12,8 @@ _DEFUN (_exit, (rc), /* Default stub just causes a divide by 0 exception. */ int x = rc / INT_MAX; x = 4 / x; + + /* Convince GCC that this function never returns. */ + for (;;) + ; }