|
| 1 | +2026-06-16 Robert Dubner <rdubner@symas.com> |
| 2 | + |
| 3 | + * compare.cc (numeric_alpha_compare): Use tree_type_from_refer(). |
| 4 | + * genapi.cc (file_static_variable): Eliminate function. |
| 5 | + (psa_FldLiteralN): Use tree_type_from_field. |
| 6 | + (parser_accept_command_line): Eliminate file-static variables. |
| 7 | + (parser_accept_envar): Likewise. |
| 8 | + (parser_assign): Likewise. |
| 9 | + (parser_initialize_table): Likewise. |
| 10 | + (parser_see_stop_run): Likewise. |
| 11 | + (parser_file_write): Likewise. |
| 12 | + (parser_file_start): Likewise. |
| 13 | + (inspect_tally): Likewise. |
| 14 | + (inspect_replacing): Likewise. |
| 15 | + (field_increment): Likewise. |
| 16 | + (parser_match_exception): Likewise. |
| 17 | + * genapi.h (file_static_variable): Eliminate function. |
| 18 | + * genmath.cc (largest_binary_term): Use tree_type_from_refer(). |
| 19 | + (fast_add): Likewise. |
| 20 | + (fast_subtract): Likewise. |
| 21 | + (fast_multiply): Likewise. |
| 22 | + (fast_divide): Likewise. |
| 23 | + (parser_divide): Likewise. |
| 24 | + * genutil.cc (tree_type_from_digits): Eliminate function. |
| 25 | + (get_integer_value): Eliminate file-static variables. |
| 26 | + (get_data_offset): Eliminate file-static variables. |
| 27 | + (get_binary_value_tree): Eliminate file-static variables. |
| 28 | + (tree_type_from_field): Updated function. |
| 29 | + (tree_type_from_refer): New function. |
| 30 | + (scale_by_power_of_ten): Eliminate file-static variables. |
| 31 | + (tree_type_from_size): Eliminate function. |
| 32 | + (copy_little_endian_into_place): Improve logic. |
| 33 | + (build_array_of_size_t): Eliminate file-static variables. |
| 34 | + (refer_refmod_length): Likewise. |
| 35 | + (refer_fill_depends): Likewise. |
| 36 | + (refer_size): Likewise. |
| 37 | + (refer_size_source): Likewise. |
| 38 | + * genutil.h (tree_type_from_digits): Eliminate function. |
| 39 | + (tree_type_from_size): Eliminate function. |
| 40 | + (tree_type_from_refer): New function. |
| 41 | + * lang.opt: Updated documentation. |
| 42 | + * lang.opt.urls: Updated documentation. |
| 43 | + * move.cc (digits_to_bytes): Eliminate function. |
| 44 | + (get_bytes_needed): Likewise. |
| 45 | + (mh_source_is_literalN): Eliminate file-static variables; use |
| 46 | + tree_type_from_refer(). |
| 47 | + (mh_numeric_display): Likewise. |
| 48 | + (mh_little_endian): tree_type_from_refer(). |
| 49 | + (mh_numdisp_to_packed): Use get_location() function. |
| 50 | + (mh_packed_to_packed): Likewise. |
| 51 | + (mh_packed_to_numdisp): Likewise. |
| 52 | + (move_helper): Likewise. |
| 53 | + |
| 54 | +2026-06-16 James K. Lowden <jklowden@cobolworx.com> |
| 55 | + |
| 56 | + * Make-lang.in: Report Bison version. |
| 57 | + * cbldiag.h (defined): Define possibly missing macros. |
| 58 | + (ATTRIBUTE_GCOBOL_DIAG): Define if missing. |
| 59 | + (ATTRIBUTE_PRINTF_1): Same. |
| 60 | + (ATTRIBUTE_PRINTF_3): Same. |
| 61 | + (yyerror): Remove. |
| 62 | + (struct YYLTYPE): Remove. |
| 63 | + (enum cbl_gcobol_feature_t): Relocate from symbols.h. |
| 64 | + (YYLTYPE_IS_DECLARED): Remove. |
| 65 | + (YYLTYPE_IS_TRIVIAL): Remove. |
| 66 | + (cobol_location): Relocate. |
| 67 | + (cobol_gcobol_feature_set): Declare. |
| 68 | + (struct YDFLTYPE): Remove. |
| 69 | + (enum cbl_call_convention_t): Relocate from symbols.h. |
| 70 | + (YDFLTYPE_IS_DECLARED): Remove. |
| 71 | + (YDFLTYPE_IS_TRIVIAL): Remove. |
| 72 | + (current_call_convention): Declare. |
| 73 | + (cdf_push): Declare. |
| 74 | + (cdf_push_call_convention): Declare. |
| 75 | + (cdf_push_current_tokens): Declare. |
| 76 | + (cdf_push_dictionary): Declare. |
| 77 | + (cdf_push_enabled_exceptions): Declare. |
| 78 | + (cdf_push_source_format): Declare. |
| 79 | + (cdf_pop): Declare. |
| 80 | + (cdf_pop_call_convention): Declare. |
| 81 | + (cdf_pop_current_tokens): Declare. |
| 82 | + (cdf_pop_dictionary): Declare. |
| 83 | + (cdf_pop_source_format): Declare. |
| 84 | + (cdf_pop_enabled_exceptions): Declare. |
| 85 | + (current_program_index): Declare. |
| 86 | + (struct cbl_loc_t): Derive from cbl_loc_base_t. |
| 87 | + (struct cbl_loc_base_t): Define. |
| 88 | + (cbl_err): Declare. |
| 89 | + (cbl_errx): Declare. |
| 90 | + (error_msg): Use cbl_loc_t. |
| 91 | + (warn_msg): Same. |
| 92 | + (cbl_unimplemented_at): Same. |
| 93 | + (gcc_location_set): Same. |
| 94 | + * cdf.y: Require Bison 3.8.2 and generate C++ in cdf namespace. |
| 95 | + * cdfval.h (struct YDFLTYPE): Remove. |
| 96 | + (struct cbl_loc_t): Forward declaration. |
| 97 | + (struct cdfval_base_t): User-defined conversion from derived. |
| 98 | + * copybook.h (gcc_assert): Use assert(3) within cdf.y. |
| 99 | + (gcc_unreachable): Declare within cdf.y. |
| 100 | + (class copybook_elem_t): Use cbl_loc_t. |
| 101 | + (CTOUPPER): Use toupper(3) in uppername_t helper. |
| 102 | + (TOUPPER): Same. |
| 103 | + (class copybook_t): Use cbl_loc_t. |
| 104 | + * exceptg.h (struct cbl_label_t): Declare cbl_label_t. |
| 105 | + * gcobc: Support -fno-ec. |
| 106 | + * gcobol.1: Reword -fsyntax-only slightly. |
| 107 | + * genapi.cc (parser_label_label): Use cobol_location(). |
| 108 | + * lang.opt: Add comment in re lang.opt.urls. |
| 109 | + * lexio.cc (struct replacing_term_t): Use cbl_loc_t. |
| 110 | + (location_in): Same. |
| 111 | + (parse_copy_directive): Same. |
| 112 | + * lexio.h (struct filespan_t): Same. |
| 113 | + * messages.cc (cbl_message): Same. |
| 114 | + * parse.y: Same, and propagate location variously. |
| 115 | + * parse_ante.h (current_data_section_set): Use cbl_loc_t. |
| 116 | + (namcpy): Same. |
| 117 | + (reject_refmod): Same. |
| 118 | + (require_pointer): Same. |
| 119 | + (require_integer): Same. |
| 120 | + (ast_op): Same. |
| 121 | + (perform_tgt_set): Same. |
| 122 | + (label_add): Same. |
| 123 | + (paragraph_reference): Same. |
| 124 | + (tee_up_name): Same. |
| 125 | + (ast_inspect): Same. |
| 126 | + (ast_enter_section): Same. |
| 127 | + (ast_enter_paragraph): Same. |
| 128 | + (prototype_add): Same. |
| 129 | + (verify_args): Same. |
| 130 | + (subscript_dimension_error): Same. |
| 131 | + (literal_subscripts_valid): Same. |
| 132 | + (literal_refmod_valid): Same. |
| 133 | + (struct cbl_fieldloc_t): Remove. |
| 134 | + (intrinsic_call_1): Use cbl_loc_t. |
| 135 | + (symbol_find): Same. |
| 136 | + (valid_redefine): Same. |
| 137 | + (field_add): Same. |
| 138 | + (field_type_update): Same. |
| 139 | + (field_capacity_error): Same. |
| 140 | + (field_alloc): Same. |
| 141 | + (file_add): Same. |
| 142 | + (alphabet_add): Same. |
| 143 | + (set_real_from_capacity): Same. |
| 144 | + (procedure_division_ready): Same. |
| 145 | + (file_section_fd_set): Same. |
| 146 | + (ast_call): Same. |
| 147 | + (field_binary_usage): Same. |
| 148 | + (ast_end_program): Same. |
| 149 | + (cobol_location): Same. |
| 150 | + (location_set): Same. |
| 151 | + (statement_begin): Same. |
| 152 | + (ast_first_statement): Same. |
| 153 | + * scan.l: Qualify tokens with new cdf namespace. |
| 154 | + * scan_ante.h (ydfparse): Now static. |
| 155 | + (cdf_context): Declare. |
| 156 | + (ydfltype_of): Remove. |
| 157 | + (update_location): Use cbl_loc_t. |
| 158 | + (reset_location): Same. |
| 159 | + (YY_USER_INIT): Same. |
| 160 | + (class picture_t): Same. |
| 161 | + * scan_post.h (ydfparse): Wrapper for cdf_parser::parse() method. |
| 162 | + (ydfchar): Lookahead helper. |
| 163 | + (ydfdebug): Same. |
| 164 | + (run_cdf): Clearer debug messages. |
| 165 | + (struct pending_token_t): Renamed to recent_token_t. |
| 166 | + (struct recent_token_t): As above. |
| 167 | + (PENDING): Renames to RECENT. |
| 168 | + (RECENT): As above. |
| 169 | + (next_token): Removed. |
| 170 | + (recent_tokens_t): Capture abandoned lookahead tokens. |
| 171 | + (prelex): Use recent_tokens queue. |
| 172 | + (yylex): Drop normal parsing idea. |
| 173 | + * symbols.cc (symbol_field_location): Use cbl_loc_t. |
| 174 | + (symbol_alphabet): Same. |
| 175 | + (cbl_alphabet_t::cbl_alphabet_t): Same. |
| 176 | + (cbl_alphabet_t::assign): Same. |
| 177 | + (cbl_alphabet_t::also): Same. |
| 178 | + (symbol_temporary_location): Same. |
| 179 | + (cbl_field_t::encode): Same. |
| 180 | + * symbols.h (enum cbl_gcobol_feature_t): Remove. |
| 181 | + (cobol_gcobol_feature_set): Remove. |
| 182 | + (struct cbl_field_t): Use cbl_loc_t. |
| 183 | + (struct cbl_refer_t): Same. |
| 184 | + (struct cbl_alphabet_t): Same. |
| 185 | + (struct cbl_perform_tgt_t): Same. |
| 186 | + (struct cbl_nameloc_t): Same. |
| 187 | + (class name_queue_t): Same. |
| 188 | + (tee_up_name): Same. |
| 189 | + (symbol_field_location): Same. |
| 190 | + (enum cbl_call_convention_t): Remove |
| 191 | + (class current_tokens_t): Use cbl_loc_t. |
| 192 | + (current_call_convention): Same. |
| 193 | + (gcc_location_set): Same. |
| 194 | + * util.cc (class cdf_directives_t): Use cbl_loc_t. |
| 195 | + (cdf_unreachable): Define as gcc_unreachable. |
| 196 | + (cdf_literalize): Do not handle location. |
| 197 | + (cdf_file): New function. |
| 198 | + (cdf_file_index): Same. |
| 199 | + (cdf_file_name): Same. |
| 200 | + (cdf_add_field): Same. |
| 201 | + (cbl_field_t::encode_numeric): Remove unused parameter. |
| 202 | + (cbl_field_t::report_invalid_initial_value): Use cbl_loc_t. |
| 203 | + (match_proc): Namespace for local prototype-verification functions. |
| 204 | + (DUMP_PROCEDURE_CALLS): Guard macro for debug function. |
| 205 | + (procedure_calls_dump): New function to show uses of PERFORM. |
| 206 | + (gcc_location_set_impl): Use cbl_loc_t. |
| 207 | + (gcc_location_set): Same. |
| 208 | + (class temp_loc_t): Same. |
| 209 | + (error_msg): Same. |
| 210 | + (warn_msg): Same. |
| 211 | + (ydfdebug): Same. |
| 212 | + (cobol_set_debugging): Same. |
| 213 | + (cbl_unimplemented_at): Same. |
| 214 | + * util.h (cbl_err): Remove declaration. |
| 215 | + (cbl_errx): Same. |
| 216 | + (cdf_push): Same. |
| 217 | + (cdf_push_call_convention): Same. |
| 218 | + (cdf_push_current_tokens): Same. |
| 219 | + (cdf_push_dictionary): Same. |
| 220 | + (cdf_push_enabled_exceptions): Same. |
| 221 | + (cdf_push_source_format): Same. |
| 222 | + (cdf_pop): Same. |
| 223 | + (cdf_pop_call_convention): Same. |
| 224 | + (cdf_pop_current_tokens): Same. |
| 225 | + (cdf_pop_dictionary): Same. |
| 226 | + (cdf_pop_source_format): Same. |
| 227 | + (cdf_pop_enabled_exceptions): Same. |
| 228 | + |
1 | 229 | 2026-06-14 Robert Dubner <rdubner@symas.com> |
2 | 230 |
|
3 | 231 | * move.cc (hex_of): Move the routine. |
|
0 commit comments