This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
> procedures.

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:

  if (gfc_option.flag_all_intrinsics)
    gfc_option.warn_nonstd_intrinsics = 0;

Hence, IMO, no need to change anything.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]