This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[patch, fortran] Mark stop_numeric as noreturn in libgfortran.h


:ADDPATCH fortran:

stop_numeric calls sys_exit, which has the noreturn attribute.

It makes therefore sense to add the attribute also to stop_numeric. 
(stop_numeric is used by runtime/pause.c if the answer is not "go").

Build & check-gfortran tested on x86_64-unknown-linux-gnu.

Ok for the trunk?

Tobias
2007-05-22  Tobias Burnus  <burnus@net-b.de>

	* libgfortran.h: Mark stop_numeric as noreturn.

Index: libgfortran/libgfortran.h
===================================================================
--- libgfortran/libgfortran.h	(revision 124948)
+++ libgfortran/libgfortran.h	(working copy)
@@ -685,7 +685,7 @@
 
 /* stop.c */
 
-extern void stop_numeric (GFC_INTEGER_4);
+extern void stop_numeric (GFC_INTEGER_4) __attribute__ ((noreturn));
 iexport_proto(stop_numeric);
 
 /* reshape_packed.c */

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