Commit dee1c265 by Tobias Burnus Committed by Tobias Burnus

re PR fortran/54599 (Issues found in gfortran by the Coverity Scan)

2012-09-20  Tobias Burnus  <burnus@net-b.de>

        PR fortran/54599
        * cpp.c (print_line): Properly handle extern C.

From-SVN: r191590
parent 10439b59
2012-09-20 Tobias Burnus <burnus@net-b.de>
PR fortran/54599
* cpp.c (print_line): Properly handle extern C.
2012-09-20 Martin Jambor <mjambor@suse.cz>
* trans-decl.c (gfc_get_extern_function_decl): Push NULL cfun. Do not
......
......@@ -822,6 +822,7 @@ print_line (source_location src_loc, const char *special_flags)
size_t to_file_len;
unsigned char *to_file_quoted;
unsigned char *p;
int sysp;
loc = expand_location (src_loc);
to_file_len = strlen (loc.file);
......@@ -838,9 +839,10 @@ print_line (source_location src_loc, const char *special_flags)
print.src_line == 0 ? 1 : print.src_line,
to_file_quoted, special_flags);
if (loc.sysp == 2)
sysp = in_system_header_at (src_loc);
if (sysp == 2)
fputs (" 3 4", print.outf);
else if (loc.sysp == 1)
else if (sysp == 1)
fputs (" 3", print.outf);
putc ('\n', print.outf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment