[Bug fortran/44054] Handle -Werror, -Werror=, -fdiagnostics-show-option, !GCC$ diagnostic (pragmas) and color

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 21 15:19:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44054

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #32622|0                           |1
        is obsolete|                            |

--- Comment #8 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Created attachment 32650
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32650&action=edit
proof of concept #2

Updated proof of concept. With this new version the output is:

/home/manuel/test1/test-gfc-warning.f03:11:0:

   arr = (/ INTEGER(KIND=4) :: HUGE(0_8) /) ! { dg-warning "conversion from" }
 1
Warning: Possible change of value in conversion from INTEGER(8) to INTEGER(4)
at (1) [-Wconversion]

(plus colors)

So the only remaining major issue is the offset.

It is not clear to me why Fortran needs an explicit offset, don't you track
locations when parsing using line-map.c ? So before implementing it I would
like to understand whether it is actually needed.

Also, is there any case where gcf_linebuf.file->filename !=
LOCATION_FILE(gcf_linebuf.location) ?


More information about the Gcc-bugs mailing list