-
- Downloads
arith.c: (gfc_arith_concat...
* arith.c: (gfc_arith_concat, gfc_compare_string, gfc_compare_with_Cstring, hollerith2representation, gfc_hollerith2int, gfc_hollerith2real, gfc_hollerith2complex, gfc_hollerith2character, gfc_hollerith2logical): Use wide characters for character constants. * data.c (create_character_intializer): Likewise. * decl.c (gfc_set_constant_character_len): Likewise. * dump-parse-tree.c (show_char_const): Correctly dump wide character strings. error.c (print_wide_char): Rename into gfc_print_wide_char. (show_locus): Adapt to new prototype of gfc_print_wide_char. expr.c (free_expr0): Representation is now disjunct from character string value, so we always free it. (gfc_copy_expr, find_substring_ref, gfc_simplify_expr): Adapt to wide character strings. * gfortran.h (gfc_expr): Make value.character.string a wide string. (gfc_wide_toupper, gfc_wide_strncasecmp, gfc_wide_memset, gfc_widechar_to_char, gfc_char_to_widechar): New prototypes. (gfc_get_wide_string): New macro. (gfc_print_wide_char): New prototype. * io.c (format_string): Make a wide string. (next_char, gfc_match_format, compare_to_allowed_values, gfc_match_open): Deal with wide strings. * module.c (mio_expr): Convert between wide strings and ASCII ones. * primary.c (match_hollerith_constant, match_charkind_name): Handle wide strings. * resolve.c (build_default_init_expr): Likewise. * scanner.c (gfc_wide_toupper, gfc_wide_memset, gfc_char_to_widechar): New functions. (wide_strchr, gfc_widechar_to_char, gfc_wide_strncasecmp): Changes in prototypes. (gfc_define_undef_line, load_line, preprocessor_line, include_line, load_file, gfc_read_orig_filename): Handle wide strings. * simplify.c (gfc_simplify_achar, gfc_simplify_adjustl, gfc_simplify_adjustr, gfc_simplify_char, gfc_simplify_iachar, gfc_simplify_ichar, simplify_min_max, gfc_simplify_new_line, gfc_simplify_repeat): Handle wide strings. (wide_strspn, wide_strcspn): New helper functions. (gfc_simplify_scan, gfc_simplify_trim, gfc_simplify_verify): Handle wide strings. * symbol.c (generate_isocbinding_symbol): Likewise. * target-memory.c (size_character, gfc_target_expr_size, encode_character, gfc_target_encode_expr, gfc_interpret_character, gfc_target_interpret_expr): Handle wide strings. * trans-const.c (gfc_conv_string_init): Lower wide strings to narrow ones. (gfc_conv_constant_to_tree): Likewise. * trans-expr.c (gfc_conv_substring_expr): Handle wide strings. * trans-io.c (gfc_new_nml_name_expr): Likewise. * trans-stmt.c (gfc_trans_label_assign): Likewise. From-SVN: r135006
Showing
- gcc/fortran/ChangeLog 54 additions, 0 deletionsgcc/fortran/ChangeLog
- gcc/fortran/arith.c 25 additions, 25 deletionsgcc/fortran/arith.c
- gcc/fortran/data.c 19 additions, 17 deletionsgcc/fortran/data.c
- gcc/fortran/decl.c 5 additions, 4 deletionsgcc/fortran/decl.c
- gcc/fortran/dump-parse-tree.c 2 additions, 4 deletionsgcc/fortran/dump-parse-tree.c
- gcc/fortran/error.c 34 additions, 30 deletionsgcc/fortran/error.c
- gcc/fortran/expr.c 22 additions, 20 deletionsgcc/fortran/expr.c
- gcc/fortran/gfortran.h 10 additions, 1 deletiongcc/fortran/gfortran.h
- gcc/fortran/io.c 49 additions, 35 deletionsgcc/fortran/io.c
- gcc/fortran/module.c 9 additions, 4 deletionsgcc/fortran/module.c
- gcc/fortran/primary.c 15 additions, 8 deletionsgcc/fortran/primary.c
- gcc/fortran/resolve.c 3 additions, 4 deletionsgcc/fortran/resolve.c
- gcc/fortran/scanner.c 65 additions, 18 deletionsgcc/fortran/scanner.c
- gcc/fortran/simplify.c 76 additions, 31 deletionsgcc/fortran/simplify.c
- gcc/fortran/symbol.c 2 additions, 2 deletionsgcc/fortran/symbol.c
- gcc/fortran/target-memory.c 33 additions, 16 deletionsgcc/fortran/target-memory.c
- gcc/fortran/trans-const.c 23 additions, 8 deletionsgcc/fortran/trans-const.c
- gcc/fortran/trans-expr.c 7 additions, 2 deletionsgcc/fortran/trans-expr.c
- gcc/fortran/trans-io.c 1 addition, 2 deletionsgcc/fortran/trans-io.c
- gcc/fortran/trans-stmt.c 4 additions, 1 deletiongcc/fortran/trans-stmt.c
Loading
Please register or sign in to comment