1/* Copyright (C) 2006-2013 Free Software Foundation, Inc. 2 3This file is part of GCC. 4 5GCC is free software; you can redistribute it and/or modify it under 6the terms of the GNU General Public License as published by the Free 7Software Foundation; either version 3, or (at your option) any later 8version. 9 10GCC is distributed in the hope that it will be useful, but WITHOUT ANY 11WARRANTY; without even the implied warranty of MERCHANTABILITY or 12FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13for more details. 14 15You should have received a copy of the GNU General Public License 16along with GCC; see the file COPYING3. If not see 17<http://www.gnu.org/licenses/>. */ 18 19/* This file contains the definition of the named integer constants provided 20 by the Fortran 2003 ISO_FORTRAN_ENV intrinsic module. */ 21 22#ifndef NAMED_INTCST 23# define NAMED_INTCST(a,b,c,d) 24#endif 25 26#ifndef NAMED_KINDARRAY 27# define NAMED_KINDARRAY(a,b,c,d) 28#endif 29 30#ifndef NAMED_FUNCTION 31# define NAMED_FUNCTION(a,b,c,d) 32#endif 33 34/* The arguments to NAMED_INTCST are: 35 -- an internal name 36 -- the symbol name in the module, as seen by Fortran code 37 -- the value it has 38 -- the standard that supports this type */ 39 40NAMED_INTCST (ISOFORTRANENV_FILE_ATOMIC_INT_KIND, "atomic_int_kind", \ 41 gfc_atomic_int_kind, GFC_STD_F2008) 42NAMED_INTCST (ISOFORTRANENV_FILE_ATOMIC_LOGICAL_KIND, "atomic_logical_kind", \ 43 gfc_atomic_logical_kind, GFC_STD_F2008) 44NAMED_INTCST (ISOFORTRANENV_CHARACTER_STORAGE_SIZE, "character_storage_size", \ 45 gfc_character_storage_size, GFC_STD_F2003) 46NAMED_INTCST (ISOFORTRANENV_ERROR_UNIT, "error_unit", GFC_STDERR_UNIT_NUMBER, \ 47 GFC_STD_F2003) 48NAMED_INTCST (ISOFORTRANENV_FILE_STORAGE_SIZE, "file_storage_size", 8, \ 49 GFC_STD_F2003) 50NAMED_INTCST (ISOFORTRANENV_INPUT_UNIT, "input_unit", GFC_STDIN_UNIT_NUMBER, \ 51 GFC_STD_F2003) 52NAMED_INTCST (ISOFORTRANENV_INT8, "int8", \ 53 gfc_get_int_kind_from_width_isofortranenv (8), GFC_STD_F2008) 54NAMED_INTCST (ISOFORTRANENV_INT16, "int16", \ 55 gfc_get_int_kind_from_width_isofortranenv (16), GFC_STD_F2008) 56NAMED_INTCST (ISOFORTRANENV_INT32, "int32", \ 57 gfc_get_int_kind_from_width_isofortranenv (32), GFC_STD_F2008) 58NAMED_INTCST (ISOFORTRANENV_INT64, "int64", \ 59 gfc_get_int_kind_from_width_isofortranenv (64), GFC_STD_F2008) 60NAMED_INTCST (ISOFORTRANENV_IOSTAT_END, "iostat_end", LIBERROR_END, \ 61 GFC_STD_F2003) 62NAMED_INTCST (ISOFORTRANENV_IOSTAT_EOR, "iostat_eor", LIBERROR_EOR, \ 63 GFC_STD_F2003) 64NAMED_INTCST (ISOFORTRANENV_IOSTAT_INQUIRE_INTERNAL_UNIT, \ 65 "iostat_inquire_internal_unit", LIBERROR_INQUIRE_INTERNAL_UNIT, \ 66 GFC_STD_F2008) 67NAMED_INTCST (ISOFORTRANENV_NUMERIC_STORAGE_SIZE, "numeric_storage_size", \ 68 gfc_numeric_storage_size, GFC_STD_F2003) 69NAMED_INTCST (ISOFORTRANENV_OUTPUT_UNIT, "output_unit", GFC_STDOUT_UNIT_NUMBER, \ 70 GFC_STD_F2003) 71NAMED_INTCST (ISOFORTRANENV_REAL32, "real32", \ 72 gfc_get_real_kind_from_width_isofortranenv (32), GFC_STD_F2008) 73NAMED_INTCST (ISOFORTRANENV_REAL64, "real64", \ 74 gfc_get_real_kind_from_width_isofortranenv (64), GFC_STD_F2008) 75NAMED_INTCST (ISOFORTRANENV_REAL128, "real128", \ 76 gfc_get_real_kind_from_width_isofortranenv (128), GFC_STD_F2008) 77NAMED_INTCST (ISOFORTRANENV_FILE_STAT_LOCKED, "stat_locked", \ 78 GFC_STAT_LOCKED, GFC_STD_F2008) 79NAMED_INTCST (ISOFORTRANENV_FILE_STAT_LOCKED_OTHER_IMAGE, \ 80 "stat_locked_other_image", \ 81 GFC_STAT_LOCKED_OTHER_IMAGE, GFC_STD_F2008) 82NAMED_INTCST (ISOFORTRANENV_FILE_STAT_STOPPED_IMAGE, "stat_stopped_image", \ 83 GFC_STAT_STOPPED_IMAGE, GFC_STD_F2008) 84NAMED_INTCST (ISOFORTRANENV_FILE_STAT_UNLOCKED, "stat_unlocked", \ 85 GFC_STAT_UNLOCKED, GFC_STD_F2008) 86 87 88/* The arguments to NAMED_KINDARRAY are: 89 -- an internal name 90 -- the symbol name in the module, as seen by Fortran code 91 -- the gfortran variable containing the information 92 -- the Fortran standard */ 93 94NAMED_KINDARRAY (ISOFORTRAN_CHARACTER_KINDS, "character_kinds", \ 95 gfc_character_kinds, GFC_STD_F2008) 96NAMED_KINDARRAY (ISOFORTRAN_INTEGER_KINDS, "integer_kinds", \ 97 gfc_integer_kinds, GFC_STD_F2008) 98NAMED_KINDARRAY (ISOFORTRAN_LOGICAL_KINDS, "logical_kinds", \ 99 gfc_logical_kinds, GFC_STD_F2008) 100NAMED_KINDARRAY (ISOFORTRAN_REAL_KINDS, "real_kinds", \ 101 gfc_real_kinds, GFC_STD_F2008) 102 103/* The arguments to NAMED_FUNCTIONS are: 104 -- the ISYM 105 -- the symbol name in the module, as seen by Fortran code 106 -- the Fortran standard */ 107 108NAMED_FUNCTION (ISOFORTRAN_COMPILER_OPTIONS, "compiler_options", \ 109 GFC_ISYM_COMPILER_OPTIONS, GFC_STD_F2008) 110NAMED_FUNCTION (ISOFORTRAN_COMPILER_VERSION, "compiler_version", \ 111 GFC_ISYM_COMPILER_VERSION, GFC_STD_F2008) 112 113#ifndef NAMED_DERIVED_TYPE 114# define NAMED_DERIVED_TYPE(a,b,c,d) 115#endif 116 117NAMED_DERIVED_TYPE (ISOFORTRAN_LOCK_TYPE, "lock_type", \ 118 get_int_kind_from_node (ptr_type_node), GFC_STD_F2008) 119 120#undef NAMED_INTCST 121#undef NAMED_KINDARRAY 122#undef NAMED_FUNCTION 123#undef NAMED_DERIVED_TYPE 124