http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40569
--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-09-25 12:34:38 UTC --- First part of an implementation. TODO: (a) Use a module rather than the normal name space. (b) Get the command line options; cf. http://gcc.gnu.org/ml/gcc-patches/2010-09/msg02006.html --- intrinsic.c (Revision 164618) +++ intrinsic.c (Arbeitskopie) @@ -2613,0 +2615,6 @@ add_functions (void) + +/* MOVE TO MODULE: ISO_FORTRAN_ENV. */ + add_sym_0 ("compiler_options", GFC_ISYM_COMPILER_VERSION, CLASS_IMPURE, ACTUAL_NO, BT_CHARACTER, + 1, GFC_STD_F2008, NULL, gfc_simplify_compiler_options, NULL); + add_sym_0 ("compiler_version", GFC_ISYM_COMPILER_VERSION, CLASS_IMPURE, ACTUAL_NO, BT_CHARACTER, + 1, GFC_STD_F2008, NULL, gfc_simplify_compiler_version, NULL); --- simplify.c (Revision 164618) +++ simplify.c @@ -29,2 +29,3 @@ along with GCC; see the file COPYING3. #include "constructor.h" +#include "version.h" /* For version_string. */ @@ -6735 +6736,17 @@ gfc_convert_char_constant (gfc_expr *e, } + + +gfc_expr * +gfc_simplify_compiler_options (void) +{ + return NULL; +} + + +gfc_expr * +gfc_simplify_compiler_version (void) +{ + return gfc_get_character_expr (gfc_default_character_kind, + &gfc_current_locus, version_string, + strlen (version_string)); +} -- Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.