summaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-decl.c
diff options
context:
space:
mode:
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-05 20:37:07 +0000
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-05 20:37:07 +0000
commit98ccec9791dd5eddf9bc6218cedb7743765369c1 (patch)
tree2b660e0e0427c767da956459ec51ea570aaac0bf /gcc/fortran/trans-decl.c
parentb3425ed6901b82955c24c796981f09beba4d0824 (diff)
downloadgcc-98ccec9791dd5eddf9bc6218cedb7743765369c1.tar.gz
2005-08-05 Thomas Koenig <Thomas.Koenig@online.de>
* trans-expr.c (gfc_build_builtin_function_decls): Mark stop_numeric and stop_string as non-returning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102782 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/trans-decl.c')
-rw-r--r--gcc/fortran/trans-decl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c
index 3395f3e5a7b..49811eb0f98 100644
--- a/gcc/fortran/trans-decl.c
+++ b/gcc/fortran/trans-decl.c
@@ -1909,10 +1909,15 @@ gfc_build_builtin_function_decls (void)
gfc_build_library_function_decl (get_identifier (PREFIX("stop_numeric")),
void_type_node, 1, gfc_int4_type_node);
+ /* Stop doesn't return. */
+ TREE_THIS_VOLATILE (gfor_fndecl_stop_numeric) = 1;
+
gfor_fndecl_stop_string =
gfc_build_library_function_decl (get_identifier (PREFIX("stop_string")),
void_type_node, 2, pchar_type_node,
gfc_int4_type_node);
+ /* Stop doesn't return. */
+ TREE_THIS_VOLATILE (gfor_fndecl_stop_string) = 1;
gfor_fndecl_pause_numeric =
gfc_build_library_function_decl (get_identifier (PREFIX("pause_numeric")),