aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2007-01-09 00:54:00 +0000
committerBen Elliston <bje@gnu.org>2007-01-09 00:54:00 +0000
commit5a308d4f2dd4bfd901a3fe2691ccb0c9f9c02c40 (patch)
treef4ef96aa8193ab9a1965986dcd7baa2702239540
parent8e0e8f40fb7a6ea998062955b15d6de09cb54b72 (diff)
downloadnewlib-5a308d4f2dd4bfd901a3fe2691ccb0c9f9c02c40.zip
newlib-5a308d4f2dd4bfd901a3fe2691ccb0c9f9c02c40.tar.gz
newlib-5a308d4f2dd4bfd901a3fe2691ccb0c9f9c02c40.tar.bz2
* spu/exit.c (_exit): Finish with an infinite loop to eliminate a
warning about this noreturn function returning.
-rw-r--r--libgloss/ChangeLog5
-rw-r--r--libgloss/spu/exit.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog
index 60af1ed..0ecc3ea 100644
--- a/libgloss/ChangeLog
+++ b/libgloss/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-09 Ben Elliston <bje@au.ibm.com>
+
+ * spu/exit.c (_exit): Finish with an infinite loop to eliminate a
+ warning about this noreturn function returning.
+
2007-01-04 Kazu Hirata <kazu@codesourcery.com>
Merge from newlib-csl-20060320-branch:
diff --git a/libgloss/spu/exit.c b/libgloss/spu/exit.c
index 1b639b5..899f324 100644
--- a/libgloss/spu/exit.c
+++ b/libgloss/spu/exit.c
@@ -42,4 +42,7 @@ void _exit(int rc)
"1:\n"
" stop 0x2000\n"
: : "r" (rc) );
+
+ for (;;)
+ ;
}