This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


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

Patch: _Jv_ThrowNoMemory is noreturn


This fixes a warning.
I'm checking this in on the trunk only.

2001-05-29  Tom Tromey  <tromey@redhat.com>

	* include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.

Tom

Index: include/jvm.h
===================================================================
RCS file: /cvs/gcc/gcc/libjava/include/jvm.h,v
retrieving revision 1.35
diff -u -r1.35 jvm.h
--- jvm.h	2001/05/24 05:40:36	1.35
+++ jvm.h	2001/05/29 18:53:50
@@ -115,7 +115,7 @@
 /* Allocate space that is known to be pointer-free.  */
 void *_Jv_AllocBytes (jsize size) __attribute__((__malloc__));
 /* Explicitly throw an out-of-memory exception.	*/
-void _Jv_ThrowNoMemory();
+void _Jv_ThrowNoMemory() __attribute__((__noreturn__));
 /* Allocate an object with a single pointer.  The first word is reserved
    for the GC, and the second word is the traced pointer.  */
 void *_Jv_AllocTraceOne (jsize size /* incl. reserved slot */);


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