This is the mail archive of the
mailing list for the GCC project.
Re: [patch, fortran] PR32778 - pedantic warning: intrinsics that are GNU extensions not part of -std=gnu
On Monday 23 July 2007 02:38:22 Steve Kargl wrote:
> I could be wrong (still building and testing), but it appears
> that this patch removes the usefulness of -fall-intrinsics.
> The original intent of this option was to permit someone to
> check the conformance of one's code to either -std=f95
> and -std=f2003 while permitting nonstandard GNU intrinsic
I have to admit that I wasn't aware of that option.
> I suspect you need to modify this
> + /* Do not warn about GNU-extensions if -std=gnu. */
> + if (!gfc_option.warn_nonstd_intrinsics
> + || (standard == GFC_STD_GNU && gfc_option.warn_std & GFC_STD_GNU)
> || gfc_option.flag_all_intrinsics == 0)
> + return SUCCESS;
Yes and no. At the end of options.c (gfc_post_options), one finds:
gfc_option.warn_nonstd_intrinsics = 0;
Hence, IMO, no need to change anything.