This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello, The following patch tags all intrinsic subroutines and functions with a standard version, and prints out error or warning messages if an intrinsic does not exist in the standard the user has chosen (via the -std flag). The intrinsics are flagged as belonging to either F77, F95, F2003 or GNU. The available choices for the user has not changed e.g. they are default (basically F95 + GNU extensions), f95, f2003 or gnu (everything we have). ChangeLog: PR fortran/17590 * gfortran.h: Change GFC_STD_* flags to more appropriate ones. (struct gfc_intrinsic_isym): Add field for standard. * intrinsic.c (add_sym): Add parameter for standard version. (add_sym_0): Pass standard parameter to add_sym. (add_sym_1): Likewise. (add_sym_0s): Likewise. (add_sym_1s): Likewise. (add_sym_1m): Likewise. (add_sym_2): Likewise. (add_sym_2s): Likewise. (add_sym_3): Likewise. (add_sym_3ml): Likewise. (add_sym_3red): Likewise. (add_sym_3s): Likewise. (add_sym_4): Likewise. (add_sym_4s): Likewise. (add_sym_5): Likewise. (add_sym_5s): Likewise. (add_functions): Add parameter to tell which standard an intrinsic belongs to. (add_subroutines): Likewise. (check_intrinsic_standard): New function. (gfc_intrinsic_func_interface): Add call to check_intrinsic_standard. (gfc_intrinsic_sub_interface): Likewise. * options.c (gfc_init_options): Change to use new GFC_STD_* flags. (gfc_handle_option): Likewise. -- Janne Blomqvist
Attachment:
pr17590.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |