diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2006-12-13 22:57:10 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2006-12-13 22:57:10 +0000 |
commit | 057914fee4f6e4781d2c7c3e2dfed3fbf8286635 (patch) | |
tree | 3ff40f5f8c6ac6623b9ecc7bb788941a41634b7e /libgloss | |
parent | d7d262442cd7e66531f5b1cb2ea495dc1cec2827 (diff) | |
download | newlib-057914fee4f6e4781d2c7c3e2dfed3fbf8286635.zip newlib-057914fee4f6e4781d2c7c3e2dfed3fbf8286635.tar.gz newlib-057914fee4f6e4781d2c7c3e2dfed3fbf8286635.tar.bz2 |
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.
Diffstat (limited to 'libgloss')
-rw-r--r-- | libgloss/ChangeLog | 5 | ||||
-rw-r--r-- | libgloss/libnosys/_exit.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index 0dd35fa..e747db1 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -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> * spu/access.c: New file diff --git a/libgloss/libnosys/_exit.c b/libgloss/libnosys/_exit.c index d4dd232..3fdf7f0 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 (;;) + ; } |