[Patch, Fortran] PR53985 add missing case to -Wc-binding-type

Tobias Burnus burnus@net-b.de
Tue Jul 17 08:14:00 GMT 2012


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bind-c-warning.diff
Type: text/x-patch
Size: 3191 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120717/65e49018/attachment.bin>


More information about the Gcc-patches mailing list