OSDN Git Service

2006-12-13 Ben Elliston <bje@au.ibm.com>
authorjjohnstn <jjohnstn>
Wed, 13 Dec 2006 22:57:10 +0000 (22:57 +0000)
committerjjohnstn <jjohnstn>
Wed, 13 Dec 2006 22:57:10 +0000 (22:57 +0000)
        * libnosys/_exit.c (_exit): Finish with an infinite loop to
        eliminate a warning about this noreturn function returning.

libgloss/ChangeLog
libgloss/libnosys/_exit.c

index 0dd35fa..e747db1 100644 (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>
 
         * spu/access.c: New file
index d4dd232..3fdf7f0 100644 (file)
@@ -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 (;;)
+    ;
 }