This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PR 69495: unused-label warning does not tell which flag triggered it
- From: Manfred Schwarb <manfred99 at gmx dot ch>
- To: Janus Weil <janus at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 3 Feb 2016 10:21:05 +0100
- Subject: Re: [Patch, Fortran] PR 69495: unused-label warning does not tell which flag triggered it
- Authentication-results: sourceware.org; auth=none
- References: <CAKwh3qgaiXOFrjNXijPBcJ8SWsc5ET0LbTknBiQ8iSD6va+p7w at mail dot gmail dot com>
Am 02.02.2016 um 21:26 schrieb Janus Weil:
Hi all,
here is a diagnostics patch, which makes sure that the responsible
flag is printed in several warning messages (for which this was still
missing).
The only case that I'm not completely sure about is the hunk in
intrinsic.c. In particular I was not able to trigger this warning and
found no occurrence of it in the testsuite. Could someone check if the
flag that I'm using there is correct, please?
As a small extra the patch also mentions the -Wpedantic flag in the
gfortran documentation.
It regtests cleanly on x86_64-linux-gnu. Ok for trunk?
Cheers,
Janus
if (source_size < result_size)
- gfc_warning (0, "Intrinsic TRANSFER at %L has partly undefined result: "
- "source size %ld < result size %ld", &source->where,
- (long) source_size, (long) result_size);
+ gfc_warning (OPT_Wsurprising, "Intrinsic TRANSFER at %L has partly "
+ "undefined result: source size %ld < result size %ld",
+ &source->where, (long) source_size, (long) result_size);
Breaking apart of these strings will probably hamper translation.
Cheers,
Manfred