PR fortran/43851
* runtime/stop.c (stop_string): Make sure nothing is emitted for
blank stop.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159638
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-05-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR fortran/43851
+ * runtime/stop.c (stop_string): Make sure nothing is emitted for
+ blank stop.
+
2010-05-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/43851
void
stop_string (const char *string, GFC_INTEGER_4 len)
{
- st_printf ("STOP ");
- while (len--)
- st_printf ("%c", *(string++));
- st_printf ("\n");
-
+ if (string)
+ {
+ st_printf ("STOP ");
+ while (len--)
+ st_printf ("%c", *(string++));
+ st_printf ("\n");
+ }
sys_exit (0);
}