Unsigned constants for ISO_FORTRAN_ENV and ISO_C_BINDING.
gcc/fortran/ChangeLog: * dump-parse-tree.cc (get_c_type_name): Also handle BT_UNSIGNED. * gfortran.h (NAMED_UINTCST): Define before inclusion of iso-c-binding.def and iso-fortran-env.def. (gfc_get_uint_kind_from_width_isofortranenv): Prototype. * gfortran.texi: Mention new constants in iso_c_binding and iso_fortran_env. * iso-c-binding.def: Handle NAMED_UINTCST. Add c_unsigned, c_unsigned_short,c_unsigned_char, c_unsigned_long, c_unsigned_long_long, c_uintmax_t, c_uint8_t, c_uint16_t, c_uint32_t, c_uint64_t, c_uint128_t, c_uint_least8_t, c_uint_least16_t, c_uint_least32_t, c_uint_least64_t, c_uint_least128_t, c_uint_fast8_t, c_uint_fast16_t, c_uint_fast32_t, c_uint_fast64_t and c_uint_fast128_t. * iso-fortran-env.def: Handle NAMED_UINTCST. Add uint8, uint16, uint32 and uint64. * module.cc (parse_integer): Whitespace fix. (write_module): Whitespace fix. (NAMED_UINTCST): Define before inclusion of iso-fortran-evn.def and iso-fortran-env.def. * symbol.cc: Likewise. * trans-types.cc (get_unsigned_kind_from_node): New function. (get_uint_kind_from_name): New function. (gfc_get_uint_kind_from_width_isofortranenv): New function. (get_uint_kind_from_width): New function. (gfc_init_kinds): Initialize gfc_c_uint_kind. gcc/testsuite/ChangeLog: * gfortran.dg/unsigned_36.f90: New test.
Showing
- gcc/fortran/dump-parse-tree.cc 12 additions, 2 deletionsgcc/fortran/dump-parse-tree.cc
- gcc/fortran/gfortran.h 6 additions, 0 deletionsgcc/fortran/gfortran.h
- gcc/fortran/gfortran.texi 15 additions, 1 deletiongcc/fortran/gfortran.texi
- gcc/fortran/iso-c-binding.def 61 additions, 0 deletionsgcc/fortran/iso-c-binding.def
- gcc/fortran/iso-fortran-env.def 13 additions, 1 deletiongcc/fortran/iso-fortran-env.def
- gcc/fortran/module.cc 34 additions, 4 deletionsgcc/fortran/module.cc
- gcc/fortran/symbol.cc 7 additions, 0 deletionsgcc/fortran/symbol.cc
- gcc/fortran/trans-types.cc 60 additions, 0 deletionsgcc/fortran/trans-types.cc
- gcc/testsuite/gfortran.dg/unsigned_36.f90 36 additions, 0 deletionsgcc/testsuite/gfortran.dg/unsigned_36.f90
Loading
Please register or sign in to comment