mirror of git://gcc.gnu.org/git/gcc.git
re PR fortran/36031 (ARM -fshort-enums attribute not emitted for Fortran)
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. From-SVN: r147615
This commit is contained in:
parent
70544f4432
commit
cab129d134
|
@ -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;
|
||||
|
|
|
@ -2060,7 +2060,6 @@ typedef struct
|
|||
|
||||
int warn_std;
|
||||
int allow_std;
|
||||
int fshort_enums;
|
||||
int convert;
|
||||
int record_marker;
|
||||
int max_subrecord_length;
|
||||
|
|
|
@ -350,7 +350,7 @@ Append a second underscore if the name already contains an underscore
|
|||
|
||||
fshort-enums
|
||||
Fortran
|
||||
Use the narrowest integer type possible for enumeration types
|
||||
; Documented in C
|
||||
|
||||
fsign-zero
|
||||
Fortran
|
||||
|
|
|
@ -137,7 +137,7 @@ gfc_init_options (unsigned int argc, const char **argv)
|
|||
set_default_std_flags ();
|
||||
|
||||
/* -fshort-enums can be default on some targets. */
|
||||
gfc_option.fshort_enums = targetm.default_short_enums ();
|
||||
flag_short_enums = targetm.default_short_enums ();
|
||||
|
||||
/* Initialize cpp-related options. */
|
||||
gfc_cpp_init_options(argc, argv);
|
||||
|
@ -858,7 +858,7 @@ gfc_handle_option (size_t scode, const char *arg, int value)
|
|||
break;
|
||||
|
||||
case OPT_fshort_enums:
|
||||
gfc_option.fshort_enums = 1;
|
||||
flag_short_enums = 1;
|
||||
break;
|
||||
|
||||
case OPT_fconvert_little_endian:
|
||||
|
|
Loading…
Reference in New Issue