diff options
author | Tobias Burnus <burnus@gcc.gnu.org> | 2014-11-25 23:33:32 +0100 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2014-11-25 23:33:32 +0100 |
commit | 4daa149b86a42d1d10a735889c5f9cd6a0bca09e (patch) | |
tree | 473bf73756e4b0fb99262902721646ab2e7d2c49 /gcc/fortran/scanner.c | |
parent | b1edcad11f8688df33e136de11c63e61aea7a182 (diff) | |
download | gcc-4daa149b86a42d1d10a735889c5f9cd6a0bca09e.zip gcc-4daa149b86a42d1d10a735889c5f9cd6a0bca09e.tar.gz gcc-4daa149b86a42d1d10a735889c5f9cd6a0bca09e.tar.bz2 |
gfortran.h (gfc_option_t): Remove flags moved as Var to .opt.
2014-11-25 Tobias Burnus <burnus@net-b.de>
gcc/fortran/
* gfortran.h (gfc_option_t): Remove flags moved as Var to .opt.
(gfc_error_now_1): Renamed from gfc_error_now.
(gfc_error_now): Renamed from gfc_error_now_2.
(gfc_warning_now_1): Renamed from gfc_warning_now.
(gfc_warning_now): Renamed from gfc_warning_now_2.
* error.c (gfc_error_now_1): Renamed from gfc_error_now.
(gfc_error_now): Renamed from gfc_error_now_2.
(gfc_warning_now_1): Renamed from gfc_warning_now.
(gfc_warning_now): Renamed from gfc_warning_now_2.
(gfc_get_errors): Include common diagnostic in count.
* lang.opt (Wc-binding-type, Wconversion, Wconversion-extra,
Wintrinsics-std): Create a Var for those warnings.
* check.c (gfc_check_cmplx): Pass warning flag to
diagnostic function.
* decl.c (get_proc_name, gfc_verify_c_interop_param, build_sym
gfc_set_constant_character_len, verify_bind_c_sym): Ditto; use
_1 for old diagnostic, remove _2 for new diagnostic.
* expr.c (gfc_check_assign, gfc_check_vardef_context): Ditto.
* frontend-passes.c (doloop_code, do_function): Ditto.
* intrinsic.c (gfc_is_intrinsic, gfc_convert_type_warn): Ditto.
* match.c (gfc_match_common): Ditto.
* module.c (use_iso_fortran_env_module, gfc_use_module): Ditto.
* parse.c (decode_statement, decode_gcc_attribute, next_free,
next_fixed, gfc_check_do_variable): Ditto.
* resolve.c (resolve_common_vars, resolve_ordinary_assign):
Ditto.
* scanner.c (add_path_to_list, skip_free_comments,
gfc_next_char_literal, gfc_gobble_whitespace, load_line,
preprocessor_line, load_file): Ditto.
* symbol.c (gfc_set_default_type, verify_bind_c_derived_type):
Ditto.
* options.c (gfc_post_options): Ditto.
(gfc_init_options, set_Wall, gfc_handle_option): Ditto; remove
flags which now have a Var.
* invoke.texi (Wconversion-extra): Make clear that the flag
does not imply -Wconversion.
gcc/testsuite/
* gfortran.dg/empty_label.f: Change test to continue testing
for -fmax-errors=1.
* gfortran.dg/empty_label.f90: Ditto.
* gfortran.dg/warnings_are_errors_1.f90: Update dg-*.
From-SVN: r218067
Diffstat (limited to 'gcc/fortran/scanner.c')
-rw-r--r-- | gcc/fortran/scanner.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/gcc/fortran/scanner.c b/gcc/fortran/scanner.c index e0b9a3bb..884fe70 100644 --- a/gcc/fortran/scanner.c +++ b/gcc/fortran/scanner.c @@ -324,16 +324,16 @@ add_path_to_list (gfc_directorylist **list, const char *path, if (stat (q, &st)) { if (errno != ENOENT) - gfc_warning_now_2 ("Include directory %qs: %s", path, - xstrerror(errno)); + gfc_warning_now ("Include directory %qs: %s", path, + xstrerror(errno)); else if (warn) - gfc_warning_now_2 (OPT_Wmissing_include_dirs, - "Nonexistent include directory %qs", path); + gfc_warning_now (OPT_Wmissing_include_dirs, + "Nonexistent include directory %qs", path); return; } else if (!S_ISDIR (st.st_mode)) { - gfc_warning_now_2 ("%qs is not a directory", path); + gfc_warning_now ("%qs is not a directory", path); return; } @@ -775,10 +775,10 @@ skip_free_comments (void) } } else - gfc_warning_now ("!$OMP at %C starts a commented " - "line as it neither is followed " - "by a space nor is a " - "continuation line"); + gfc_warning_now_1 ("!$OMP at %C starts a commented " + "line as it neither is followed " + "by a space nor is a " + "continuation line"); } gfc_current_locus = old_loc; next_char (); @@ -1056,7 +1056,7 @@ restart: gfc_current_locus.lb->truncated = 0; gfc_current_locus.nextc = gfc_current_locus.lb->line + maxlen; - gfc_warning_now ("Line truncated at %L", &gfc_current_locus); + gfc_warning_now_1 ("Line truncated at %L", &gfc_current_locus); gfc_current_locus.nextc = current_nextc; } @@ -1194,7 +1194,7 @@ restart: && gfc_current_locus.lb->truncated) { gfc_current_locus.lb->truncated = 0; - gfc_warning_now ("Line truncated at %L", &gfc_current_locus); + gfc_warning_now_1 ("Line truncated at %L", &gfc_current_locus); } prev_openmp_flag = openmp_flag; @@ -1388,7 +1388,7 @@ gfc_gobble_whitespace (void) if (cur_linenum != linenum) { linenum = cur_linenum; - gfc_warning_now ("Nonconforming tab character at %C"); + gfc_warning_now_1 ("Nonconforming tab character at %C"); } } } @@ -1476,11 +1476,11 @@ load_line (FILE *input, gfc_char_t **pbuf, int *pbuflen, const int *first_char) && !seen_printable && seen_ampersand) { if (pedantic) - gfc_error_now_2 ("%<&%> not allowed by itself in line %d", - current_line); + gfc_error_now ("%<&%> not allowed by itself in line %d", + current_line); else - gfc_warning_now_2 ("%<&%> not allowed by itself in line %d", - current_line); + gfc_warning_now ("%<&%> not allowed by itself in line %d", + current_line); } break; } @@ -1537,9 +1537,9 @@ load_line (FILE *input, gfc_char_t **pbuf, int *pbuflen, const int *first_char) if (warn_tabs && seen_comment == 0 && current_line != linenum) { linenum = current_line; - gfc_warning_now_2 (OPT_Wtabs, - "Nonconforming tab character in column %d " - "of line %d", i+1, linenum); + gfc_warning_now (OPT_Wtabs, + "Nonconforming tab character in column %d " + "of line %d", i+1, linenum); } while (i < 6) @@ -1763,9 +1763,9 @@ preprocessor_line (gfc_char_t *c) if (!current_file->up || filename_cmp (current_file->up->filename, filename) != 0) { - gfc_warning_now ("%s:%d: file %s left but not entered", - current_file->filename, current_file->line, - filename); + gfc_warning_now_1 ("%s:%d: file %s left but not entered", + current_file->filename, current_file->line, + filename); if (unescape) free (wide_filename); free (filename); @@ -1797,7 +1797,7 @@ preprocessor_line (gfc_char_t *c) return; bad_cpp_line: - gfc_warning_now ("%s:%d: Illegal preprocessor directive", + gfc_warning_now_1 ("%s:%d: Illegal preprocessor directive", current_file->filename, current_file->line); current_file->line++; } @@ -1922,7 +1922,7 @@ load_file (const char *realfilename, const char *displayedname, bool initial) input = gfc_open_file (realfilename); if (input == NULL) { - gfc_error_now_2 ("Can't open file %qs", filename); + gfc_error_now ("Can't open file %qs", filename); return false; } } |