Dear Jerry,
thanks for the patch.However, I wonder about the following:
Will that be backward compatible with binaries compiled with GCC < 4.8
or will that cause problems? I have the feeling that it is okay as the
flag ("cf2") indicating whether "stream=" is present has still the same
type and "iqstream" comes last in st_parameter_inquire and is only set
if (cf2 & IOPARM_INQUIRE_HAS_STREAM).
Can confirm that there is no backward-compatibility issue? If there
isn't, the patch is okay.
Tobias
Jerry DeLisle wrote:
2012-12-27 Jerry DeLisle <jvdeli...@gcc.gnu.org>
PR fortran/48976
* gfortran.h (gfc_inquire struct): Add pointer for inquire stream.
* io.c (io_tag): Add tag for inquire stream. (match_inquire_element):
Add matcher for new tag. (gfc_resolve_inquire): Resolve new tag.
* ioparm.def: Add new parameter for inquire stream.
* trans-io.c (gfc_trans_inquire): Add tranlste code for inquire
stream.
2012-12-27 Jerry DeLisle <jvdeli...@gcc.gnu.org>
PR libfortran/48976
* io/inquire.c (inquire_via_unit): Set user stream inquiry
variable to
appropriate value based on unit access method.
(inquire_via_filename):
Since filename is not associated with an open unit, set stream
inquiry
to UNKNOWN.
* io/io.h: Define inquire stream parameters.