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] PR46331 Compilation time long with simple function in array constructor


On 11/08/2010 01:13 PM, Mikael Morin wrote:
PS: Is it expected that the and/or/xor procedures are marked as CLASS_IMPURE

The CLASS_* names come from the Fortran standard (where the term "impure" is a F2008 addition). Well, looking at the standard you find:


13.7.10 ALL (MASK [, DIM])
Class. Transformational function.

The procedures "OR" and "XOR" are GNU extensions; the manual does not tell which kind of functions they are, but the standard Fortran "IOR" and "IEOR", which are the Fortran-standard replacements, are "elemental functions". If one changes OR and XOR to elemental, one also needs to update the documentation, cf. http://gcc.gnu.org/onlinedocs/gfortran/OR.html and http://gcc.gnu.org/onlinedocs/gfortran/XOR.html

Tobias


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