On Fri, Apr 20, 2012 at 12:18, Tobias Burnus <bur...@net-b.de> wrote: > Dear all, > > some compilers support using "q" to indicate quad precision, e.g. "4.0q0". > Since GCC 4.7, gfortran supports this vendor extension in the source code. > However, READing the floating-point number "4.0q0" was not supported. > > The attached patch adds this support, which some users expect (cf. PR and > comp.lang.fortran). > > Testing other compilers, the result is: > - 'q' not supported: g95, NAG f95, PGI, PathScale, Crayftn > - 'q' supported: g77, ifort, sunf95 > (I don't know which of those compilers support quad precision.) > > Hence, I am not sure whether one should add support for it. What do you > think?
I don't particularly like adding extensions, but this seems fairly widespread (thanks for testing!) and the patch is small, so I don't think it'll hurt. > Attached is a lightly tested patch and a test case. > OK for the trunk after regtesting it? Ok. -- Janne Blomqvist