This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: silence warning in spu/exit.c


Ben Elliston wrote:
It seems this patch was forgotten when submitting a collection of
patches late last year.  Okay for mainline?


Yes. Go ahead and check it in.


-- Jeff J.

Cheers, Ben

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.

Index: spu/exit.c
===================================================================
RCS file: /cvs/src/src/libgloss/spu/exit.c,v
retrieving revision 1.4
diff -u -r1.4 exit.c
--- spu/exit.c  11 Dec 2006 00:04:00 -0000      1.4
+++ spu/exit.c  8 Jan 2007 22:56:41 -0000
@@ -42,4 +42,7 @@
     "1:\n"
     "   stop    0x2000\n"
     : : "r" (rc) );
+
+  for (;;)
+    ;
 }




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]