[Bug fortran/69485] oddity with -Wtabs
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 26 18:16:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69485
--- Comment #2 from janus at gcc dot gnu.org ---
(In reply to Manuel López-Ibáñez from comment #1)
> > Ideally the style of the last of these warnings should be used for the
> > others as well!
>
> To do that, this
>
> gfc_warning_now (OPT_Wtabs,
> "Nonconforming tab character in column %d "
> "of line %d", i+1, linenum);
>
> has to be replaced by this
>
> gfc_warning_now (OPT_Wtabs, "Nonconforming tab character at %C");
Thanks for the comment. I see now that both of the warning messages that I get
come from scanner.c: The 'good' one is thrown in gfc_gobble_whitespace, while
the 'bad' one comes from load_line.
> Of course, the tricky part is how to set-up things such that one of those
> calls will work.
There is a note about this in the load_line documentation:
NOTE: The error machinery isn't available at this point, so we can't
easily report line and column numbers consistent with other
parts of gfortran.
Unfortunately I have too little knowledge of the GCC error machinery to
estimate how much work is needed to accomplish this ...
More information about the Gcc-bugs
mailing list