This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] PR34262 - Fix MVBITS with arrays
- From: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- To: "Tobias Burnus" <burnus at net-b dot de>
- Cc: "Paul Thomas" <paulthomas2 at wanadoo dot fr>, gcc-patches <gcc-patches at gcc dot gnu dot org>, "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>
- Date: Thu, 29 Nov 2007 13:35:52 +0000
- Subject: Re: [Patch, Fortran] PR34262 - Fix MVBITS with arrays
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=eL+rQL5EV98/nHcJW55hzdDPAIFzr7T4yi5vRX9rqQk=; b=xRsjW0rGf9OqQ9NJ3M7Ck2G0UQvFmraKqLhC9kXIaHCgbgF6/MapScIO39NQfmpydYjra4YHzFK5/Cin2iYh0B5isMD4dkdwXYEh6V1BgwGx3qLO6AUA7vmSC+I7hWq7/Rk0uWoDjOM73fGMc1/GsdtO/C2l+79374uyWgnNH2U=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cjjmSSeVM1PvAb0vGvqFU9aoilneWyiyvgIrQjk8yYWshOLBQY+yBWnWSmf6uM67ZNvHidvC7Z9O5ck9sWHIqaAu4X2Nr6+hf0HzaIGhsmchXT+U1ih26oGTkiwUFaVhbyPFaaA4QDvj0hqXfqCXKXTwwF9e0HXGUohbk3Co5bc=
- References: <474DC99D.70100@net-b.de> <474DEE8A.7090306@wanadoo.fr> <474DEF03.7000507@wanadoo.fr> <474EBC9C.9020702@net-b.de>
Hi,
> a) A hackish one:
>
> c->resolved_sym = gfc_get_intrinsic_sub_symbol (name);
> + c->resolved_sym->elemental = 1;
>
> (Though the right hand side can be implemented fancier.)
I like that one, together with a comment to that effect at the start
of the subroutines list in intrinsic.c. As you said, there is a very
limited number of elemental subroutines, and we can always reconsider
in 2013 for the next standard!
FX
PS: Sorry that I don't have more time to contribute these days...