This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] PR53985 add missing case to -Wc-binding-type
- From: Mikael Morin <mikael dot morin at sfr dot fr>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Tue, 17 Jul 2012 21:08:41 +0200
- Subject: Re: [Patch, Fortran] PR53985 add missing case to -Wc-binding-type
- References: <50051EC2.5000802@net-b.de>
On 17/07/2012 10:13, Tobias Burnus wrote:
> gfortran always warned for BIND(C) procedures if one used "integer",
> "integer(4)" etc. instead of "integer(c_int)". While the latter is
> surely more portable than the former, all of them are identical on
> nearly all systems. Hence, the other versions are rahter widely used.
>
> In order to reduce the clutter due to default warnings, since GCC 4.8
> there is a new warning -Wc-binding-type, which is turned off by default.
> However, for some reason, it misses the most common case. That's now
> fixed in the attachment. I also corrected the wording.
>
> Build and regtested on x86-64-gnu-linux.
> OK for the trunk?
>
> Tobias
OK, thanks.
Mikael