2010-09-24 Tobias Burnus <burnus@net-b.de>
[official-gcc.git] / gcc / fortran / iso-fortran-env.def
blobcd4f1d1145caf8dfb6239f281b32a93c639bbf02
1 /* Copyright (C) 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
3 This file is part of GCC.
5 GCC is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free
7 Software Foundation; either version 3, or (at your option) any later
8 version.
10 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
11 WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 for more details.
15 You should have received a copy of the GNU General Public License
16 along with GCC; see the file COPYING3. If not see
17 <http://www.gnu.org/licenses/>. */
19 /* This file contains the definition of the named integer constants provided
20 by the Fortran 2003 ISO_FORTRAN_ENV intrinsic module. */
22 #ifndef NAMED_INTCST
23 # define NAMED_INTCST(a,b,c,d)
24 #endif
26 #ifndef NAMED_KINDARRAY
27 # define NAMED_KINDARRAY(a,b,c,d)
28 #endif
31 /* The arguments to NAMED_INTCST are:
32 -- an internal name
33 -- the symbol name in the module, as seen by Fortran code
34 -- the value it has
35 -- the standard that supports this type */
37 NAMED_INTCST (ISOFORTRANENV_FILE_ATOMIC_INT_KIND, "atomic_int_kind", \
38 gfc_default_integer_kind, GFC_STD_F2008)
39 NAMED_INTCST (ISOFORTRANENV_FILE_ATOMIC_LOGICAL_KIND, "atomic_logical_kind", \
40 gfc_default_logical_kind, GFC_STD_F2008)
41 NAMED_INTCST (ISOFORTRANENV_CHARACTER_STORAGE_SIZE, "character_storage_size", \
42 gfc_character_storage_size, GFC_STD_F2003)
43 NAMED_INTCST (ISOFORTRANENV_ERROR_UNIT, "error_unit", GFC_STDERR_UNIT_NUMBER, \
44 GFC_STD_F2003)
45 NAMED_INTCST (ISOFORTRANENV_FILE_STORAGE_SIZE, "file_storage_size", 8, \
46 GFC_STD_F2003)
47 NAMED_INTCST (ISOFORTRANENV_INPUT_UNIT, "input_unit", GFC_STDIN_UNIT_NUMBER, \
48 GFC_STD_F2003)
49 NAMED_INTCST (ISOFORTRANENV_INT8, "int8", \
50 gfc_get_int_kind_from_width_isofortranenv (8), GFC_STD_F2008)
51 NAMED_INTCST (ISOFORTRANENV_INT16, "int16", \
52 gfc_get_int_kind_from_width_isofortranenv (16), GFC_STD_F2008)
53 NAMED_INTCST (ISOFORTRANENV_INT32, "int32", \
54 gfc_get_int_kind_from_width_isofortranenv (32), GFC_STD_F2008)
55 NAMED_INTCST (ISOFORTRANENV_INT64, "int64", \
56 gfc_get_int_kind_from_width_isofortranenv (64), GFC_STD_F2008)
57 NAMED_INTCST (ISOFORTRANENV_IOSTAT_END, "iostat_end", LIBERROR_END, \
58 GFC_STD_F2003)
59 NAMED_INTCST (ISOFORTRANENV_IOSTAT_EOR, "iostat_eor", LIBERROR_EOR, \
60 GFC_STD_F2003)
61 NAMED_INTCST (ISOFORTRANENV_IOSTAT_INQUIRE_INTERNAL_UNIT, \
62 "iostat_inquire_internal_unit", LIBERROR_INQUIRE_INTERNAL_UNIT, \
63 GFC_STD_F2008)
64 NAMED_INTCST (ISOFORTRANENV_NUMERIC_STORAGE_SIZE, "numeric_storage_size", \
65 gfc_numeric_storage_size, GFC_STD_F2003)
66 NAMED_INTCST (ISOFORTRANENV_OUTPUT_UNIT, "output_unit", GFC_STDOUT_UNIT_NUMBER, \
67 GFC_STD_F2003)
68 NAMED_INTCST (ISOFORTRANENV_REAL32, "real32", \
69 gfc_get_real_kind_from_width_isofortranenv (32), GFC_STD_F2008)
70 NAMED_INTCST (ISOFORTRANENV_REAL64, "real64", \
71 gfc_get_real_kind_from_width_isofortranenv (64), GFC_STD_F2008)
72 NAMED_INTCST (ISOFORTRANENV_REAL128, "real128", \
73 gfc_get_real_kind_from_width_isofortranenv (128), GFC_STD_F2008)
74 NAMED_INTCST (ISOFORTRANENV_FILE_STAT_LOCKED, "stat_locked", \
75 GFC_STAT_LOCKED, GFC_STD_F2008)
76 NAMED_INTCST (ISOFORTRANENV_FILE_STAT_LOCKED_OTHER_IMAGE, \
77 "stat_locked_other_image", \
78 GFC_STAT_LOCKED_OTHER_IMAGE, GFC_STD_F2008)
79 NAMED_INTCST (ISOFORTRANENV_FILE_STAT_STOPPED_IMAGE, "stat_stopped_image", \
80 GFC_STAT_STOPPED_IMAGE, GFC_STD_F2008)
81 NAMED_INTCST (ISOFORTRANENV_FILE_STAT_UNLOCKED, "stat_unlocked", \
82 GFC_STAT_UNLOCKED, GFC_STD_F2008)
85 /* The arguments to NAMED_KINDARRAY are:
86 -- an internal name
87 -- the symbol name in the module, as seen by Fortran code
88 -- the gfortran variable containing the information
89 -- the Fortran standard */
91 NAMED_KINDARRAY (ISOFORTRAN_CHARACTER_KINDS, "character_kinds", \
92 gfc_character_kinds, GFC_STD_F2008)
93 NAMED_KINDARRAY (ISOFORTRAN_INTEGER_KINDS, "integer_kinds", \
94 gfc_integer_kinds, GFC_STD_F2008)
95 NAMED_KINDARRAY (ISOFORTRAN_LOGICAL_KINDS, "logical_kinds", \
96 gfc_logical_kinds, GFC_STD_F2008)
97 NAMED_KINDARRAY (ISOFORTRAN_REAL_KINDS, "real_kinds", \
98 gfc_real_kinds, GFC_STD_F2008)
100 #undef NAMED_INTCST
101 #undef NAMED_KINDARRAY