diff options
author | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-16 16:11:11 +0000 |
---|---|---|
committer | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-16 16:11:11 +0000 |
commit | 6f092e316cb88cd151a263dafd219f5449a51749 (patch) | |
tree | 0aae8d8c20e5648928c65ad4486f31d06536d940 /gcc/fortran/decl.c | |
parent | a277ddf36a4d8a8b91a7e064b58418f8ec7920c3 (diff) | |
download | gcc-6f092e316cb88cd151a263dafd219f5449a51749.tar.gz |
PR fortran/36031
* decl.c (set_enum_kind): Use global short-enums flag.
* gfortran.h (gfc_option_t): Remove short_enums flag.
* lang.opt (-fshort-enums): Refer to C documentation.
* options.c (gfc_init_options, gfc_handle_option): Use global
short-enums flag.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147615 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r-- | gcc/fortran/decl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index a5261b8a862..7ecb921e0d3 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -24,6 +24,7 @@ along with GCC; see the file COPYING3. If not see #include "gfortran.h" #include "match.h" #include "parse.h" +#include "flags.h" /* Macros to access allocate memory for gfc_data_variable, @@ -5295,7 +5296,7 @@ set_enum_kind(void) if (max_enum == NULL || enum_history == NULL) return; - if (!gfc_option.fshort_enums) + if (!flag_short_enums) return; i = 0; |