aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/scanner.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/scanner.c')
-rw-r--r--gcc/fortran/scanner.c48
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;
}
}