aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/options.c
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2014-11-15 12:06:07 +0100
committerTobias Burnus <burnus@gcc.gnu.org>2014-11-15 12:06:07 +0100
commitddc05d116529c5199e5d0dc8509b4042b4167b1f (patch)
tree5c12484f4d872a40405b71fe5fad20a8a15399bb /gcc/fortran/options.c
parent87d4b3838745a20ecd29802a1b99a058eb068e6a (diff)
downloadgcc-ddc05d116529c5199e5d0dc8509b4042b4167b1f.zip
gcc-ddc05d116529c5199e5d0dc8509b4042b4167b1f.tar.gz
gcc-ddc05d116529c5199e5d0dc8509b4042b4167b1f.tar.bz2
error.c (gfc_fatal_error_1): Renamed from gfc_fatal_error.
2014-11-15 Tobias Burnus <burnus@net-b.de> gcc/fortran/ * error.c (gfc_fatal_error_1): Renamed from gfc_fatal_error. (gfc_fatal_error): Add; uses common diagnostics. * array.c (gfc_match_array_ref, gfc_match_array_spec): Use %< %>. * check.c (check_co_collective, gfc_check_lcobound, gfc_check_image_index, gfc_check_num_images, gfc_check_this_image, gfc_check_ucobound): Ditto. * cpp.c (gfc_cpp_post_options): Ditto. (gfc_cpp_init_0, gfc_cpp_done): Change %s to %qs. * gfc-diagnostic.def (DK_FATAL): Capitalize first letter. * gfortran.h (gfc_fatal_error_1): Add. * match.c (gfc_match_name, gfc_match_critical, lock_unlock_statement, sync_statement): Add %< %>. * module.c (bad_module, gfc_dump_module, gfc_use_module): Change %s to %qs. * options.c (gfc_handle_module_path_options, * gfc_handle_fpe_option, gfc_handle_coarray_option, gfc_handle_runtime_check_option, gfc_handle_option): Add %< %>. * simplify.c (gfc_simplify_num_images): Ditto. * trans-stmt.c (gfc_trans_sync): Use gfc_fatal_error_1. * trans-array.c (gfc_conv_array_initializer): Ditto. * trans-types.c (gfc_init_kinds): Use gfc_fatal_error instead of fatal_error; add %< %> quotations. gcc/testsuite/ * gfortran.dg/binding_label_tests_4.f03: Add dg-excess-errors. * gfortran.dg/coarray_9.f90: Ditto. * gfortran.dg/empty_label.f: Ditto. * gfortran.dg/empty_label.f90: Ditto. From-SVN: r217600
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r--gcc/fortran/options.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
index 74b4d6d6..bbbd6ab 100644
--- a/gcc/fortran/options.c
+++ b/gcc/fortran/options.c
@@ -489,7 +489,7 @@ gfc_handle_module_path_options (const char *arg)
{
if (gfc_option.module_dir != NULL)
- gfc_fatal_error ("gfortran: Only one -J option allowed");
+ gfc_fatal_error ("gfortran: Only one %<-J%> option allowed");
gfc_option.module_dir = XCNEWVEC (char, strlen (arg) + 2);
strcpy (gfc_option.module_dir, arg);
@@ -561,9 +561,9 @@ gfc_handle_fpe_option (const char *arg, bool trap)
}
}
if (!result && !trap)
- gfc_fatal_error ("Argument to -ffpe-trap is not valid: %s", arg);
+ gfc_fatal_error ("Argument to %<-ffpe-trap%> is not valid: %s", arg);
else if (!result)
- gfc_fatal_error ("Argument to -ffpe-summary is not valid: %s", arg);
+ gfc_fatal_error ("Argument to %<-ffpe-summary%> is not valid: %s", arg);
}
}
@@ -579,7 +579,7 @@ gfc_handle_coarray_option (const char *arg)
else if (strcmp (arg, "lib") == 0)
gfc_option.coarray = GFC_FCOARRAY_LIB;
else
- gfc_fatal_error ("Argument to -fcoarray is not valid: %s", arg);
+ gfc_fatal_error ("Argument to %<-fcoarray%> is not valid: %s", arg);
}
@@ -617,7 +617,7 @@ gfc_handle_runtime_check_option (const char *arg)
}
}
if (!result)
- gfc_fatal_error ("Argument to -fcheck is not valid: %s", arg);
+ gfc_fatal_error ("Argument to %<-fcheck%> is not valid: %s", arg);
}
}
@@ -823,7 +823,7 @@ gfc_handle_option (size_t scode, const char *arg, int value,
case OPT_ffixed_line_length_:
if (value != 0 && value < 7)
- gfc_fatal_error ("Fixed line length must be at least seven.");
+ gfc_fatal_error ("Fixed line length must be at least seven");
gfc_option.fixed_line_length = value;
break;
@@ -845,7 +845,7 @@ gfc_handle_option (size_t scode, const char *arg, int value,
case OPT_ffree_line_length_:
if (value != 0 && value < 4)
- gfc_fatal_error ("Free line length must be at least three.");
+ gfc_fatal_error ("Free line length must be at least three");
gfc_option.free_line_length = value;
break;
@@ -859,7 +859,7 @@ gfc_handle_option (size_t scode, const char *arg, int value,
case OPT_static_libgfortran:
#ifndef HAVE_LD_STATIC_DYNAMIC
- gfc_fatal_error ("-static-libgfortran is not supported in this "
+ gfc_fatal_error ("%<-static-libgfortran%> is not supported in this "
"configuration");
#endif
break;
@@ -974,7 +974,7 @@ gfc_handle_option (size_t scode, const char *arg, int value,
else if (!strcasecmp (arg, "true"))
gfc_option.flag_init_logical = GFC_INIT_LOGICAL_TRUE;
else
- gfc_fatal_error ("Unrecognized option to -finit-logical: %s",
+ gfc_fatal_error ("Unrecognized option to %<-finit-logical%>: %s",
arg);
break;
@@ -990,7 +990,7 @@ gfc_handle_option (size_t scode, const char *arg, int value,
else if (!strcasecmp (arg, "-inf"))
gfc_option.flag_init_real = GFC_INIT_REAL_NEG_INF;
else
- gfc_fatal_error ("Unrecognized option to -finit-real: %s",
+ gfc_fatal_error ("Unrecognized option to %<-finit-real%>: %s",
arg);
break;
@@ -1006,7 +1006,7 @@ gfc_handle_option (size_t scode, const char *arg, int value,
gfc_option.flag_init_character_value = (char)value;
}
else
- gfc_fatal_error ("The value of n in -finit-character=n must be "
+ gfc_fatal_error ("The value of n in %<-finit-character=n%> must be "
"between 0 and 127");
break;