This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, fortran] PR32778 - pedantic warning: intrinsics that are GNU extensions not part of -std=gnu
- From: Daniel Franke <franke dot daniel at gmail dot com>
- To: fortran at gcc dot gnu dot org
- Cc: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 23 Jul 2007 23:12:19 +0200
- Subject: Re: [patch, fortran] PR32778 - pedantic warning: intrinsics that are GNU extensions not part of -std=gnu
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=avBoU9MSwiAfwQL+wtfz6NkZtYWpFVgVk9UAJVW5Gc0kwhnE656IQYVy1CuRKF6aAc8LVicyeowSkpG5fOw8goR29eXE9UK4ablyLlCGUo+0+fZIgBIwi12s84AApN4fD7c06+QHybhCme7fpbF2fXB92TPHkUSj1Dz7DYMSE0w=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=WjAwSa93VgG59rhENRkOPCumKi/I0Cb9eBpSdVYO+UbekHT9y03wdW2Jjmkru8M+uRyyyuKXBUaAAtii06Ewr9Q1uCmfGaN3Bf0FQ8xHMXqZQVDYLSrsXSmS4TUs0e7u2IZrrJpdphtCcDA7/Fg9vwwHHO5wPj+K1hNbL5zRY3w=
- References: <200707211945.36855.franke.daniel@gmail.com> <20070723003822.GA94069@troutmask.apl.washington.edu>
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.