This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40569] New: F2008: Support COMPILER_OPTIONS() / COMPILER_VERSION()
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jun 2009 16:16:28 -0000
- Subject: [Bug fortran/40569] New: F2008: Support COMPILER_OPTIONS() / COMPILER_VERSION()
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Fortran 2008 adds the two inquiry subroutines, which return a string.
In GCC the version string is in "version.h":
extern const char version_string[];
The options string has to constructed manually; the question is whether one
wants to skip certain options. Optimally, one would record exactly those
options passed to "gfortran" and not all those options passed to "f951". The
middle end has -frecord-gcc-switches and -fverbose-asm; cf. toplev.c's
print_switch_values.
--
Summary: F2008: Support COMPILER_OPTIONS() / COMPILER_VERSION()
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40569