1 Sat Jul 8 01:38:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
3 * i386.md (call_pop, call, call_value_pop): Do not set
4 current_function_uses_pic_offset_table for calls to static
5 functions or indirect calls.
7 2000-07-07 Jim Wilson <wilson@cygnus.com>
9 * config/ia64/ia64.c (rws_access_reg): New local write_count. If
10 is_predicate_reg, then take max write_count of register pair.
12 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14 * tradcpp.c (main): Rename label `include' to `add_include' to
15 avoid conflicts with variable `include' in traditional C.
17 2000-07-07 Jakub Jelinek <jakub@redhat.com>
19 * integrate.c (copy_insn_list): Remove REG_LABEL notes.
21 2000-07-07 Jakub Jelinek <jakub@redhat.com>
23 * sibcall.c (uses_addressof): Add INMEM argument, check for
24 current_function_internal_arg_pointer outside of MEM rtxs in addition
26 (sequence_uses_addressof): Update caller.
28 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
30 * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
33 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35 * system.h (UNION_INIT_ZERO): New macro for initializing union
38 * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
40 2000-07-07 Neil Booth <NeilB@earthling.net>
44 Fri Jul 7 07:47:35 2000 Jeffrey A Law (law@cygnus.com)
46 * final.c (final): Detect out of bounds array access to
47 the insn_lengths array.
49 2000-07-07 Kazu Hirata <kazu@hxi.com>
51 * fold-const.c (fold): Fix a comment typo.
53 2000-07-07 Neil Booth <NeilB@earthling.net>
55 * cpp.texi: Update to new lexer.
57 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
59 * tradcpp.c: New file.
60 * tradcif.y: New file.
61 * tradcif.c: New generated file.
63 * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
64 $(srcdir)/tradcif.c. Add tradcpp to STAGESTUFF and
65 dependencies of C. Install tradcpp from install-common, in
68 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
70 * cppinit.c: Include cppdefault.h. Refer to
71 cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
72 to GCC_INCLUDE_DIR and its length.
73 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
74 USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
75 STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT): Move to
77 (include_defaults_array): Move to cppdefault.c.
79 * cppdefault.h: New file.
80 * cppdefault.c: New file.
82 * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
83 (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
84 (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
87 Thu Jul 6 18:30:36 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
89 * reload.c (push_reload): When seeing if can reuse a register,
90 check extra registers against widest of INMODE and OUTMODE.
92 2000-07-06 Neil Booth <NeilB@earthling.net>
94 * cpplib.c: (_cpp_parse_assertion): Perform hash lookups
95 based on full length of predicate.
97 2000-07-06 Hans-Peter Nilsson <hp@axis.com>
99 * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
100 [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
102 2000-07-05 Kazu Hirata <kazu@hxi.com>
104 * h8300-proto.h: Fix formatting.
108 2000-07-05 Jim Wilson <wilson@cygnus.com>
110 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
113 2000-07-05 Rodney Brown <RodneyBrown@pmsc.com>
115 * invoke.texi: Fix minor typos
116 * md.texi: Fix minor typos
118 2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
120 * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
122 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
124 * cpplex.c: Don't include sys/mman.h.
125 (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
127 * cpplib.c: Include sys/mman.h and obstack.h.
128 (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
130 (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
131 (_cpp_unwind_if_stack): Now static, unwind_if_stack. Don't
132 bother freeing if stack entries (they will be freed with their buffer).
133 (do_endif): Free if stack entries from the buffer obstack.
134 (push_conditional): Allocate if stack entries from the buffer obstack.
136 (find_answer): Rename to _cpp_find_answer.
137 (do_assert, do_unassert): Update.
139 * cpphash.h: Update prototypes.
140 (xobnew): New convenience macro.
141 * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
143 (struct cpp_hashnode): Remove disabled field.
145 * cppinit.c: Don't include hashtab.h or splay-tree.h.
146 (report_missing_guard): Moved to cppfiles.c.
147 (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
149 (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
150 cpp_cleanup_includes. Don't destroy hashtab or
151 all_include_files here.
152 (cpp_finish): Use _cpp_report_missing_guards.
154 * cppfiles.c (report_missing_guard): Moved from cppinit.c.
155 (_cpp_init_include_table): Rename _cpp_init_includes.
156 (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
158 * cppexp.c (parse_assertion): Update for new name of
161 * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
163 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
165 * cpplib.c (do_ident): s/VSPACE/EOF/
167 2000-07-05 Neil Booth <NeilB@earthling.net>
169 * cpplex.c: Fix trigraph replacement within strings.
171 2000-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
173 * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
175 * xcoffout.c (assign_type_number): Constify.
176 (xcoffout_source_file): Add static prototype. Don't needlessly
177 cast away const-ness.
179 2000-07-04 Jason Merrill <jason@redhat.com>
181 * frame.h (frame_state): Move base_offset to end.
183 Mon Jul 3 21:31:43 2000 Clinton Popetz <cpopetz@cygnus.com>
185 * calls.c (emit_library_call_value_1): Revert previous change.
187 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
189 * fix-header.c (struct partial_proto): Remove unnecessary fields.
190 (recognized_extern, recognized_function, read_scan_file):
191 Update for new scheme.
192 (check_protection): It's still a multiple include guard even
193 if it doesn't always trigger.
194 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
196 * scan.h: Declare struct cpp_token. Update prototypes.
198 2000-07-03 Neil Booth <neilb@earthling.net>
199 Zack Weinberg <zack@wolery.cumb.org>
201 Complete overhaul of the lexer and macro expander.
203 * cpphash.c (object_defn, funct_defn, push_macro_expansion,
204 arg, arglist, argdata, reflist, collect_objlike_expansion,
205 collect_funlike_expansion, collect_params,
206 warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
207 unsafe_chars, macarg, compare_defs, special_symbol,
208 scan_arguments, stringify, funlike_macroexpand,
209 _cpp_quote_string, monthnames): Delete.
210 (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
211 _cpp_create_definition, _cpp_dump_definition,
212 dump_hash_helper): Adjust.
213 (find_param, count_params, parse_define, var_args_str,
214 check_macro_redefinition, save_expansion): New.
216 * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
217 parse_string, output_line_command, trigraph_replace,
218 lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
219 cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
220 cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
221 _cpp_skip_rest_of_line): Modify.
223 (maybe_macroexpand, skip_comment, copy_comment, skip_string,
224 find_position, null_warning, bump_column, expand_name_space,
225 pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
226 _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
227 _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
228 _cpp_prescan): Delete.
230 (dump_param_spelling, process_directive, lex_next,
231 is_macro_disabled, stringify_arg, expand_context_stack,
232 output_token, make_string_token, alloc_number_token,
233 special_symbol, duplicate_token, maybe_paste_with_next,
234 can_paste, prevent_macro_expansion, restore_macro_expansion,
235 get_temp_token, release_temp_tokens, quote_string,
236 token_names, token_spellings, _cpp_expand_name_space,
237 _cpp_glue_header_name, _cpp_reserve_name_space,
238 digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
239 placemarker_token, eof_token, cpp_context, macro_args,
240 get_raw_token, parse_arg, parse_args, save_token,
241 push_arg_context, push_macro_context, pop_context,
242 do_pop_context, free_macro_args, _cpp_get_line,
243 _cpp_run_directive): New.
245 * cpplib.c (validate_else, parse_include, push_conditional,
246 pass_thru_directive, read_line_number, parse_ifdef,
247 detect_if_not_defined, _cpp_check_directive, do_define,
248 do_undef, do_include, do_import, do_include_next, do_error,
249 do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
250 top_pragmas, do_pragma_gcc, do_pragma_implementation,
251 do_pragma_poison, do_pragma_system_header,
252 do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
253 dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
254 do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
255 cpp_defined): Update for new scheme.
256 (strtoul_for_line, get_define_node, dump_macro_name,
257 _cpp_check_linemarker, _cpp_parse_assertion): New.
258 (_cpp_handle_directive, do_pragma_default): Delete.
260 * cpphash.h (struct predicate): Now struct answer.
261 (enum spell_type, struct token_spelling, struct directive,
262 directive_handler): New.
263 Update prototypes. Remove unused macros.
264 * cpplib.h: Update prototypes. Remove unused macros,
265 structure definitions, and fields.
267 * cpperror.c (print_containing_files, v_message): Adjust.
268 * cppexp.c (parse_assertion, lex, parse_escape,
269 _cpp_parse_expr): Adjust.
270 * cppfiles.c (open_include_file, _cpp_execute_include,
271 _cpp_compare_file_date, cpp_read_file, read_include_file):
273 * cppinit.c (dump_special_to_buffer): Delete.
274 (append_include_chain, merge_include_chains, cpp_reader_init,
275 cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
276 cpp_finish, handle_option, print_help): Adjust.
277 * cppmain.c (main): Adjust.
279 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
281 * cppspec.c (lang_specific_driver): Use double quotes in error
284 Mon Jul 3 16:53:43 2000 Clinton Popetz <cpopetz@cygnus.com>
286 * calls.c (emit_library_call_value_1): Use valreg instead
287 of hard_libcall_value.
289 2000-07-03 Geoff Keating <geoffk@cygnus.com>
291 * config/rs6000/rs6000.c (rs6000_emit_move): New function.
292 * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
293 * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
301 * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
302 mode instead of wider_mode is being used.
304 2000-07-03 Jakub Jelinek <jakub@redhat.com>
306 * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
307 of 'r'. Use q_regs_operand.
308 (andsi_1+2): Use q_regs_operand.
310 2000-07-03 Jakub Jelinek <jakub@redhat.com>
312 * builtins.c (get_memory_rtx): Always put into alias set 0.
314 2000-07-03 Nick Clifton <nickc@cygnus.com>
316 * config/arm/arm.md: Fix post increment and pre increment
317 peepholes so that they do not generate UNPREDICATBLE opcodes.
318 (ie ones where the increment clobbers the source/destination).
320 2000-07-01 Marek Michalkiewicz <marekm@linux.org.pl>
322 * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
323 change too big for -mtiny-stack" a warning, if larger than 63.
324 (out_set_stack_ptr): Change the logic so -mno-interrupts is
325 always safe to use on possible future devices.
326 (function_prologue): Write SPH before SPL, for consistency.
327 If interrupt_func_p true, we know we have enabled interrupts.
328 (avr_num_arg_regs): New function. Round up to even number of
329 bytes if no -mpack-args or if calling a libgcc function.
330 (function_arg, function_arg_advance): Use it.
331 (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
332 Output "movw" if available.
333 (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
334 of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
335 (asm_output_section_name): Add blanks for consistent output.
336 (encode_section_info): Set TREE_READONLY for progmem data to
337 avoid gas warnings about changed section attributes.
338 (avr_hard_regno_mode_ok): Force non-QImode data to start in
339 even numbered registers on devices with "movw".
340 * config/avr/avr.h (MASK_*): Define bits for target_flags.
341 (TARGET_SWITCHES): Mark help strings for translation.
342 Add new -mpack-args and -menhanced switches.
343 (TARGET_OPTIONS): Mark help strings for translation.
344 (progmem_section): Add section attributes.
345 * config/avr/avr.md (*movhi, call_insn, call_value_insn):
346 Output "movw" if available.
347 (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
349 * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
350 call convention (arguments aligned on even registers).
351 (_cleanup, _exit): Make weak symbols libc can override.
353 2000-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
355 * fp-bit.h: New file.
357 * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
358 Comment #endif statements.
359 (__thenan_sf, __thenan_df): Add missing braces around initializer.
361 Mon Jul 3 00:32:47 2000 Jeffrey A Law (law@cygnus.com)
363 * gcse.c (compute_pre_data): Compute ae_kill using other local
364 properties instead of calling compute_ae_kill.
366 * alias.c (init_alias_analysis): Do not call
367 prologue_epilogue_contains until after reload has completed.
369 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
371 * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
372 (genrtl_finish_compound_stmt): Likewise.
373 (genrtl_compound_stmt): Change to return void.
375 * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
376 move code from here to ...
377 (genrtl_compound_stmt): ... here.
378 (genrtl_finish_compound_stmt): Remove.
379 (expand_stmt): Add comment.
381 2000-07-02 Zack Weinberg <zack@wolery.cumb.org>
383 * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
386 2000-07-02 Jakub Jelinek <jakub@redhat.com>
388 * cpplib.h (struct cpp_reader): New field include_depth.
389 (struct cpp_printer): Rename last_bsd to last_id.
390 * cppfiles.c (read_include_file): Bump include_depth.
391 * cpplex.c (cpp_pop_buffer): Decrement include_depth.
392 (output_line_command): Output correct #line if a header
393 is including itself and is not protected against multiple inclusion.
394 Use include_depth instead of buffer_stack_depth, last_id instead of
396 * cppinit.c (cpp_start_read): Initialize last_id instead of
399 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
401 * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
402 (c-semantics.o): New target.
404 * c-common.h (TREE_LANG_FLAG_?): Added documentation.
405 (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
406 (genrtl_clear_out_block): Likewise.
407 (genrtl_goto_stmt): Likewise.
408 (genrtl_expr_stmt): Likewise.
409 (genrtl_decl_stmt): Likewise.
410 (genrtl_if_stmt): Likewise.
411 (genrtl_while_stmt): Likewise.
412 (genrtl_do_stmt): Likewise.
413 (genrtl_return_stmt): Likewise.
414 (genrtl_for_stmt): Likewise.
415 (genrtl_break_stmt): Likewise.
416 (genrtl_continue_stmt): Likewise.
417 (genrtl_scope_stmt): Likewise.
418 (genrtl_switch_stmt): Likewise.
419 (genrtl_case_label): Likewise.
420 (genrtl_begin_compound_stmt): Likewise.
421 (gerntl_finish_compound_stmt): Likewise.
422 (genrtl_compound_stmt): Likewise.
423 (genrtl_asm_stmt): Likewise.
424 (genrtl_decl_cleanup): Likewise.
425 (DECL_ANON_UNION_ELEMS): Likewise.
426 (emit_local_var): Likewise.
427 (make_rtl_for_local_static): Likewise.
428 (expand_cond): Likewise.
429 (expand_stmt): Likewise.
430 (c_expand_return): Likewise.
431 (c_expand_start_case): Likewise.
433 (COMPOUND_STMT_NO_SCOPE): Likewise.
434 (c_expand_asm_operands): Likewise.
435 (NEW_FOR_SCOPE_P): New macro.
436 (expand_expr_stmt_fn): New type.
438 (set_current_function_name_declared): Likewise.
439 (current_function_name_declared): Likewise.
440 (lang_expand_stmt): Likewise.
441 (stmts_are_full_exprs_p): Likewise.
442 (anon_aggr_type_p): Likewise.
443 (lang_expand_expr_stmt): Likewise.
444 (build_case_label): Likewise.
446 * c-decl.c (lang_expand_expr_stmt): Initialize.
447 (stmts_are_full_exprs_p): Define.
448 (current_function_name_declared): Likewise.
450 (lang_expand_stmt): Likewise.
451 (set_current_function_name_declared): Likewise.
452 (anon_aggr_type_p): Likewise.
454 * c-semantics.c: New file.
455 (expand_cond): Moved from cp/semantics.c.
456 (genrtl_do_pushlevel): Likewise.
457 (genrtl_clear_out_block): Likewise.
458 (genrtl_goto_stmt): Likewise.
459 (genrtl_expr_stmt): Likewise.
460 (genrtl_decl_stmt): Likewise.
461 (genrtl_if_stmt): Likewise.
462 (genrtl_while_stmt): Likewise.
463 (genrtl_do_stmt): Likewise.
464 (genrtl_return_stmt): Likewise.
465 (genrtl_for_stmt): Likewise.
466 (genrtl_break_stmt): Likewise.
467 (genrtl_continue_stmt): Likewise.
468 (genrtl_scope_stmt): Likewise.
469 (genrtl_switch_stmt): Likewise.
470 (genrtl_case_label): Likewise.
471 (genrtl_begin_compound_stmt): Likewise.
472 (genrtl_finish_compound_stmt): Likewise.
473 (genrtl_compound_stmt): Likewise.
474 (genrtl_asm_stmt): Likewise.
475 (genrtl_decl_cleanup): Likewise.
476 (make_rtl_for_local_static): Moved from cp/decl.c.
477 (emit_local_var): Likewise.
478 (expand_stmt): Define.
480 * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
481 (c_expand_return): Likewise.
482 (c_expand_start_case): Likewise.
484 2000-07-01 Richard Henderson <rth@cygnus.com>
486 * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
487 with the low 13 bits set.
488 (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
489 * config/ia64/ia64.md (movdi): Likewise. Expand a CONST with one
490 of the low 13 bits into a CONST plus an adddi3.
491 (load_symptr): Set RTX_UNCHANGING_P.
493 2000-06-30 Mark Mitchell <mark@codesourcery.com>
495 * Makefile.in (c-common.o): Don't depend on c-tree.h or c-lex.h.
496 * c-common.c (ridpointers): Declare.
497 * c-common.h (enum rid): Declare.
499 (ridpointers): Likewise.
500 * c-lex.c (ridpointers): Don't declare.
501 (init_lex): Initialize ridpointers.
502 * c-lex.h (enum rid): Don't declare.
504 (RID_FIRST_MODIFIER): Likewise.
505 (ridpointers): Likewise.
507 2000-06-30 J. David Anglin <dave@hiauly1.hia.nrc.ca>
509 * pa/som.h (ASM_WEAKEN_LABEL): Export weak data symbols so that they
512 2000-06-30 Martin von Loewis <loewis@informatik.hu-berlin.de>
514 * invoke.texi (-Wreturn-type): In C++, a missing return type is
517 2000-06-30 Catherine Moore <clm@cygnus.com>
519 * c-common.c (decl_attributes): Differentiate between
520 types and type decls for alignment.
522 2000-06-30 Nathan Sidwell <nathan@codesourcery.com>
524 * cpp.texi: Document #pragma GCC dependency
525 * cppfiles.c (open_include_file): Set date to unknown.
526 (_cpp_compare_file_date): New function.
527 (read_include_file): Set file date.
528 * cpphash.h (struct include_file): Add date member.
529 (_cpp_compare_file_date): Prototype.
530 * cpplib.c (parse_include): Add trail parameter. Adjust.
531 (do_include): Adjust parse_include call.
532 (do_import): Likewise.
533 (do_include_next): Likewise.
534 (gcc_pragmas): Add dependency pragma.
535 (do_pragma_dependancy): New pragma.
537 2000-06-29 Jason Merrill <jason@redhat.com>
539 * dwarf2out.c (output_loc_operands): Don't abort on codes that have
542 2000-06-29 Jim Wilson <wilson@cygnus.com>
544 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Return NO_REGS for
545 a volatile mem and FR_REGS.
547 2000-06-29 Mark Mitchell <mark@codesourcery.com>
549 * c-common.c: Include c-common.h, not c-lex.h or c-tree.h.
550 * c-common.h (flag_const_strings): Declare.
551 (warn_format): Likewise.
552 (flag_traditional): Likewise.
553 (flag_isoc99): Likewise.
554 (warn_parentheses): Likewise.
555 (warn_conversion): Likewise.
556 (C_TYPE_OBJECT_P): Likewise.
557 (C_TYPE_INCOMPLETE_P): Likewise.
558 (C_TYPE_FUNCTION_P): Likewise.
559 (C_TYPE_OBJECT_OR_INCOMPLETE_P): Likewise.
560 (C_EXP_ORIGINAL_CODE): Likewise.
561 (build_unary_op): Likewise.
562 (build_binary_op): Likewise.
563 (lvalue_p): Likewise.
564 (default_conversion): Likewise.
565 (common_type): Likewise.
566 * c-tree.h (C_TYPE_OBJECT_P): Remove.
567 (C_TYPE_INCOMPLETE_P): Likewise.
568 (C_TYPE_FUNCTION_P): Likewise.
569 (C_TYPE_OBJECT_OR_INCOMPLETE_P): Likewise.
570 (C_EXP_ORIGINAL_CODE): Likewise.
571 (common_type): Likewise.
572 (default_conversion): Likewise.
573 (build_binary_op): Likewise.
574 (build_unary_op): Likewise.
575 (lvalue_p): Likewise.
576 (flag_const_strings): Likewise.
577 (warn_format): Likewise.
578 (warn_conversion): Likewise.
579 (flag_traditional): Likewise.
580 (flag_isoc99): Likewise.
581 (warn_parentheses): Likewise.
583 2000-06-29 James E. Wilson <wilson@cygnus.com>
585 * config/ia64/linux.h (LINK_SPEC): Change so.1 to so.2.
587 * config/ia64/ia64.h (MODES_TIEABLE_P): Only tie if mode class is the
588 same. Only tie XFmode with XFmode.
590 2000-06-29 Zack Weinberg <zack@wolery.cumb.org>
592 * c-decl.c, timevar.c, tlink.c: Include intl.h.
593 * Makefile.in: Update deps.
595 2000-06-29 Andrew Haley <aph@cygnus.com>
597 * toplev.c (main): On an IA-64, make flag_unwind_tables defauit
600 2000-06-29 Andrew Haley <aph@cygnus.com>
602 * config/ia64/linux.h (JMP_BUF_SIZE): Size is in Pmode units, not
603 bytes: remove the multiply by 8.
605 2000-06-29 Philipp Thomas <pthomas@suse.de>
607 * rtl.c : Revert NLS changes.
608 * gcc.c : Fix bug in display_help introced by my last changes.
610 Wed Jun 28 21:09:33 2000 Raja R Harinath <harinath@cs.umn.edu>
612 * dbxout.c (dbxout_symbol, case RESULT_DECL, VAR_DECL): Use
613 DECL_CONTEXT, not DECL_FIELD_CONTEXT.
615 2000-06-29 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
617 * flow.c (flow_depth_first_order_compute): Fix algorithm.
619 2000-06-28 Philipp Thomas <pthomas@suse.de>
621 * c-decl.c : Mark strings for translation.
622 (parmlist_tags_warning): Use distinct messages instead
623 of conditional expressions.
624 * diagnostic.c (v_message_with_decl): Mark string for translation.
625 * gcc.c: Mark messages for translation.
626 (display_help): Combine messages into one string where necessary.
627 * mips-tfile: Add intl.h. Mark messages for translation.
628 * rtl.c (fatal_with_file_and_line): Modify function for NLS. Mark
629 messages for translation.
630 * timevar.c: Mark messages for translation.
632 * toplev.c: Likewise.
634 Wed Jun 28 15:39:26 2000 Donn Terry (donnte@microsoft.com)
636 * i386-interix.h (STRIP_NAME_ENCODING): Declare _new_name properly.
638 * alpha/alpha-interix.h: Delete redundant -Asystem(interix),
639 use -isystem instead of -idirafter.
640 * i386/i386-interix.h: Likewise.
642 2000-06-28 Jason Merrill <jason@redhat.com>
644 * dwarf2out.c (output_loc_operands): Don't support >1 byte output
645 unless DWARF2_DEBUGGING_INFO is defined.
646 (ASM_OUTPUT_DWARF_*): Wrap normal output defs with #ifndefs.
648 2000-06-28 Richard Henderson <rth@cygnus.com>
650 * config/alpha/alpha.c (summarize_insn): Ignore SCRATCH.
652 2000-06-28 Jakub Jelinek <jakub@redhat.com>
654 * cpplex.c (output_line_command): Output correct #line if a header
655 is including itself and is not protected against multiple inclusion.
657 2000-06-28 Zack Weinberg <zack@wolery.cumb.org>
659 * cppfiles.c (open_include_file): If open(2) returns EMFILE or
660 ENFILE, close all cached file descriptors and try again.
661 (_cpp_execute_include): Keep a count of the number of times
662 each header is included.
663 (close_cached_fd): New function.
664 * cpphash.h (struct include_file): Rename before to
665 include_count; all users updated. Make include_count and sysp
667 * cppinit.c (cpp_finish): If -H, report headers that could use
669 (report_missing_guard): New function.
671 Wed Jun 28 14:46:58 MET DST 2000 Jan Hubicka <jh@suse.cz>
673 * i386.md (prologue_set_got): Set length_immediate field.
674 (testqi_ccno_1): Add missing '@' character.
676 2000-06-27 Jason Merrill <jason@redhat.com>
678 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Use
681 2000-06-27 Andrew Macleod <amacleod@cygnus.com>
683 * dwarf2out.c (ASM_OUTPUT_DWARF_DATA2): Provide default when no
684 unsigned macros available.
686 2000-06-27 Richard Henderson <rth@cygnus.com>
688 * config/ia64/ia64.c (emit_insn_group_barriers): Special case
689 epilogue_deallocate_stack.
691 * config/ia64/ia64.c (ia64_print_operand) [case D]: Emit
692 completers for UNORDERED and ORDERED as well.
693 * config/ia64/ia64.md (bunordered, bordered): New.
694 (sunordered, sordered): New.
696 Tue Jun 27 12:14:12 MET DST 2000 Jan Hubicka <jh@suse.cz>
698 * genattrtab.c (write_attr_value): Do not abort for CONST_INT operands.
699 * i386.c (ix86_attr_length_default): Kill.
700 (ix86_attr_length_immediate_default, ix86_attr_length_address_default):
702 * i386-protos.h (ix86_attr_length_default): Kill
703 (ix86_attr_length_immediate_default, ix86_attr_length_address_default):
705 * i386.md (attribute type): Add "test".
706 (attribute length_prefix): Kill.
707 (attribute length_opcode): Kill.
708 (attribute i387, mode, length_immediate, length_address, prefix_data16,
709 prefix_rep, prefix_0f, modrm): New.
710 (attribute length): Compute using the new attributes.
711 (attribute pent_prefix): New.
712 (attribute pent_pair): Compute using pent_prefix.
713 (all insn patterns): Set mode,modrm and immediate_length attributes where
715 (cmpsi patterns): Compute sizes propertly for test instruction.
716 (movsi, movhi patterns): Compute sizes propertly for eax shortcuts.
717 (movstricthi_xor, movstrictqi_xor): New patterns.
718 (andsi/andhi): Use splitters to generate xor instructions.
719 (xorqi_ext_1): New pattern.
720 (movstricthi->movstricthi_xor peep2): New.
722 Tue Jun 27 12:03:03 MET DST 2000 Jan Hubicka <jh@suse.cz>
724 * i386.md (addqi_low_1): Remove.
726 2000-06-27 Philipp Thomas <pthomas@suse.de>
728 * 1750a.h: Mark help strings for options/switches for translation.
733 * riscix.h: Likewise.
735 * clipper.h: Likewise.
736 * convex.h: Likewise.
742 * cygwin.h: Likewise.
746 * osf1elf.h: Likewise.
747 * osfrose.h: Likewise.
751 * paragon.h: Likewise.
757 * mn10300.h: Likewise.
765 * rs6000.h: Likewise.
768 * linux64.h: Likewise.
769 * sp64-elf.h: Likewise.
773 * convex.h (TARGET_SWITCHES): Provide descriptions and mark them
775 * sp86x-aout.h: Remove bogus first definition of SUBTARGET_SWITCHES.
776 Properly document option and mark for translation.
777 * sp86x-elf.h: Likewise.
779 2000-06-27 Bernd Schmidt <bernds@cygnus.co.uk>
781 Add MMX and SSE registers to i386 machine description.
782 * i386-protos.h (ix86_constant_alignment, ix86_data_alignment,
783 ix86_local_alignment): Declare.
785 * i386.h (TARGET_MMX, TARGET_SSE): New.
786 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS,
787 REG_ALLOC_ORDER, HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
788 REG_CLASS_NAMES, REG_CLASS_CONTENTS,REG_CLASS_FROM_LETTER,
789 enum reg_class, HI_REGISTER_NAMES): Added MMX/SSE registers.
790 (FIRST_SSE_REG, LAST_SSE_REG, SSE_REGNO_P): New.
791 (FIRST_MMX_REG, LAST_MMX_REG, MMX_REGNO_P, MMX_REG_P): New macros.
792 (RETURN_IN_MEMORY): Handle MMX/SSE.
793 (REG_PARM_STACK_SPACE): Added so the first three TImode parameters
794 also get stack space.
795 (MUST_PASS_IN_STACK): Added TImode to the default definition.
796 (CUMULATIVE_ARGS): Added sse_nregs, sse_regno and sse_words.
797 (MMX_REGISTER_NAMES): New.
798 (ALIGN_MODE_128): New macro.
799 (CONSTANT_ALIGNMENT): Code moved out-of-line; just call the function.
800 (DATA_ALIGNMENT): Likewise.
801 (LOCAL_ALIGNMENT): Likewise.
802 (CONDITIONAL_REGISTER_USAGE): Make MMX/SSE regs fixed if not
803 TARGET_MMX/TARGET_SSE.
804 (VALID_SSE_REG_MODE, VALID_MMX_REG_MODE): New macros.
805 (REG_CLASS_FROM_LETTER): 'y' for MMX regs.
806 (SECONDARY_MEMORY_NEEDED): Be conservative about copying between
807 SSE/MMX regs and something else.
808 (CLASS_MAX_NREGS): 1 for SSE and MMX regs.
809 (REGISTER_MOVE_COST): 10 if trying to move between MMX and SSE regs,
810 3 if moving between MMX regs and something else.
812 * i386.c (reg_class): Add SSE_REGS, MMX_REGS.
813 (regclass_map): Add MMX/SSE registers.
814 (print_operand): Add code to print XMMWORD as appropriate.
815 (ix86_split_movdi): Abort for MMX regs.
816 (init_cumulative_args): Also allow SSE_REGS
817 (function_arg_advance, function_arg): Likewise
818 (print_reg): Support 'm'. Add case for TImode.
819 (override_options): TARGET_SSE implies TARGET_MMX.
820 (ix86_constant_alignment, ix86_data_alignment, ix86_local_alignment):
823 * config/i386/unix.h (VALUE_REGNO): VECTOR_MODE values go to
825 * config/i386/ptx4-i.h (RETURN_IN_MEMORY): Return MMX values in
827 * config/i386/sysv4.h (RETURN_IN_MEMORY): Likewise.
828 * config/i386/i386elf.h (RETURN_IN_MEMORY): Likewise.
830 2000-06-26 Geoff Keating <geoffk@cygnus.com>
832 * ssa.c (struct rename_set_data): Change the name of field
833 'set_dest' to 'old_reg'. Add comments.
834 (struct rename_context): Change the name of 'set_data' to
835 'new_renames'. Add new field 'done_renames'.
836 (create_delayed_rename): New function.
837 (apply_delayed_renames): New function.
838 (rename_insn_1): Use the new functions. Handle CLOBBERS. Handle
839 SUBREGs and similar by emitting a move.
840 (new_registers_for_updates): Delete, functionality moved to
841 apply_delayed_renames.
842 (rename_block): Handle moves emitted by rename_insn_1 by putting
843 them into a SEQUENCE with the original insn. Add sanity checks
845 (rename_equivalent_regs_in_insn): Don't handle SUBREGs specially.
846 (rename_equivalent_regs): Expand SEQUENCEs out to individual insns.
848 2000-06-26 Andrew Macleod <amacleod@cygnus.com>
849 Jason Merrill <jason@redhat.com>
851 * dwarf2.h (enum dwarf_call_frame_info): Add
852 DW_CFA_def_cfa_expression.
853 * dwarf2out.c (union dw_cfi_oprnd_struct): Add a pointer to a
854 dw_loc_descr_struct entry.
855 (struct cfa_loc): New structure to track a CFA location.
856 (lookup_cfa): Take a cfa_loc parameter instead of a reg and an offset.
857 (lookup_cfa_1): Take a cfa_loc parameter instead of a reg and an
858 offset, plus handle DW_CFA_def_cfa_expression.
859 (def_cfa_1): Use to be dwarf2out_def_cfa, only now it uses a
861 (dwarf2out_def_cfa): Entry point maintained for compatability.
862 (dwarf_cfi_name): Add DW_CFA_def_cfa_expression.
863 (cfa_reg, cfa_offset): Replace with cfa_loc record 'cfa'.
864 (cfa_store_reg, cfa_store_offset): Replace with cfa_loc 'cfa_store'.
865 (initial_return_save, dwarf2out_stack_adjust): Use cfa.reg, not
867 (dwarf2out_frame_debug_expr): Use new cfa_loc records. Recognize rtl
868 sequences for the new DW_CFA_def_cfa_expression record.
869 (dwarf2out_frame_debug): Use new variables/fields.A
870 (output_cfi): Handle DW_CFA_def_cfa_expression.
871 (output_cfa_loc): New function to generate a CFI record for
872 DW_CFA_def_cfa_expression.
873 (get_cfa_from_loc_descr): New function to get a cfa_loc record from
874 a dw_loc_descr sequeunce.
875 (build_loc_descr): Build a dw_loc_descr from a cfa_loc record.
876 (dwarf_stack_op_name, new_loc_descr, add_loc_descr, size_of_loc_descr,
877 size_of_locs, output_loc_operands, output_loc_sequence): Move into
879 * frame.h (frame_state): Add base_offset and indirect fields.
880 * frame-dwarf2.c (decode_stack_op): New function to interpret a
881 dw_loc_descr operation.
882 (execute_cfa_insn): Add support for DW_CFA_def_cfa_expression.
883 (struct frame_state): Add base offset and indirect fields.
884 * libgcc2.c (next_stack_level): Support indirect loading for CFA.
886 2000-06-26 Joseph S. Myers <jsm28@cam.ac.uk>
888 * c-decl.c (grokdeclarator): Don't warn about `long long' in C99.
889 Make warnings about implicit int be pedwarns in C99. Don't warn
890 about duplicate type qualifiers in C99.
891 (start_function): Make warning about implict int return type be a
893 * c-lex.c (yylex): Don't warn about `long long' in C99.
894 * c-typeck.c (c_expand_return): In C99, always pedwarn about
895 `return' with no value in function returning non-void.
897 2000-06-26 Richard Henderson <rth@cygnus.com>
899 * c-typeck.c (pedwarn_c99): New.
900 * diagnostic.c (verror, vwarning, vpedwarn): Export.
901 * toplev.h: Prototype them.
903 2000-06-26 J. David Anglin <dave@hiauly1.hia.nrc.ca>
905 * c-typeck.c (digest_init): Return error_mark_node node when
906 TREE_TYPE (init) == error_mark_node.
908 2000-06-26 Philipp Thomas <pthomas@suse.de>
910 * aclocal.m4 (AM_WITH_NLS): Don't set MSGFMT or GMSGFMT to no,
911 test for msgfmt without path instead.
912 * configure: Rebuilt.
914 2000-06-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
916 * gengenrtl.c (special_rtx): Fix typo in comment.
918 2000-06-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
920 * mklibgcc.in (LIB2FUNCS): Add missing space.
922 2000-06-24 Bernd Schmidt <bernds@cygnus.co.uk>
924 * tree.h (enum tree_index): Add vector type nodes.
925 Add accessor macros for them.
926 (TYPE_REPRESENATION_TYPE): New macro.
927 * tree.c (build_common_tree_nodes_2): Build these nodes.
928 (finish_vector_type): New function.
929 * c-common.c (type_for_mode): Handle vector modes.
930 * tm.texi (VECTOR_MODE_SUPPORTED_P): Document.
932 * dbxout.c (dbxout_type): Handle VECTOR_TYPEs.
933 * dwarf.h (enum dwarf_fundamental_type): Add 128 bit integers.
934 * dwarf2out.c (lookup_type_die): Handle VECTOR_TYPEs.
935 (gen_type_die): Likewise.
936 * dwarfout.c (dwarf_fund_type_name): Handle 128 bit integers.
937 (fundamental_type_code): Likewise.
938 (type_is_fundamental): VECTOR_TYPEs aren't.
939 (output_type): Handle VECTOR_TYPEs.
941 2000-06-25 Kazu Hirata <kazu@hxi.com>
943 * config/arm.c: Fix a comment typo.
944 * config/arm.h: Likewise.
946 2000-06-25 Philipp Thomas <pthomas@suse.de>
948 * aclocal.m4 (AM_WITH_NLS): Set create_catalogs=no if no catalog
950 AM_GNU_GETTEXT: Don't set CATALOGS if create_catalogs=no.
951 * configure: Rebuilt.
953 2000-06-25 John David Anglin <dave.anglin@nrc.ca>
955 * config/vax/vax.h (TARGET_SWITCHES): Provide descriptions.
957 2000-06-25 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
959 * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2FUNCS when generating
962 2000-06-24 Marc Espie <espie@cvs.openbsd.org>
964 * collect2.c (resolve_lib_name): Move '/' check out of loop.
966 2000-06-24 Dirk Duellmann <Dirk.Duellmann@cern.ch>
968 * ginclude/stddef.h (NULL): define for non-gnu C++ parsers as 0.
970 2000-06-24 Jakub Jelinek <jakub@redhat.com>
972 * stmt.c (expand_decl_cleanup): Emit a dummy insn after
973 last_unconditional_cleanup.
975 2000-06-24 Bernd Schmidt <bernds@cygnus.co.uk>
977 * tree.def (VECTOR_TYPE): New node type.
978 * tree.h: Adjust some comments to reflect addition of vector types.
979 (TYPE_VECTOR_SUBPARTS): New macro.
980 * stor-layout.c (layout_type): Handle VECTOR_TYPE.
981 * c-convert.c (convert): Likewise.
982 * convert.c (convert_to_integer): Handle vector modes.
983 (convert_to_vector): New function.
984 * convert.h (convert_to_vector): Declare.
985 * expr.c (convert_move): Handle vector modes.
986 * expmed.c (extract_bit_field): Don't abort for vector modes.
988 2000-06-24 Marek Michalkiewicz <marekm@linux.org.pl>
990 * config/avr/avr-protos.h (avr_hard_regno_mode_ok): New prototype.
991 * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr):
992 New functions, common code moved from function_{prologue,epilogue}
993 and extended to support the -mtiny-stack option.
994 (function_prologue, function_epilogue): Use them.
995 Use lo8/hi8 consistently for asm output readability.
996 (avr_hard_regno_mode_ok): New function.
997 * config/avr/avr.h (TARGET_SWITCHES): Fix typo. Add -mtiny-stack.
998 (UNITS_PER_WORD): Define as 4 (not 1) when compiling libgcc2.c.
999 (HARD_REGNO_MODE_OK): Call the avr_hard_regno_mode_ok function.
1000 * config/avr/avr.md (*mov_sp_r): Add support for -mtiny-stack.
1001 Write SPH before SPL.
1002 (*movqi): No need to disable interrupts for just one "out"
1003 in alternative 5. Change length attribute from 4 to 1.
1004 * config/avr/libgcc.S (__prologue_saves__, __epilogue_restores__):
1005 Write SPH before SPL.
1007 2000-06-24 Bernd Schmidt <bernds@cygnus.co.uk>
1009 * rtl.texi (Vector Operations): New node.
1010 (Arithmetic): Add ss_plus, us_plus, ss_minus, us_minus.
1011 (Conversions): Add ss_truncate, us_truncate.
1012 * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_REORDER,
1013 VEC_CONST, VEC_DUPLICATE, SS_PLUS, SS_MINUS, SS_TRUNCATE,
1014 US_TRUNCATE): New rtx codes.
1015 * machmode.def: Add vector modes.
1016 * machmode.h (enum mode_class): Add MODE_VECTOR_INT and
1018 (INTEGER_MODE_P): Check for MODE_VECTOR_INT.
1019 (FLOAT_MODE_P): Check for MODE_VECTOR_FLOAT.
1020 (VECTOR_MODE_P): New.
1022 2000-06-24 Nathan Sidwell <nathan@codesourcery.com>
1024 * cpp.texi: Clarify #pragma GCC namespace.
1026 2000-06-24 Philipp Thomas <pthomas@suse.de>
1028 * aclocal.m4(AM_GNU_GETTEXT): If LINGUAS isn't set, build
1029 all catalogs specified in ALL_LINGUAS.
1030 * configure: Rebuilt.
1032 2000-06-23 Jakub Jelinek <jakub@redhat.com>
1034 * config/sparc/sparc.md (reload_outdi+1): Handle
1035 HOST_BITS_PER_WIDE_INT == 64 case correctly.
1036 (adddi3_insn_sp32+1, adddi3_insn_sp32+2, andsi3+2): Likewise.
1038 2000-06-23 Geoffrey Keating <geoffk@cygnus.com>
1040 * alias.c (fixed_scalar_and_varying_struct_p): Don't examine
1041 struct vs. scalar-ness when -fno-strict-aliasing.
1043 2000-06-23 Nathan Sidwell <nathan@codesourcery.com>
1045 * cpplib.c (struct pragma_entry): New structure.
1046 (pragma_dispatch): Pragma dispatcher.
1047 (top_pragmas, gcc_pragmas): New static variables.
1048 (do_pragma): Use pragma_dispatch.
1049 (do_pragma_gcc): New pragma handler.
1052 2000-06-23 Jakub Jelinek <jakub@redhat.com>
1054 * calls.c (compute_argument_addresses): Force stack slots into
1056 * expr.c (emit_push_insn): Force pushes into alias set 0.
1058 2000-06-23 Richard Henderson <rth@cygnus.com>
1060 * config/ia64/ia64.md (pred_rel_mutex): Only take one register.
1061 * config/ia64/ia64.c (emit_predicate_relation_info): Adjust to match.
1063 2000-06-22 Jason Merrill <jason@redhat.com>
1065 * toplev.c (compile_file): Always call timevar_print.
1066 * Makefile.in (calls.o): Depend on TIMEVAR_H.
1068 2000-06-22 Nathan Sidwell <nathan@codesourcery.com>
1070 * varasm.c (constant_descriptor): Make contents unsigned char.
1071 (mark_const_hash_entry): Adjust.
1072 (const_hash): Just hash the code of unknown nodes.
1073 (compare_constant_1): Adjust for unsigned char.
1074 Use language specific expander on unknown nodes.
1075 (record_constant_1): Likewise.
1077 2000-06-21 Zack Weinberg <zack@wolery.cumb.org>
1079 * cppfiles.c (cpp_make_system_header): New function.
1080 * cpplib.h: Prototype it.
1081 * cpplib.c (do_line, do_pragma_system_header): Use it.
1082 * fix-header.c (read_scan_file): Use it.
1084 * fix-header.c (check_macro_names): Cast second arg of
1085 cpp_defined to const unsigned char *.
1086 (read_scan_file): Make getchar_call const unsigned char.
1088 2000-06-21 Zack Weinberg <zack@wolery.cumb.org>
1090 * cppfiles.c: Include splay-tree.h, not hashtab.h.
1091 (redundant_include_p, make_IHASH, hash_IHASH, eq_IHASH): Delete.
1092 (destroy_include_file_node): New.
1093 (_cpp_init_include_hash): Rename _cpp_init_include_table.
1094 Create a splay tree, not a hash table.
1095 (open_include_file): Look up the path in the include table,
1096 do the multiple include optimization here, etc.
1097 (cpp_included): Walk the path.
1098 (find_include_file): Just walk the path calling
1099 open_include_file, or call it directly for an absolute path.
1100 (_cpp_fake_ihash): Rename _cpp_fake_include and update for new
1102 (read_include_file): Update for new scheme. Don't close the
1103 file unless reading fails.
1104 (_cpp_execute_include, cpp_read_file): Tweak for new scheme.
1106 * cpphash.h (struct ihash, NEVER_REINCLUDE): Delete.
1107 (struct include_file): New.
1108 (NEVER_REREAD, DO_NOT_REREAD, CPP_IN_SYSTEM_HEADER): New
1110 (CPP_PEDANTIC, CPP_WTRADITIONAL): Update.
1113 * cppinit.c: Include splay-tree.h.
1114 (cpp_reader_init, cpp_cleanup): Update.
1116 * cpplib.h (struct cpp_buffer): Change ihash field to
1117 'struct include_file *inc'. Remove system_header_p.
1118 (struct cpp_reader): Change all_include_files to a
1119 struct splay_tree_s *.
1121 * cpplex.c: Update all references to cpp_buffer->ihash and/or
1122 cpp_buffer->system_header_p.
1123 (cpp_pop_buffer): Close file here, only if DO_NOT_REREAD.
1125 * Makefile.in (SPLAY_TREE_H): New macro.
1126 (cppfiles.o, cppinit.o): Update dependencies.
1128 Wed Jun 21 11:05:48 2000 Martin Buchholz <martin@xemacs.org>
1130 * invoke.texi (g++): "g++" is not a script anymore.
1132 2000-06-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1134 * function.c (round_down): Delete obsolete prototype.
1136 * pa.h (CPP_SPEC): Add whitespace after -D__STDC_EXT__.
1138 2000-06-20 Zack Weinberg <zack@wolery.cumb.org>
1140 * configure.in: Use 'test a = b' not 'test a == b'.
1143 * Makefile.in (fix-header): Link with $(LIBS) not $(HOST_LIBS).
1145 * Makefile.in: Remove all references to HOST_INTLLIBS.
1147 * cpplex.c (parse_name): Don't warn about $ in identifiers if
1150 2000-06-20 Philipp Thomas <pthomas@suse.de>
1152 * config/pa/pa.h(TARGET_SWITCHES): Require binutils 2.10 or later
1155 Mon Jun 19 23:26:40 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1157 * Take REG_INC notes into account.
1159 2000-06-19 Zack Weinberg <zack@wolery.cumb.org>
1161 * c-parse.in (undeclared_variable_notice): Moved to c-typeck.c.
1162 (primary: IDENTIFIER): Just call build_external_ref.
1163 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
1165 * c-lex.c (lastiddecl): Remove.
1166 (yylex): Replace all instances of lastiddecl with local
1169 * c-typeck.c (build_external_ref): New function. Treat decls
1170 with C_DECL_ANTICIPATED mostly the same as nonexistent decls.
1171 Look up the decl from the id here. Call lookup_objc_ivar.
1172 * c-lang.c (lookup_objc_ivar): Stub.
1173 * objc/objc-act.c (lookup_objc_ivar): New function.
1175 * c-tree.h: Prototype lookup_objc_ivar and build_external_ref.
1176 * c-lex.h: Don't declare lastiddecl.
1178 2000-06-19 Benjamin Chelf <chelf@codesourcery.com>
1180 * c-common.h (IF_COND): Added documentation.
1181 (THEN_CLAUSE): Likewise.
1182 (ELSE_CLAUSE): Likewise.
1183 (WHILE_COND): Likewise.
1184 (WHILE_BODY): Likewise.
1185 (DO_COND): Likewise.
1186 (DO_BODY): Likewise.
1187 (RETURN_EXPR): Likewise.
1188 (EXPR_STMT_EXPR): Likewise.
1189 (FOR_INIT_STMT): Likewise.
1190 (FOR_COND): Likewise.
1191 (FOR_EXPR): Likewise.
1192 (FOR_BODY): Likewise.
1193 (SWITCH_COND): Likewise.
1194 (SWITCH_BODY): Likewise.
1195 (CASE_LOW): Likewise.
1196 (CASE_HIGH): Likewise.
1197 (GOTO_DESTINATION): Likewise.
1198 (COMPOUND_BODY): Likewise.
1199 (ASM_CV_QUAL): Likewise.
1200 (ASM_STRING): Likewise.
1201 (ASM_OUTPUTS): Likewise.
1202 (ASM_INPUTS): Likewise.
1203 (ASM_CLOBBERS): Likewise.
1204 (DECL_STMT_DECL): Likewise.
1205 (STMT_EXPR_STMT): Likewise.
1206 (LABEL_STMT_LABEL): Likewise.
1208 * c-common.def: Added documenetion for SRCLOC, EXPR_STMT,
1209 COMPOUND_STMT, DECL_STMT, IF_STMT, FOR_STMT, WHILE_STMT, DO_STMT,
1210 RETURN_STMT, BREAK_STMT, CONTINUE_STMT, SWITCH_STMT, GOTO_STMT,
1211 LABEL_STMT, ASM_STMT, SCOPE_STMT, CASE_LABEL, STMT_EXPR.
1213 2000-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1215 * configure.in (--enable-checking): Update --help doc to reflect
1216 new defaults. Ensure $ac_save_IFS is set before $IFS is changed.
1218 Sun Jun 18 21:42:15 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1220 * gcse.c (insert_insn_end_bb): Always put after NOTE_INSN_BASIC_BLOCK.
1222 * function.c (put_var_into_stack): Don't reference DECL_ fields
1223 if input is a SAVE_EXPR.
1224 Use set_mem_attributes in COMPLEX case.
1226 2000-06-18 Richard Henderson <rth@cygnus.com>
1228 * config/ia64/ia64-protos.h (process_for_unwind_directive): Declare.
1229 (ia64_file_start): Declare.
1230 * config/ia64/ia64.h (ADDL_REGNO_P): Don't compare unsigned against 0.
1231 (GR_REGNO_P): Likewise.
1232 * config/ia64/ia64.c: Many prototypes.
1233 (ia64_reg_numbers): Constify.
1234 (ia64_input_reg_names, ia64_local_reg_names): Likewise.
1235 (ia64_section_threshold): Make unsigned.
1236 (ia64_print_operand): Constify.
1237 (fix_range): Constify.
1238 (ia64_init_builtins): Don't compare signed vs unsigned.
1239 (ia64_expand_builtin): Likewise.
1241 * config/ia64/ia64.h (EXTRA_CONSTRAINT): New.
1242 (CONSTRAINT_OK_FOR_Q): New.
1243 * config/ia64/ia64.md (movdi_internal): Use Q for fp<->mem.
1244 (movsf_internal, movdf_internal): Likewise.
1245 (cmovdi_internal): Rewrite so that constraints and predicates match;
1247 (cmovsi_internal): Likewise.
1249 * config/ia64/ia64.h (ASM_SPEC): Add -x for gas.
1250 (ASM_FILE_START): New.
1251 * config/ia64/ia64.c (ia64_file_start): New.
1252 (rtx_needs_barrier): Handle pred.rel.mutex.
1253 (emit_predicate_relation_info): New.
1254 * config/ia64/ia64.md (pred_rel_mutex): New.
1255 * config/ia64/linux.h (ASM_SPEC): Define.
1256 * config/ia64/sysv4.h (ASM_FILE_START): Define.
1258 * config/ia64/ia64.c (ia64_encode_section_info): Fix thinko
1259 filtering global register variables.
1261 2000-06-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1263 * c-common.c (add_c_tree_codes): Fix definition for traditional C.
1265 2000-06-17 Michael Meissner <meissner@redhat.com>
1267 * gcc.c (do_spec_1, '%v3' case): Do not abort if patch level is
1268 not present and there is a field after a '-'.
1270 2000-06-17 Bruce Korb <bkorb@gnu.org>
1272 * fixinc/check.tpl: finish the implementation of multiple tests
1274 * fixinc/inclhack.def(ctrl_quotes_def): add a second test
1275 (io_quotes_def): add a second test
1276 (various): reorder `files' so that "limits.h" is never first
1277 * fixinc/tests/base/*: update the testing output
1279 Sat Jun 17 10:33:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1281 * gcc.texi: Remove reference to stupid.c.
1283 2000-06-16 Benjamin Chelf <chelf@codesourcery.com>
1285 * c-common.c (c_tree_code_type): New array.
1286 (c_tree_code_length): Likewise.
1287 (c_tree_code_name): Likewise.
1288 (add_c_tree_codes): New function.
1290 * c-common.h (add_c_tree_codes): Declare.
1291 (enum c_tree_code): New enum.
1293 * c-lex.c (init_parse): Added call to add_c_tree_codes.
1295 2000-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1297 * fixinc/inclhack.def (ctrl_quotes_def, io_quotes_def): Modify
1298 select pattern to also match macro defs with only one argument.
1300 Thu Jun 15 18:56:12 2000 Jeffrey A Law (law@cygnus.com)
1302 * i386.md: Create new [right,left] rotate and right shift
1303 patterns to optimize shift by 1 bit for certain ia32 processors.
1304 Update patterns which perform left shifts to optimize shift by
1305 1 bit for certain ia32 processors.
1306 * i386.c (const_int_1_operand): New predicate.
1307 * i386.h (PREDICATE_CODES): Handle const_int_1_operand.
1308 * i386-protos.h (const_int_1_operand): Prototype.
1310 Wed Jun 14 23:46:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1312 * mips.c (machine_dependent_reorg): Fix braces for nested if.
1314 2000-06-14 Geoff Keating <geoffk@cygnus.com>
1316 * rs6000.c (toc_hash_eq): Use CODE_LABEL_NUMBER to compare
1319 2000-06-14 Richard Henderson <rth@cygnus.com>
1321 * conflict.c (conflict_graph_compute): Don't look for REG_INC.
1323 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Don't emit
1326 * print-rtl.c (print_rtx): Emit space before mem alias set.
1328 2000-06-14 David Edelsohn <edelsohn@gnu.org>
1330 * rs6000.c (expand_block_move): Fix typo in earlier change.
1331 (print_operand): Remove unused variables neg and op.
1332 (toc_hash_mark_entry): Fix prototype.
1334 2000-06-14 Benjamin Chelf <chelf@codesourcery.com>
1336 * c-common.h (IF_COND): Moved here from cp/cp-tree.h.
1337 (THEN_CLAUSE): Likewise.
1338 (ELSE_CLAUSE): Likewise.
1339 (WHILE_COND): Likewise.
1340 (WHILE_BODY): Likewise.
1341 (DO_COND): Likewise.
1342 (DO_BODY): Likewise.
1343 (RETURN_EXPR): Likewise.
1344 (EXPR_STMT_EXPR): Likewise.
1345 (FOR_INIT_STMT): Likewise.
1346 (FOR_COND): Likewise.
1347 (FOR_EXPR): Likewise.
1348 (FOR_BODY): Likewise.
1349 (SWITCH_COND): Likewise.
1350 (SWITCH_BODY): Likewise.
1351 (CASE_LOW): Likewise.
1352 (CASE_HIGH): Likewise.
1353 (GOTO_DESTINATION): Likewise.
1354 (COMPOUND_BODY): Likewise.
1355 (ASM_CV_QUAL): Likewise.
1356 (ASM_STRING): Likewise.
1357 (ASM_OUTPUTS): Likewise.
1358 (ASM_INPUTS): Likewise.
1359 (ASM_CLOBBERS): Likewise.
1360 (DECL_STMT_DECL): Likewise.
1361 (STMT_EXPR_STMT): Likewise.
1362 (LABEL_STMT_LABEL): Likewise.
1363 (SCOPE_BEGIN_P): Likewise.
1364 (SCOPE_END_P): Likewise.
1365 (SCOPE_STMT_BLOCK): Likewise.
1366 (SCOPE_NULLIFIED_P): Likewise.
1367 (SCOPE_NO_CLEANUPS_P): Likewise.
1368 (SCOPE_PARTIAL_P): Likewise.
1369 (ASM_VOLATILE_P): Likewise.
1370 (STMT_LINENO): Likewise.
1371 (STMT_LINENO_FOR_FN_P): Likewise.
1373 * c-common.def: New file. Added SRCLOC, SIZEOF_EXPR, ARROW_EXPR,
1374 ALIGNOF_EXPR, EXPR_STMT, COMPOUND_STMT, DECL_STMT, IF_STMT,
1375 FOR_STMT, WHILE_STMT, DO_STMT, RETURN_STMT, BREAK_STMT,
1376 CONTINUE_STMT, SWITCH_STMT, GOTO_STMT, LABEL_STMT, ASM_STMT,
1377 SCOPE_STMT, CASE_LABEL, STMT_EXPR.
1379 * gencheck.c (tree_codes[]): Added '#include "c-common.def"'.
1381 2000-06-14 David O'Brien <obrien@FreeBSD.org>
1383 * gcc.c (main): Quiet compiler warnings. argv is assumed to be
1384 writable in parts of the GCC code.
1386 * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Make printf
1387 specification match cast.
1389 Wed Jun 14 09:25:57 2000 Jeffrey A Law (law@cygnus.com)
1391 * configure.in: Revert AC_TYPE_GETGROUPS patch from June 13.
1392 * configure, config.in: Rebuilt.
1393 * sys-protos.h: Similarly.
1395 Wed Jun 14 03:39:58 EDT 2000 John Wehle (john@feith.com)
1397 * ifcvt.c (EDGE_COMPLEX): Move definition ...
1398 * basic-block.h (EDGE_COMPLEX): ... here.
1400 * loop.c (check_dbra_loop): Specify the register when
1401 generating REG_NONNEG notes and don't generate duplicates.
1403 2000-06-13 Jakub Jelinek <jakub@redhat.com>
1405 * tree.h (TYPE_USER_ALIGN, DECL_USER_ALIGN): Define.
1406 (struct tree_type, struct tree_decl): Add user_align member.
1407 * stor-layout.c (layout_decl): Set DECL_USER_ALIGN.
1408 (place_union_field): If BIGGEST_FIELD_ALIGNMENT is defined
1409 and DECL_USER_ALIGN 0, cap alignment to this value.
1410 (place_field): Likewise.
1411 (finalize_type_size): Set TYPE_USER_ALIGN.
1412 (layout_type): Likewise.
1413 (initialize_sizetypes): Likewise.
1414 * c-common.c (decl_attributes): Set TYPE_USER_ALIGN resp.
1415 DECL_USER_ALIGN to 1.
1416 * c-decl.c (duplicate_decls): Set DECL_USER_ALIGN.
1417 (xfer_tag): Set TYPE_USER_ALIGN.
1418 (finish_struct): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
1419 (finish_enum): Likewise.
1420 * stmt.c (expand_decl): Set DECL_USER_ALIGN.
1421 (expand_anon_union_decl): Likewise.
1422 * tree.c (make_node): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
1423 (build_index_type): Set TYPE_USER_ALIGN.
1424 (build_range_type): Likewise.
1425 (build_common_tree_nodes_2): Likewise.
1426 * tm.texi (BIGGEST_FIELD_ALIGNMENT): Document the changed meaning.
1428 2000-06-13 Andreas Jaeger <aj@suse.de>
1430 * configure.in: Use --enable-checking=misc,tree,gc by default if
1431 no --enable-checking option is given and for
1432 --enable-checking=yes.
1433 * configure: Rebuilt.
1435 2000-06-13 Richard Henderson <rth@cygnus.com>
1437 * libgcc2.c (ia64_throw_helper): Use __builtin_return_address.
1438 (__throw): Don't pass the address of a label.
1440 * config/ia64/ia64.c (ia64_compute_frame_size): Use
1441 current_function_is_leaf.
1442 (ia64_expand_prologue): Likewise. Modify return_address_pointer_rtx
1443 instead of reg_names[RETURN_ADDRESS_REGNUM].
1444 (ia64_init_machine_status): Reset return_address_pointer_rtx.
1445 * config/ia64/ia64.h (RETURN_ADDRESS_POINTER_REGNUM): Rename
1446 from RETURN_ADDRESS_REGNUM. Update all uses.
1447 (RETURN_ADDR_RTX): Use return_address_pointer_rtx; return
1448 zero instead of null on failure.
1449 (ELIMINABLE_REGS): Add ra->b0 elimination.
1450 (CAN_ELIMINATE): Update accordingly.
1451 (INITIAL_ELIMINATION_OFFSET): Likewise.
1452 (REGISTER_NAMES): Use an illegal assembler name for
1453 RETURN_ADDRESS_POINTER_REGNUM.
1455 2000-06-13 Richard Henderson <rth@cygnus.com>
1457 * config/ia64/ia64.h (enum reg_class): Remove FR_INT_REGS, FR_FP_REGS,
1458 GR_AND_FR_INT_REGS, GR_AND_FR_FP_REGS.
1459 (REG_CLASS_NAMES): Likewise.
1460 (REG_CLASS_CONTENTS): Likewise.
1461 (FR_FP_REGNO_P, FR_INT_REGNO_P): Remove.
1462 (HARD_REGNO_MODE_OK): Remove references to them.
1463 (REGNO_REG_CLASS): Likewise.
1464 (REG_CLASS_FROM_LETTER): Likewise.
1465 (CLASS_MAX_NREGS): Likewise.
1466 (REGISTER_MOVE_COST): Likewise.
1467 * config/ia64/ia64.c (ia64_secondary_reload_class): Likewise.
1468 * config/ia64/ia64.md (*): Replace "e" constraints with "f".
1469 (movqi_internal): Special case moves from zero.
1470 (movhi_internal, movsi_internal): Likewise.
1471 (movdi_internal): Likewise. Fill out "f" constraints.
1472 (movsf_internal): Fill out "r" constraints.
1473 (movdf_internal): Likewise.
1475 2000-06-13 Richard Henderson <rth@cygnus.com>
1477 * flow.c (insn_dead_p): Keep sets to PIC_OFFSET_TABLE_REGNUM
1478 alive before reload.
1480 * haifa-sched.c (struct deps): Add in_post_call_group_p.
1481 (add_dependence): Handle notes between SCHED_GROUP_P insns.
1482 (remove_dependence): Always define.
1483 (set_sched_group_p): New.
1484 (sched_analyze_2): Use it.
1485 (sched_analyze_insn): Don't special-case naked uses. Look for
1486 and extend in_post_call_group_p.
1487 (sched_analyze): Clear stale SCHED_GROUP_P. Set in_post_call_group_p.
1488 (init_deps): Clear in_post_call_group_p.
1490 2000-06-13 Richard Henderson <rth@cygnus.com>
1492 * combine.c (subst): Use CLASS_CANNOT_CHANGE_MODE and
1493 CLASS_CANNOT_CHANGE_MODE_P instead of CLASS_CANNOT_CHANGE_SIZE
1494 and hard-coded tests.
1495 (simplify_set): Likewise.
1496 (gen_lowpart_for_combine): Likewise.
1497 * emit-rtl.c (gen_lowpart_common): Likewise.
1498 * global.c (find_reg): Likewise.
1499 * local-alloc.c (find_free_reg): Likewise.
1500 * recog.c (register_operand): Likewise.
1501 * regclass.c (init_reg_sets_1): Likewise.
1502 (record_operand_costs, regclass): Likewise.
1503 * reload.c (push_reload): Likewise.
1504 * reload1.c (choose_reload_regs): Likewise.
1505 * flow.c (mark_used_regs): Conditionally set REG_CHANGES_MODE.
1506 * local-alloc.c (struct qty): Rename changes_size to changes_mode.
1507 Update all references.
1508 * regs.h (struct reg_info_def): Likewise.
1509 (REG_CHANGES_MODE): Rename from REG_CHANGES_SIZE.
1510 * tm.texi (CLASS_CANNOT_CHANGE_MODE): Document.
1511 (CLASS_CANNOT_CHANGE_MODE_P): Likewise.
1513 * config/alpha/alpha.h (CLASS_CANNOT_CHANGE_MODE): Rename.
1514 (CLASS_CANNOT_CHANGE_MODE_P): New.
1515 * config/mips/mips.h: Likewise.
1516 * config/pa/pa32-regs.h: Likewise.
1517 * config/pa/pa64-regs.h: Likewise.
1518 * config/rs6000/rs6000.h: Likewise.
1519 * config/sh/sh.h: Likewise.
1520 * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE): New.
1521 (CLASS_CANNOT_CHANGE_MODE_P): New.
1522 * config/avr/avr.h (CLASS_CANNOT_CHANGE_SIZE): Remove dead code.
1523 * config/d30v/d30v.h: Likewise.
1525 2000-06-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1527 * configure.in: Add AC_TYPE_GETGROUPS test.
1528 * sys-protos.h: Use GETGROUPS_T * for second arg of getgroups.
1529 * configure: Rebuilt.
1530 * config.in: Rebuilt.
1532 2000-06-13 Richard Henderson <rth@cygnus.com>
1534 * explow.c (set_mem_attributes): Do nothing for NULL type.
1536 Tue Jun 13 14:45:10 2000 Jeffrey A Law (law@cygnus.com)
1538 * config/m68k/openbsd.h (ASM_SPEC): pass down options to assembler
1541 2000-06-13 James E. Wilson <wilson@cygnus.com>
1543 * config/ia64/ia64.md (movxf_internal): Add missing "e" to ldf/stf.
1545 Tue Jun 13 14:05:35 2000 Jeffrey A Law (law@cygnus.com)
1547 * Makefile.in (gensupport.o): Remove bogus $(HOST_PREFIX) reference.
1549 2000-06-13 Philipp Thomas <pthomas@suse.de>
1551 * configure.in(ALL_LINGUAS): Changed en_UK to en_GB.
1552 * configure: Rebuilt.
1554 2000-06-07 David O'Brien <obrien@FreeBSD.org>
1556 * configure.in: Adjust FreeBSD bits to match changes to config.guess.
1557 We now default to ELF for the i386, and a.out is the special case.
1558 * configure: Rebuilt.
1560 Tue Jun 13 10:05:30 2000 Hans-Peter Nilsson <hp@axis.com>
1562 * final.c (final_scan_insn): Delete notes between cc0 setter and
1563 user when restarting from setter.
1565 2000-06-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1567 * vax.h (INDEX_TERM_P): Define evaluation order of &&'s in || and
1568 cast to squelch signed/unsigned warnings.
1570 2000-06-13 Zack Weinberg <zack@wolery.cumb.org>
1572 * cpplib.c (handle_directive): Print non-NUL-terminated string
1575 2000-06-12 Michael Meissner <meissner@redhat.com>
1577 * ifcvt.c (dead_or_predicable): Don't do conditional execution
1578 path if the machine needs extra support to do conditional
1581 Mon Jun 12 17:04:17 2000 Jeffrey A Law (law@cygnus.com)
1583 * print-rtl.c (print_rtx, case MEM): Use HOST_WIDE_INT_PRINT_DEC
1584 to print the alias set.
1585 * print-tree.c (print_node, DECL_* nodes and case 't'): Similarly.
1587 2000-06-12 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1589 * config/float-vax.h: Add GFLOAT defines.
1591 Mon Jun 12 9:44:00 2000 Mark Klein <mklein@dis.com>
1593 * configure.in: Update tm dependencies for MPE.
1594 * configure: Rebuilt.
1596 2000-06-12 H.J. Lu <hjl@gnu.org>
1598 * gengenrtl.c (obstack_alloc_rtx): Correct the allocated size.
1600 2000-06-12 David Edelsohn <edelsohn@gnu.org>
1602 * aix41.h (SUBTARGET_SWITCHES): Delete threads.
1603 (CPP_SPEC): Change mthreads to pthread.
1604 (LIB_SPEC): Likewise.
1605 (STARTFILE_SPEC): Likewise.
1606 * aix43.h (SUBTARGET_SWITCHES): Delete threads.
1607 (CPP_SPEC): Change mthreads to pthread.
1608 (LIB_SPEC): Likewise.
1609 (STARTFILE_SPEC): Likewise.
1610 * rs6000-protos.h (reg_or_arith_cint_operand): New.
1611 * rs6000.c (reg_or_arith_cint_operand): New.
1612 (num_insns_constant_wide): Decorate unsigned constant.
1613 * rs6000.h (PREDICATE_CODES): Add reg_or_arith_cint_operand.
1614 * rs6000.md (addsi3): Use new predicate.
1615 (subsi3, adddi3, subdi3): Likewise.
1617 2000-06-12 Mark Mitchell <mark@codesourcery.com>
1619 * c-common.c (lang_get_alias_set): Fix typo.
1621 2000-06-12 Richard Earnshaw <rearnsha@arm.com>
1623 * flow.c (mark_used_regs): Revert last change.
1624 (life_analysis): Remove PROP_AUTOINC if running after reload.
1625 (propagate_one_insn): PROP_AUTOINC is always off after reload.
1627 2000-06-11 Richard Earnshaw <rearnsha@arm.com>
1629 * flow.c (mark_used_regs): Don't call find_auto_inc after reload
1632 2000-06-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1634 * bb-reorder.c (build_scope_forest): Initialize variable
1637 * calls.c (expand_call): Likewise for variables
1638 `save_pending_stack_adjust' and `save_stack_pointer_delta'.
1640 * i386.c (function_arg_advance, function_arg): Cast to avoid
1641 signed/unsigned warnings.
1643 * i386.h (MEMORY_MOVE_COST): Likewise.
1645 * ifcvt.c (cond_exec_process_if_block): Initialize variables
1646 `else_start' and `else_end'.
1648 * libgcc2.h (__eh_alloc, __eh_free): Prototype.
1650 * regrename.c (rr_replace_reg): Initialize variable `dest_subregno'.
1652 2000-06-10 Mark Mitchell <mark@codesourcery.com>
1654 * Makefile.in (libintl.a): Depend on intl.all.
1656 2000-06-09 H.J. Lu (hjl@gnu.org)
1658 * Makefile.in (c-parse.o): Also depend on output.h.
1660 2000-06-09 Rodney Brown <RodneyBrown@mynd.com>
1662 * mcore-protos.h: discards const warning removal.
1663 * mcore.c: discards const warning removal.
1665 2000-06-09 Kazu Hirata <kazu@hxi.com>
1667 * config/h8300/lib1funcs.asm: Declare the machine architecture at
1668 the beginning of the file.
1670 2000-06-09 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1672 * real.h: Add prototype for ldexp.
1674 2000-06-09 Zack Weinberg <zack@wolery.cumb.org>
1676 * ggc-none.c, ggc-simple.c, ggc-page.c (ggc_alloc_obj): Rename
1677 it ggc_alloc, drop second argument, never clear returned memory.
1678 * ggc-common.c (ggc_alloc_string): Use ggc_alloc.
1679 (ggc_alloc_cleared): New.
1680 * ggc.h: Prototype ggc_alloc and ggc_alloc_cleared, not
1681 ggc_alloc_obj. Remove ggc_alloc macro.
1682 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Use ggc_alloc.
1684 * rtl.c (rtvec_alloc): Clear the vector always.
1685 (rtx_alloc): Clear the first word always. Remove dirty
1686 obstack tricks (this routine is no longer a bottleneck).
1687 * tree.c (make_node): Clear the new node always.
1688 (make_tree_vec): Likewise.
1689 (tree_cons): Clear the common structure always.
1690 (build1): Likewise; also, clear TREE_COMPLEXITY.
1691 * gengenrtl.c: Use puts wherever possible. Remove extra
1693 (gendef): Clear the first word of an RTX in the generator
1694 function, irrespective of ggc_p. Initialize '0' slots to
1696 (genlegend): Don't generate obstack_alloc_rtx routine, just a
1697 thin wrapper macro around obstack_alloc.
1699 * stmt.c (expand_fixup): Use ggc_alloc.
1700 * c-typeck.c (add_pending_init): Use ggc_alloc.
1701 * emit-rtl.c (init_emit_once): Clear CONST_DOUBLE_CHAIN(tem).
1702 * varasm.c (immed_double_const): Set CONST_DOUBLE_MEM(r) to
1703 const0_rtx when it is created.
1704 (immed_real_const_1): Set CONST_DOUBLE_CHAIN(r) to NULL_RTX if
1705 we are not in a function.
1707 * tree.c (tree_class_check_failed): Make second arg an int.
1708 * tree.h: Update prototype.
1710 2000-06-09 Geoff Keating <geoffk@cygnus.com>
1712 * tree.h (VOID_TYPE_P): Don't look at the TYPE_MAIN_VARIANT
1713 of an error_mark_node.
1715 Fri Jun 9 20:35:13 2000 Denis Chertykov <denisc@overta.ru>
1717 * config/avr/avr.c (asm_output_section_name): bugfix.
1719 2000-06-09 Jason Merrill <jason@casey.soma.redhat.com>
1721 * timevar.def: Add TV_EXPAND.
1722 * timevar.c (timevar_print): Update timing information.
1723 * calls.c (try_to_integrate): Push to TV_INTEGRATION for inlining.
1725 * stmt.c (expand_return): Check for error_mark_node.
1727 2000-06-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1729 * configure.in: Also avoid wrapping auto-build.h with IN_GCC.
1731 * scan-types.sh (VALUE) Wrap use with double quotes to protect
1732 variable against filename expansion when it contains "char *".
1734 * system.h (SSIZE_MAX): Delete backup definition.
1736 * cppfiles.c (read_include_file): Use INTTYPE_MAXIMUM(ssize_t)
1737 instead of SSIZE_MAX.
1739 2000-06-09 Jakub Jelinek <jakub@redhat.com>
1741 * configure.in: Check whether gas supports -relax.
1742 * configure, config.in: Rebuilt.
1743 * config/sparc/sparc.h (ASM_RELAX_SPEC): Define.
1744 (EXTRA_SPECS): Add asm_relax.
1745 (ASM_SPEC): Add %(asm_relax).
1746 (TARGET_SWITCHES): Add -mrelax and -mno-relax.
1747 * config/sparc/linux64.h (LINK_ARCH_SPEC): Rename to LINK_SPEC.
1748 (LINK_SPEC): Pass -relax to linker unless -mno-relax or -r.
1749 (ASM_SPEC): Add %(asm_relax).
1750 * config/sparc/linux.h (LINK_SPEC, ASM_SPEC): Likewise.
1751 * config/sparc/sparc.c (output_sibcall): If HAVE_AS_RELAX_OPTION,
1752 never use sethi/jmpl for leaf tail calls. Use or with rs2 %g0
1753 instead of mov, so that gas can further optimize it.
1755 2000-06-08 James E. Wilson <wilson@bletchleypark.cygnus.com>
1757 * dwarf2out.c (size_of_die, case dw_val_class_const): Use
1759 (value_format, case dw_val_class_const): Use sdata format.
1760 (output_die): Call output_sleb128.
1762 2000-06-08 James E. Wilson <wilson@cygnus.com>
1764 * dwarf2out.c (ASM_OUTPUT_DWARF_DATA8): Add new macro that uses
1765 UNALIGNED_DOUBLE_INT_ASM_OP. Rename old macro to
1766 ASM_OUTPUT_DWARF_CONST_DOUBLE.
1767 (output_die, case dw_val_class_unsigned_const): Correct call to
1768 ASM_OUTPUT_DWARF_DATA8.
1769 (output_die, case dw_val_class_long_long): Use
1770 ASM_OUTPUT_DWARF_CONST_DOUBLE.
1771 * tree.c (host_integerp): Accept unsigned HOST_WIDE_INT values when
1774 * config/ia64/ia64-protos.h (ia64_output_end_prologue): Add.
1775 (output_function_prologue): Fix mispelling.
1776 (output_function_prologue, output_function_epilogue): Reorder to
1777 match ia64.c definition order.
1778 * config/ia64/ia64.c (ia64_expand_prologue): Add comment.
1779 (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on stack restore insns.
1780 Use r3 instead of r2 for large stack restores.
1781 (ia64_output_end_prologue): New function.
1782 (process_set): Emit ".restore sp" for epilogue stack restores.
1783 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Define.
1785 2000-06-08 Jakub Jelinek <jakub@redhat.com>
1787 * dbxout.c (dbxout_type_fields): Don't segfault on fields with
1790 2000-06-08 Nathan Sidwell <nathan@codesourcery.com>
1792 * frame.c (end_fde_sort): Remove extraneous erratic array test.
1794 2000-06-08 Denis Perchine <dyp@perchine.com>
1796 * frame.c (start_fde_sort): Don't malloc (0).
1798 2000-06-07 Zack Weinberg <zack@wolery.cumb.org>
1800 * c-decl.c (pushdecl): Do not call COMPLETE_TYPE_P on
1802 * print-tree.c (print_node): The transparent_union_flag means
1803 different things for unions and arrays. Do not inspect it
1804 with TYPE_TRANSPARENT_UNION.
1806 2000-06-06 Jakub Jelinek <jakub@redhat.com>
1808 * cpplib.c (do_ifdef, do_ifndef): Don't segfault if parse_ifdef
1811 Wed Jun 7 20:34:33 2000 Denis Chertykov <denisc@overta.ru>
1813 * config/avr/avr.c (asm_output_section_name): output section
1815 * config/avr/libgcc.S (.text.libgcc): declare section attributes.
1817 2000-06-06 James E. Wilson <wilson@cygnus.com>
1819 * frame.h (struct unwind_info_ptr): Collapse version, flags, and length
1820 fields into header field.
1821 (IA64_UNW_HDR_LENGTH, IA64_UNW_HDR_FLAGS, IA64_UNW_HDR_VERSION): New
1822 macros to access length, flags, and version info from header field.
1823 * config/ia64/crtbegin.asm (__do_frame_setup_aux): Delete here.
1824 * config/ia64/crtend.asm (__do_frame_setup_aux): Add here.
1825 (__do_global_ctors_aux): Fix caller.
1826 * config/ia64/frame-ia64.c (get_unwind_record): Change parameter
1827 prologue_flag to header. Pass to read_P_record.
1828 (read_P_record): New argument header. Implement P4 format.
1829 Multiply P7_T_SIZE by 16.
1830 (execute_one_ia64_descriptor): New static local region_header. Pass to
1831 get_unwind_record. Copy r to region_header if r is a header record.
1832 (print_all_records): Likewise.
1833 (__build_ia64_frame_state): Use IA64_UNW_HDR_LENGTH.
1834 (__get_personality, __get_except_table): Likewise.
1835 * config/ia64/ia64.c (process_set): Do not divide offsets by 4.
1837 2000-06-06 Philipp Thomas <pthomas@suse.de>
1839 * configure.in (AC_C_INLINE): Added.
1840 * aclocal.m4 (AM_WITH_NLS): Enable --with-included-gettext by default.
1841 * configure: Regenerate.
1843 2000-06-06 Mark Mitchell <mark@codesourcery.com>
1845 * c-common.h (c_language_kind): New type.
1846 (c_language): New variab.e
1847 * c-common.c (lang_get_alias_set): Don't put structures in
1848 non-zero alias sets in C++.
1849 * c-decl.c (c_language): Define it.
1850 * c-lex.c (doing_objc_thang): Remove.
1851 * c-tree.h (doing_objc_thang): Make it a macro.
1852 * objc/objc-act.c (lang_decode_option): Set c_language, not
1855 2000-06-06 Gabriel Dos Reis <gdr@codesourcery.com>
1857 * diagnostic.c (output_maximum_width): Remove.
1858 (doing_line_wrapping): Tweak.
1859 (diagnostic_buffer): New object.
1860 (global_output_buffer): New object.
1861 (output_destroy_prefix): New function.
1862 (default_initialize_buffer): Likewise.
1863 (reshape_diagnostic_buffer): Likewise.
1864 (initialize_diagnostics): Likewise.
1865 (output_clear): Tweak.
1866 (line_wrapper_printf): Adjust call to init_output_buffer.
1867 (vline_wrapper_message_with_location): Likewise. Use
1868 output_destroy_prefix.
1869 (v_message_with_decl): Likewise.
1871 * diagnostic.h (struct output_buffer): Constify prefix.
1872 (init_output_buffer, output_get_prefix): Constify.
1873 (diagnostic_message_length_per_line): Likewise.
1874 (reshape_diagnostic_buffer): Declare.
1875 (default_initialize_buffer): Declare.
1876 (initialize_diagnostics): Declare.
1877 (diagnostic_buffer): Declare new obbject.
1879 * toplev.c: #include diagnostic.h
1880 (display_help): Document diagnostic formatting options.
1881 (decode_f_option): Handle diagnostic formatting options.
1882 (main): Setup initialization for diagnostic messages outputter.
1884 * toplev.h (set_message_length): Remove.
1886 * Makefile.in (toplev.o): Depends upon diagnostic.h
1888 * invoke.texi : Document diagnostics formatting options.
1890 Tue Jun 6 19:25:32 2000 Philippe De Muyter <phdm@macqel.be>
1892 * configure.in (Make the links): Typo fix : the file that must be
1893 included without #ifdef IN_GCC is `auto-host.h', not `auto-config.h'.
1894 * configure: File rebuilt.
1896 2000-06-06 Nathan Sidwell <nathan@codesourcery.com>
1898 * eh-common.h (EH_ALLOC_SIZE, EH_ALLOC_ALIGN): New #defines.
1899 (eh_context): Add alloc_mask and alloc_buffer emergency fallback
1901 * libgcc2.c (__eh_alloc): Moved from cp/exception.cc. Fallback on
1902 emergency eh_context buffer, if malloc fails.
1903 (__eh_free): Moved from cp/exception.cc. Release to emergency
1904 eh_context buffer, if appropriate.
1906 2000-06-06 Jason Merrill <jason@casey.soma.redhat.com>
1908 * expr.c (store_expr): Fix typo.
1910 2000-06-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1912 * m68k.c (legitimize_pic_address): Move prototype ...
1914 * m68k-protos.h (legitimize_pic_address): ... here.
1916 * m68k.md (legitimize_pic_address): Delete prototypes.
1917 (untyped_call): Invoke GEN_CALL(), not gen_call().
1919 * nextstep.c: Include system.h and toplev.h.
1920 (get_directive_line): Don't prototype.
1921 (handle_pragma): Mark parameters with ATTRIBUTE_UNUSED and constify.
1923 * nextstep.h (handle_pragma): Prototype.
1924 (SECTION_FUNCTION): Prototype FUNCTION(). Move prototype of
1925 objc_section_init ...
1926 (EXTRA_SECTION_FUNCTIONS): ... here.
1928 Tue Jun 6 08:17:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1930 * sdbout.c (struct sdb_file): NAME now const.
1931 (sdbout_init): input_file_name now const.
1932 (sdbout_start_new_source_file): FILENAME now const.
1933 * sdbout.c (sdbout_init, sdbout_start_new_source_file): Reflect above.
1935 2000-06-06 Gabriel Dos Reis <gdr@codesourcery.com>
1937 * c-typeck.c (build_conditional_expr): Handle complex data types.
1939 2000-06-05 Jason Merrill <jason@casey.soma.redhat.com>
1941 * explow.c (maybe_set_unchanging): New function, broken out from...
1942 (set_mem_attributes): Here.
1943 * expr.h: Declare it.
1944 * stmt.c (expand_decl): Call it.
1946 2000-06-05 Richard Henderson <rth@cygnus.com>
1948 * reload1.c (choose_reload_regs): Mind CLASS_CANNOT_CHANGE_SIZE
1949 while looking for a register to inherit from.
1951 2000-06-05 Jason Merrill <jason@casey.soma.redhat.com>
1953 * Makefile.in (libgcc.ready): Lose.
1954 (libgcc.mk): Just use mv, not move-if-change.
1955 (LIBGCC_DEPS): New macro.
1957 (stmp-multilib): Likewise.
1958 * mklibgcc.in (stmp-dirs): New target. Make everything depend on
1959 it rather than the directories themselves.
1960 (LIB2ADD): Depend on the list file rather than 'force'.
1962 * fold-const.c (fold, case COND_EXPR): Elide conversion between
1963 cv-qualified versions of types.
1965 Mon Jun 5 14:06:18 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1967 * config/sparc/sparc.c (short_branch): Correct error in range
1970 2000-06-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1972 * fixinc/inclhack.def: New include hacks for ultrix.
1973 * (nested_ultrix): Replaced by ultrix_nested_svc.
1974 * (ultrix_atof_param): test_text string added.
1975 * (ultrix_ifdef): Modified select string.
1977 2000-06-05 Zack Weinberg <zack@wolery.cumb.org>
1979 * objc/objc-act.c (generate_method_descriptors): Register
1980 objc_method_prototype_template as a GC root.
1981 (comp_method_with_proto): Register function_type as a GC root.
1982 (comp_proto_with_proto): Replace function_type1 and
1983 function_type2 with a two-element array; register it as a GC root.
1985 (generate_protocols, build_protocol_initializer,
1986 generate_protocol_list, build_category_initializer,
1987 build_shared_structure_initializer): Do not cache cast_type
1990 2000-06-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1992 * function.c (assign_parms): Add missing argument to set_mem_attributes
1995 2000-06-05 Nathan Sidwell <nathan@codesourcery.com>
1997 * tree.h (VOID_TYPE_P): New macro.
1998 (COMPLETE_OR_VOID_TYPE_P): Use VOID_TYPE_P.
1999 * c-decl.c (grokdeclarator): Use VOID_TYPE_P.
2000 (get_parm_info): Likewise.
2001 (store_parm_decls): Likewise.
2002 (combine_parm_decls): Likewise.
2003 (finish_function): Likewise.
2004 * c-typeck.c (build_function_call): Likewise.
2005 (build_binary_op): Likewise.
2006 (build_conditional_expr): Likewise.
2007 (internal_build_compound_expr): Likewise.
2008 (convert_for_assignment): Likewise.
2009 * stmt.c (expend_expr_stmt): Likewise.
2010 (warn_if_unused_value): Likewise.
2011 (expand_return): Likewise.
2012 * c-parse.in (primary): Likewise.
2013 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
2014 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
2016 Mon Jun 5 06:46:28 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2018 * alias.c (get_alias_set): If compnent is addressable, use alias
2020 * c-decl.c (init_decl_processing): Don't call record_component_aliases.
2021 (grokdeclarator): Likewise.
2022 * c-typeck.c (common_type): Likewise.
2024 2000-06-04 Alex Samuel <samuel@codesourcery.com>
2026 * Makefile.in (OBJS): Remove dyn_string.o
2027 (dyn-string.o): Delete rule.
2028 * dyn-string.c: Delete file
2029 * dyn-string.h: Likewise.
2031 2000-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2033 * Makefile.in (intl.*): Honor non-zero exit codes in the intl
2036 2000-06-03 Geoff Keating <geoffk@cygnus.com>
2038 * alias.c (record_component_aliases): Don't inspect
2039 DECL_NONADDRESSABLE_P of non-FIELD_DECL components of structures.
2041 Sat Jun 3 19:05:30 2000 Michael Meissner <meissner@redhat.com>
2043 * ifcvt.c (process_insns): If IFCVT_MODIFY_INSN is defined, call
2044 it with the pattern to do machine dependent work.
2045 (cond_exec_process_if_block): If IFCVT_MODIFY_TESTS is defined,
2046 use it to modify the true/false tests used in conditional
2047 execution. If IFCVT_MODIFY_FINAL and IFCVT_MODIFY_CANCEL are
2048 defined, invoke them if the conversion to conditional execution
2049 was successful or not.
2051 * tm.texi (IFCVT_MODIFY_TESTS): Document.
2052 (IFCVT_MODIFY_INSN): Ditto.
2053 (IFCVT_MODIFY_FINAL): Ditto.
2054 (IFCVT_MODIFY_CANCEL): Ditto.
2056 Sat Jun 3 15:26:13 2000 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2058 * toplev.c (main): Fix misspellings of possibility and language.
2060 2000-06-03 Richard Henderson <rth@cygnus.com>
2062 * alias.c (record_alias_subset): Initialize has_zero_child in the
2065 2000-06-03 Richard Earnshaw (rearnsha@arm.com)
2067 * arm.md (untyped_call): Use GEN_CALL macro.
2069 2000-06-02 Pekka Nikander <pnr@teldanex.tcm.hut.fi>
2071 * Makefile.in: Use $(MAKE) not "make"
2073 Fri Jun 2 19:31:03 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2075 * alias.c (struct alias_set_entry): New field has_zero_child.
2076 (mem_in_disjoint_alias_sets_p): Return 0 if set in either ase.
2077 (get_alias_set): If language-dependent routine set TYPE_ALIAS_SET,
2079 Call record_component_aliases for aggregate types.
2080 (record_alias_subset): Set has_zero_child.
2081 (record_component_aliases, case ARRAY_TYPE): Do nothing if
2082 TYPE_NONALIASES_COMPONENT.
2083 (record_component_aliases, case RECORD_TYPE): Test
2084 DECL_NONADDRESSABLE_P.
2085 * c-decl.c (grokdeclarator): Set DECL_NONADDRESSABLE_P instead
2086 of TREE_ADDRESSABLE.
2087 * calls.c (initialize_argument_information): Only test
2088 TYPE_TRANSPARENT_UNION for UNION_TYPE.
2089 * function.c (assign_parms): Likewise.
2090 * integrate.c (function_cannot_inline_p): Likewise.
2091 * stor-layout.c (finish_record_layout): Don't call
2092 record_component_aliases.
2093 * tree.h (struct tree_int_cst): Use struct tree_common.
2094 (struct tree_real_cst, struct tree_string): Likewise.
2095 (struct tree_complex, struct tree_identifier): Likewise.
2096 (struct tree_list, struct tree_vec, struct tree_exp): Likewise.
2097 (struct tree_block, struct tree_type, struct tree_decl): Likewise.
2098 (TYPE_TRANSPARENT_UNION): Use UNION_TYPE_CHECK.
2099 (TYPE_NONALIASES_COMPONENT): New macro.
2100 (TYPE_AMBIENT_BOUNDEDNESS): Use FUNCTION_TYPE_CHECK.
2101 (DECL_NONADDRESSABLE_P): New macro.
2102 (struct tree_decl): Reorder bits for clarity of how many left;
2105 2000-06-02 Jason Merrill <jason@casey.soma.redhat.com>
2107 * Makefile.in (libgcc.a): Also depend on $(LIB2ADD).
2108 * mklibgcc.in (force): New target.
2109 Make LIB2ADD stuff depend on it.
2111 2000-06-02 Richard Henderson <rth@cygnus.com>
2113 * alias.c (lang_get_alias_set): Remove.
2114 (get_alias_set): Call it directly, not indirectly.
2115 * c-common.c (lang_get_alias_set): Rename from c_get_alias_set.
2116 * c-common.h (c_get_alias_set): Don't declare.
2117 * c-decl.c (init_decl_processing): Don't set lang_get_alias_set.
2118 * expr.h (lang_get_alias_set): Declare as function, not pointer.
2120 2000-06-02 Bruce Korb <bkorb@gnu.org>
2122 * fixinc/server.c(sig_handler): resume closing server on SIGPIPE
2123 (server_setup): define the server's master pid
2124 (close_server): actually do the deed IFF we are the server's master
2126 2000-06-02 Jakub Jelinek <jakub@redhat.com>
2128 * c-common.c (c_get_alias_set): Check whether signed_type did not
2129 return its argument before calling get_alias_set on the result.
2131 2000-06-02 Andrew MacLeod <amacleod@cygnus.com>
2133 * expr.c (emit_group_load): Fix typo, GET_MODE not GET_CODE.
2135 Fri Jun 2 00:22:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2137 * sh.h (CPP_SPEC): Add -D__NOMACSAVE__ for -mnomacsave.
2138 (CONDITIONAL_REGISTER_USAGE): Mac registers are call used
2139 for TARGET_NOMACSAVE.
2140 (NOMACSAVE_BIT): Define.
2141 (TARGET_NOMACSAVE): Define.
2142 (TARGET_SWITCHES): Add "nomacsave".
2144 2000-06-02 Toshiyasu Morita <toshi.morita@sega.com>
2146 * sh.md (untyped_call): Remove excess parameters
2148 2000-06-01 Loren J. Rittle <ljrittle@acm.org>
2150 * fixinc/inclhack.def (osf_namespace_a): Relax expression to
2151 match that used before the conversion to c_fix style.
2152 * fixinc/fixincl.x: regenerate
2154 2000-06-01 Stan Cox <scox@cygnus.com>
2156 * varray.h (VARRAY_PUSH_GENERIC_PTR, VARRAY_PUSH_CHAR_PTR): Fix
2157 macro argument typo.
2159 2000-06-01 Zack Weinberg <zack@wolery.cumb.org>
2161 * cpplex.c (maybe_macroexpand): Use CPP_WTRADITIONAL. Improve
2163 * cpplib.c (parse_include): Remove support for VAX-C
2164 "#include starlet" misfeature.
2166 2000-05-31 Laurynas Biveinis <lauras@softhome.net>
2168 * cppfiles.c: conditionally define O_BINARY.
2169 (open_include_file): pass O_BINARY to open().
2171 2000-06-01 Richard Henderson <rth@cygnus.com>
2173 * i960.c (i960_br_predict_opcode): Remove.
2174 (i960_print_operand) [+]: Emit branch prediction hints.
2175 (i960_function_arg): Return early for VOIDmode.
2176 (i960_round_align): Return early for incomplete types.
2177 * i960.h (PRINT_OPERAND_PUNCT_VALID_P): New.
2178 * i960.md (all conditional branches): Add "%+".
2180 Thu Jun 1 12:24:21 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2182 * alias.c (get_alias_set): Don't call language-specific routine more
2183 than is needed and clean up code a bit.
2184 * c-common.c (c_get_alias_set): All references whose type
2185 is char get alias set 0, but character types need not.
2186 * varasm.c (make_function_rtl): Don't call set_mem_attributes.
2187 (make_decl_rtl): Don't call it for FUNCTION_DECL.
2189 2000-06-01 Bruce Korb <bkorb@gnu.org>
2191 * fixinc/tests/base/...: new base result files
2193 Thu Jun 1 09:37:35 2000 Clinton Popetz <cpopetz@cygnus.com>
2195 * config/i386/i386.c (ix86_use_fcomi_compare): Make global.
2196 * config/i386/i386-protos.h (ix86_use_fcomi_compare): Declare.
2197 * config/i386/i386.md (*fp_jcc_3, *fp_jcc_4): Disable if we
2200 2000-06-01 Richard Henderson <rth@cygnus.com>
2202 * Makefile.in (c-decl.o): Depend on $(EXPR_H), not expr.h.
2204 * c-decl.c (init_decl_processing): Set lang_get_alias_set first thing.
2206 2000-05-31 Richard Henderson <rth@cygnus.com>
2208 * config/ia64/ia64.c (sdata_symbolic_operand): Consider small
2209 CONSTANT_POOL_ADDRESS_P addresses for .sdata.
2210 * config/ia64/sysv4.h (SELECT_RTX_SECTION): New.
2212 2000-05-31 Richard Henderson <rth@cygnus.com>
2214 * config/ia64/ia64-protos.h (ia64_expand_prediction): Remove.
2215 * config/ia64/ia64.c (ia64_expand_prediction): Move code ...
2216 (ia64_print_operand) [+]: ... here. Use current_output_insn.
2217 * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): New.
2218 * config/ia64/ia64.md (all branch/call patterns): Use %+.
2220 2000-05-31 Richard Henderson <rth@cygnus.com>
2222 * ifcvt.c (cond_exec_process_insns): Don't ever ignore clobbers.
2224 2000-05-31 Richard Henderson <rth@cygnus.com>
2226 * ifcvt.c (merge_if_block): Be prepared for JOIN to have no
2228 (find_if_block): Allow THEN with no outgoing edges.
2229 * flow.c (merge_blocks_nomove): Remove a barrier not following
2232 2000-05-31 Richard Henderson <rth@cygnus.com>
2234 * flow.c (propagate_block): Move initialization of mem_set_list ...
2235 (init_propagate_block_info): ... here. Also track blocks with
2236 no successors; don't scan insns if ! PROP_SCAN_DEAD_CODE.
2238 2000-05-31 Richard Henderson <rth@cygnus.com>
2240 * jump.c (jump_optimize_1): Revert 05-18 change.
2242 2000-05-31 Mark Mitchell <mark@codesourcery.com>
2244 * invoke.texi: Remove documentation for -fguiding-decls.
2246 2000-05-31 Richard Henderson <rth@cygnus.com>
2248 * configure.in: Fix typo last change.
2250 2000-05-31 Philipp Thomas <pthomas@suse.de>
2252 * configure.in (enable-nls): Enable if build == host, i.e. when
2253 not building a canadian cross compiler.
2254 (enable-maintainer-mode): Added for use with i18n.
2255 * aclocal.m4 (AM_GNU_GETTEXT): Only build catalogs that are a
2256 cross section of ALL_LINGUAS and LINGUAS.
2257 * configure: Rebuild.
2259 2000-05-31 Bruce Korb <bkorb@gnu.org>
2261 * fixinc/check.tpl: rework to use test result tree
2262 * fixinc/Makefile.in: change invocation of check script
2263 * fixinc/check.diff: No longer needed
2264 * fixinc/fixincl.x: regenerate
2265 * fixinc/inclhack.def: add new tests
2266 * fixinc/tests/base/arch/i960/archI960.h: New test result
2267 * fixinc/tests/base/curses.h: modified test result
2268 * fixinc/tests/base/stdio.h: ditto
2269 * fixinc/tests/base/time.h: ditto
2270 * fixinc/tests/base/sys/asm.h: ditto
2271 * fixinc/tests/base/sys/stat.h: ditto
2272 * fixinc/tests/base/sys/wait.h: ditto
2274 Wed May 31 13:17:20 2000 Philippe De Muyter <phdm@macqel.be>
2276 * except.c (clear_function_eh_region): Do not free NULL.
2278 Wed May 31 08:07:52 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2280 * Makefile.in (c-decl.o): Depend on rtl.h and expr.h.
2281 * alias.c (struct alias_entry): alias_set is HOST_WIDE_INT.
2282 (REG_BASE_VALUE): Remove unneeded cast to unsigned.
2283 (get_alias_set_entry): ALIAS_SET arg is HOST_WIDE_INT.
2284 (find_base_decl): New function, from c_find_base_decl in c-common.c.
2285 (new_alias_set): Moved from tree.c; return is HOST_WIDE_INT.
2286 (get_alias_set): Likewise.
2287 Major rework to do more things and allow language-specific code
2288 to just handle special-cases.
2289 (record_alias_subset): Args are HOST_WIDE_INT.
2290 (record_component_alias): Local vars are HOST_WIDE_INT.
2291 Don't handle COMPLEX_EXPR.
2292 (get_varargs_alias_set): Moved from builtins.c.
2293 (get_frame_alias_set): New function.
2294 * builtins.c (expand_builtin_return_address): Use frame alias set.
2295 (expand_builtin_setjmp, expand_builtin_longjmp): Use alias set
2297 (get_memory_rtx): Rework to use set_mem_attributes.
2298 (get_varargs_alias_set): Deleted from here.
2299 * c-common.c (c_apply_type_quals_to_decl): Alias sets now HOST_WIDE_INT.
2300 (c_find_base_decl): Deleted from here.
2301 (c_get_alias_set): Remove many cases and rework to just handle
2303 * c-common.h (c_get_alias_set): Returns HOST_WIDE_INT.
2304 * c-decl.c (rtl.h, expr.h): Now included.
2305 (init_decl_processing): Call record_component_aliases on array types.
2306 (grokdeclarator): Likewise.
2307 Set TREE_ADDRESSABLE for all fields that are not bitfields.
2308 * c-typeck.c (common_type): Call record_component_aliases for array.
2309 * caller-save.c (setup_save_areas): Rework register loop for unsigned.
2310 Set all save areas to the frame alias set.
2311 * calls.c (initialie_argument_information): Call set_mem_attributes.
2312 (compute_argument_addresses, expand_call): Likewise.
2313 * explow.c (set_mem_attributes): New function.
2314 (stabilize): Use MEM_COPY_ATTRIBUTES and force_reg.
2315 * expr.c (struct move_by_pieces): Remove {to,from}_{struct,readonly}.
2316 LEN and OFFSET now HOST_WIDE_INT.
2317 (clear_by_pieces): Similar changes.
2318 (move_by_pieces): LEN now HOST_WIDE_INT; don't set deleted fields.
2319 (move_by_pieces_ninsns): Now returns unsigned HOST_WIDE_INT.
2320 (move_by_pieces_1): Don't use deleted fields, use MEM_COPY_ATTRIBUTES.
2321 (clear_by_pieces_1): Likewise.
2322 (emit_push_insn): Call set_mem_attributes.
2323 (expand_expr, case INDIRECT_REF): Likewise.
2324 (expand_expr, case VAR_DECL): Call change_address.
2325 * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE): Use host_integerp and
2327 (get_varargs_alias_set, get_frame_alias_set): New decls.
2328 (record_base_value, record_alias_subset, lang_get_alias_set): Likewise.
2329 (new_alias_set, set_mem_attributes): Likewse.
2330 * function.c (struct temp_slot): ALIAS_SET is HOST_WIDE_INT.
2331 (assign_stack_temp_for_type): Likewise.
2332 Can split slot even if alias set since can copy.
2333 Set MEM_ALIAS_SET and MEM_SET_IN_STRUCT_P.
2334 (assign_temp): Use host_integerp and tree_low_cst.
2335 (put_var_into_stack): Properly handle SAVE_EXPR.
2336 (put_addressof_into_stack): Likewise.
2337 (assign_parms): Call set_mem_attributes.
2339 (fix_lexical_address): Put reference to chain into frame alias set.
2340 (expand_function_start): Call set_mem_attributes.
2341 * integrate.c (expand_inline_function): Likewise.
2342 * recog.c (adj_offsettable_operand): Use MEM_COPY_ATTRIBUTES.
2343 * regmove.c (try_apply_stack_adjustment): Likewise.
2344 * reload.c (push_reload, make_memloc): Likewise.
2345 * reload1.c (alter_reg): Make alias sets for spilled pseudos.
2346 * rtl.def (MEM): Update comment.
2347 * rtl.h (MEM_ALIAS_SET): Now uses XCWINT.
2348 (move_by_pieces): Change length to HOST_WIDE_INT.
2349 (record_base_value, record_alias_subset): Delete from here.
2350 * stmt.c (expand_decl): Call set_mem_attributes.
2351 * stor-layout.c (finish_record_layout): Call record_component_aliases.i
2352 * toplev.c (compile_file): Call init_alias_once earlier.
2353 * tree.c (lang_get_alias_set, get_alias_set, new_alias_set): Deleted
2354 from here: now in alias.c.
2355 * tree.h (struct tree_type): alias_set is HOST_WIDE_INT.
2356 (struct tree_decl): Likewise.
2357 (get_alias_set, new_alias_set, lang_get_alias_set): Deleted from here.
2358 * varasm.c (make_function_rtl, make_decl_rtl): Call set_mem_attributes.
2359 (output_constant_def, force_const_mem): Likewise.
2361 * flow.c (propagate_block): If block has no successors, stores to
2362 frame are dead if not used.
2364 2000-05-31 Nathan Sidwell <nathan@codesourcery.com>
2366 * stmt (expand_end_case): Reorder conversion sequence for jump
2367 table to avoid extra truncations.
2369 Wed May 31 01:31:42 2000 Jeffrey A Law (law@cygnus.com)
2371 * ifcvt.c (cond_exec_process_if_block): Do nothing if the last insn
2372 in the block is more than just a simple conditional branch.
2373 (noce_process_if_block): Similarly.
2375 Tue May 30 22:25:57 2000 Alexandre Oliva <aoliva@cygnus.com>
2377 * optabs.c (prepare_float_lib_cmp): Protect *px and *py from
2380 2000-05-30 Michael Meissner <meissner@redhat.com>
2382 * dwarf2out.c (dwarf2out_frame_debug_expr): Ignore HIGH
2383 instructions. Treat LO_SUM operations as loading the full integer
2386 2000-05-30 Richard Henderson <rth@cygnus.com>
2388 * combine.c (get_pos_from_mask): Test exact_log2 result as signed.
2390 2000-05-30 Richard Henderson <rth@cygnus.com>
2392 * bb-reorder.c (emit_jump_to_block_after): Protect use of HAVE_return.
2394 2000-05-30 Bruce Korb <bkorb@gnu.org>
2396 * fixinc/tests/*: Added expected result files for fixinc's make check
2397 * fixinc/fixfixes(char_macro_*_fix): Restore original algorithm
2399 2000-05-30 Richard Henderson <rth@cygnus.com>
2401 * config/alpha/alpha.md (*setne_internal): Use match_operator
2402 instead of working down from insn.
2404 2000-05-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2406 * invoke.texi (-Wtraditional): Update WRT function macros.
2408 Tue May 30 09:57:32 2000 Philippe De Muyter <phdm@macqel.be>
2410 * except.c (free_exception_table): Do not free NULL.
2412 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
2414 * cpplib.c (do_if): Don't save and restore only_seen_white here.
2415 * cppexp.c (_cpp_parse_expr): Save and restore only_seen_white
2418 2000-05-29 Richard Earnshaw (rearnsha@arm.com)
2420 * flow.c (mark_used_reg): If a register is unconditionally live,
2421 remove any conditional death information.
2423 2000-05-29 Richard Henderson <rth@cygnus.com>
2425 * final.c (current_output_insn): New.
2426 (final_scan_insn): Set it.
2427 * output.h: Declare it.
2429 2000-05-29 Richard Henderson <rth@cygnus.com>
2431 * stor-layout.c (finalize_record_size): Fix typo.
2433 * jump.c (redirect_jump): Don't emit NOTE_INSN_FUNCTION_END
2436 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
2438 * cpplib.h (cpp_reader): Remove if_stack. Change
2439 potential_control_macro to a cpp_hashnode *. Add skipping flag.
2440 * cpphash.h (struct ihash): Change control_macro to a
2441 cpp_hashnode * and shorten name to cmacro.
2442 Add NEVER_REINCLUDE constant.
2444 * cppfiles.c (redundant_include_p): Drop cpp_reader argument.
2445 Examine the cmacro node directly, no need to call cpp_defined.
2446 (_cpp_execute_include, read_include_file): Set cmacro to
2447 NEVER_REINCLUDE, not U"".
2448 * cpplex.c (cpp_push_buffer): Don't set new->if_stack.
2449 (cpp_get_token): If pfile->skipping is true, discard text and
2450 keep scanning until we hit a directive; don't expand macros.
2452 * cpplib.c (struct if_stack): Remove if_succeeded, add
2453 was_skipping. Change control_macro to a cpp_hashnode * and
2454 shorten name to cmacro. Remove typedef IF_STACK.
2455 (parse_ifdef), detect_if_not_defined): Return a cpp_hashnode *.
2456 (conditional_skip, skip_if_group,
2457 consider_directive_while_skipping): Delete.
2458 (push_conditional): New.
2459 (_cpp_handle_directive): Don't process directives other than
2460 conditionals if we are skipping.
2462 (do_ifdef, do_ifndef, do_if, do_else, do_elif, do_endif):
2463 Update to new scheme.
2464 (validate_else): Skip rest of line here, unconditionally.
2465 (_cpp_unwind_if_stack): The stack is per-buffer. Force
2466 pfile->skipping off.
2468 (all): Remove `scare quotes' from error messages.
2470 2000-05-29 Richard Henderson <rth@cygnus.com>
2472 * function.c (emit_return_into_block): New line_note arg; emit it.
2473 (thread_prologue_and_epilogue_insns): Attempt to locate a line note
2474 for the close brace to accompany HAVE_return. Move all line notes
2475 following the epilogue to before the NOTE_INSN_EPILOGUE_BEG.
2477 2000-05-29 Richard Henderson <rth@cygnus.com>
2479 * longlong.h [__alpha] (count_leading_zeros): New.
2480 (count_trailing_zeros): New.
2481 (COUNT_LEADING_ZEROS_0): New.
2483 * config/alpha/alpha.c (alpha_zero_comparison_operator): New.
2484 (alpha_split_conditional_move): New.
2485 * config/alpha/alpha-protos.h: Prototype them.
2486 * config/alpha/alpha.h (PREDICATE_CODES): Update.
2487 (CPP_CPU_DEFAULT_SPEC): Fix typo for EV67.
2488 * config/alpha/alpha.md: Update ffs cix commentary.
2490 (*nabssf2, *nabsdf2): New.
2491 (*mov[qhsd]icc_internal): Use add_operand.
2492 (if_then_else constant splitters): New.
2493 (*cmp_sadd_di, *cmp_sadd_si, *cmp_sadd_sidi): New.
2494 (*cmp_ssub_di, *cmp_ssub_si, *cmp_ssub_sidi): New.
2496 2000-05-29 Richard Henderson <rth@cygnus.com>
2498 * combine.c (force_to_mode) [MINUS]: Convert subtraction from
2499 a constant to NEG or NOT when conditions allow.
2501 * combine.c (combine_simplify_rtx): Don't create an if_then_else
2502 unless both args are general_operand. Don't canonicalize plus
2503 to ior unless it helps.
2505 * toplev.c (rest_of_compilation): Set no_new_pseudos after flow1;
2506 instead track register_life_up_to_date. Toggle no_new_pseudos
2509 2000-05-28 Geoff Keating <geoffk@cygnus.com>
2511 * config/rs6000/rs6000.c (output_cbranch): Escape '%' characters
2512 so output_operand doesn't see them.
2514 Sun May 28 18:37:07 2000 Clinton Popetz <cpopetz@cygnus.com>
2516 * lcm.c (make_preds_opaque): Fix comment.
2517 (optimize_mode_switching): Use NORMAL_MODE instead of
2518 MODE_USES_IN_EXIT_BLOCK. Change leftover instance of
2519 FP_MODE_NONE to no_mode. Rename MODE_AT_ENTRY to NORMAL_MODE.
2520 Handle insertions before an existing NOTE_INSN_BASIC_BLOCK.
2521 * tm.texi (OPTIMIZE_MODE_SWITCHING): Refer to NORMAL_MODE.
2522 (MODE_USES_IN_EXIT_BLOCK): Delete.
2523 (MODE_AT_ENTRY) Rename to NORMAL_MODE.
2524 * sh.h (MODE_USES_IN_EXIT_BLOCK): Delete.
2525 (MODE_AT_ENTRY): Rename to NORMAL_MODE.
2526 (MODE_NEEDED): Don't look for USE.
2527 (EPILOGUE_USES): Define.
2529 Sun May 28 23:26:59 2000 Philippe De Muyter <phdm@macqel.be>
2531 * mklibgcc.in (all): Variable initialised to `libgcc'.
2533 2000-05-28 Gabriel Dos Reis <gdr@codesourcery.com>
2535 * toplev.h (skip_leading_substring): New macro.
2536 * toplev.c (decode_f_option): Use skip_leading_substring instead
2538 (decode_W_option): Likewise.
2540 2000-05-28 Nick Clifton <nickc@cygnus.com>
2542 * tm.texi (CONDITIONAL_REGISTER_USAGE): Document that it can
2545 2000-05-28 Richard Henderson <rth@cygnus.com>
2547 * regclass.c (record_operand_costs): Protect reg_changes_size
2548 with CLASS_CANNOT_CHANGE_SIZE.
2550 * loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn.
2552 2000-05-28 Richard Henderson <rth@cygnus.com>
2554 * function.c (diddle_return_value): A pcc-style struct return
2557 2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
2559 * cppfiles.c: Read files in, using mmap if possible, then
2560 prescan them separately.
2561 (read_file, read_with_read): New functions.
2562 * cpplex.c: Don't define UCHAR_MAX.
2563 (_cpp_read_and_prescan): Rename to _cpp_prescan. Don't read
2566 * cppinit.c (handle_option): Automatically define __cplusplus,
2567 __OBJC__, __ASEEMBLER__, _LANGUAGE_FORTRAN here when we see
2568 the respective -lang switch.
2570 * cpphash.h (enum node_type, struct hashnode, _cpp_lookup
2571 prototype): Move to...
2572 * cpplib.h: ... here. Rename struct hashnode to struct
2573 cpp_hashnode and give it a typedef. Rename _cpp_lookup to
2574 cpp_lookup. Add 'fe_value' slot, a union tree_node *.
2576 2000-05-27 Geoffrey Keating <geoffk@cygnus.com>
2578 * config/rs6000/rs6000.md (movsi): Constify 'name'.
2580 * regclass.c [CLASS_CANNOT_CHANGE_SIZE]
2581 (class_can_change_size): New variable.
2582 (reg_changes_size): New variable.
2583 (init_reg_sets_1): Initialise class_can_change_size.
2584 (record_operand_costs): Remove subreg_changes_size.
2585 Don't pass it around. Instead update reg_changes_size.
2586 (regclass): Initialise and free reg_changes_size. If a register
2587 changes size, don't preference it to a class that contains
2588 registers that can't change size.
2589 (record_reg_classes): Don't look at subreg_changes_size.
2591 2000-05-27 Richard Henderson <rth@cygnus.com>
2593 * print-rtl.c (reg_names): Remove const.
2594 * regclass.c (reg_names): Likewise.
2595 * regs.h (reg_names): Likewise.
2596 * hard-reg-set.h (reg_names): Likewise.
2598 2000-05-27 Richard Henderson <rth@cygnus.com>
2600 * config/rs6000/rs6000.md (untyped_call): Use GEN_CALL.
2602 2000-05-27 Richard Henderson <rth@cygnus.com>
2604 * config/alpha/alpha.c (alpha_does_function_need_gp): Test
2605 TARGET_PROFILING_NEEDS_GP in the if, instead of with an ifdef.
2606 (alpha_expand_prologue): Emit prologue_mcount if needed.
2607 * config/alpha/alpha.h (TARGET_PROFILING_NEEDS_GP): Default to 0.
2608 * config/alpha/alpha.md (prologue_mcount): New.
2609 * config/alpha/linux.h (FUNCTION_PROFILER): Remove.
2610 (TARGET_PROFILING_NEEDS_GP): Undef before redefining.
2611 * config/alpha/netbsd.h: Likewise.
2613 2000-05-27 Richard Henderson <rth@cygnus.com>
2615 * config/alpha/elf.h (SELECT_SECTION): Mirror Kenner's May 19
2616 change to config/elfos.h.
2618 2000-05-27 Richard Henderson <rth@cygnus.com>
2620 * Makefile.in (resource.o): Depend on except.h.
2621 * except.h (output_exception_table_data): Prototype.
2622 * genconfig.c (gen_peephole2): Prototype.
2623 * genemit.c (main): Include ggc.h.
2624 * genoutput.c: Revert parts of last change: include errors.h
2625 (main): Set progname.
2626 * recog.c: Include hard-reg-set.h before recog.h.
2627 * resource.c: Include except.h.
2629 * config/alpha/alpha-protos.h (alpha_arg_info_reg_val): Protect
2631 (alpha_write_linkage): Protect with BUFSIZ.
2632 (alpha_need_linkage): Update prototype.
2633 * config/alpha/alpha.c (function_arg): Move VMS code here.
2634 (alpha_links_base): Remove.
2636 (mark_alpha_links_node, mark_alpha_links): New.
2637 (alpha_write_one_linkage): New.
2638 (alpha_need_linkage): Use a splay tree. Build the linkage symbol.
2639 (alpha_write_linkage): Use splay_tree_foreach.
2640 * config/alpha/alpha.md (call_vms): Use alpha_need_linkage
2641 to get the linkage symbol.
2642 (call_value_vms): Likewise.
2643 * config/alpha/elf.h (output_file_directive): Remove decl.
2644 (ctors_section, dtors_section): Prototype.
2645 (sbss_section, sdata_section): Prototype.
2646 * config/alpha/vms.h (FUNCTION_ARG): Remove.
2647 (readonly_section, link_section, literals_section): Prototype.
2648 (ctors_section, dtors_section): Prototype.
2649 (vms_valid_decl_attribute_p): Remove decl.
2650 (alpha_arg_type, alpha_arg_info_reg_val): Likewise.
2652 2000-05-27 Geoff Keating <geoffk@cygnus.com>
2654 * reload.c (get_secondary_mem): Don't widen floating-point modes.
2656 * combine.c (subst): Honour CLASS_CANNOT_CHANGE_SIZE when
2657 substituting the REG in a (subreg:X (reg:Y ...)).
2659 2000-05-28 Neil Booth <NeilB@earthling.net>
2661 * cpplex.c (_cpp_lex_line): Merge vertical space. Flag
2662 first token of a line BOL. Update EOF code for this.
2663 Remove illegal directive check - it appears in the (not
2664 yet committed) caller.
2665 * cpplib.h (BOL): New flag.
2667 2000-05-28 Neil Booth <NeilB@earthling.net>
2669 * cpplex.c (_cpp_init_toklist): No comment space to initialise.
2670 (_cpp_free_toklist): No comment space to free.
2671 (expand_comment_space): Remove.
2672 (save_comment_space): Place the comment in the current token and
2673 not in a separate comment space.
2674 (_cpp_lex_line): Save comments during plain code and #define
2676 * cpplib.h (struct _cpp_toklist): Remove comment space.
2678 2000-05-28 Neil Booth <NeilB@earthling.net>
2680 * cppexp.c (parse_assertion): Supply extra argument to
2682 * cpplib.c (do_assert, do_unassert): Similarly.
2683 * cpphash.h (_cpp_init_toklist) Update.
2684 (_cpp_expand_token_space): New.
2685 (DUMMY_TOKEN, NO_DUMMY_TOKEN): New.
2686 * cpplex.c (_cpp_init_toklist): New argument.
2687 (parse_string2): New argument multiline_ok.
2688 (spell_token): Take a const cpp_token *.
2689 (INIT_NAME): Replace with INIT_TOKEN_NAME. Update tokens_used.
2690 (SPELL_ macros): Replace with enum.
2691 (expand_token_space): Replace with _cpp_expand_token_space.
2692 Take COUNT argument.
2693 (IS_DIRECTIVE): Update.
2694 (_cpp_lex_line): Update token structure before parsing number.
2695 Don't assume start at beginning of token list.
2696 (save_comment): Use INIT_TOKEN_NAME.
2698 2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
2700 * configure.in (stage1_warn_cflags): Add -Wstrict-prototypes
2701 -Wmissing-prototypes.
2702 * configure: Regenerate.
2703 * gcc.texi: Remove explanation of MD_CALL_PROTOTYPES.
2705 * builtins.c, calls.c: Change all instances of gen_call_* or
2706 gen_sibcall_* to GEN_CALL_* and GEN_SIBCALL_*.
2707 * calls.c (struct_value_size_rtx): Separate definition from
2708 initialization to avoid unused variable warning.
2710 * genflags.c (gen_macro): New function.
2711 (gen_proto): Call it for gen_call_* and gen_sibcall_*.
2712 (gen_nonproto): Delete.
2713 (gen_insn): Put all insns on the same obstack.
2714 (main): Generate prototypes for everything unconditionally.
2716 * configure.in: Add AC_CHECK_TYPE(ssize_t). Remove commented
2717 out check for wchar_t.
2718 * acconfig.h: Add template for ssize_t. Remove @TOP@.
2719 * system.h: Add infrastructure for defining missing
2720 TYPE_MAX/TYPE_MIN macros. Use it to provide fallback
2721 definitions of UCHAR_MAX and SSIZE_MAX.
2722 * configure: Regenerate.
2723 * config.in: Regenerate.
2725 * Makefile.in (libgcc2.ready): Rename to libgcc.ready.
2726 Depend on $(LANGUAGES) as well as $(GCC_PATCHES) and fixed
2728 (clean): No need to delete libgcc1.a, libgcc1-asm.a,
2729 libgcc2.a, or libgcc1.null.
2731 2000-05-27 Richard Henderson <rth@cygnus.com>
2733 * Makefile.in (recog.o): Don't depend on resource.h.
2734 * recog.c: Don't include resource.h.
2735 (recog_last_allowed_insn): Remove.
2736 (recog_next_insn): Remove.
2737 (struct peep2_insn_data): New.
2738 (peep2_insn_data, peep2_current): New.
2739 (peep2_next_insn): New.
2740 (peep2_regno_dead_p, peep2_reg_dead_p): New.
2741 (peep2_find_free_register): New.
2742 (peephole2_optimize): Track life information by insn as we go.
2743 * recog.h: Update declarations.
2744 * resource.c (find_free_register, reg_dead_p): Remove.
2745 * resource.h: Remove their declarations.
2746 * toplev.c: Include hard-reg-set.h before recog.h.
2748 * genconfig.c (max_insns_per_peep2): New.
2749 (gen_peephole2): New.
2751 * genemit.c (output_peephole2_scratches): Generate calls to
2752 peep2_find_free_register; adjust surrounding code.
2753 (main): Have insn-emit.c include hard-reg-set.h before recog.h.
2754 * genrecog.c (change_state): Don't track last_insn.
2755 (write_action): Write into *_pmatch_len before accepting.
2756 (write_tree): Adjust peephole2_insns and subroutines to match.
2758 * config/i386/i386.md (all peepholes): Use peep2_regno_dead_p.
2760 * config/alpha/alpha.c (hard_fp_register_operand): Mind the mode.
2761 (hard_int_register_operand): New.
2762 * config/alpha/alpha-protos.h: Declare it.
2763 * config/alpha/alpha.h (PREDICATE_CODES): Update.
2764 * config/alpha/alpha.md (peep2 patterns): Use hard_int_register_operand
2765 as needed; use peep2_reg_dead_p instead of dead_or_set_p.
2767 2000-05-27 Richard Henderson <rth@cygnus.com>
2769 * function.c (thread_prologue_epilogue_insns): Don't move the
2770 line note at the head of the chain. Only force a lineno note
2771 before the end of block 0.
2773 2000-05-27 Richard Henderson <rth@cygnus.com>
2775 * gensupport.c (collect_insn_data): Record the maximum number
2776 of alternatives, not the last seen.
2778 * genoutput.c: Don't include errors.h.
2779 (struct data): Add lineno member.
2781 (scan_operands): Use message_with_line instead of error.
2782 (validate_insn_alternatives): Likewise.
2783 (gen_insn): Accept and store the pattern's line number.
2784 (gen_peephole, gen_expand, gen_split): Likewise.
2785 (main): Don't set progname. Pass line_no to gen_foo.
2787 2000-05-27 Richard Henderson <rth@cygnus.com>
2789 * config/d30v/d30v.c (d30v_print_operand): Handle ':'.
2790 * config/d30v/d30v.h (PRINT_OPERAND_PUNCT_VALID_P): Accept ':'.
2791 * config/d30v/d30v.md (attr predicable): New.
2792 (all insn patterns): Mark non-predicable patterns; use %: on the rest.
2793 (andsi3*): Unify into one pattern.
2794 (iorsi3*, xorsi3*): Likewise.
2795 (peephole2 patterns): Use peep2_reg_dead_p; verify not a
2797 (old cond_exec patterns): Remove.
2798 (define_cond_exec): New.
2800 Sat May 27 11:01:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2802 * tree.h (TREE_CODE_LENGTH): New macro.
2803 * c-common.c (c_find_base_decl): Use it.
2804 * expr.c (safe_from_p): Likewise.
2805 * print-tree.c (print_node): Likewise.
2806 * tree.c (make_node, copy_node, get_identifier): Likewie.
2807 (first_rtl_op, contains_placeholder_p, substitute_in_expr): Likewise.
2808 (build, build_nt, build_parse_node, simple_cst_equal): Likewise.
2809 * fold-const.c (make_range): Likewise.
2810 (fold): Likewise; also use first_rtl_op.
2811 * c-iterate.c (collect_iterators): Use first_rtl_op.
2812 * calls.c (calls_function_1): Likewise; also rename TYPE to CLASS.
2813 Use IS_EXPR_CODE_CLASS.
2814 (preexpand_calls): Likewise.
2815 * ggc-common.c (ggc_mark_trees): Rework to use first_rtl_op
2816 and TREE_CODE_LENGTH.
2817 * stmt.c (warn_if_unused_value): If no operands, no unused value.
2819 2000-05-26 Geoffrey Keating <geoffk@cygnus.com>
2821 * config/rs6000/rs6000.md (movsi_internal1): Use '%a1' rather
2823 (movdi_internal64): Likewise.
2825 * config/rs6000/rs6000.md: Correct order of operands for DImode
2828 * config/rs6000/rs6000.c (boolean_or_operator): New function.
2829 * config/rs6000/rs6000-protos.h (boolean_or_operator): Prototype it.
2830 * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_or_operator.
2831 * config/rs6000/rs6000.md: Use boolean_or_operator instead of
2832 boolean_operator for the boolean patterns without NOTs.
2834 * config/rs6000/rs6000.c (reg_or_logical_cint_operand): Rename
2835 from reg_or_u_cint_operand. Change comment and behaviour.
2836 (logical_operand): Clean up, add assertion.
2837 (non_logical_cint_operand): Also check for
2838 reg_or_logical_cint_operand.
2839 * config/rs6000/rs6000.h (PREDICATE_CODES): Update.
2840 * config/rs6000/rs6000.md (iorsi3): Use reg_or_logical_cint_operand
2846 2000-05-26 Mark Mitchell <mark@codesourcery.com>
2848 * tree.h (struct record_layout_info): Rename to (struct
2849 record_layout_info_s).
2850 * stor-layout.c (start_record_layout): Replace
2851 `record_layout_info' with `record_layout_info_s'.
2853 2000-05-26 Richard Earnshaw <rearnsha@arm.com>
2855 * flow.c (find_label_refs): New function.
2856 (find_basic_blocks_1): Call it for each alternative of a call
2859 2000-05-26 Richard Earnshaw <rearnsha@arm.com>
2861 * ifcvt.c (cond_exec_get_condition): Set test_if to the SET_SRC
2864 2000-05-25 Richard Henderson <rth@cygnus.com>
2866 * config/alpha/alpha.c (alpha_comparison_operator): Don't be
2867 so strict about DImode.
2868 (alpha_swapped_comparison_operator): Likewise.
2869 * config/alpha/alpha.md (*setne_internal): Name it. Allow
2870 any integer output mode.
2871 (*setcc_internal): Likewise.
2872 (*setcc_swapped_internal): Likewise.
2873 (*movdicc_internal, *movdicc_lbc, *movdicc_lbs): Name them.
2874 (*mov[qhs]icc_internal): New.
2875 (*mov[qhs]icc_lbc, *mov[qhs]icc_lbs): New.
2877 2000-05-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2879 * vax.h (CPP_SPEC): Define __GFLOAT and GFLOAT when -mg is specified.
2881 2000-05-25 Richard Henderson <rth@cygnus.com>
2883 * bb-reorder.c (reorder_block_def): Reorder elements for size.
2884 Remove add_jump; add next; replace flags with visited.
2886 (REORDER_BLOCK_HEAD, REORDER_BLOCK_VISITED): Remove.
2887 (REORDER_BLOCK_FLAGS, REORDER_BLOCK_INDEX): Remove.
2888 (REORDER_BLOCK_ADD_JUMP, REORDER_BLOCK_EFF_HEAD): Remove.
2889 (REORDER_BLOCK_EFF_END, REORDER_BLOCK_SCOPE): Remove.
2891 (reorder_index, reorder_last_visited): Remove.
2892 (skip_insns_after_block): Rewrite to use a switch.
2893 (get_common_dest): Remove.
2894 (chain_reorder_blocks): Remove.
2895 (record_effective_endpoints): Split out from reorder_basic_blocks.
2896 (make_reorder_chain): Likewise. Loop until all blocks are placed.
2897 (make_reorder_chain_1): Renamed from old make_reorder_chain.
2898 Only construct the reorder chain, do not move insns. Try harder
2900 (label_for_bb, emit_jump_to_block_after): New.
2901 (fixup_reorder_chain): Use them. Do bulk block movement. Examine
2902 and adjust the jump insns appropriately. Fixup basic_block_info.
2903 (verify_insn_chain): Always define.
2904 (relate_bbs_with_scopes): Call xmalloc, not xcalloc. Fix thinko
2906 (make_new_scope): Don't write zeros to calloc'd space.
2907 (build_scope_forest): Rely on xrealloc to DTRT.
2908 (reorder_basic_blocks): Don't build loop nest. Don't fail if
2909 profile_arc_flag. Streamline EH test.
2911 * flow.c (redirect_edge_succ, redirect_edge_pred): New.
2912 * basic-block.h: Declare them.
2914 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
2916 * emit-rtl.c (reset_used_decls): New function.
2917 (unshare_all_rtl_again): Call it.
2919 2000-05-25 Zack Weinberg <zack@wolery.cumb.org>
2921 * cpplex.c (maybe_macroexpand): Warn about function-like
2922 macros used in non-function context, if -Wtraditional.
2924 2000-05-25 Mark Mitchell <mark@codesourcery.com>
2926 * recog.c (peephole2_optimize): Use INSN_P.
2928 2000-05-25 Richard Henderson <rth@cygnus.com>
2930 * ifcvt.c (seq_contains_jump): New.
2931 (noce_try_store_flag_constants): Use it to fail conversion.
2932 (noce_try_store_flag_inc, noce_try_store_flag_mask): Likewise.
2934 2000-05-25 Mark Mitchell <mark@codesourcery.com>
2936 * except.h (can_throw): Declare it.
2937 * except.c (can_throw): Give it external linkage.
2938 * resource.c (find_dead_or_set_registers): Use can_throw.
2940 2000-05-25 Richard Henderson <rth@cygnus.com>
2942 * flow.c (mark_set_1): Don't record conditionally dead memory.
2944 2000-05-25 Jan Hubicka <jh@suse.cz>
2946 * combine.c (try_combine): Use any_condjump_p, any_uncondjump_p
2947 and pc_set at the place of simplejump_p and condjump_p.
2948 * cse.c (record_jump_equiv): Likewise.
2949 * emit-rtl.c (emit): Likewise.
2950 * explow.c (find_next_ref): Likewise.
2951 * flow.c (tidy_fallthru_edge): Likewise.
2952 (init_propagate_block_info): Likewise.
2953 * gcse.c (delete_null_pointer_checks): Likewise.
2954 * ifcvt.c (cond_exec_get_condition, noce_get_condition,
2955 dead_or_predicable): Likewise.
2956 * integrate.c (copy_insn_list): Likewise.
2957 * loop.c (scan_loop, verify_dominator, find_and_verify_loops,
2958 for_each_insn_in_loop, check_dbra_loop, get_condition,
2959 insert_bct, load_mems): Likewise.
2960 * resource.c (find_dead_or_set_registers): Likewise.
2961 * sibcalls.c (simplejump_p): Likewise.
2962 * unroll.c (copy_loop_body, reg_dead_after_loop): Likewise.
2964 2000-05-25 David Edelsohn <edelsohn@gnu.org>
2966 * rs6000.c (expand_block_move): Add 64-bit PowerPC doubleword move
2967 to STRING case. Use doubleword STRING move for TARGET_POWERPC64
2969 * rs6000.h (CONST_OK_FOR_LETTER_P, 'J'): unsigned HOST_WIDE_INT.
2970 (RETURN_ADDR_RTX): Use COUNT and FRAME, not count and frame.
2971 (LEGITIMIZE_RELOAD_ADDRESS): unsigned HOST_WIDE_INT high.
2972 * rs6000.md: Name various internal patterns.
2974 2000-05-25 Jan Hubicka <jh@suse.cz>
2976 * jump.c (invert_exp_1): Remove first argument, use pc_set
2977 to get the expression.
2978 (redirect_exp): Make static; redirect only the pc_set expression,
2979 remove first argument.
2980 (invert_exp): Remove first argument, make static.
2981 (jump_optimize): Use any_condjump_p, any_uncondjump_p and
2982 any_onlyjump at most places where we originaly did condjump_p
2984 (jump_back_p, follow_jumps, thread_jumps): Likewise.
2985 (delete_barrier_succesors): Use pc_set.
2986 (invert_jump_1, invert_jump, redirect_jump_1, redirect_jump): Update
2987 calls of invert_exp and redirect_exp.
2988 * rtl.h (redirect_exp, invert_exp): Remove.
2989 * unroll.c (copy_loop_body): Use invert_jump and redirect_jump.
2991 2000-05-25 Richard Henderson <rth@cygnus.com>
2993 * stmt.c (expand_end_bindings): Fix thinko last change.
2995 2000-05-25 Andrew MacLeod <amacleod@cygnus.com>
2996 Andrew Haley <aph@cygnus.com>
2998 * except.c (func_eh_entry): Add emitted field.
2999 (new_eh_region_entry): Set emitted field to 0;
3000 (output_exception_table_entry): Only emit previously un-emitted data,
3001 and send it to the eh_data section.
3002 (output_exception_table): Break out common parts. Output
3003 exception table for entire compilation unit to eh_data section.
3004 (output_exception_table_data): Common parts of output_exception_table.
3005 Send output to eh_data section.
3006 (output_function_exception_table): Output exception table data for
3007 a single function to eh_data section.
3008 (free_exception_table): New external to free the table.
3009 * except.h (free_exception_table): Add prototype.
3010 (output_function_exception_table): Add prototype.
3011 * final.c (final_end_function): Output function exception table
3012 for IA64_UNWIND_INFO.
3013 (final_scan_insn): Emit any unwind directives for an insn.
3015 * frame-dwarf2.c: New file containing all DWARF 2 specific code
3017 * frame.c: Remove all DWARF 2 specific code.
3018 * config/ia64/frame-ia64.c: New file.
3019 (gthread_stuff): Make all gthread available with
3021 (dwarf_fde): Define an IA64 struct for dwarf_fde.
3022 (__register_frame_info, __register_frame): Move to common area of file.
3023 (__register_frame_info_table, __register_frame_table): Move to common i
3025 (__deregister_frame_info, __deregister_frame): Move to common area.
3026 (__frame_init, find_fde): New versions for IA64_UNWIND_INFO.
3027 (read_uleb128): New version for ia64.
3028 (get_unwind_record): Read the next IA-64 unwind record.
3029 (read_R_record): Read a region header record.
3030 (process_a_b_reg_code): X record helper.
3031 (read_X_record): Read an X format record.
3032 (read_B_record): Read a B format record.
3033 (P3_record_types): List of record types matching the P3 format.
3034 (P7_record_types): List of record types matching the P7 format.
3035 (P8_record_types): List of record types matching the P8 format.
3036 (read_P_record): Read a P format record.
3037 (init_ia64_reg_loc): Set default fields for a register.
3038 (init_ia64_unwind_frame): Set defaults for all register records.
3039 (execute_one_ia64_descriptor): Execute one descriptor record.
3040 (rse_address_add): Calculate the position of a local reg in memory.
3041 (normalize_reg_loc): Turn a location descriptor into a memory address.
3042 (maybe_normalize_reg_loc): Only normalize a descriptor if it falls
3043 within a specified PC offset range.
3044 (get_real_reg_value): Given a register location, retrieve its value.
3045 (set_real_reg_value): Change the value of a register location.
3046 (copy_reg_value): Copy reg values, if needed.
3047 (copy_saved_reg_state): Copy all registers that need to be copied.
3048 (process_state_between): Normalize all frame register records that
3049 fall within the specified PC range.
3050 (frame_translate): Take a processed frame description, and turn
3051 everything into addresses.
3052 (build_ia64_frame_state ): Find and create frame state record for a PC.
3053 (get_personality): Get the personality routine for a given frame.
3054 (get_except_table): Get the exception table for a given frame.
3055 (record_name): Unwind record names for debugging.
3056 (print_record): Print and unwind record.
3057 (print_all_records): Print an entire unwind image.
3058 (__ia64_backtrace): Print a backtrace.
3059 (ia64_backtrace_helper): New function.
3060 (__register_frame_info_aux): New function.
3061 * config/ia64/crtend.asm (__do_frame_setup_aux): New function.
3063 * frame.h (enum unw_record_type): New unwind record types.
3064 (struct unw_p_record, unw_b_record, unw_x_record) : New unwind records.
3065 (struct unw_r_record, unwind_record): New unwind record structs.
3066 (struct unwind_info_ptr): Unwind information layout.
3067 (IA64_UNW_LOC_TYPE_*): Macros for different types for location
3069 (struct ia64_reg_loc): Register location description.
3070 (struct ia64_frame_state): Location of all registers in a frame.
3071 (struct object): Add pc_base and fde_end for IA64_UNWIND_INFO.
3072 * libgcc2.c (__ia64_personality_v1): Personality routine.
3073 (__calc_caller_bsp): Calculate the bsp register for the caller's
3075 (ia64_throw_helper): Figure out who to return to and set up the
3077 (__throw): Throw routine.
3079 * output.h (assemble_eh_align, assemble_eh_label): New functions
3080 to generate EH info where we want it.
3081 (assemble_eh_integer): New function.
3082 * toplev.c (compile_file): Output module level exception table for
3084 (main): Set exceptions_via_longjump and flag_new_exceptions based
3085 on IA64_UNWIND_INFO too.
3087 * varasm.c (assemble_eh_label): Generate a label via
3088 ASM_OUTPUT_EH_LABEL if it has been specified.
3089 (assemble_eh_align): Generate an alignment directive via
3090 ASM_OUTPUT_EH_ALIGN if it has been specified.
3091 (assemble_eh_label): Generate an integer value via
3092 ASM_OUTPUT_EH_type if they have been specified.
3093 * config/ia64/ia64.c (rtx_needs_barrier): Add flushrs.
3094 (ia64_init_builtins): Add __builtin_ia64_bsp
3095 and __builtin_ia64_flushrs.
3096 (ia64_expand_builtin): Add IA64_BUILTIN_BSP and
3097 IA64_BUILTIN_FLUSHRS.
3098 * config/ia64/ia64.h (ia64_builtins): Add IA64_BUILTIN_BSP and
3099 IA64_BUILTIN_FLUSHRS.
3101 * config/ia64/ia64.md (flushrs): New insn to flush the register
3102 stack. Add to unspec list.
3104 * config/ia64/crtbegin.asm (frame_object): Change size.
3105 (__do_frame_setup_aux): New function.
3106 * config/ia64/crtend.asm: call __do_frame_setup_aux.
3107 * config/ia64/t-ia64 (LIB2ADDEH): Add.
3108 * Makefile.in (LIB2ADDEH): Add.
3109 (LIB2ADD): Use LIB2ADDEH.
3111 2000-05-24 Richard Henderson <rth@cygnus.com>
3113 * recog.c (offsettable_address_p): If mode size is zero, assume
3116 2000-05-24 J. David Anglin <dave@hiauly.hia.nrc.ca>
3118 * configure.in: Check for -Wno-long-long option support and improve
3119 handling of warning CFLAGS for stages 1 and 2.
3120 * Makefile.in (WARN_CFLAGS): Move definition to configure.in.
3121 * configure: Regenerate.
3123 Wed May 24 19:37:53 2000 Jeffrey A Law (law@cygnus.com)
3125 * gcc.texi: Remove contributor list. Instead include contrib.texi.
3126 * contrib.texi: New file.
3128 Thu May 25 02:27:22 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3130 * loop.c (basic_induction_var): Avoid double recording of an increment.
3132 Thu May 25 02:19:27 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3134 * Back out this patch:
3135 Tue Dec 7 19:22:06 1999 Richard Henderson <rth@cygnus.com>
3136 * loop.h (struct induction): Add multi_insn_incr.
3137 * loop.c (basic_induction_var): New multi_insn_incr argument.
3138 Set it if we search back through previous insns for the biv.
3139 (record_biv): New multi_insn_incr argument; fill in struct induction.
3140 (strength_reduce): Discard an iv with multiple bivs, any of
3141 which require multiple insns to increment.
3143 * loop.c (check_insn_for_bivs): Remove bits copied from above patch.
3145 Thu May 25 02:09:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3147 * rtl.h (loc_mentioned_in_p): Declare.
3148 * reload.c (loc_mentioned_in_p): Moved from here...
3149 * rtlanal.c (loc_mentioned_in_p): to here. No longer static.
3150 Fix loop increment for 'E' handling.
3151 * loop.c (strength_reduce): When doing biv->giv conversion,
3152 take multi-insn biv increments into account.
3154 2000-05-24 Jason Merrill <jason@casey.soma.redhat.com>
3156 * stmt.c (expand_end_bindings): Look through NOTEs to find a
3159 2000-05-24 Mark Mitchell <mark@codesourcery.com>
3161 * calls.c (expand_call): Handle cleanups in tail-recursion
3162 arguments analagously to cleanups in sibling calls.
3164 2000-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3166 * simplify-rtx.c: Rename macro SIGN_EXTEND to HWI_SIGN_EXTEND.
3167 All callers changed.
3169 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
3171 * expr.c (expand_assignment, store_expr, expand_expr,
3172 expand_expr_unaligned): Set in_check_memory_usage while emitting
3173 chkr_check_addr libcall.
3175 2000-05-24 Nick Clifton <nickc@cygnus.com>
3177 * fold-const.c (extract_muldiv): When constructing a
3178 multiplier/divisor, do not expect const_binop to correctly
3179 determine if overflow has occured, so check explicitly.
3181 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
3183 * c-decl.c (build_enumerator): Don't modify the value's type,
3186 2000-05-24 Andreas Jaeger <aj@suse.de>
3188 * mips.h (LINKER_ENDIAN_SPEC): Pass -EL to linker by default.
3190 2000-05-24 Eric Christopher <echristo@cygnus.com>
3192 * configure.in: Redefine inhibit_libc conditions.
3193 * libgcc2.c: Remove inhibit_libc conditional define.
3194 * configure: Regenerate.
3196 2000-05-24 Phil Edwards <pme@sourceware.cygnus.com>
3198 * configure.in: For --enable-languages=LIST, check for empty LIST.
3199 * configure: Regenerate.
3201 2000-05-24 Lars Brinkhoff <lars@nocrew.org>
3203 * pdp11.h (STACK_BOUNDARY): Define.
3205 2000-05-24 Jakub Jelinek <jakub@redhat.com>
3207 * ifcvt.c (if_convert): Update life info globally.
3209 2000-05-24 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3211 * emit-rtl.c (unshare_all_decls): New function.
3212 (unshare_all_rtl): Call it.
3214 2000-05-23 Nick Clifton <nickc@cygnus.com>
3216 * configure.in: Treat 'strongarm' as if it were 'arm' when
3217 determining cpu type.
3219 * configure: Regenerate.
3221 * config/arm/arm.c: Change 'char *' to 'const char *' for cases
3222 where constant strings are involved.
3224 * config/arm/arm.h (arm_condition_codes): Change type to 'const
3227 * config/arm/arm-protos.h: Change 'char *' to 'const char *' for
3228 cases where constant strings are involved.
3230 Tue May 23 15:08:31 2000 Clinton Popetz <cpopetz@cygnus.com>
3232 * config/sh/sh.c (gen_far_branch, split_branches): Update
3233 to reflect new prototypes for redirect_jump and invert_jump.
3234 (sh_insn_length_adjustment): Get rid of const warnings.
3236 2000-05-23 Kazu Hirata <kazu@hxi.com>
3238 * invoke.texi (Options for Debugging Your Program or GCC): Update
3239 the names of dump files.
3241 Tue May 23 13:58:52 2000 Philippe De Muyter <phdm@macqel.be>
3243 * configure.in (NO_MINUS_C_MINUS_O): Fix thinko in previous fix.
3244 * configure: Regenerated.
3246 2000-05-23 Zack Weinberg <zack@wolery.cumb.org>
3248 * simplify-rtx.c (SIGN_EXTEND): New macro.
3249 (simplify_unary_operation, simplify_binary_operation,
3250 simplify_relational_operation): Use SIGN_EXTEND. Make low
3251 halves of (low, high) pairs unsigned if they weren't already.
3252 (simplify_ternary_operation): Cast INTVAL to unsigned before
3253 comparing to a MODE_BITSIZE.
3255 2000-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3257 * aclocal.m4 (gcc_AC_CHECK_DECL, gcc_AC_CHECK_DECLS): New macros
3258 rewritten from the internals of gcc_AC_NEED_DECLARATION{S}.
3260 * configure.in (gcc_AC_CHECK_DECLS): Call this instead of
3261 gcc_AC_NEED_DECLARATIONS.
3263 * dwarfout.c: Don't prototype time().
3265 * gcc.c: Check HAVE_DECL_* instead of NEED_DECLARATION_*.
3267 * system.h: Likewise.
3269 * toplev.c: Likewise.
3271 2000-05-23 Zack Weinberg <zack@wolery.cumb.org>
3273 * c-decl.c (pushdecl): Invert sense of test for non-global types.
3275 Tue May 23 18:11:42 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3277 * reload1.c (reload_cse_move2add): Honor TRULY_NOOP_TRUNCATION.
3279 2000-05-23 Jonathan Larmour <jlarmour@redhat.co.uk>
3281 * config/mips/elf64.h (CTOR_LISTS_DEFINED_EXTERNALLY): Define
3283 Tue May 23 06:50:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3285 * config/alpha/alpha.c: Remove #ifdef HAIFA since now only scheduler.
3286 (alpha_start_function): Never write ..ng label if VMS or NT.
3287 (alpha_align_insns): Remove GP_IN_USE arg.
3288 Alignment now unsigned.
3289 (alpha_reorg): Don't pass GP_IN_USE arg to alpha_align_insns.
3290 * config/alpha/alpha.md (prologue_ldgp): Split into one define_expand
3291 and two define_insn's.
3293 2000-05-22 Richard Henderson <rth@cygnus.com>
3295 * combine.c (simplify_comparison): Use trunc_int_for_mode.
3297 2000-05-22 Richard Henderson <rth@cygnus.com>
3299 * stor-layout.c (place_field): Change rli->size to rli->offset.
3301 2000-05-22 Richard Henderson <rth@cygnus.com>
3303 * function.c (thread_prologue_and_epilogue_insns): Make sure
3304 existing line number notes appear after the prologue.
3306 Mon May 22 21:49:00 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3308 * config/alpha/alpha.c (alpha_fnname): New static variable.
3309 (print_operand, case '~'): New case.
3310 (alpha_expand_prologue): Emit prologue_ldgp insn if needed.
3311 (alpha_start_function): Set alpha_fnname.
3312 Write "ng" label if no ldgp; don't write ldgp insn.
3313 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): New case '~'.
3314 * config/alpha/alpha.md (prologue_ldgp): New define_insn.
3316 Mon May 22 11:30:48 2000 Clinton Popetz <cpopetz@cygnus.com>
3318 * jump.c (jump_optimize_1): Don't increment LABEL_NUSES
3321 2000-05-22 Zack Weinberg <zack@wolery.cumb.org>
3323 * varasm.c (eh_frame_section): Revert change to argument list.
3325 Mon May 22 13:14:03 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3327 * optabs.c (can_extend_p): Allow unsignedp to have any nonzero value.
3328 (gen_extend_insn, can_fix_p, can_float_p): Likewise.
3330 * final.c (final_scan_insn, case NOTE_INSN_FUNCTION_BEG): Remove
3331 dangling "else" that causes "break" to be conditional.
3332 Also remove unneeded code at start.
3334 Mon May 22 17:31:35 2000 Philippe De Muyter <phdm@macqel.be>
3336 * m68k/m68k.h (STORE_FLAG_VALUE): Macro set to (-1), not -1.
3337 * fx80/fx80.h, i370/i370.h, m88k/m88k.h (STORE_FLAG_VALUE): Ditto.
3338 * gmicro/gmicro.h, we32k/we32k.h (STORE_FLAG_VALUE): Ditto.
3340 2000-05-22 Jakub Jelinek <jakub@redhat.com>
3342 * config/sparc/sparc.md (movdf_insn_v9only_vis): fzero has
3345 Mon May 22 06:57:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3347 * alias.c (record_component_aliases): New function.
3348 * tree.h: Clean up some declarations and comments.
3349 (record_component_aliases): New declaration.
3350 * tree.c (get_alias_set): If type and has alias set, use it.
3352 2000-05-22 Richard Henderson <rth@cygnus.com>
3354 * simplify-rtx.c (simplify_ternary_operation): Try to simplify
3355 IF_THEN_ELSE to a setcc form.
3356 * jump.c (can_reverse_comparison_p): Be prepared for insn null.
3358 2000-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3360 * fixinc/inclhack.def (sun_malloc): Handle `calloc'.
3361 (sun_malloc, sysz_stdtypes_for_sun): Add test_text.
3363 Sun May 21 16:42:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3365 * combine.c (try_combine): Handle i3_subst_into_i2 case when I2 is
3368 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
3370 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
3371 * config/mn10300/mn10300.c (print_operand): Likewise.
3373 * final.c (split_double): Right shift of negative values is not
3376 * ifcvt.c (if_convert): Scan and kill dead code.
3378 * emit-rtl.c (unshare_all_rtl): Store the copied rtx.
3380 2000-05-20 Zack Weinberg <zack@wolery.cumb.org>
3382 * diagnostic.c: Eliminate implicit int.
3383 * except.c, gcc.c: Add static prototypes.
3384 * final.c (final_end_function): Mark file arg ATTRIBUTE_UNUSED.
3385 * gensupport.c (process_rtx): Use XVEC to initialize vector
3388 * print-rtl.c: If DEBUG_REGISTER_NAMES, define static
3389 debug_reg_names instead of static reg_names. If not, define
3391 * regclass.c: Don't define global reg_names unless
3392 DEBUG_REGISTER_NAMES is defined.
3394 * reload1.c (order_regs_for_reload): Remove unused variable.
3395 * varasm.c: Include output.h after defaults.h. Define
3396 eh_frame_section as function of no args, not of unspecified args.
3398 * gcc.c: Constify argbuf; arguments to store_arg,
3399 process_command, main; elements of struct command and struct
3400 switchstr; local variables in execute, process_command, main.
3402 2000-05-20 Bruce Korb <bkorb@gnu.org>
3404 * fixinc/inclhack.def: many applications of c_fix=format + tests
3405 * fixinc/check.diff: regenerated
3406 * fixinc/fixincl.x: regenerated
3408 Sat May 20 09:30:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3410 * alias.c: Clarify some comments.
3411 (record_base_value): REGNO is unsigned.
3412 * rtl.h (record_base_value): Likewise.
3414 * alias.c (aliases_everything_p): Don't special-case QImode here.
3415 * c-common.c (c_get_alias_set): Do it here.
3416 Handle BIT_FIELD_REF by getting alias info for arg.
3419 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
3421 * mklibgcc.in: Restore rule to create ${dir}.
3423 Sat May 20 08:45:41 2000 H.J. Lu <hjl@gnu.org>
3425 * Makefile.in (libgcc.mk): Depend on xgcc$(exeext) for
3426 GCC_FOR_TARGET used by MULTILIBS.
3427 * mklibgcc.in: Make sure each .o file depends on the
3428 directory it will be in.
3429 Make the multilib directory depends libgcc.
3431 Sat May 20 08:29:28 2000 H.J. Lu <hjl@gnu.org>
3433 * Makefile.in (bootstrap): Unset LANG_LIB2FUNCS for stage 1.
3435 Sat May 20 07:27:35 2000 Alexandre Oliva <aoliva@cygnus.com>
3437 * fold-const.c (make_range): Handle degenerated intervals.
3438 Fixes c-torture/execute/991221-1.c
3440 Fri May 19 18:16:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3442 * cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0.
3443 * reload.c (find_equiv_reg): Likewise.
3444 * alias.c (init_alias_analysis): Likewise.
3445 Only call prologue_epilogue_contains on insns.
3446 * basic-block.h (REG_SET_TO_HARD_REG_SET): Call new function.
3447 * bb-reorder.c (hard-reg-set.h): Include earlier.
3448 * haifa-sched.c (hard-reg-set.h): Likewise.
3449 * ifcvt.c (hard-reg-set.h): Likewise.
3450 * local-alloc.c (hard-reg-set.h): Likewise.
3451 * loop.c (hard-reg-set.h): Likewise.
3452 * predict.c (hard-reg-set.h): Likewise.
3453 * regrename.c (hard-reg-set.h): Likewise.
3454 * flow.c (hard-reg-set.h): Likewise.
3455 (reg_set_to_hard_reg_set): New function.
3456 * bitmap.c (regs.h, basic-block.h): No longer include.
3457 (bitmap.h): Now include.
3458 * conflict.c (hard-reg-set.h): Include.
3459 * profile.c (hard-reg-set.h): Likewise.
3460 * print-rtl.c (hard-reg-set.h): Likewise.
3461 * sbitmap.c (hard-reg-set.h): Likewise.
3462 * toplev.c (hard-reg-set.h): Likewise.
3463 * unroll.c (hard-reg-set.h, basic-block.h): Likewise.
3464 * hard-reg-set.h (reg_names): Now constant.
3465 * regs.h (reg_names): Likewise.
3466 * regclass.c (reg_names): Likewise.
3467 * loop.h (basic-block.h): No longer include.
3468 (bitmap.h): Now include.
3469 * reload1.c (order_regs_for_reload): Avoid loop over reg sets.
3470 * Makefile.in (LOOP_H, sbitmap.o, profile.o): Reflect above changes.
3471 (toplev.o, print-rtl.o, conflict.o, unroll.o, bitmap.o): Likewise.
3473 2000-05-19 Jan Hubicka <jh@suse.cz>
3474 Richard Henderson <rth@cygnus.com>
3476 * basic-block.h (struct edge_def): New field "count".
3477 (struct basic_block_def): Likewise.
3478 * flow.c (entry_exit_blocks): Add count fileds.
3479 (split_edge): Keep count information up-to-date.
3480 (dump_edge_info, dump_flow_info): Dump count fields.
3482 * final.c (count_instrumented_edges): Rename to edge from arc.
3483 (end_final): Update users.
3484 * profile.c: Include expr.h, basic-block.h.
3485 (struct adj_list, ARC_TARGET, ARC_SOURCE, ARC_COUNT): Kill.
3486 (struct bb_info, label_to_bb, label_to_bb_size, bb_graph): Kill.
3487 (ignore_next_note, return_label_execution_count): Kill.
3488 (bbg_file_name, da_file_name): Kill.
3489 (edge_info, bb_info): New structures.
3490 (EDGE_INFO, BB_INFO, GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): New macros.
3491 (count_instrumented_edges, total_num_edges): Rename to edge from arc.
3492 (total_num_edges_instrumented): Likewise.
3493 (init_arc, expand_spanning_tree): Kill.
3494 (fill_spanning_tree, tablejump_entry_p): Kill.
3495 (instrument_edges): Rewrite from instrument_arcs to use
3496 commit_edge_insertions infrastructure.
3497 (compute_branch_probabilities): Remove arguments; rewrite for
3498 CFG infrastructure; use rtl_dump_file directly.
3499 (branch_prob, find_spanning_tree): Likewise.
3500 (union_groups, find_group): New.
3501 (init_branch_prob): Make bbg_file_name and da_file_name local.
3502 (end_branch_prob): Use rtl_dump_file directly.
3503 (init_edge_profiler): Rename to edge from arc.
3504 (output_arc_profiler): Kill.
3505 (gen_edge_profiler): New.
3506 (output_func_start_profiler): Turn off profiling. Make the
3507 constructor static when we can.
3508 * rtl.h (branch_prob, end_branch_prob): Update prototypes.
3510 * toplev.c (DFI_flow): Remove.
3511 (DFI_cfg, DFI_life): New.
3512 (dump_file): Update accordingly.
3513 (compile_file): Call end_branch_prob if profile_arc_flag too.
3514 (rest_of_compilation): Move flow1 cfg creation to DFI_cfg. Do edge
3515 profiling after the CFG is built. Move flow1 life analysis to
3516 DFI_life. Always estimate remaining probabilities.
3518 2000-05-19 Richard Henderson <rth@cygnus.com>
3520 * ifcvt.c (find_if_case_2): Don't allow THEN to be EXIT.
3522 * flow.c (make_edges): The sibling call edge to exit is abnormal.
3524 2000-05-19 Richard Henderson <rth@cygnus.com>
3526 * jump.c (redirect_jump): Add delete_unused argument. Don't
3527 remove labels and code following when LABEL_NUSES goes to zero.
3528 (invert_jump): Likewise.
3529 (jump_optimize_1): Fix redirect/invert arguments.
3530 (do_cross_jump, thread_jumps): Likewise.
3531 * flow.c (split_edge): Likewise.
3532 * reorg.c (optimize_skip): Likewise.
3533 (reorg_redirect_jump, relax_delay_slots, dbr_schedule): Likewise.
3534 * profile.c (instrument_arcs): Likewise.
3535 * loop.c (find_and_verify_loops): Likewise. Fix indentation.
3536 * rtl.h: Update prototypes.
3538 Fri May 19 12:05:13 2000 Clinton Popetz <cpopetz@cygnus.com>
3540 * ssa.c (convert_from_ssa): Tell life_analysis we need death
3542 (make_regs_equivalent_over_bad_edges): Only look at abnormal
3545 2000-05-19 Zack Weinberg <zack@wolery.cumb.org>
3547 * cpphash.c (funlike_macroexpand): Make sure not to walk p1
3548 past l1 when deleting whitespace and markers.
3550 * cpplex.c (_cpp_scan_until): Clear AUX field of tokens.
3551 * cpplib.c (do_unassert): Put the list to compare against on
3554 2000-05-19 Bruce Korb <bkorb@gnu.org>
3556 * fixinc/README: cleaned up old documentation
3557 * fixinc/check.diff: regenerated & verified on OSR5 on ix86
3558 * fixinc/check.tpl: compute the list of needed directories
3559 emit "#if defined(name)" because of conflict
3560 omit machine name differences from output differences
3561 * fixinc/inclhack.def( m88k_multi_incl ): Use `wrap' function
3562 (machine_name): change test text to use `sed' markers
3563 * fixinc/fixincl.x: regen
3565 Fri May 19 06:49:35 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3567 * config/elfos.h (SELECT_SECTION): Don't access DECL_INITIAL of
3570 2000-05-18 Chris Demetriou <cgd@sibyte.com>
3572 * gcc.texi (MULTILIB_EXCEPTIONS): Correct example and update
3573 it to match the current practice.
3575 2000-05-18 Mark Mitchell <mark@codesourcery.com>
3577 * Makefile.in (STAGESTUFF): Fix typo in spelling of s-under.
3579 2000-05-18 Richard Henderson <rth@cygnus.com>
3581 * rtlanal.c (insn_dependant_p, insn_dependant_p_1): New.
3582 * rtl.h (insn_dependant_p): Declare it.
3583 * loop.c (strength_reduce): Use it.
3585 2000-05-18 Alexandre Oliva <aoliva@cygnus.com>
3587 * config/mn10300/mn10300.c (expand_prologue, expand_epilogue):
3588 16-bit and 64-bit clean-up.
3590 2000-05-18 Mark Elbrecht <snowball3@bigfoot.com>
3592 * configure.in (*-pc-msdosdjgpp): Set float_format to none.
3593 * configure: Rebuilt.
3595 2000-05-18 Zack Weinberg <zack@wolery.cumb.org>
3597 * genopinit.c: Use $ for escape sequences in optab patterns.
3598 Remove backslashes from optab patterns. Change $A, $B, $C to
3599 expand to (int) whatever instead of just whatever; remove
3600 explicit (int) from all optab patterns.
3602 * gensupport.c (xmalloc, xrealloc, xstrdup): Provide.
3603 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c,
3604 genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
3605 genrecog.c: Remove private copies of xmalloc, xrealloc, and
3608 2000-05-18 Richard Henderson <rth@cygnus.com>
3610 * jump.c (jump_optimize_1): Base minimum insn count during
3611 find_cross_jump on BRANCH_COST.
3613 2000-05-18 Jakub Jelinek <jakub@redhat.com>
3615 * print-rtl.c (print_rtx): Only print note line number as string
3616 if between NOTE_INSN_BIAS and NOTE_INSN_MAX.
3617 * final.c (final_scan_insn): Do nothing for note line number 0.
3619 2000-05-18 Jakub Jelinek <jakub@redhat.com>
3621 * gcc-common.c (ggc_mark_rtx_children): Mark NOTE_EXPECTED_VALUE
3622 from NOTE_INSN_EXPECTED_VALUE notes and NOTE_SOURCE_FILE from
3623 NOTE_INSN_DELETED_LABEL.
3625 2000-05-18 Nick Clifton <nickc@cygnus.com>
3627 * config/arm/unknown-elf.h (UNIQUE_SECTION): Place constant,
3628 uninitialised data in .rodata not .bss, and do not interpret an
3629 error in the initialisation value as meaning that the variable
3630 should be placed in the .bss section.
3632 Thu May 18 12:10:18 2000 Philippe De Muyter <phdm@macqel.be>
3634 * configure.in (NO_MINUS_C_MINUS_O): Test `$ac_cv_prog_cc_${ac_cc}_c_o',
3635 not `$ac_cv_prog_cc_cc_c_o'.
3636 * configure: Regenerated.
3638 2000-05-18 Chris Demetriou <cgd@sibyte.com>
3639 Richard Henderson <rth@cygnus.com>
3641 * c-common.h (enum c_tree_index): Add g77 type entries.
3642 (g77_integer_type_node, g77_uinteger_type_node): New.
3643 (g77_longint_type_node, g77_ulongint_type_node): New.
3644 * c-decl.c (init_decl_processing): Initialize them.
3646 2000-05-18 Richard Henderson <rth@cygnus.com>
3648 * config/h8300/h8300.md (subs patterns): Use %G to negate.
3650 * config/h8300/h8300.c (ok_for_bclr): Take a HOST_WIDE_INT.
3651 (small_power_of_two): Likewise; use exact_log2.
3652 (adds_subs_operand, one_insn_adds_subs_operand): Remove.
3653 (output_adds_subs): Remove.
3654 (two_insn_adds_subs_operand): New.
3655 (split_adds_subs): New.
3656 * config/h8300/h8300-protos.h: Update.
3657 * config/h8300/h8300.h (CONST_OK_FOR_J): Cast to uns HOST_WIDE_INT.
3658 (CONST_OK_FOR_L): Match strict adds operands.
3659 (CONST_OK_FOR_N): Match struct subs operands.
3660 * config/h8300/h8300.md (adds_subs insns): Remove.
3661 (addhi patterns): Output adds/subs directly.
3662 (addsi_h8300h): Likewise.
3663 (addhi/addsi splitters): New. Decompose two_insn_adds_subs_operand.
3665 2000-05-18 Zack Weinberg <zack@wolery.cumb.org>
3667 * cppexp.c (parse_assertion): New.
3668 (lex): Call it for CPP_HASH. Remove CPP_ASSERTION case.
3669 (_cpp_parse_expr): Remove case '#'. Don't set
3670 parsing_if_directive.
3671 * cpphash.c (collect_objlike_expansion,
3672 collect_funlike_expansion, collect_params,
3673 _cpp_create_definition): The list no longer has a trailing
3675 * cpphash.h (enum node_type): Add T_ASSERTION.
3676 (struct hashnode): Remove aschain, add pred.
3677 (struct predicate): New.
3680 * cpplex.c (expand_token_space): Handle both offset and
3682 (init_token_list, _cpp_free_token_list, _cpp_parse_assertion): Delete.
3683 (_cpp_init_toklist, _cpp_clear_toklist, _cpp_free_toklist,
3684 _cpp_slice_toklist, _cpp_squeeze_toklist, _cpp_equiv_tokens,
3685 _cpp_equiv_toklists): New.
3686 (_cpp_scan_line): Rename to _cpp_scan_until; add ability to
3687 stop at any single-character token, not just newline.
3688 (_cpp_lex_token): Remove special cases for #define and #if.
3689 (cpp_get_token): Expect # as a separate token type. Remove
3691 (_cpp_get_directive_token): Remove DIRECTIVE case.
3692 (_cpp_lex_line, _cpp_lex_file, _cpp_init_input_buffer): Update.
3694 * cpplib.c (_cpp_check_directive): Set dirno and
3695 SYNTAX_INCLUDE bit of flags, not dir_handler and dir_flags.
3696 (_cpp_handle_directive): Run # <number> through the same logic
3697 as normal directives.
3698 (do_define): Don't set parsing_define_directive. Use
3699 _cpp_scan_until. The list does not have a VSPACE at the end.
3700 (do_if): Save, clear, and restore only_seen_white around
3702 (skip_if_group): s/CPP_DIRECTIVE/CPP_HASH/
3703 (do_assert, do_unassert): Rewrite.
3705 * cpplib.h (TTYPE_TABLE): Remove CPP_ASSERTION.
3706 (LIST_OFFSET): New flag.
3707 (struct cpp_toklist): Replace dir_handler and dir_flags with
3709 (struct cpp_reader): Remove parsing_if_directive and
3710 parsing_define_directive.
3712 2000-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3714 * fixinc/inclhack.def (broken_cabs): Update fix to handle comments
3715 following the cabs decl which terminate on the following line.
3716 Add the corresponding test_text case.
3718 2000-05-18 Neil Booth <NeilB@earthling.net>
3720 * cppinit.c (cpp_reader_init): Initialise col_adjust and
3721 default tab stop size.
3722 (no_num, OPT_ftabstop): New.
3723 (handle_option): Handle "ftabstop=" command-line option.
3724 (print_help): Document it.
3725 * cpplex.c (COLUMN): Remove.
3726 (handle_newline): Reset col_adjust.
3727 (skip_whitespace): Update col_adjust as tabs encountered.
3728 (_cpp_lex_line): Update to use col_adjust. Call
3729 skip_whitespace for all whitespace.
3730 * cpplib.h (struct cpp_options): New member tabstop.
3731 (struct cpp_reader): New member col_adjust.
3732 (CPP_BUF_COL): Update.
3733 (CPP_BUF_COLUMN): New.
3734 * cpp.texi: Document "-ftabstop=" command line option.
3736 Wed May 17 18:19:41 2000 Philippe De Muyter <phdm@macqel.be>
3738 * configure.in (NO_MINUS_C_MINUS_O): Macro made availabe for AC_OUTPUT
3740 * configure: Rebuilt.
3742 Wed May 17 18:06:12 2000 John David Anglin <dave@hiauly1.hia.nrc.ca>
3744 * mklibgcc.in Add missing -DL$name when compiling modules in libgcc1.c.
3746 * tree.c (build_common_tree_nodes): Do not build TI nodes unless
3747 HOST_BITS_PER_WIDE_INT is >= 64.
3749 2000-05-17 Richard Henderson <rth@cygnus.com>
3751 * jump.c (jump_optimize_1): Remove inactive but real insns
3752 in jump-to-next-insn optimization.
3754 2000-05-17 Richard Henderson <rth@cygnus.com>
3756 * toplev.c (rest_of_compilation): Don't call optimize_mode_switching
3757 unless OPTIMIZE_MODE_SWITCHING. Conditionally set no_new_pseudos.
3758 Don't call recompute_reg_usage if no_new_pseudos is true.
3759 * lcm.c (optimize_mode_switching): Move ifdefs outside function.
3760 Return true if we did work; update global life information.
3761 * basic-block.h (optimize_mode_switching): Update decl.
3763 2000-05-17 Neil Booth <neilb@earthling.net>
3765 * cpplex.c (expand_name_space): Don't use ptrdiff_t.
3767 2000-05-17 Zack Weinberg <zack@wolery.cumb.org>
3769 * cpplib.c: New feature, #pragma system_header.
3770 * cpp.texi: Document special treatment of system headers, and
3771 the various mechanisms to get a header that special treatment.
3773 2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3775 * system.h (offsetof): Define at the very end, to ensure we prefer
3776 the platform's definition if available.
3778 2000-05-16 Bruce Korb <bkorb@gnu.org>
3780 * fixinc/fixincl.c: improve the debug displays, ignore SIGPIPE
3781 * fixinc/server.c: likewise
3782 * fixinc/fixfixes.c( char_macro_def_fix ): fix regex
3783 + #ifdef debugging code + use #def constant for
3785 * fixinc/inclhack.def( hpux11_fabsf ): Keep HP-UX 11 from stomping
3786 on C++ math namespace
3788 2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3790 * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
3791 Don't check the return value of sprintf. Use asprintf to avoid
3794 Wed May 17 17:27:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
3796 * flags.h (warn_unused_function, warn_unused_label,
3797 warn_unused_parameter, warn_unused_variable, warn_unused_value):
3798 Replace ``warn_unused''.
3799 (set_Wunused): Add declaration.
3800 * toplev.c (set_Wunused): New function.
3801 (warn_unused_function, warn_unused_label, warn_unused_parameter,
3802 warn_unused_variable, warn_unused_value): New variables.
3803 (W_options): Add -Wunused-function, -Wunused-function,
3804 -Wunused-label, -Wunused-parameter, -Wunused-variable and
3805 -Wunused-value. Delete -Wunused. Handled in decode_W_option.
3807 * toplev.c (decode_W_option): Update -Wunused flags by calling
3809 * c-decl.c (c_decode_option): Ditto for -Wall.
3811 * stmt.c (expand_expr_stmt, expand_expr_stmt,
3812 warn_about_unused_variables): Replace warn_unused with more
3813 explicit warn_unused_value et.al.
3814 * function.c (expand_function_end): Ditto.
3815 * c-typeck.c (internal_build_compound_expr,
3816 internal_build_compound_expr): Ditto.
3817 * c-decl.c (poplevel, pop_label_level): Ditto.
3818 * toplev.c (check_global_declarations): Replace warn_unused with
3819 check for either warn_unused_function or warn_unused_variable.
3821 * gcc.1, invoke.texi (Warning Options): Document
3822 -Wunused-function, -Wunused-function, -Wunused-label,
3823 -Wunused-parameter, -Wunused-variable and -Wunused-value options.
3825 Wed May 17 10:28:12 2000 Philippe De Muyter <phdm@macqel.be>
3827 * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Find libgcc1.c in
3828 $(srcdir), not in the current directory.
3830 2000-05-16 Richard Henderson <rth@cygnus.com>
3832 * config/ia64/crtbegin.asm (__dso_handle): Mark hidden if the
3833 assembler supports it.
3834 (.fini, .init): Use a gp-relative indirect call.
3835 (__do_global_dtors_aux): Preserve the gp; rebundle.
3836 (__do_frame_setup): Likewise.
3837 * config/ia64/crtend.asm (.IA_64.unwind): Don't terminate with -1.
3838 (.init): Use a gp-relative indirect call.
3839 (__do_global_ctors_aux): Preserve the gp.
3841 2000-05-16 Richard Henderson <rth@cygnus.com>
3843 * flow.c (commit_one_edge_insertion): Be prepared for a return
3844 insn to be inserted on the edge with a normal jump.
3845 * jump.c (jump_optimize_1): Don't look to create return isns.
3847 * flow.c (flow_delete_insn): Don't adjust reference count of notes.
3848 * jump.c (jump_optimize_1): Likewise.
3849 (returnjump_p): Verify the argument is a JUMP_INSN.
3850 * rtl.def (NOTE): Add 5th element for NOTE_INSN_DELETED_LABEL.
3852 2000-05-16 Nick Clifton <nickc@cygnus.com>
3854 * config/m32r/m32r.c (small_insn_p): Use INSN_P() to replace
3855 GET_RTX_CLASS (GET_CODE ()) == 'i'.
3856 (large_insn_p): Ditto.
3857 (m32r_is_insn): New function: Return true if the insn contains
3858 an executable instruction.
3859 (m32r_adjust_insn): Use m32r_is_insn.
3860 (m32r_sched_reorder): Use m32r_is_insn.
3861 (m32r_sched_variable_issue): Use m32r_is_insn.
3863 2000-05-16 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3865 * rs6000/rs6000.c (rs6000_select_section): Treat CONSTRUCTOR like
3868 * rs6000/sysv4.h (ASM_OUTPUT_DWARF_ADDR): Delete unused variable.
3870 * rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Define __unix and __linux
3871 according to given options.
3873 Tue May 16 12:17:31 2000 Jeffrey A Law (law@cygnus.com)
3875 * mn10200.h (PREFERRED_RELOAD_CLASS): Do not prefer DATA_REGS
3876 if X has VOIDmode either.
3877 (LIMIT_RELOAD_CLASS): Similarly.
3879 * mn10200.md (indirect_jump, tablejump): Use "register_operand",
3880 not "general_operand" to match the processor's capabilities.
3882 2000-05-16 Bruce Korb <bkorb@gnu.org>
3884 * fixinc/README: corrected return address
3885 * fixinc/check.diff: regenerate, now that test works
3886 * fixinc/fixfixes.c(format_fix,format_write): reformatted
3887 (char_macro_def_fix,char_macro_use_fix): corrected and
3888 rewrote to use regex to parse the text
3889 * fixinc/inclhack.def: more testing
3890 * fixinc/fixincl.x: regenerated
3892 * fixinc/inclhack.def: added several "test_text" attributes
3893 changed several fixes to use `c_fix = format'
3894 re-alphabetized the fixes
3896 * fixinc/check.diff: regenerate
3897 * fixinc/fixincl.x: regenerate
3898 * fixinc/check.tpl: added `sparc' and `netinet' to the list
3902 2000-05-16 Alexandre Oliva <aoliva@cygnus.com>
3904 * config/mn10300/mn10300.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Remove.
3906 2000-05-15 Richard Henderson <rth@cygnus.com>
3908 * toplev.c (rest_of_compilation): Run full jump pass before
3909 find_basic_blocks of flow2.
3911 2000-05-15 Richard Henderson <rth@cygnus.com>
3913 * jump.c: Fix typos and clarify commentary from last change.
3914 (any_condjump_p): Verify SET_SRC is an IF_THEN_ELSE.
3915 (safe_to_remove_jump_p): Remove.
3916 (condjump_label): Use pc_set.
3918 2000-05-15 Richard Henderson <rth@cygnus.com>
3920 * ifcvt.c (cond_exec_process_insns): Drop USE and CLOBBER insns
3921 that get in the way after reload.
3922 (cond_exec_process_if_block): Skip a label heading THEN block.
3924 2000-05-15 Richard Henderson <rth@cygnus.com>
3926 * varasm.c (output_constant_pool): Abort instead of converting
3927 (improperly) deleted labels to zero.
3929 2000-05-16 Neil Booth <NeilB@earthling.net>
3931 * cpplex.c (parse_string2): Update comment.
3932 (cpp_lex_line): No special assertion treatment for '('.
3933 * cpplib.c (DIRECTIVE_TABLE): Remove SYNTAX_ASSERT.
3934 * cpplib.h (SYNTAX_ASSERT): Remove.
3936 Mon May 15 21:45:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
3938 * jump.c (condjump_p): Mark as depreached.
3939 (any_condump_p): New.
3940 (any_uncondump_p): New.
3942 (safe_to_remove_jump_p): New.
3943 * rtl.h (any_condump_p, any_uncondjump_p, pc_set
3944 safe_to_remove_jump_p): Declare.
3946 Mon May 15 21:07:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
3948 * calls.c: Re-install both patches reverted by last patch.
3949 (struct arg_data): New field tail_call_reg.
3950 (initialize_argument_information): Initialize tail_call_reg
3951 (load_register_parameters): New argument flags, use
3952 tail_call_reg when emiting tail call sequence.
3953 (expand_call): Update call of load_register_parameters;
3954 copy unadjusted_args_size to adjusted_args_size.
3956 Mon May 15 19:01:42 MET DST 2000 Jan Hubicka <jh@suse.cz>
3958 * loop.c (scan_loop, strength_reduce, loop_optimize): Change unroll_p
3959 and bct_p parameters to flags.
3960 * loop.h (LOOP_UNROLL, LOOP_BCT): New constants.
3961 * rtl.h (loop_optimize): Update prototype.
3962 * toplev.c (rest_of_compilation): Update call of loop_optimize.
3964 2000-05-15 Jakub Jelinek <jakub@redhat.com>
3966 * calls.c (expand_call): Move expand_start_target_temps call after
3969 2000-05-15 Neil Booth <NeilB@earthling.net>
3971 * cpphash.c (trad_stringify, warn_trad_stringify,
3972 collect_params): Make some pointers pointers to const.
3973 * cpplex.c (auto_expand_name_space) Guaranteed to always
3974 expand by at least one character.
3975 (SPELL_CHAR, SPELL_NONE): Temporarily reverse order.
3976 (struct token_spelling): Use const U_CHAR * rather than PTR.
3977 (expand_name_space): Fix up token pointers if name space
3978 is moved when expanding.
3979 (INIT_NAME, cpp_scan_line, parse_name, parse_number,
3980 parse_string2, save_comment, spell_token, cpp_output_list):
3981 Update so the routines handle tokens with a direct pointer to
3982 their text, rather than an offset into the token's list's namebuf.
3983 (_cpp_lex_line): Rearrange for clarity.
3985 * cpplib.c (_cpp_check_directive): Similarly.
3986 (do_define): Make SYM a pointer to const.
3987 * cpplib.h (struct cpp_name): Replace offset with direct pointer.
3988 (CPP_INT, CPP_FLOAT): Spelling type should be SPELL_IDENT.
3989 (TOK_OFFSET): Delete.
3992 2000-05-14 Geoffrey Keating <geoffk@cygnus.com>
3994 * config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Correct for
3997 * config/rs6000/rs6000.c (logical_operand): Rewrite to take MODE
3999 (logical_u_operand): Delete.
4000 (non_logical_cint_operand): Rewrite to take MODE into account.
4001 (non_logical_u_cint_operand): Delete.
4002 (boolean_operator): New function.
4003 (print_operand): Add new %q operand.
4004 * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_operator,
4005 remove logical_u_operand and non_logical_u_cint_operand,
4006 update logical_operand and non_logical_cint_operand.
4007 * config/rs6000/rs6000.md: Rewrite the patterns for performing
4008 logical operations to use %q.
4010 * config/rs6000/rs6000.md (movsi): Don't modify RTL in-place.
4011 (movdi): Make similar to movsi.
4012 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): There
4013 is no such thing as a DImode CONST_DOUBLE.
4014 * config/rs6000/rs6000.c (output_toc): Likewise.
4016 * config/rs6000/rs6000.c (output_cbranch): Don't output prediction
4017 codes when old mnemonics are in use. Print register names
4018 for cc registers when requested.
4020 * optabs.c (expand_float): Don't allow mode widening that causes
4023 * invoke.texi (RS/6000 and PowerPC Options): Update -m64/-m32
4024 flags to their current names -maix64 and -maix32.
4026 2000-05-14 Bruce Korb <bkorb@gnu.org>
4028 * fixinc/fixfixes.c(wrap_fix): new fix - inserts text before
4029 and/or after current text of file
4030 * fixinc/fixlib.c(must_malloc):
4031 * fixinc/fixlib.h(must_malloc): + reformatting
4032 * fixinc/inclhack.def: replace the "1i" and "$a" sed commands
4033 with usages of ``c_fix = wrap;''
4034 Add several tests and use the ``c_fix = format'' fixer more.
4035 * fixinc/fixincl.x: regen
4036 * fixinc/check.diff: regen
4037 * fixinc/check.tpl: emit the associated header with the missing
4040 Sun May 14 17:58:59 2000 Hans-Peter Nilsson <hp@axis.com>
4042 * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Do not use unset
4043 variables $src and $dst.
4045 2000-05-13 Gabriel Dos Reis <gdr@codesourcery.com>
4047 * diagnostic.h (DIAGNOSTICS_SHOW_PREFIX_ONCE): New macro.
4048 (DIAGNOSTICS_SHOW_PREFIX_NEVER): Likewise.
4049 (DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE): Likewise.
4050 (struct output_buffer: emitted_prefix_p, prefixing_rule): New
4052 (set_message_prefixing_rule): Declare.
4054 * diagnostic.c: (current_prefixing_rule): New variable.
4055 (set_message_prefixing_rule): Define.
4056 (output_set_prefix): Adjust buffer->emitted_prefix_p.
4057 (init_output_buffer): Adjust Initialization.
4058 (output_emit_prefix): Rewrite. Take prefixing rules into account.
4060 Sat May 13 11:05:47 2000 Philippe De Muyter <phdm@macqel.be>
4062 * ifcvt.c (if_convert): Do not free NULL.
4064 2000-05-12 Nick Clifton <nickc@cygnus.com>
4066 * config/fr30/fr30.c (fr30_move_double): New function: Emit code
4067 to move a double word value.
4068 (di_operand): New function: Return true if the operand is suitbale
4069 for a double word move operation.
4070 (nonimmediate_di_operand): New function: Return true if the
4071 operand is a DImode register or MEM.
4073 * config/fr30/fr30.h (PREDICATE_CODES): Add di_operand and
4074 nonimmediate_di_operand.
4076 * config/fr30/fr30-protos.h Add fr30_move_double, di_operand, and
4077 nonimmediate_di_operand.
4079 * config/fr30/fr30.md (movdi): New pattern. Required because
4080 other patterns generate DImode results.
4081 (movdi_insn): New pattern.
4083 2000-05-12 Richard Henderson <rth@cygnus.com>
4085 * config/alpha/alpha.c (struct shadow_summary): Define
4086 bitfields as type unsigned int.
4088 Sat May 13 00:09:59 2000 Denis Chertykov <denisc@overta.ru>
4090 * config/avr/t-avr: Added definition of FLOAT while generates
4093 * config/avr/avr.md: `NEXT_INSN (insn)' substituted to `insn' in
4094 peepholes for tst+jump = sbrs/sbrc optimization.
4096 Fry May 12 20:03:00 CEST 2000 Jan Hubicka <jh@suse.cz>
4098 * expr.c (emit_push_insn): Do not adjust stack pointer when
4101 Fri May 12 19:03:58 2000 Philippe De Muyter <phdm@macqel.be>
4103 * ggc-simple.c (offsetof): Macro fallback definition moved from here ..
4104 * system.h (offsetof): ... to here.
4106 2000-05-12 Richard Henderson <rth@cygnus.com>
4108 * Makefile.in (final.o): Depend on BASIC_BLOCK_H.
4109 * final.c (final_end_function): Use app_disable. Rearrange note
4110 handling into a switch. Emit deleted labels.
4111 (output_asm_label): Generate label strings for deleted labels.
4112 * flow.c (tail_recursion_label_list): New.
4113 (find_basic_blocks_1): Set label_value_list directly. Collect list
4114 of tail recursion labels from call_placeholders. Don't add deleted
4115 labels to the label value list.
4116 (cleanup_cfg): Use free_EXPR_LIST_list.
4117 (flow_delete_insn_chain): Turn non-removable labels into notes.
4118 (flow_delete_block): Don't disable deleting the block because of
4119 a non-removable label.
4120 (tail_recursion_label_p): New.
4121 (merge_blocks_move_predecessor_nojumps): Don't disable the merge
4123 (merge_blocks_move_successor_nojumps): Likewise. Also move a
4125 (merge_blocks): Disable a merge because of tail recursion labels.
4126 * ifcvt.c (merge_if_block): Don't disable a merge because of a label.
4127 Use a more accurate measure of not merging the join block.
4128 (find_if_block): Don't disable conversion because of a label.
4129 (find_if_case_1, find_if_case_2): Likewise.
4130 * jump.c (duplicate_loop_exit_test): Preserve the kind of list
4131 element when copying.
4132 (squeeze_notes): Also leave EH notes.
4133 (mark_jump_label): Ignore deleted labels. Use an INSN_LIST for
4135 (delete_insn): Preserve LABEL_NAME in NOTE_SOURCE_FILE when
4137 * print-rtl.c (print_rtx): Print NOTE_SOURCE_FILE for
4138 NOTE_INSN_DELETED_LABEL. Print `[# deleted]' for a label_ref
4139 referring to a deleted label. Convert tail handling to a switch.
4140 * rtl.def (CODE_LABEL): Rearrange elements to be compatible with NOTE
4141 for NOTE_INSN_DELETED_LABEL.
4142 (NOTE): Fix commentary.
4143 * rtl.h (REG_LABEL): Update commentary wrt INSN_LIST.
4144 (REG_CC_SETTER, REG_CC_USER, REG_LIBCALL): Likewise.
4145 (CODE_LABEL_NUMBER, LABEL_NAME): Update index.
4146 (LABEL_NUSES, LABEL_REFS): Likewise.
4147 * unroll.c (copy_loop_body): Don't copy NOTE_INSN_DELETED_LABEL.
4149 2000-05-12 Bruce Korb <bkorb@gnu.org>
4151 * fixinc/fixfixes.c(format_write): buglet & relaxed rules
4152 * fixinc/check.diff: updated
4153 * fixinc/inclhack.def: corrected & added some test_text-s
4154 * fixinc/genfixes: removed unneeded options to autogen invocation
4155 * fixinc/fixincl.tpl: Specified the output file
4156 * fixinc/fixfixes.c: visual appearance
4157 * fixinc/fixincl.x: regenerate
4159 2000-05-12 Zack Weinberg <zack@wolery.cumb.org>
4161 * fixinc/fixfixes.c (IO_use_fix, IO_defn_fix, CTRL_use_fix,
4162 CTRL_defn_fix): Delete.
4163 (fix_char_macro_defines, fix_char_macro_uses): Rename to
4164 char_macro_def_fix and char_macro_use_fix, respectively. Put
4165 them into the FIXUP_TABLE. Get the string to search for from
4168 (format_write): New function.
4169 (format_fix): Use it.
4171 (FIX_PROC_HEAD): Constify text parameter.
4172 (machine_name_fix): Constify all char *s.
4173 * fixtests.c (skip_quote): Remove double static.
4175 * inclhack.def (io_def_quotes, io_use_quotes, ctrl_def_quotes,
4176 ctrl_use_quotes): Update for new scheme.
4177 * fixincl.x: Regenerate.
4179 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
4181 * config/mn10300/mn10300.h (PREFERRED_DEBUGGING_TYPE): Redefine as
4183 (DWARF2_ASM_LINE_DEBUG_INFO): Define.
4184 (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
4186 2000-05-11 Robert Lipe <robertlipe@usa.net>
4188 * fixinc/inclhack.def (hpux8_bogus_inlines): Delete bypass for SCO.
4189 * fixincl.x: Regenerate.
4191 2000-05-11 Richard Henderson <rth@cygnus.com>
4193 * calls.c: Revert both 05-09 patches.
4195 2000-05-11 Alexandre Oliva <aoliva@cygnus.com>
4197 * config/mn10300/mn10300.c (print_operand): Print FP constants in
4199 * config/mn10300/mn10300.md (movsf, movdf): Use the `F' constraint
4202 * mklibgcc.in (EQ): Define it to an equal sign in the Makefile,
4203 and replace any occurrences of `=' in multilib dirs with `$(EQ)'.
4205 2000-05-11 Jason Merrill <jason@casey.cygnus.com>
4207 * fixinc/fixincl.c (run_compiles): Don't crash on null pz_machine.
4209 2000-05-11 Zack Weinberg <zack@wolery.cumb.org>
4211 * fixinc/fixfixes.c, fixinc/fixtests.c: Update commentary.
4213 Thu May 11 22:28:05 2000 Denis Chertykov <denisc@overta.ru>
4215 * config/avr/avr-protos.c (jump_over_one_insn_p): New declaration.
4216 * config/avr/avr.c (jump_over_one_insn_p): New function.
4217 * config/avr/avr.md: New peepholes added. Output test and
4218 conditional jump to "sbrc" or "sbrs" command.
4220 2000-05-11 Mark Elbrecht <snowball3@bigfoot.com>
4222 * cppmain.c (main): Use IS_DIR_SEPARATOR.
4224 2000-05-11 Jakub Jelinek <jakub@redhat.com>
4226 * except.c (find_exception_handler_labels_1): New function.
4227 (find_exception_handler_labels): Split into two functions, dive
4228 into CALL_PLACEHOLDERs when looking for exception handler labels.
4230 2000-05-11 Stan Cox <scox@cygnus.com>
4232 * regrename.c (replace_reg_in_block): Improve REG_DEAD handling.
4233 * timevar.def (TV_RENAME_REGISTERS): Move before TV_SCHED2.
4234 * toplev.c (rest_of_compilation): Call regrename_optimize before sched2.
4236 2000-05-11 Bruce Korb <bkorb@gnu.org>
4238 * fixinc/fixfixes.c (double_slash_fix): obsolete
4239 (else_endif_label_fix): obsolete
4240 (format_fix): new, unused as yet
4242 * fixinc/fixlib.h: added fix description struct for use by format_fix
4243 * fixinc/fixincl.c: removed the struct & test for SIGIOT befure using
4244 * fixinc/Makefile.in: compile fixfixes.c and fixtests.c as separate
4245 modules. Removed the vestiges of the script version.
4246 Added support for "make check".
4247 * fixinc/check.diff: base diff file (needs work!!)
4248 * fixinc/check.tpl: quiet the fixup output
4249 * fixinc/fixtests.c (main): obsolete
4250 * fixinc/fixincl.sh: don't bother copying fixincl to ..
4251 * fixinc/fixincl.tpl: provide for arguments to c_fix routines
4253 Thu May 11 11:57:02 MET DST 2000 Jan Hubicka <jh@suse.cz>
4255 * toplev.c (rest_of_compilation): Remove dead code after
4258 2000-05-11 Zack Weinberg <zack@wolery.cumb.org>
4260 * cpphash.c (collect_funlike_expansion): Make "# is not
4261 followed by a macro argument name" a pedwarn, not an error.
4262 Preserve the # in the output. Suppress the warning if lang_asm.
4264 Thu May 11 01:19:31 2000 Jeffrey A Law (law@cygnus.com)
4266 * configure.in (hppa*64*-*-hpux11*): New target for PA64 support.
4267 * configure: Rebuilt.
4269 2000-05-10 Laurynas Biveinis <lauras@softhome.net>
4271 * i386/xm-djgpp.h (XREF_FILE_NAME): Add mising brace.
4273 2000-05-10 Kazu Hirata <kazu@hxi.com>
4275 * combine.c (try_combine): Fix a typo.
4277 Wed May 10 21:31:44 2000 Jim Wilson <wilson@cygnus.com>
4279 * config/ia64/ia64.md (insv): Add comment.
4281 2000-05-10 Richard Henderson <rth@cygnus.com>
4283 * Makefile.in (libgcc.a, stmp-multilib): Depend on FPBIT and DPBIT.
4284 * mklibgcc.in: Rewrite to not use functions. Don't shortcut
4285 dependancies on FPBIT and DPBIT.
4287 2000-05-10 Nick Clifton <nickc@redhat.com>
4289 * flow.c (find_auto_inc): Do not bias REG_N_REFS by loop_depth
4290 when optimising for size.
4291 (mark_used_regs:) Ditto.
4292 (try_pre_increment_1): Ditto.
4294 2000-05-10 Zack Weinberg <zack@wolery.cumb.org>
4296 * cppexp.c (lex): Use %.*s to print non-NUL-terminated string.
4297 Make error message friendlier.
4299 * cpphash.h (struct hashnode): Use struct hack for name
4301 * cpphash.c (struct hashdummy): New.
4302 (eq_HASHNODE): Second argument is a hashdummy, not a HASHNODE.
4303 (make_HASHNODE): No need to set ->name pointer. Correct
4305 (cpp_lookup): Make 'dummy' a struct hashdummy. Tidy up a bit.
4307 2000-05-10 Richard Henderson <rth@cygnus.com>
4309 * flow.c (find_basic_blocks_1): Remove any spare bb_note
4312 2000-05-10 Bruce Korb <bkorb@gnu.org>
4314 * fixinc/gnu-regex.c: reg_syntax_t re_syntax_options must be static
4316 2000-05-10 Eric Schweitz <schweitz@nortelnetworks.com>
4318 * dwarfout.c (dwarfout_finish): Call retry_incomplete_types
4319 after we enter .debug.
4321 2000-05-10 Jason Merrill <jason@casey.cygnus.com>
4323 * dwarf2out.c (gen_subprogram_die): Fixup die_parent for the
4324 abstract instance of a nested inline function.
4326 * stor-layout.c (finish_record_layout): finalize_type_size
4327 before laying out the pending_statics.
4329 Wed 10 May 09:36:47 2000 Neil Booth <NeilB@earthling.net>
4331 * cpplex.c (spell_token): New function.
4332 (spell_string, spell_comment, spell_name): fold into
4335 (E, H): Remove macros.
4336 (save_comment): Save comment opening characters too.
4337 (_cpp_lex_file): Update to use spell_token. Tidy up comment
4339 * cpplib.h (I, S): Add macros.
4340 (E, H): Remove macros.
4341 (TTYPE_TABLE): Update entries for new speller.
4342 (SYNTAX_ASSERT): Remove.
4344 Wed 10 May 09:08:30 2000 Neil Booth <NeilB@earthling.net>
4346 * cpplex.c (_cpp_lex_line): Maintain PREV_WHITESPACE flag
4347 when removing escaped newlines. Reverse sense of test for
4350 2000-05-09 Richard Henderson <rth@cygnus.com>
4352 * flow.c (find_basic_blocks_1): Do not delete the first
4353 bb_note we run across.
4354 (create_basic_block): Use reorder_insns to move an existing
4355 bb_note to the correct place.
4357 2000-05-09 Richard Henderson <rth@cygnus.com>
4359 * calls.c (expand_call): Increment currently_expanding_call
4360 before calling optimize_tail_recursion.
4362 Tue May 9 18:54:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4364 * reload1.c (reload_combine): Fix errors in last change.
4366 2000-05-09 Zack Weinberg <zack@wolery.cumb.org>
4368 * gcc.c (used_arg): Skip over a semicolon at the end of the
4369 split-up loop; don't break out of it.
4371 * Makefile.in (WARN_CFLAGS): Add -Wwrite-strings.
4372 (tree.o): Depend on output.h.
4374 * c-decl.c (pending_invalid_xref_file,
4375 current_function_prototype_file): Constify.
4376 (pushdecl): Constify a local char *.
4377 (define_label): Constify filename parameter.
4378 * c-lex.c (init_parse): Constify parameter and return value.
4379 * c-typeck.c (c_expand_asm_operands): Constify filename parameter.
4380 * c-tree.h: Update prototypes.
4381 * c-parse.in: Constify filename member of %union, and if_stmt_file.
4382 * c-parse.y, c-parse.c, c-parse.h, objc/objc-parse.y,
4383 objc/objc-parse.c: Regenerate.
4385 * dwarfout.c (dwarfout_init): Constify main_input_filename parameter.
4386 * dwarfout.h: Update prototypes.
4387 * expr.c (expand_expr): Constify a local char *.
4388 * flags.h: Constify main_input_filename.
4389 * function.c (expand_function_end): Constify filename parameter.
4390 * genrecog.c (make_insn_sequence): Use a character array for
4392 (main): Remove unused variables.
4393 * input.h: Constify input_filename, main_input_filename, and
4394 file_stack.name. Update prototypes.
4395 * output.h: Declare first_global_object_name and
4396 weak_global_object_name here, as const char *.
4397 * stmt.c (expand_asm_operands): Constify filename parameter.
4398 * toplev.c (compile_file, push_srcloc, debug_start_source_file):
4399 Constify filename parameter.
4400 (input_filename, main_input_filename): Constify.
4401 * toplev.h: Update prototypes.
4402 * tree.c: Include output.h. Don't declare
4403 first_global_object_name or weak_global_object_name. Clean up string
4404 bashing in get_file_function_name_long.
4405 * tree.h (struct tree_decl): Constify filename member.
4406 (input_filename): Constify.
4408 * varasm.c (first_global_object_name, weak_global_object_name):
4410 (assemble_start_function, assemble_variable): Clean up string bashing.
4412 * gcc.c: Constify all spec-related strings initialized,
4413 transitively, from string constants. Constify all strings
4414 and string variables related to multilibs.
4415 (set_spec, read_specs): Cast argument to free to PTR.
4416 (used_arg): Do not modify multilib_matches. Use strncmp plus
4417 length comparison to compare multilib switches.
4418 * genmultilib: Constify everything declared in multilib.h.
4420 Tue May 9 22:28:03 2000 Denis Chertykov <denisc@overta.ru>
4422 * flow.c (flow_delete_insn): Use INSN_DELETED_P for marking insn
4425 Tue May 9 20:52:43 2000 Denis Chertykov <denisc@overta.ru>
4427 * config/avr/avr-protos.h (extra_constraint): change a type of
4428 second argument from char to int to avoid warnings.
4429 (asm_output_byte): Likewise.
4431 * config/avr/avr.c (MAX_LD_OFFSET) New macro.
4432 (initial_elimination_offset): Handle elimination from
4433 FRAME_POINTER_REGNUM to STACK_POINTER_REGNUM.
4434 (legitimate_address_p): Use MAX_LD_OFFSET.
4435 (legitimize_address): Likewise.
4436 (out_movqi_r_mr): Likewise.
4437 (out_movhi_r_mr): Likewise, use `fatal_insn' instead of `fatal'.
4438 (out_movsi_r_mr): Use MAX_LD_OFFSET.
4439 (out_movsi_mr_r): Likewise.
4440 (out_movqi_mr_r): Likewise.
4441 (out_movhi_mr_r): Likewise.
4442 (notice_update_cc): Correct CC for the ashrqi3 with the shift
4443 count as CONST_INT != 6.
4444 (ashlqi3_out): Coding style modifications. Run `fatal_insn' if
4445 shift count is a CONSTANT_P, but not a CONST_INT.
4446 (ashlhi3_out): Coding style modifications.
4447 (ashlsi3_out): Likewise.
4448 (ashrhi3_out): Likewise.
4449 (ashrsi3_out): Likewise.
4450 (lshrhi3_out): Likewise.
4451 (lshrsi3_out): Likewise.
4452 (ashrqi3_out): Generate shift for any known constant count without
4453 scratch register. Run `fatal_insn' if shift count is a CONSTANT_P,
4454 but not a CONST_INT.
4455 (lshrqi3_out): Coding style modifications. Run `fatal_insn' if
4456 shift count is a CONSTANT_P, but not a CONST_INT.
4457 (extra_constraint): change a type of
4458 second argument from char to int to avoid warnings.
4459 (asm_output_byte): Likewise.
4460 (asm_file_end): Output size generated commands count as a hex
4463 * config/avr/avr.h (RETURN_ADDR_RTX): New macro.
4465 * config/avr/avr.md (addhi3): Fragment commented by &&0 is
4467 (ashlqi3): Values of "length" attribute changed. Shift count
4468 uses constraints 'n' instead of 'i'.
4469 (ashrqi3): Likewise. Values of "cc" attribute changed. Generate
4470 shifts without clobber register.
4471 (lshrqi3): Shift count uses constraints 'n' instead of 'i'.
4472 (call_insn): Correct test for which_alternative == 1 (was 0).
4473 (call_value_insn): Likewise.
4475 * config/avr/t-avr: Remove definition of FLOAT while generates
4478 2000-05-09 Bruce Korb <bkorb@gnu.org>
4480 * fixinc/check.tpl: Template for checking fixes
4481 * fixinc/inclhack.def: Added 'test_text' for many fixes
4482 disable hpux8_bogus_inlines on SCO
4483 * fixinc/fixinc.sco: Oh, yes, we don't need this any more.
4485 Tue May 9 16:30:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
4487 * calls.c (expand_call): Reorganize somewhat in order
4488 to avoid unnecesary recalculation inside loop and make
4489 tail call failure code cleaner.
4491 Tue May 9 06:30:20 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4493 * alias.c (nonlocal_reference_p): Minor reformatting.
4494 * reload.c (find_equiv_reg): Simplify logic for
4495 CALL_INSN_FUNCTION_USAGE since can't have SUBREG or pseudos and
4496 some some reformatting.
4497 * reload1.c (reload_combine): Don't assume everything in
4498 CALL_INSN_FUNCTION_USAGE is a REG and clean up code a bit.
4500 2000-05-08 Richard Henderson <rth@cygnus.com>
4502 * final.c (current_insn_predicate): New.
4503 (final_scan_insn): Set it.
4504 * output.h (current_insn_predicate): Declare.
4506 * ifcvt.c (cond_exec_process_insns): New argument prob_val.
4507 Attach it to call insns.
4508 (cond_exec_process_if_block): Track probability for true and
4510 (dead_or_predicable): Likewise.
4512 * predict.c (PROB_NEVER, PROB_VERY_UNLIKELY): New.
4513 (PROB_UNLIKELY, PROB_EVEN, PROB_LIKELY): New.
4514 (PROB_VERY_LIKELY, PROB_ALWAYS): New.
4515 (estimate_probability, expected_value_to_br_prob): Use them.
4517 * config/ia64/ia64-protos.h (ia64_expand_prediction): Declare.
4518 * config/ia64/ia64.c (ia64_print_operand_address): Handle 'j'.
4519 (ia64_expand_prediction): New.
4520 (emit_insn_group_barriers): Don't look at notes. Emit barriers
4521 as needed after calls.
4522 (ia64_epilogue_uses): Mark b0 used.
4523 * config/ia64/ia64.md (beq_true, beq_false): Remove.
4524 (bne_true, bne_false): Remove.
4525 (eq_return, eq_not_return, ne_return, ne_not_return): Remove.
4526 (br_true, br_false): New. Use predicate_operator and
4527 ia64_expand_prediction.
4528 (return_true, return_false): Likewise.
4529 (call_internal): Use ia64_expand_prediction. Don't emit stop bit.
4530 (call_internal1, call_value_internal): Likewise.
4531 (call_value_internal1, call_multiple_values_internal1): Likewise.
4533 * config/ia64/ia64.c (ia64_direct_return): Require frame size zero.
4535 * config/ia64/ia64.md (extendsfdf2): Split only after reload.
4537 2000-05-08 Richard Henderson <rth@cygnus.com>
4539 * rtlanal.c (may_trap_p): Consider old-style and volatile
4542 Mon May 8 17:16:48 2000 Jim Wilson <wilson@cygnus.com>
4544 * config/ia64/ia64.h (RETURN_ADDR_RTX): Use COUNT not count.
4546 2000-05-08 Richard Henderson <rth@cygnus.com>
4548 * config/ia64/ia64.h (predicate_operator): Declare.
4550 * config/ia64/ia64.md (extendsfdf2): Split the nop case out
4553 * gensupport.c (process_rtx): Copy and post-process each member
4554 of the define_insn rtvec individually.
4556 Mon 8 May 22:17:35 2000 Neil Booth <NeilB@earthling.net>
4558 * cpplex.c (spell_token): New function.
4559 (TOKEN_LEN): Add 1 for whitespace.
4560 (_cpp_lex_file): Update to use spell_token.
4561 * cpplib.h (E): Remove.
4562 (TTYPE_TABLE): Update CPP_VSPACE entry.
4564 2000-05-08 Richard Henderson <rth@cygnus.com>
4566 * flow.c (init_propagate_block_info): Watch out for conditional
4567 branch to next instruction, and thus one outgoing edge.
4569 * config/ia64/ia64.c (ia64_encode_section_info): Exit early
4570 for global register variables; don't special case __[CD]TOR_LIST__;
4571 mind ggc_p for string allocation.
4573 2000-05-08 Nick Clifton <nickc@cygnus.com>
4575 * config/i386/i386.h (ELIMINABLE_REGS): Fix comment.
4577 2000-05-08 Bruce Korb <bkorb@gnu.org>
4579 * fixinc/mkfixinc.sh: fixinc.sco is no longer used
4580 i?86-*-msdosdjgpp* no longer uses fixincludes
4581 * fixinc/genfixes: inclhack.sh and fixincl.sh are no longer generated
4582 * fixinc/inclhack.sh: deleted
4583 * fixinc/hackshell.tpl: deleted
4584 * fixinc/inclhack.tpl: deleted
4585 * fixinc/Makefile.in: Remove dependencies on above
4586 * fixinc/fixincl.sh: "DO NOT EDIT" text modified
4588 2000-05-08 Andreas Jaeger <aj@suse.de>
4590 * config/mips/linux.h: Remove undefines which disabled .ctor/.dtor
4593 2000-05-07 Zack Weinberg <zack@wolery.cumb.org>
4595 * Makefile.in (LOOSE_CFLAGS): Add /g modifiers to both sed
4598 Sun 7 May 08:43:53 2000 Neil Booth <NeilB@earthling.net>
4600 * cpplex.c: Move new lexer definitions and prototypes
4601 to top. Conditional include these and the code if
4602 NEW_LEXER is defined. Rename functions whose names
4603 clash if this code included.
4605 Sun May 7 00:54:57 EDT 2000 John Wehle (john@feith.com)
4607 * rtl.def (COND_EXEC): Clarify.
4609 * i386.md (extendsidi2): Clobber (reg:CC 17) in the
4610 same fashion as zero_extendsidi2.
4612 2000-05-06 Richard Henderson <rth@cygnus.com>
4614 * config/ia64/ia64.c (predicate_operator): New.
4615 (ia64_print_operand): Handle 'J'.
4616 (rtx_needs_barrier): Handle COND_EXEC.
4617 * config/ia64/ia64.h (BRANCH_COST): Define.
4618 (PREDICATE_CODES): Update.
4619 * config/ia64/ia64.md: Docuement used unspec values.
4620 (attr predicable): New.
4621 (movxf, movxf_internal): New.
4622 (extendsfdf2): Don't comment out nop.
4623 (floatdidf2): Remove.
4624 (truncxfsf2, truncxfdf2, floatdixf2): New.
4625 (abssi2, absdi2): Put the neg in the "true" slot.
4626 (conditional branch instructions): Mark not predicable.
4627 (cmov*_internal): Use predicate_operator. Split to cond_exec.
4628 (abs*_internal): Likewise.
4629 (alloc, set_bsp): Mark not predicable.
4630 (barrier, insn_group_barrier, flush_cache): Likewise.
4631 (define_cond_exec): New.
4633 2000-05-06 Richard Henderson <rth@cygnus.com>
4635 * c-decl.c: Include "tm_p.h".
4637 * config/ia64/ia64-protos.h: Rearrange decls to reduce ifdef madness.
4638 (fetchadd_operand, ia64_expand_fetch_and_op): Declare.
4639 (ia64_expand_op_and_fetch): Declare.
4640 * config/ia64/ia64.c: Include "toplev.h". Kill trailing whitespace.
4641 (setjmp_operand): Constify variables for XSTR.
4642 (ia64_encode_section_info): Likewise.
4643 (ia64_print_operand): Use %d for exact_log2; cast 32-bit printed
4645 (ia64_asm_output_external): Constify name.
4646 (process_set): Use HOST_WIDE_INT_PRINT_DEC for frame size.
4647 (process_for_unwind_directive): Provide switch default.
4648 (ia64_expand_compare_and_swap): Remove unused variables.
4649 (ia64_expand_builtin): Likewise.
4650 * config/ia64/ia64.h (ASM_OUTPUT_BYTE): Mask and cast value to int
4653 * config/ia64/ia64.c (sdata_symbolic_operand): Mark unused args.
4654 (symbolic_operand, function_operand, setjmp_operand): Likewise.
4655 (shift_count_operand, shift_32bit_count_operand): Likewise.
4656 (shladd_operand, fetchadd_operand, ia64_function_prologue): Likewise.
4657 (ia64_function_epilogue, ia64_setup_incoming_varargs): Likewise.
4658 (ia64_function_arg_partial_nregs, ia64_function_value): Likewise.
4659 (ia64_print_operand_address, ia64_secondary_reload_class): Likewise.
4660 (ia64_expand_builtin): Likewise.
4661 (call_multiple_values_operation): Make dest_regno unsigned.
4663 2000-05-06 Richard Henderson <rth@cygnus.com>
4665 * rtl.def (DEFINE_COND_EXEC): New.
4666 * md.texi: Document it.
4668 * gensupport.c (input_file): Remove.
4669 (struct queue_elem): Add lineno.
4670 (rtx_ready_queue): Remove.
4672 (predicable_default): New.
4673 (predicable_true, predicable_false): New.
4674 (define_attr_queue, define_attr_tail): New.
4675 (define_insn_queue, define_insn_tail): New.
4676 (define_cond_exec_queue, define_cond_exec_tail): New.
4677 (other_queue, other_tail): New.
4678 (queue_pattern): New.
4679 (process_rtx): Add patterns to the appropriate queues.
4680 (is_predicable, identify_predicable_attribute): New.
4681 (n_alternatives, collect_insn_data): New.
4682 (alter_predicate_for_insn, alter_test_for_insn): New.
4683 (shift_output_template, alter_output_for_insn): New.
4684 (process_one_cond_exec, process_define_cond_exec): New.
4685 (init_md_reader): Read the entire file. Process define_cond_exec.
4686 (read_md_rtx): Return elements from the queues.
4688 2000-05-06 Richard Henderson <rth@cygnus.com>
4690 * flow.c (mark_set_1): Don't update conditional life info
4691 if the register is not_dead.
4693 2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
4695 * Makefile.in (STAGESTUFF): Add genrtl.c and genrtl.h.
4696 (mostlyclean): Also delete fixincl, fixinc.sh, and
4697 specs.ready, and make clean in the fixinc subdir.
4699 2000-05-06 Richard Henderson <rth@cygnus.com>
4701 * Makefile.in (gensupport.o): Compile for the host.
4702 (host-prefix gensuuprt.o): Remove.
4703 (genflags.o): Depend on gensupport.h and OBSTACK_H.
4704 (genattrtab.o): Likewise.
4705 (gencodes.o): Depend on gensupport.h.
4706 (genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
4707 (genpeep.o, genattr.o, genoutput.o): Likewise.
4709 * gensupport.c (obstack, rtl_obstack): New.
4710 (init_md_reader): Initialize rtl_obstack.
4711 * gensupport.h (rtl_obstack): Declare.
4712 (message_with_line): Declare.
4714 * genattr.c: Remove all traces of obstack manipulation.
4715 * gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
4716 * genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
4718 * genattrtab.c (obstack, rtl_obstack): Remove.
4719 (main): Don't init rtl_obstack.
4720 * genflags.c: Likewise.
4722 * genrecog.c (message_with_line): Move ...
4723 * gensupport.c: ... here.
4725 2000-05-06 Richard Henderson <rth@cygnus.com>
4727 * c-typeck.c (build_c_cast): Remove dead code.
4729 2000-05-06 Richard Henderson <rth@cygnus.com>
4731 * flow.c (split_edge): Don't allocate global_live_at_start for
4732 the new block unless the old blocks had them as well.
4734 * flow.c (mark_set_1): Respect not_dead when updating reg_live.
4736 * ifcvt.c (noce_process_if_block): Don't use an insn_b from
4737 test_bb if a or b uses x.
4739 2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
4741 * cpphash.h: Remove conditional #define of __extension__.
4742 * rtl.h: Add __extension__ to RTL_CHECK1, RTL_CHECK2,
4743 RTL_CHECKC1, RTL_CHECKC2, and RTVEC_ELT macros
4744 (ENABLE_RTL_CHECKING only).
4745 * tree.h: Add __extension__ to TREE_CHECK, TREE_CLASS_CHECK,
4746 CST_OR_CONSTRUCTOR_CHECK, and EXPR_CHECK macros
4747 (ENABLE_TREE_CHECKING only).
4748 * varray.h: Add __extension__ to VARRAY_CHECK macro
4749 (ENABLE_CHECKING only).
4751 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
4753 Use new tail-calling mechanism on ARM.
4754 * arm.md (sibcall, sibcall_value): New expands.
4755 (sibcall_insn, sibcall_value_insn, sibcall_epilogue): New insns.
4756 (tailcalling peepholes): Delete.
4757 (push_multi): Simplify.
4758 * arm.c (lr_save_eliminated): Delete definition.
4759 (pattern_really_clobbers_lr, function_really_clobbers_lr): Delete.
4760 (output_return_instruction): Remove checks on lr_save_eliminated.
4761 (output_arm_prologue): Remove old tail-calling code.
4762 (arm_output_epilogue): New parameter, really_return. All callers
4763 changed. Handle tail-calling epilogues.
4764 * arm.h (lr_save_eliminated): Delete declaration.
4765 (frame_pointer_needed): Delete declaration.
4766 * arm-protos.h (arm_output_epilogue): Adjust prototype.
4768 * arm.md (is_thumb): Examine symbol thumb_code, not expression
4770 * arm.c (thumb_code): Define it.
4771 (arm_override_options): Set it.
4772 * arm.h (thumb_code): Declare it.
4774 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
4776 * arm-protos.h (arm_dllexport_name_p, arm_dllimport_name_p): Constify.
4778 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
4780 * arm.c (arm_gen_load_multiple, arm_gen_store_mulitple): Don't add
4781 bogus clobber to insns.
4782 (load_multiple_operation, store_mulitple_operation): Don't check
4784 * arm.md (ldmsi_postinc, stmsi_postinc): Adjust accordingly.
4786 * arm.md (and_scc, ior_scc): Add missing mode.
4788 * arm.md (call_value_symbol): Remove predicate from op2.
4790 * arm.h (SPECIAL_MODE_PREDICATES): Define.
4792 Sat May 6 06:25:56 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4794 * expr.c (get_subtarget): New function.
4795 (force_operand, expand_expr, do_store_flag): Use it.
4797 * toplev.c (compile_file): Don't take strlen of NAME if null.
4799 2000-05-06 David Edelsohn <edelsohn@gnu.org>
4801 * xcoffout.c (xcoff_current_include_file,
4802 xcoff_current_function_file, xcoff_lastfile): Constify char *.
4803 (xcoffout_source_file, xcoffout_source_line): Make filename 'const
4805 (xcoffout_declare_function): Make name 'const char *'.
4806 (xcoffout_end_epilogue): Make fname 'const char *'
4807 * xcoffout.h (xcoff_current_include_file, xcoff_lastfile,
4808 xcoffout_declare_function, xcoffout_source_line): Match above.
4810 * aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -mpowerpc64 without
4812 * rs6000.c (print_operand): Fix lossage typo.
4813 (output_cbranch): Remove "cr" decoration for now.
4814 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Make alias 'const char *'.
4816 Sat May 6 06:55:32 2000 Denis Chertykov <denisc@overta.ru>
4818 * config/avr/avr.c (out_shift_with_cnt): Bugfix for shift by
4821 2000-05-05 Bruce Korb <bkorb@gnu.org>
4823 * fixinc/genfixes: Improve the matching for make target names
4825 2000-05-05 Catherine Moore <clm@cygnus.com>
4827 * c-common.c (decl_attributes): For TYPE_DECLs attach the
4828 attribute to the decl.
4829 * c-decl.c (pushdecl): Propagate the USED attribute to the
4832 2000-05-05 Richard Henderson <rth@cygnus.com>
4834 * rtlanal.c (reg_overlap_mentioned_p): Treat parallels in the
4835 same way emit_group_load does.
4837 2000-05-05 Mark Elbrecht <snowball3@bigfoot.com>
4839 * gcc.c (set_input) [HAVE_DOS_STYLE_FILE_SYSTEM]: Skip drive name.
4841 * toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
4844 2000-05-05 Rodney Brown <RodneyBrown@mynd.com>
4846 * pa.h (FUNCTION_ARG_ADVANCE): Warning removal.
4848 Fri May 5 10:29:21 2000 Marc Espie <espie@cvs.openbsd.org>
4850 * config/openbsd.h (LINK_SPEC): pass correct flags to ld
4851 to support -shared, on platforms with dynamic libraries.
4853 Fri May 5 10:27:06 2000 Philippe De Muyter <phdm@macqel.be>
4855 * system.h (S_ISBLK): Provide fallback definition.
4857 2000-05-05 Geoff Berry <geoffb@bops.com>
4859 * extend.texi (Extended Asm): Document inability to give asm
4860 statements access to condition codes.
4862 2000-05-05 Marek Michalkiewicz <marekm@linux.org.pl>
4864 * varasm.c (asm_emit_uninitialised): Use 0, not NULL
4865 as arg 2 of UNIQUE_SECTION.
4867 Fri May 5 10:11:41 2000 Jeffrey A Law (law@cygnus.com)
4869 * predict.c: Remove May 4 change.
4870 * bb-reorder.c (make_reorder_chain): Do not perform block movement
4871 if we have predicted the branch at 50-50 probability.
4873 2000-05-05 Richard Henderson <rth@cygnus.com>
4875 * flow.c (init_propagate_block_info): Fix merge error
4876 in HAVE_conditional_execution code.
4878 Fri May 5 07:43:50 2000 Denis Chertykov <denisc@overta.ru>
4880 * config/avr/avr.c (out_shift_with_cnt): Genetare a more optimal
4881 shift cycle for unknown shift count. Also generates dec + brpl.
4882 (ashlqi3_out): Don't generate dec + brpl which now generates by
4883 `out_shift_with_cnt'.
4884 (ashlhi3_out): Likewise.
4885 (ashlsi3_out): Likewise.
4886 (ashrqi3_out): Likewise.
4887 (ashrhi3_out): Likewise.
4888 (ashrsi3_out): Likewise.
4889 (lshrqi3_out): Likewise.
4890 (lshrhi3_out): Likewise.
4891 (lshrsi3_out): Likewise.
4893 2000-05-04 Mark Elbrecht <snowball3@bigfoot.com>
4895 * gcc.c (free_split_directories): Correct typo in explanation
4896 of make_relative_prefix.
4898 2000-05-04 Geoff Keating <geoffk@cygnus.com>
4900 * config/rs6000/rs6000.h (PREDICATE_CODES): Add floating-point
4901 comparison codes to branch_comparison_operator.
4903 2000-05-04 Richard Henderson <rth@cygnus.com>
4905 * ifcvt.c (noce_process_if_block): Always reset X in the A == B case.
4907 2000-05-04 Richard Henderson <rth@cygnus.com>
4909 * Makefile.in (FPBIT_FUNCS): Remove _df_to_usi.
4910 (DPBIT_FUNCS): Remove _sf_to_usi.
4911 (stmp-multilib): Pass LIB1ASMSRC to libgcc.mk.
4913 * ifcvt.c (noce_process_if_block): Fail if A or B modified
4914 between condition and jump.
4916 * libgcc2.c (near eh_context_specific): Comment #endif string.
4917 * longlong.h: Don't use strings with embedded newlines.
4919 2000-05-04 Geoff Keating <geoffk@cygnus.com>
4921 * config/rs6000/rs6000-protos.h: Add output_cbranch.
4922 * config/rs6000/rs6000.c (ccr_bit_negated_p): Delete.
4923 (print_operand): Delete %t and %T codes.
4924 (output_cbranch): New function. Support branch prediction.
4925 * config/rs6000/rs6000.md: Use output_cbranch for
4926 conditional branches and returns.
4928 2000-05-04 Jason Merrill <jason@casey.cygnus.com>
4930 * simplify-rtx.c (simplify_ternary_operation): Cast to unsigned.
4931 * stor-layout.c (place_field): Likewise.
4932 * integrate.h (struct inline_remap): Make regno_pointer_align unsigned.
4933 * expr.c (store_expr): Make align unsigned.
4934 * explow.c (plus_constant_wide): Make low words unsigned.
4935 * expmed.c (choose_multiplier): Likewise.
4936 * fold-const.c (fold): Likewise.
4937 * tree.h (build_int_2): Likewise.
4938 * tree.c (build_int_2_wide, tree_int_cst_msb): Likewise.
4939 * emit-rtl.c (gen_reg_rtx): Add cast to unsigned char*.
4940 (init_emit): Change cast to unsigned char*.
4941 * varasm.c (compare_constant_1): Add cast to char*.
4942 * gcse.c (delete_null_pointer_checks): Change cast to unsigned int*.
4943 * reload1.c (reload): Likewise.
4945 * rtl.h (MEM_SET_IN_STRUCT_P): Use do { } while (0).
4947 Thu May 4 14:37:23 2000 Jeffrey A Law (law@cygnus.com)
4949 * predict.c (estimate_probability): If no prediction was found, then
4950 predict the successor that is the next physical block (if such a
4953 2000-05-04 Richard Henderson <rth@cygnus.com>
4955 * config/alpha/t-alpha (LIB2FUNCS_EXTRA): Use qrrnd.asm in place.
4957 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4959 * system.h: Don't wrap <sys/types.h> with HAVE_SYS_TYPES_H.
4961 2000-05-04 Mumit Khan <khan@xraylith.wisc.edu>
4963 * i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move
4964 attribute macros from here ...
4965 (CPP_SPEC): to here.
4966 * i386/mingw32.h (CPP_PREDEFINES): Likewise.
4967 (CPP_SPEC): Likewise.
4968 * i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros.
4970 * Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.
4971 (libgcc.a): Pass LIB1ASMSRC to libgcc.mk.
4973 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4975 * bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.
4977 * diagnostic (vbuild_message_string, build_message_string,
4978 build_location_prefix, output_get_prefix, init_output_buffer,
4979 output_notice, vline_wrapper_message_with_location,
4980 v_message_with_decl, default_print_error_function): De-constify.
4981 (set_real_maximum_length): Prototype.
4983 * diagnostic.h (struct output_buffer, init_output_buffer,
4984 output_get_prefix, output_set_prefix): De-constify.
4986 * function.c (init_function_start): Constify.
4988 * gensupport.c (remove_constraints, process_rtx): Prototype.
4990 * gthr-posix.h: Indent uses of #pragma.
4992 * objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table):
4995 * predict.c (find_expected_value): Delete prototype.
4996 (expected_value_to_br_prob): Initialize variable `ev_reg'.
4998 * sbitmap.h (debug_sbitmap): Prototype.
5000 * ssa.c (compute_coalesced_reg_partition): Prototype.
5002 * stor-layout.c (debug_rli): Prototype.
5004 * tree.h (round_down): Prototype.
5005 (init_function_start): Constify.
5007 2000-05-04 Zack Weinberg <zack@wolery.cumb.org>
5009 * cpphash.h: #define __extension__ away if GCC_VERSION < 2095
5010 (overly conservative). Change extern inline wrappers to
5011 static inline, define them always, use PARAMS properly.
5012 * cpplex.c (_cpp_get_directive_token): Don't issue pedantic
5013 whitespace warnings for \f and \v at the beginning of a line.
5015 Thu May 4 10:03:50 2000 Jeffrey A Law (law@cygnus.com)
5017 * haifa-sched.c (schedule_insns): Free the flow edge list when it
5020 2000-05-04 Bruce Korb <bkorb@gnu.org>
5022 * fixincl/inclhack.def: added broken_cabs -
5023 Remove `extern double cabs' declarations from math.h
5024 * fixincl/inclhack.sh: regen
5025 * fixincl/fixincl.x: regen
5026 * fixincl/fixincl.c: Remove BOGOSITY code
5027 * fixincl/mkfixinc.sh: Remove code for installing "shell" version
5029 Thu May 4 09:45:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5031 * rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and
5033 * alias.c (canon_rtx): Don't copy RTX_UNCHANGING_P or MEM_ALIAS_SET
5034 when calling MEM_COPY_ATTRIBUTES.
5035 * emit-rtl.c (operand_subword, change_address): Likewise.
5036 * explow.c (stabilize): Likewise.
5037 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
5038 * integrate.c (copy_rtx_and_substitute): Likewise.
5039 * combine.c (combine_simplify_rtx): Don't copy RTX_UNCHANGING_P
5040 when calling MEM_COPY_ATTRIBUTES.
5041 (make_extraction, simplify_shift_const, gen_lowpart_for_combine):
5043 * cse.c (gen_lowpart_if_possible): Likewise.
5044 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
5045 * optabs.c (gen_move_insn): Likewise.
5046 * recog.c (validate_replace_rtx_1): Likewise.
5047 * simplify-rtx.c (add_mem_for_addr): Likewise.
5048 * stmt.c (expand_anon_union_decl): Likewise.
5049 * config/arm/arm.md: Likewise.
5050 * config/h8300/h7300.c (fix_bit_operand): Likewise.
5051 * config/m88k/m88k.c (legitimize_address, block_move_loop): Likewise.
5052 (block_move_no_loop, block_move_sequence): Likewise.
5053 * config/rs6000/rs6000.c (expand_block_move_mem): Likewise.
5054 * config/alpha/alpha.c (get_aligned_mem): Likewise.
5055 Clear MEM_ALIAS_SET.
5056 * final.c (alter_subreg): Don't copy MEM_ALIAS_SET when calling
5057 MEM_COPY_ATTRIBUTES.
5059 2000-05-03 Robert Lipe <robertlipe@usa.net>
5061 * configure.in (i[34567]86-*-isc*) [tmake_file]: Add t-i386bare
5062 to suppress libgcc1.
5063 (i[34567]86-*-sco3.2v5*) Likewise.
5064 (i[34567]86-*-sco3.2v4*) Likewise.
5065 (i[34567]86-*-sco) Likewise.
5066 (i[34567]86-*-solaris2) Likewise.
5067 (i[34567]86-*-sysv5*) Likewise.
5068 (i[34567]86-*-sysv4*) Likewise.
5069 (i[34567]86-*-udk*) Likewise.
5070 (i[34567]86-*-sysv*) Likewise.
5072 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
5074 * cpphash.h (U): New define, to correct type of string constants.
5075 (ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr): New wrapper
5076 routines, to do casts when passing unsigned strings to libc.
5077 * cppexp.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c: Use them.
5079 * cppfiles.c (_cpp_execute_include): Make filename an U_CHAR *.
5080 * cpphash.c (_cpp_quote_string): Make string an U_CHAR *.
5081 * cppinit.c (dump_special_to_buffer): Make macro name an U_CHAR *.
5082 * cpplex.c (parse_ifdef, parse_include, validate_else): Make
5083 second argument an U_CHAR *.
5085 * cppinit.c (builtin_array): Make name and value U_CHAR *, add
5086 length field, clean up initializer.
5087 (ISTABLE): Add __extension__ to designated-
5088 initializers version.
5089 * cpplex.c (CHARTAB): Likewise.
5091 * mbchar.c: Add dummy external declaration to the !MULTIBYTE_CHARS
5092 case so the file won't be empty.
5094 Wed May 3 21:01:46 2000 Jason Eckhardt <jle@cygnus.com>
5096 * bb-reorder.c (struct reorder_block_def): Member succ removed.
5097 (REORDER_BLOCK_SUCC): Removed.
5098 (enum reorder_skip_type): Removed.
5099 (skip_insns_between_block): Renamed to skip_insns_after_block.
5100 Removed second argument. Removed dead code and cleaned up.
5101 (make_reorder_chain): Removed use of REORDER_BLOCK_SUCC.
5102 (reorder_basic_blocks): Remove use of REORDER_SKIP_AFTER. Removed
5103 second parameter to skip_insns_after_block.
5105 Wed May 3 13:29:54 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5107 * tree.c (staticp, case LABEL_DECL): New case.
5109 2000-05-03 Richard Henderson <rth@cygnus.com>
5111 * Makefile.in (start.encap): Do not depend on LIBGCC1.
5113 * mklibgcc1.in: Fix typo last change.
5115 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
5117 * Makefile.in (WARN_CFLAGS): Add -pedantic -Wno-long-long.
5118 (LOOSE_CFLAGS): New: CFLAGS without -pedantic and -Wtraditional.
5119 (GCC_CFLAGS): Use it.
5120 (LANG_FLAGS_TO_PASS): New: SUBDIR_FLAGS_TO_PASS with LOOSE_CFLAGS.
5121 * cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in, ch/Make-lang.in,
5122 objc/Make-lang.in: Use it.
5124 2000-05-03 Jason R Thorpe <thorpej@zembu.com>
5126 * config/i386/i386.md (lshrqi2_cmpno): Use q not r in constraint.
5128 2000-05-03 Richard Henderson <rth@cygnus.com>
5130 * mklibgcc.in: Restrict OLDCC=GCC test to native. Equate
5131 LIBGCC1 empty with libgcc1.null.
5133 Wed May 3 12:55:46 2000 Jim Wilson <wilson@cygnus.com>
5135 * fold-const.c (extract_muldiv, case MAX_EXPR): Don't allow signedness
5138 2000-05-03 Greg McGary <gkm@gnu.org>
5140 * tree.h (tree_common): Add bounded_flag member. Remove
5141 inaccurate comment about number of remaining bits.
5142 (BOUNDED_INDIRECT_TYPE_P, BOUNDED_POINTER_TYPE_P,
5143 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
5144 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
5145 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
5146 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED): New macros.
5147 (TYPE_QUAL_BOUNDED): New constant.
5148 (TYPE_QUALS): Handle bounded qualifier.
5149 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): New macros.
5150 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
5151 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
5152 TYPE_AMBIENT_BOUNDEDNESS): New macros.
5153 (MAX_POINTER_DEPTH, VA_LIST_POINTER_DEPTH): New constants.
5154 (tree_type): Add pointer_depth member. Remove
5155 inaccurate comment about number of remaining bits.
5156 (DECL_POINTER_DEPTH): Add macro.
5157 (tree_decl): Add pointer_depth member.
5159 Wed May 3 22:52:53 2000 Denis Chertykov <denisc@overta.ru>
5161 * config/avr/avr-protos.h (test_hard_reg_class): Declared.
5162 * config/avr/avr.c (ashrhi3_out): optimized shift by 15.
5163 (lshrhi3_out): Likewise.
5164 (ashrsi3_out): bugfix in shift by 8.
5165 (test_hard_reg_class): New function.
5166 * config/avr/avr.md: Bugfix inside conditions in peepholes.
5167 (ashlhi3): removed define_expand of this pattern.
5168 (*ashlhi3_insn): renamed to ashlhi3.
5169 (ashlsi3): removed define_expand of this pattern.
5170 (*ashlsi3_insn): renamed to ashlsi3.
5171 (ashrqi3): removed define_expand of this pattern.
5172 (*ashrqi3_insn): renamed to ashrqi3.
5173 (ashrhi3): removed define_expand of this pattern.
5174 (*ashrhi3_insn): renamed to ashrhi3.
5175 (ashrsi3): removed define_expand of this pattern.
5176 (*ashrsi3_insn): renamed to ashrsi3.
5177 (lshrhi3): removed define_expand of this pattern.
5178 (*lshrhi3_insn): renamed to lshrhi3.
5179 (lshrsi3): removed define_expand of this pattern.
5180 (*lshrsi3_insn): renamed to lshrsi3.
5182 2000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
5184 * config/mcore/mcore.c: Replacing inclusion of "stdio,h" with
5185 inclusion of "system.h".
5187 Wed May 3 11:43:53 2000 Jim Wilson <wilson@cygnus.com>
5189 * config/ia64/ia64.c (ia64_encode_section_info): Add check for
5192 2000-05-03 David Mosberger <davidm@hpl.hp.com>
5194 * config/ia64/ia64.c (ia64_override_options): Force -mconstant-gp
5195 if -mauto-pic is on.
5196 (ia64_epilogue_uses): Mark "gp" (r1) as used by the epilogue if
5197 -mconstant-gp is in effect and function-descriptors are being used
5198 to make indirect calls.
5199 * config/ia64/ia64.h (MASK_CONST_GP): New macro.
5200 (MASK_AUTO_PIC): Ditto.
5201 (TARGET_CONST_GP): Ditto.
5202 (TARGET_AUTO_PIC): Ditto.
5203 (TARGET_SWITCHES): Add -mconstant-gp and -mauto-pic options.
5204 (ASM_OUTPUT_DOUBLE_INT): Don't generate @fptr() if -mauto-pic or
5205 -mno-pic is in effect.
5206 (ASM_OUTPUT_XDATA_DOUBLE_INT): Ditto.
5207 * config/ia64/ia64.md (movdi): Use gen_load_gprel64() if
5208 -mauto-pic is in effect.
5209 (gprel64_offset): New pattern.
5210 (load_gprel64): Ditto.
5211 (call): Handle -mauto-pic like -mno-pic (don't use fptr). If
5212 -mconstant-gp is in effect, no need to preserve gp around direct
5214 (call_value): Ditto.
5215 * config/ia64/linux.h (PROFILE_BEFORE_PROLOGUE): Define.
5216 (FUNCTION_PROFILER): Define.
5217 * config/ia64/sysv4.h (ASM_OUTPUT_CONSTRUCTOR): Don't generate
5218 @fptr() directive when -mno-pic or -mauto-pic is in effect.
5219 (ASM_OUTPUT_DESTRUCTOR): Ditto.
5221 2000-05-03 Richard Henderson <rth@cygnus.com>
5223 * Makefile.in (STAGESTUFF): Add libgcc libgcc.mk.
5224 (libgcc1.null, libgcc1.cross, libgcc1.a): Remove targets.
5225 (libgcc1-asm.a, libgcc1.S, libgcc2.a): Remove targets.
5226 (mklibgcc, libgcc.mk): New targets.
5227 (libgcc.a): Use libgcc.mk.
5228 (stmp-multilib): Likewise.
5229 (stmp-multilib-sub): Remove.
5230 (mostlyclean): Don't delete libgcc2 temp files.
5231 * configure.in (AC_PROG_CC_C_O): Add.
5232 (NO_MINUS_C_MINUS_O): Substitute it.
5233 (all_outputs): Add mklibgcc.
5234 * mklibgcc.in: New file.
5236 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
5238 * cppexp.c (op_t): Make an int.
5240 * rtlanal.c (dead_or_set_regno_p): Remove unused variable.
5242 * varasm.c (initializer_constant_valid_p): Fix parenthesis.
5244 * gensupport.c (process_rtx): Fix macros used.
5246 2000-05-03 Richard Henderson <rth@cygnus.com>
5248 * flow.c (propagate_one_insn): Also don't PROP_REG_INFO for
5249 call-clobbered registers of a call.
5251 Wed May 3 12:40:53 2000 Clinton Popetz <cpopetz@cygnus.com>
5253 * gensupport.c: New file.
5254 * gensupport.h: New file.
5255 * Makefile.in (HOST_RTL): Depend on gensupport.
5256 (gensupport.o) New rule.
5257 * genattr.c: Use gensupport for reading .md files.
5258 * genattrtab.c: Ditto.
5259 * gencodes.c: Ditto.
5260 * genconfig.c: Ditto.
5262 * genextract.c: Ditto.
5263 * genflags.c: Ditto.
5264 * genopinit.c: Ditto.
5265 * genoutput.c: Ditto.
5267 * genrecog.c: Ditto.
5268 * rtl.def (define_insn_and_split): New DEF_RTL_EXPR.
5269 * md.texi (Insn Splitting): Document define_insn_and_split.
5271 Tue May 2 00:20:30 2000 Jason Eckhardt <jle@cygnus.com>
5273 * flow.c (verify_flow_info): Added two more sanity checks. The
5274 first checks that the blocks are numbered consecutively. The second
5275 checks that n_basic_blocks is actually equal to the number of
5276 basic blocks in the insn chain.
5278 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
5280 * cpplib.h: Add accessor macros for token lists.
5281 * cpplib.c, cpphash.c, cpplex.c: Use them.
5283 Wed May 3 09:29:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5285 * expr.c (expand_expr, case COMPONENT_REF): Don't check for checking
5286 memory usage if not in a function.
5287 * varasm.c (initializer_constant_valid_p, case ADDR_EXPR): Only
5288 return address if static.
5290 Wed May 3 13:14:49 MET DST 2000 Jan Hubicka <jh@suse.cz>
5292 * ifcvt.c (noce_try_cmove_arith): Use may_trap_p to thest
5293 whether address may trap.
5295 Tue May 2 23:38:37 2000 Jason Eckhardt <jle@cygnus.com>
5297 * bb-reorder (chain_reorder_blocks): Changed code to test for
5298 EDGE_FALLTHRU rather than making erroneous assumption that the
5299 first outgoing edge is the fall-through edge.
5301 Tue May 2 18:20:31 2000 Donald Lindsay <dlindsay@hound.cygnus.com>
5303 * config/mips/mips.c (mips_build_va_list,mips_va_start,mips_va_arg): new
5304 ABI for varargs, across all MIPS. This is incompatible because the
5305 va_list (__builtin_va_list) structure is different, so a compilation
5306 unit passing a va_list and a compilation unit being passed one, should
5307 both be compiled with the same ABI. (The old structure had two
5308 pointers, now it has three.)
5310 Tue May 2 19:18:43 2000 Jason Eckhardt <jle@cygnus.com>
5312 * bb-reorder.c (struct reorder_block_def): Remove members end,
5313 block_begin, and block_end.
5314 (REORDER_BLOCK_OLD_END): Delete.
5315 (REORDER_BLOCK_BEGIN): Delete.
5316 (REORDER_BLOCK_END): Delete.
5317 (chain_reorder_blocks): Remove dead code.
5319 Tue May 2 17:06:53 2000 Jason Eckhardt <jle@cygnus.com>
5321 * bb-reorder.c (remove_scope_notes): Check for both types of scope
5322 notes as the end of a basic block before deleting.
5324 2000-05-02 Mumit Khan <khan@xraylith.wisc.edu>
5326 * final.c (final_start_function): Fix spelling of "necessary".
5328 2000-05-02 Jason Merrill <jason@casey.cygnus.com>
5330 * toplev.c (debug_ignore_block): Return int.
5331 * dwarf2out.c (dwarf2out_ignore_block): Likewise.
5332 * toplev.h, dwarf2out.h: Adjust.
5333 * emit-rtl.c (remove_unnecessary_notes): Test return value.
5335 * emit-rtl.c (remove_unnecessary_notes): Fix spelling of "necessary".
5336 * toplev.c, final.c, rtl.h: Adjust.
5338 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
5340 * aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
5341 * configure.in: Look for makeinfo in the unified tree, then
5342 for a system makeinfo which is sufficiently new.
5343 * Makefile.in: If configure says makeinfo is too old, don't
5344 build or install Info documentation.
5346 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
5348 * cpphash.c (collect_params): Fix off-by-one error.
5349 (dump_hash_helper): Dump all four macro nodetypes.
5351 2000-05-02 Jakub Jelinek <jakub@redhat.com>
5353 * cpphash.c (trad_stringify): Adjust p after stringification as
5356 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
5358 * cpplib.h (CPP_POP, parse_cleanup_t): Delete.
5359 (cpp_buffer): Remove cleanup, seen_eof, manual_pop members.
5361 * cppfiles.c (file_cleanup): Delete.
5362 * cpphash.c (macro_cleanup): Delete.
5363 (collect_objlike_expansion, collect_funlike_expansion,
5364 macarg, scan_arguments): Remove CPP_POP case.
5366 * cpplex.c (null_cleanup): Delete.
5367 (cpp_pop_buffer): Do the work that was done in the cleanups
5368 here. Call _cpp_unwind_if_stack from here.
5369 (_cpp_expand_to_buffer, cpp_scan_buffer_nooutput,
5370 cpp_scan_buffer): Run until we see CPP_EOF and the top of
5371 stack is the buffer _below_ the one we stacked.
5372 (cpp_get_token): Always pop an exhausted buffer. Return
5373 CPP_EOF unless it's a macro buffer. Don't call _cpp_handle_eof.
5374 * cpplib.c (skip_if_group): Don't call cpp_get_token to
5375 increment the line number.
5376 (_cpp_handle_eof): Rename to _cpp_unwind_if_stack.
5378 * fix-header.c (read_scan_file) [parsing getchar()]: Run until
5379 we see CPP_EOF and the top of stack is the buffer _below_ the
5381 * scan-decls.c: Likewise.
5383 2000-05-02 Andrew Haley <aph@cygnus.com>
5385 * config/ia64/ia64.c (ia64_encode_section_info): Handle the case
5386 where this function is called for the second time on a decl that
5387 has had its section info changed in such a way as to move it out
5389 * config/ia64/ia64.h (REDO_SECTION_INFO_P): New definition.
5391 2000-05-01 Richard Henderson <rth@cygnus.com>
5393 * ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
5394 the sequence we're moving, not to merge_bb->head.
5396 2000-05-01 Richard Henderson <rth@cygnus.com>
5398 * configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove
5399 reference to alpha/t-linux.
5400 (alpha*-*-linux-gnu*): Likewise.
5401 * configure: Rebuild.
5403 * calls.c (expand_call): Don't emit reg notes for a sibcall.
5405 * flow.c (calculate_global_regs_live): Skip for_each_successor_phi
5408 * ifcvt.c (if_convert): Only verify_flow_info if ENABLE_CHECKING.
5410 2000-05-01 Jason Merrill <jason@casey.cygnus.com>
5412 * integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and
5415 2000-05-01 Richard Henderson <rth@cygnus.com>
5417 * ifcvt.c (noce_emit_cmove): Conditionally compile call to
5418 emit_conditional_move.
5420 2000-05-01 Jakub Jelinek <jakub@redhat.com>
5422 * config/ia64/linux.h (LINK_SPEC): Use /lib/ld-linux-ia64.so.1
5423 as the dynamic linker.
5425 2000-05-01 Zack Weinberg <zack@wolery.cumb.org>
5427 * cppfiles.c (open_include_file): Open file in blocking mode.
5428 (read_include_file): Don't fcntl(fd, F_SETFL, 0) anymore.
5429 Only exclude block devices and directories.
5431 * cpphash.c (_cpp_make_hashnode): Rename make_HASHNODE, now
5432 static. Allocate the hashnode and its string in the same
5434 (del_HASHNODE): Don't free h->name.
5435 (_cpp_lookup): If there is no entry for this string, create
5436 one, of type T_VOID.
5437 (_cpp_lookup_slot): Delete.
5438 * cpphash.h: Update prototypes.
5440 * cpplex.c (maybe_macroexpand): Check for hp->type == T_VOID,
5442 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert,
5443 do_unassert, cpp_defined): Use _cpp_lookup. Don't create a
5444 node here, just fill in the value field properly. "Delete"
5445 entries by setting the value field to T_VOID. Check for
5446 hp->type == T_VOID, not hp == NULL.
5448 * Makefile.in (cpplib.o): Don't depend on $(HASHTAB_H).
5449 * cpperror.c, cppexp.c, cpplex.c, cpplib.c: Don't include
5452 2000-05-01 Alexandre Oliva <aoliva@cygnus.com>
5454 * config/mn10300/mn10300.c (print_operand_address): Do not add
5457 * config/mn10300/mn10300.c (expand_epilogue): If SP is to be
5458 adjusted by less than 256 bytes, use ret regardless of having any
5459 callee-saved register to restore.
5461 2000-05-01 Laurynas Biveinis <lauras@softhome.net>
5463 * tm.texi (TARGET_HAS_F_SETFLKW): Fix typo.
5465 2000-05-01 Mark Elbrecht <snowball3@bigfoot.com>
5467 * config/i386/djgpp.h (INT_ASM_OP): Define.
5468 (CPP_PREDEFINES): Rename MSDOS to __MSDOS__.
5469 (ASM_WEAKEN_LABEL): Define.
5470 (MASK_BNU210): Define.
5471 (SUBTARGET_SWITCHES): Define.
5472 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Define.
5473 (MAKE_DECL_ONE_ONLY): Define.
5474 (UNIQUE_SECTION_P, UNIQUE_SECTION): Define.
5476 2000-05-01 Mumit Khan <khan@xraylith.wisc.edu>
5478 * i386/cygwin.h (INT_ASM_OP): Define.
5480 Mon May 1 18:20:06 2000 Denis Chertykov <denisc@overta.ru>
5482 * config/avr/avr.c (address_cost): renamed to avr_address_cost.
5483 * config/avr/avr.h (ADDRESS_COST): use avr_address_cost.
5485 Mon May 1 17:50:44 2000 Denis Chertykov <denisc@overta.ru>
5487 * config/avr/avr.c (asm_file_start): output 0 as r0 and 1 as r1 in
5488 __tmp_reg__ and __zero_reg__ initialization.
5490 2000-04-30 Richard Henderson <rth@cygnus.com>
5492 * flow.c (propagate_one_insn): Mark sets even when the insn is dead.
5494 * ifcvt.c (noce_process_if_block): Fail the conversion if X is
5495 referenced bewteen the condition and the jump. Don't delete
5496 anything but the jump.
5498 Sun Apr 30 22:48:24 2000 Jason Eckhardt <jle@cygnus.com>
5500 * bb-reorder.c (scope_def): New struct.
5501 (scope_forest_info): New struct.
5502 (struct reorder_block_def): New member "scope".
5503 (REORDER_BLOCK_SCOPE): New macro.
5504 (relate_bbs_with_scopes): New function and prototype.
5505 (make_new_scope): Likewise.
5506 (build_scope_forest): Likewise.
5507 (remove_scope_notes): Likewise.
5508 (insert_intra_1): Likewise.
5509 (insert_intra_bb_scope_notes): Likewise.
5510 (insert_inter_bb_scope_notes): Likewise.
5511 (rebuild_scope_notes): Likewise.
5512 (free_scope_forest_1): Likewise.
5513 (free_scope_forest): Likewise.
5514 (dump_scope_forest): Likewise.
5515 (dump_scope_forest_1): Likewise.
5516 (chain_reorder_blocks): Set REORDER_BLOCK_SCOPE for new block.
5517 Update REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for new
5519 (reorder_basic_blocks): Added calls to build_scope_scope_forest
5520 and remove_scope_notes before reordering is done. Added calls to
5521 rebuild_scope_notes, free_scope_forest, and reorder_blocks after
5522 after reordering is done.
5524 2000-40-30 Bruce Korb <bkorb@gnu.org>
5526 * fixinc/inclhack.def: Added definitions needed by OSR5,
5527 removed two stale entries (defined away with OLD_CPP).
5528 * fixinc/inclhack.sh: regen
5529 * fixinc/fixincl.x: regen
5531 2000-04-30 Richard Henderson <rth@cygnus.com>
5533 * ifcvt.c (dead_or_predicable): Manually squeeze non-movable notes
5534 from the last insn in the sequence.
5536 2000-04-30 Zack Weinberg <zack@wolery.cumb.org>
5538 * cpplex.c (cpp_idcmp): New function.
5539 * cpplib.h: Prototype it.
5540 * scan_decls.c (scan_decls): Use it to inspect token names.
5541 * fix-header.c (read_scan_file): Likewise. Set system_header_p on
5542 the file being run through the preprocessor.
5543 (check_macro_names): Provide length of token to cpp_defined.
5545 * Makefile.in: Remove stale warning message.
5547 * cppfiles.c (redundant_include_p): Provide length of token to
5549 * cpphash.c (_cpp_make_hashnode, _cpp_lookup_slot): Hash
5550 values are unsigned int.
5551 (_cpp_lookup, _cpp_lookup_slot): Do not calculate the length.
5552 (_cpp_lookup_slot): Do not calculate the hash, either.
5553 * cpphash.h: Update prototypes.
5554 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert):
5555 Hashes are unsigned int. Calculate hash here, pass by value
5556 to _cpp_lookup_slot.
5558 2000-04-30 Bernd Schmidt <bernds@cygnus.co.uk>
5560 * simplify-rtx.c (check_value_useless): Delete function.
5561 (discard_useless_locs): Don't call it; manage N_USELES_VALUES counter
5563 (cselib_invalidate_regno): Likewise.
5564 (cselib_invalidate_mem_1): Likewise.
5565 (references_value_p): Recognize useless values by the fact that they
5567 (discard_useless_values): Likewise.
5568 (cselib_record_set): This may turn a useless value
5571 2000-04-30 Richard Henderson <rth@cygnus.com>
5573 * config/d30v: New port.
5575 * configure.in (d30v-*): Set fp format.
5576 * configure: Rebuild.
5578 2000-04-30 Richard Henderson <rth@cygnus.com>
5580 * ifcvt.c: New file.
5581 * Makefile.in (OBJS): Add it.
5582 (ifcvt.o): New target.
5583 * jump.c (jump_optimize_1): Remove all code related to if-conversion,
5584 and conditional arithmetic.
5585 (find_insert_position): Remove.
5586 * timevar.def (TV_IFCVT, TV_IFCVT2): New.
5587 * toplev.c (DFI_ce, DFI_ce2): New.
5588 (dump_file): Add ce and ce2 dumps.
5589 (rest_of_compilation): Run if_convert a couple o times. Set
5590 cse_not_expected after cse2. Don't set no_new_pseudos until
5591 after sched1 or recompute_reg_usage.
5593 2000-04-30 Richard Henderson <rth@cygnus.com>
5595 * config/alpha/t-crtbe (crtbegin.o): Add "-I.".
5596 (crtend.o, crtbeginS.o, crtendS.o): Likewise.
5598 2000-04-30 Richard Henderson <rth@cygnus.com>
5600 * flow.c (struct reg_cond_life_info): New.
5601 (struct propagate_block_info): Add reg_cond_dead and reg_cond_reg.
5602 (init_propagate_block_info): Initialize them.
5603 (free_propagate_block_info): Destruct them.
5604 (mark_set_1): Consider conditional life before killing a register.
5605 (mark_regno_cond_dead): New.
5606 (free_reg_cond_life_info): New.
5607 (flush_reg_cond_reg_1, flush_reg_cond_reg): New.
5608 (ior_reg_cond, not_reg_cond, nand_reg_cond): New.
5609 (mark_used_reg): Record conditional life.
5611 * haifa-sched.c (schedule_insns): Disable death counting
5612 sanity check for HAVE_conditional_execution.
5614 2000-04-30 Richard Henderson <rth@cygnus.com>
5616 * Makefile.in (TIMEVAR_H): New.
5617 (ggc-simple.o, ggc-page.o, toplev.o, timevar.o): Use it.
5618 (timevar.h): Remove rule.
5620 2000-04-29 Richard Henderson <rth@cygnus.com>
5622 * config/alpha/crtend.asm: Use C comments instead of #.
5623 * config/alpha/crtbegin.asm: Likewise. Mark __dso_handle hidden.
5625 * config/alpha/elf.h (SELECT_SECTION): Treat CONSTRUCTOR like VAR_DECL.
5627 2000-04-29 Zack Weinberg <zack@wolery.cumb.org>
5629 * cpphash.h (enum node_type: Take out T_MCONST.
5630 (union hashval): Move into struct hashnode.
5631 (struct hashnode): Pack tighter. Remove file, line, col
5633 * cpphash.c: Constify most of the macro-definition structures.
5634 (struct definition): Replace by struct object_defn
5635 and struct funct_defn. Put file, line, column information
5636 here. All users updated to match.
5637 (_cpp_create_definition, _cpp_macroexpand): Remove special
5638 case for #define WORD OTHERWORD.
5639 * cpplib.c (do_undef): Remove T_MCONST case.
5641 * cpphash.h: Move struct reflist, struct definition, and the
5642 DEFINITION typedef to cpphash.c. Use 'struct definition *' in
5643 union hashval. _cpp_free_definition takes a HASHNODE pointer.
5644 * cpphash.c (_cpp_free_definition): Free data pointed to by
5645 MCONST, XCONST, MACRO, and FMACRO nodes properly.
5646 (_cpp_create_definition, del_HASHNODE): Just call
5647 _cpp_free_definition to clear out a hashnode.
5648 * cpplib.c (do_pragma_poison): Likewise.
5650 Sat Apr 29 12:25:17 2000 Alexandre Oliva <aoliva@cygnus.com>
5652 * config/mn10300/mn10300.h (FIRST_DATA_REGNUM,
5653 LAST_DATA_REGNUM, FIRST_ADDRESS_REGNUM, LAST_ADDRESS_REGNUM,
5654 FIRST_EXTENDED_REGNUM, LAST_EXTENDED_REGNUM): New macros.
5655 (REGNO_SP_P): Redefine in terms of STACK_POINTER_REGNUM.
5656 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_EXTENDED_P,
5657 REGNO_AM33_P): Redefine in terms of the new macros.
5658 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
5659 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
5660 STRUCT_VALUE): Likewise.
5661 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM,
5662 ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Likewise. Moved.
5664 Sat Apr 29 01:18:45 MET DST 2000 Jan Hubicka <jh@suse.cz>
5666 * regmove.c (struct record_stack_memrefs_data): New.
5667 (record_stack_memrefs): New function.
5668 (combine_stack_adjustments_for_block): Use it.
5670 Sat Apr 29 01:15:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
5672 * calls.c (calls_function_1): Propertly handle TREE_LIST expressions;
5673 use special_function_p to detect alloca.
5675 Fri Apr 28 16:30:33 2000 Marc Espie <espie@cvs.openbsd.org>
5677 * gcc.texi: Fixes for makeinfo 4.0 --html.
5679 2000-04-28 Zack Weinberg <zack@wolery.cumb.org>
5681 * pcp.h: Delete file.
5683 2000-04-28 Kazu Hirata <kazu@hxi.com>
5685 * h8300.c (function_epilogue): Clean up flags when the last insn
5686 in a function is a barrier.
5688 2000-04-28 Chris Demetriou <cgd@sibyte.com>
5690 * configure.in (sparc-hal-solaris2*): protect [] glob from
5692 (mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
5693 rather than hard-coded constants in target_cpu_default2.
5694 * configure: Regenerate.
5696 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
5698 * tree.c (get_callee_fndecl): Extract the initial value from
5701 2000-04-28 Richard Henderson <rth@cygnus.com>
5703 * varasm.c (record_constant_1): Record the CODE_LABEL when
5704 taking the address of a LABEL_REF.
5706 2000-04-28 Richard Henderson <rth@cygnus.com>
5707 Jan Hubicka <jh@suse.cz>
5709 * calls.c (combine_pending_stack_adjustment_and_call): Return the
5710 adjustment; don't do the stack adjust.
5711 (expand_call): Call compute_argument_block_size right before
5712 allocating the block; update comment; don't do alignment sanity
5713 checking for sibling call; use args_size instead of
5714 unadjusted_args_size before args_size is adjusted. Use
5715 combine_pending_stack_adjustment_and_call to compute stack adjust
5716 for must_preallocate case.
5718 * expr.c (push_block): Remove shadow `temp' in inner scope.
5720 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
5722 * toplev.c (rest_of_compilation): Call
5723 note_deferral_of_defined_inline_function even if the function
5726 2000-04-28 Scott Bambrough <scottb@netwinder.org>
5728 * cpplex.c (_cpp_scan_line): Fix buffer overwrite.
5730 2000-04-28 Richard Henderson <rth@cygnus.com>
5732 * toplev.c (rest_of_type_compilation): Fix sdb TIMEVAR typo.
5734 2000-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5736 * timevar.c (init_timevar): DeANSIfy function definition.
5738 2000-04-27 Alex Samuel <samuel@codesourcery.com>
5740 * Makefile.in (timevar.o): Depend on flags.h.
5741 * timevar.c (unused_stack_instances): New variable.
5742 (timevar_push): Take a timevar_stack_def from
5743 unused_stack_instances if available.
5744 (timevar_pop): Push the popped timevar_stack_def onto
5745 unused_stack_instances.
5746 (TIMEVAR_ENABLE): New macro.
5747 (timevar_def): Make standalone a 1-bit field. Add field used.
5748 (get_time): Rename parameter to now. Return after clearing it if
5750 (init_timevar): Do nothing if not TIMEVAR_ENABLE.
5751 (timevar_pop): Likewise.
5752 (timevar_stop): Likewise.
5753 (timevar_push): Likewise. Mark the timing variable as used.
5754 (timevar_start): Likewise.
5755 (timevar_print): Do nothing if not TIMEVAR_ENABLE. Don't print
5756 timevars that were never used.
5758 2000-04-27 Mark Mitchell <mark@codesourcery.com>
5760 * c-common.c (c_apply_type_quals_to_decl): REFERENCE_TYPES are
5761 always TREE_READONLY.
5763 2000-04-27 Ulrich Drepper <drepper@cygnus.com>
5765 * i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Generate mem reference
5766 for call instruction with mode QImode.
5768 2000-04-27 Alex Samuel <samuel@codesourcery.com>
5770 * Makefile.in (OBJS): Add timevar.o.
5771 (toplev.o): Depend on timevar.h.
5772 (ggc-simple.o): Likewise.
5773 (ggc-page.o): Likewise.
5774 (timevar.o): New rule.
5775 (timevar.h): New rule.
5777 * timevar.h: New file.
5778 * timevar.c: Likewise.
5779 * timevar.def: Likewise.
5781 * toplev.h (gc_time, parse_time, varconst_time): Remove.
5782 * toplev.c: Use timevar_push and timevar_pop instead of TIMEVAR
5784 (TIMEVAR): Remove macro.
5785 (gc_time, parse_time, varconst_time, integration_time, jump_time,
5786 cse_time, gcse_time, loop_time, cse2_time, branch_prob_time,
5787 flow_time, combine_time, regmove_time, sched_time,
5788 local_alloc_time, global_alloc_time, flow2_time, peephole2_time,
5789 sched2_time, dbr_sched_time, reorder_blocks_time,
5790 rename_registers_time, shorten_branch_time, stack_reg_time,
5791 to_ssa_time, from_ssa_time, final_time, symout_time, dump_time,
5793 (compile_file): Don't initialize time variables. Call
5794 init_timevar and start TV_TOTAL timer. Call timevar_print instead
5795 of many calls to print_time.
5796 (rest_of_compilation): Add timing for reload_cse_regs.
5797 (get_run_time): Removed to timevar.c.
5798 (print_time): Likewise.
5799 (get_run_time): Implement using TV_TOTAL time variable.
5800 (print_time): Get total run time from get_run_time.
5801 * ggc-page.c (ggc_collect): Push and pop TV_GC instead of
5802 computing elapsed time explicitly.
5803 * ggc-simple.c (ggc_collect): Likewise.
5804 (gc_time): Remove declaration.
5806 2000-04-27 Mark Mitchell <mark@codesourcery.com>
5808 * calls.c (combine_pending_stack_adjustment_and_call): New function.
5809 (expand_call): Use it.
5811 2000-04-27 Jan Hubicka <jh@suse.cz>
5813 * flow.c (mark_set_1): Handle MEMs in ZERO_EXTRACT/SIGN_EXTRACT
5816 Thu Apr 27 12:47:00 2000 Alexandre Oliva <aoliva@cygnus.com>
5818 * config/mn10300/mn10300.md (movhi): Simplify. Prefer data
5821 Thu Apr 27 17:33:05 MET DST 2000 Jan Hubicka <jh@suse.cz>
5823 * function.c (epilogue_done): Pass whole insn to record_insns.
5825 Thu Apr 27 16:55:28 MET DST 2000 Jan Hubicka <jh@suse.cz>
5827 * cse.c (CSE_ADDRESS_COST): Remove.
5828 (find_best_addr): Add new parameter "MODE", use address_cost instead
5830 (address_cost): New.
5831 (fold_rtx): Update call of find_best_addr.
5832 * rtl.h (address_cost): Declare.
5833 * loop.c (general_induction_var): Add new parameter "MODE", use
5834 address_cost instead of ADDRESS_COST
5835 (init_loop): Use address_cost instead of ADDRESS_COST.
5836 (check_insn_for_givs): Update call of general_induction_var.
5837 (find_mem_givs): Likewise.
5838 (consec_sets_giv): Likewise.
5839 * config/i386/i386.h (ADDRESS_COST): Call ix86_address_cost.
5840 * i386.c (ix86_address_cost): New.
5841 * i386-protos.h (ix86_address_cost): Declare.
5843 Thu Apr 27 11:45:16 2000 Alexandre Oliva <aoliva@cygnus.com>
5845 * config/mn10300/mn10300.md (movqi): Simplify. Prefer data
5848 Thu Apr 27 16:11:00 MET DST 2000 Jan Hubicka <jh@suse.cz>
5850 * expr.c (store_expr): Use clear_storage instead of direct memset
5853 Thu Apr 27 10:36:51 2000 Alexandre Oliva <aoliva@cygnus.com>
5855 * config/mn10300/mn10300.c (mn10300_address_cost): Test
5856 ASHIFT, AND and LABEL_REF.
5858 Thu Apr 27 15:08:46 MET DST 2000 Jan Hubicka <jh@suse.cz>
5860 * invoke.texi (-foptimize-sibling-calls): Fix.
5862 Thu Apr 27 14:54:22 MET DST 2000 Jan Hubicka <jh@suse.cz>
5864 * loop.c (load_mems) Don't use hard registers for the hoisting.
5866 * unroll.c (unroll_loop): Avoid overflow in the n_iterations
5867 calculation; rename const_equiv array in the preconditioning code
5868 from loop_unroll to loop_unroll_precondition
5870 2000-04-27 Richard Henderson <rth@cygnus.com>
5872 * flow.c (struct propagate_block_info): Remove new_dead, new_live;
5874 (propagate_one_insn): Clear it. Don't update reg_live here.
5875 (init_propagate_block_info): Update for pbi member changes.
5876 (free_propagate_block_info): Likewise.
5877 (mark_set_1): Know that zero_extract, sign_extract, and
5878 strict_low_part don't kill their argument. Alter hard subregs.
5879 Update new_set for non-CLOBBER sets. Update reg_live.
5880 (find_auto_inc): Update reg_live, not new_dead.
5881 (mark_used_reg): Update reg_live, not new_live. Examine new_set
5882 to determine if the reg in question was set this insn. Only update
5883 reg info with PROP_REG_INFO.
5885 2000-04-26 Richard Henderson <rth@cygnus.com>
5887 * flow.c (allocate_reg_life_data): Set max_regno here ...
5888 (life_analysis): ... not here.
5890 * flow.c (calculate_global_regs_live): Force stack pointer
5893 2000-04-26 Richard Henderson <rth@cygnus.com>
5895 * jump.c (redirect_exp_1): Rework from old redirect_exp. Never
5896 commit change group changes.
5897 (invert_exp_1): Similarly.
5898 (redirect_exp, invert_exp): Use them.
5899 (redirect_jump_1): New.
5900 (invert_jump_1): New.
5901 (jump_optimize_1): Remove code subsumed by condexec.c.
5902 * rtl.h (invert_jump_1, redirect_jump_1): Declare.
5904 2000-04-26 Richard Henderson <rth@cygnus.com>
5906 * rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
5908 * genconfig.c (main): Set all HAVE_foo to 1.
5910 * graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array.
5912 2000-04-26 Alex Samuel <samuel@codesourcery.com>
5914 * invoke.texi: Document -fssa flag.
5916 2000-04-26 Richard Henderson <rth@cygnus.com>
5918 * flow.c (count_reg_sets_1): Remove.
5919 (count_reg_sets, count_reg_references): Remove.
5920 (recompute_reg_usage): Implement with update_life_info.
5921 Reallocate life data.
5923 2000-04-26 Richard Henderson <rth@cygnus.com>
5925 * flow.c (update_life_info): Consider blocks null to mean the
5927 (calculate_global_regs_live): Likewise.
5928 (life_analysis): Do that instead of collecting all_blocks.
5930 2000-04-26 Richard Henderson <rth@cygnus.com>
5932 * flow.c (tidy_fallthru_edge): Don't delete the jump when it's
5933 a still-valid conditional jump.
5935 2000-04-26 Richard Henderson <rth@cygnus.com>
5937 * jump.c (invert_jump): Always invert REG_BR_PROB. Do it correctly.
5939 * bb-reorder.c (reorder_basic_blocks): Don't run estimate_probability.
5940 * flow.c (calculate_loop_depth): Remove.
5941 * output.h (calculate_loop_depth): Don't declare.
5942 * toplev.c (rest_of_compilation): Expand calculate_loop_depth
5943 inline; run estimate_probability at the same time.
5945 2000-04-26 Neil Booth <NeilB@earthling.net>
5947 * cpplib.h: "~=" is not a single pp-token.
5948 * cpplex.c: Correct commentary.
5950 2000-04-26 Richard Henderson <rth@cygnus.com>
5952 * flow.c (mark_set_1): New arguments code and flags; update all
5953 callers. Track regno_first and regno_last; do HARD_REGNO_NREGS
5954 test in one place. Tidy flags tests. Don't bias REG_N_REFS by
5955 loop_depth when optimizing for size. Do new_dead update after
5956 emitting REG_UNUSED notes. Merge mark_set_reg code.
5957 (mark_set_reg): Remove.
5958 (propagate_one_insn): Use mark_set_1 for call-clobbered registers;
5959 arrange to not emit REG_UNUSED notes.
5961 2000-04-26 Richard Henderson <rth@cygnus.com>
5963 * flow.c (find_auto_inc): Use pbi->bb instead of BLOCK_FOR_INSN.
5964 * ssa.c (convert_from_ssa): Don't run compute_bb_for_insn.
5966 2000-04-26 Richard Henderson <rth@cygnus.com>
5968 * flow.c (propagate_one_insn): Break out from propagate_block.
5969 (init_propagate_block_info): Likewise.
5970 (free_propagate_block_info): Likewise.
5971 (propagate_block): Use them. Export.
5972 * basic-block.h: Declare them all.
5974 2000-04-26 Richard Henderson <rth@cygnus.com>
5976 * basic-block.h (life_analysis): Declare here ...
5977 * output.h: ... not here.
5978 * flow.c (life_analysis): Remove nregs parameter; replace
5979 remove_dead_code with flags. Remove ssa dead code check.
5980 Only init alias analysis if we'll use it.
5981 * reg-stack.c (reg_to_stack): Update life_analysis arguments.
5982 * ssa.c (convert_to_ssa): Likewise.
5983 (convert_from_ssa): Likewise.
5984 * toplev.c (rest_of_compilation): Likewise.
5986 2000-04-26 Richard Henderson <rth@cygnus.com>
5988 * flow.c (flow_delete_block): Rename from delete_block. Export.
5989 * basic-block.h (flow_delete_block): Declare.
5991 2000-04-26 David S. Miller <davem@redhat.com>
5993 * optabs.c (emit_libcall_block): Verify insns with INSN_P before
5994 taking a PATTERN of it.
5996 2000-04-26 <NeilB@earthling.net>
5998 * cpplex.c (spell_other, spell_char): Remove.
6000 (token_spelling, trigraph_map): Use unsigned chars.
6001 (_cpp_lex_line): Tidy up the switch statement.
6002 * cpplib.h: Implement spell_char with spell_string.
6005 2000-04-26 <RodneyBrown@pmsc.com>
6007 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Warning removal.
6008 * pa/pa64-regs.h (HARD_REGNO_MODE_OK): Warning removal.
6010 2000-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6012 * dwarf2out.c (dw_cfi_oprnd_struct, dw_fde_struct, add_fde_cfi,
6013 reg_save, dwarf2out_frame_debug_expr, dwarf2out_def_cfa,
6014 dwarf2out_window_save, dwarf2out_args_size, dwarf2out_reg_save,
6015 dwarf2out_return_save, dwarf2out_return_reg,
6016 dwarf2out_stack_adjust, dwarf2out_frame_debug, primary_filename,
6017 add_AT_lbl_id, add_AT_lbl_offset, type_tag, decl_start_label,
6018 gen_compile_unit_die, dwarf2out_init): Constify a char*.
6020 * dwarf2out.h (dwarf2out_init): Likewise.
6022 * dwarfout.c (filename_entry, primary_filename, last_filename,
6023 type_tag, output_compile_unit_die, dwarfout_init): Likewise.
6025 * tree.h (dwarf2out_def_cfa, dwarf2out_window_save,
6026 dwarf2out_args_size, dwarf2out_reg_save, dwarf2out_return_save,
6027 dwarf2out_return_reg): Likewise.
6029 2000-04-26 Andreas Jaeger <aj@suse.de>
6031 * extend.texi (Function Attributes): Fix description of pure
6034 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
6036 * integrate.c (output_inline_function): Do clear DECL_DEFER_OUTPUT
6037 before calling rest_of_compilation.
6039 2000-04-26 Andreas Jaeger <aj@suse.de>
6041 * config/mips/linux.h: Remove erroneous commit of #if 0/#endif in
6044 2000-04-25 Richard Henderson <rth@cygnus.com>
6046 * cse.c (cse_insn): Emit barrier after unconditional jump.
6048 * calls.c (expand_call): Disable tail call generation once
6049 rtx_equal_function_value_matters is false.
6051 * reg-stack.c (convert_regs_1): Treat EDGE_ABNORMAL_CALL edges
6054 2000-04-25 Jason Merrill <jason@casey.cygnus.com>
6056 * dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
6058 * dwarfout.c (output_decl): Ignore NAMESPACE_DECLs.
6060 * dwarf2out.c (gen_subprogram_die): The class-scope declaration DIE
6061 is the primary DIE for a member function.
6062 (gen_decl_die): Call set_decl_origin_self here.
6063 * dwarfout.c (output_decl): And here.
6064 * integrate.c (output_inline_function): Not here.
6065 Don't clear DECL_INLINE until after calling rest_of_compilation.
6066 (set_decl_origin_self): No longer static.
6067 * tree.h: Add prototype.
6068 * toplev.c (note_deferral_of_defined_inline_function): Only write
6069 out abstract instance for actual inlines.
6071 2000-04-25 Alexandre Oliva <aoliva@cygnus.com>
6073 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Return
6074 EXTENDED_REGS only if TARGET_AM33.
6075 * config/mn10300/mn10300.md (movsi, addsi): Avoid exposing
6076 SP_REGS to register allocation and reloading unless absolutely
6078 (movsi3): Remove special-case of adding non-constants to SP.
6080 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6082 * aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires
6083 INCLUDES to search and does not provide any of its own. Also it
6084 now accepts optional ACTION-IF-NEEDED and ACTION-IF-NOT-NEEDED
6085 parameters. Also it does not call AC_DEFINE.
6086 (gcc_AC_NEED_DECLARATIONS): Likewise. Also this macro now calls
6087 AC_DEFINE and provides for automatic entries for autoheader.
6088 (gcc_AC_FUNC_PRINTF_PTR): Cleanup C code in test.
6090 * configure.in (gcc_AC_NEED_DECLARATIONS): Save and restore CFLAGS
6091 so we can pass -I flags and include gansidecl.h/system.h in this
6094 * acconfig.h: Delete all NEED_DECLARATION_* entries.
6096 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6098 * acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
6099 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
6100 ENABLE_GC_ALWAYS_COLLECT): Delete entries.
6102 * configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
6103 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
6104 ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
6105 for these macros. Clean up spacing and linewraps.
6107 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
6109 * calls.c (expand_call): Use get_callee_fndecl.
6111 * print-tree.c (print_node): Print the chain of an _EXPR.
6113 Tue Apr 25 16:16:04 2000 Andrew MacLeod <amacleod@cygnus.com>
6114 Jim Wilson <wilson@cygnus.com>
6115 Andrew Haley <aph@cygnus.com>
6117 * config/ia64/crtbegin.asm: Add IA-64 unwind support. Correct alloc
6118 and gp save/restore problems.
6119 * config/ia64/crtend.asm: Add IA-64 unwind support.
6120 * config/ia64/ia64.c (ia64_compute_frame_size): Don't include pr_size
6121 in fr_pad_size calculation.
6122 (save_restore_insns): Move PR save area. Correct uses of
6123 RTX_FRAME_RELATED_P.
6124 (ia64_expand_prologue): Mark alloc with RTX_FRAME_RELATED_P.
6125 (ia64_expand_epilogue): Add eh_epilogue support.
6126 (ia64_function_prologue): Emit .prologue directive.
6127 (ia64_init_machine_status, ia64_mark_machine_status): New functions.
6128 (ia64_override_options): Set init_machine_status and
6129 mark_machine_status.
6130 (rtx_needs_barrier): Handle bsp reads and writes.
6131 (spill_offset, sp_offset, spill_offset_emitted, tmp_reg, tmp_saved):
6132 New static variables.
6133 (process_set, process_for_unwind_directive): New functions.
6134 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR, ASM_OUTPUT_XDATA_SHORT,
6135 ASM_OUTPUT_XDATA_INT, ASM_OUTPUT_XDATA_DOUBLE_INT, ASM_OUTPUT_EH_CHAR,
6136 ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT, ASM_OUTPUT_EH_DOUBLE_INT): New
6138 (EH_FRAME_SECTION_ASM_OP): Define to IA_64.unwind section.
6139 (IA64_UNWIND_INFO, HANDLER_SECTION, IA64_UNWIND_EMIT): Define.
6140 (struct machine_function): Define.
6141 * config/ia64/ia64.md (bsp_value, set_bsp, eh_epilogue): New patterns.
6143 2000-04-25 Bruce Korb <bkorb@gnu.org>
6145 * fixinc/Makefile.in: make the removal of old programs more
6147 * fixinc/mkfixinc.sh: use the two new targets in the Makefile:
6148 install-bin and install-sh
6150 2000-04-25 Nick Clifton <nickc@cygnus.com>
6152 * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): If not
6153 defined, define to return zero.
6154 (function_cannot_inline_p): If a function has any target
6155 specific attributes, then use the macro
6156 FUNCTION_ATTRIBUTE_INLINABLE_P to allow the target to decide
6157 whether it can be inlined. If it cannot, issue a suitable
6160 * tm.texi: Add a new node 'Inlining' to document the new macro
6161 FUNCTION_ATTRIBUTE_INLINABLE_P.
6163 2000-04-25 Zack Weinberg <zack@wolery.cumb.org>
6165 * cpplib.h (struct cpp_buffer): Add 'mapped' flag; fix
6168 2000-04-25 Neil Booth <NeilB@earthling.net>
6170 Restore previous patch, plus the following fixes:
6172 * cpphash.c (_cpp_create_definition): Test PREV_WHITESPACE in
6173 flags, not CPP_OPEN_PAREN.
6174 * cpplex.c (expand_token_space, init_token_list,
6175 cpp_free_token_list): Put the dummy token at list->tokens[-1].
6176 (_cpp_lex_line, _cpp_lex_file): token list is 0-based.
6178 Tue Apr 25 14:06:40 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6180 * config/i386/freebsd.h (INT_ASM_OP): Define.
6182 Tue Apr 25 14:51:07 MET DST 2000 Jan Hubicka <jh@suse.cz>
6184 * loop.c (strength_reduce): Fix typo in the last checkin.
6186 Tue Apr 25 07:33:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6188 * stor-layout.c (finalize_record_size): Simplify to use existing
6190 (compute_record_mode): No longer static.
6191 * tree.h (compute_record_mode): New declaration.
6193 2000-04-25 Neil Booth <NeilB@earthling.net>
6195 * Revert my patch below until cause of build failures
6198 2000-04-25 Richard Henderson <rth@cygnus.com>
6200 * combine.c (combine_instructions): Add missing argument
6203 * toplev.c (rest_of_compilation): Delay sibcall optimization
6204 until after emit_eh_context.
6206 2000-04-24 Nick Clifton <nickc@redhat.com>
6208 * combine.c (combine_instructions): Do not try to combine a
6209 sequence of insns when the second insn has been replaced by a
6212 Mon Apr 24 17:34:18 2000 Mumit Khan <khan@xraylith.wisc.edu>
6214 * gcc.c (load_specs): New static function.
6215 (read_specs): Use it.
6217 * gcc.c (lookup_compiler): Make multiple passes for case
6218 insensitive filesystems.
6220 2000-04-24 Neil Booth <NeilB@earthling.net>
6222 * cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
6223 * cpphash.h (_cpp_check_directive): new.
6224 * cpplex.c (handle_newline, cpp_free_token_list,
6225 init_trigraph_map, trigraph_ok, trigraph_replace,
6226 backslash_start, skip_block_comment, skip_line_comment,
6227 skip_whitespace, parse_name, parse_number, parse_string,
6228 copy_comment, _cpp_lex_line, spell_char, spell_string,
6229 spell_comment, spell_name, spell_other, _cpp_lex_file,
6230 _cpp_output_list): new.
6231 (expand_name_space): take length argument.
6232 (init_token_list): add comment list initialisation.
6233 (cpp_scan_line): use auto_expand_name_space. PREV_WHITESPACE
6234 instead of HSPACE_BEFORE.
6236 * cpplib.c (_cpp_check_directive): new
6237 * cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
6238 DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
6239 (HSPACE_BEFORE): delete.
6240 (TTYPE_TABLE): rearrange.
6241 (struct cpp_toklist): update.
6243 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6245 * aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
6246 gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
6247 argument form of AC_DEFINE.
6249 * configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
6250 HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
6251 WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
6252 HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
6253 HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
6255 * acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
6257 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6259 * Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
6260 deduced.h): Use -isystem, not -I, for including system headers.
6262 2000-04-24 Nick Clifton <nickc@cygnus.com>
6264 * config/fr30/fr30.md (addsi3): Do not use small add instruction if
6265 the source register is the frame pointer or arg pointer.
6266 (addsi3_small_int): Disallow if source register is the frame
6267 pointer or arg pointer.
6269 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6271 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
6272 call to AC_MSG_RESULT.
6274 2000-04-24 Martin v. Löwis <loewis@informatik.hu-berlin.de>
6276 * invoke.texi: Correct grammatical errors, document
6277 -fno-gnu-keywords as identical to -fno-asm for C++.
6279 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6281 * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
6282 GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
6283 GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
6284 AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
6285 EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
6287 * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
6288 GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
6289 GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
6290 GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
6293 2000-04-24 Mumit Khan <khan@xraylith.wisc.edu>
6295 * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
6296 (pop_alignment): Likewise.
6297 (handle_pragma_token): Likewise.
6299 2000-04-24 Robert Lipe <robertlipe@usa.net>
6301 * tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
6303 2000-04-24 Hiroyuki Machida <machida@sm.sony.co.jp>
6305 * combine.c (try_combine): Update reg_nonzero_bits of
6306 newi2pat before newpat.
6308 Mon Apr 24 10:19:48 MET DST 2000 Jan Hubicka <jh@suse.cz>
6310 * loop.c (strength_reduce): Simplify test to INSN_P.
6311 (record_giv): Attempt to simplify the add value, use CONSTANT_P
6312 expressions instead of CONST_INT.
6313 (express_from_1): Likewise.
6315 2000-04-24 Mark Mitchell <mark@codesourcery.com>
6317 * regs.h (reg_n_max): Don't declare.
6318 * flow.c (reg_n_max): Don't define.
6319 * regclass.c (renumber): Don't initialize to zero.
6320 (regno_allocated): Likewise.
6321 (reg_n_max): Define.
6322 (allocate_reg_info): Don't initialize unnecessarily.
6324 Mon Apr 24 00:21:36 2000 Jeffrey A Law (law@cygnus.com)
6326 * genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
6327 and blockage_p in the newly allocated attribute.
6329 Sun Apr 23 20:16:49 2000 Alexandre Oliva <aoliva@cygnus.com>
6331 * config/mn10300/mn10300.md (addsi): `inc4' on address
6332 registers does not modify cc, but `inc' on an extended
6335 Sun Apr 23 16:24:35 2000 Denis Chertykov <denisc@overta.ru>
6337 * reload.c (find_equiv_reg): Checks all valueno regs
6338 as a reload_reg_p regs.
6340 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
6342 * cpphash.c (collect_objlike_expansion): Add sanity check.
6343 (special_symbol): Remove case T_CONST, T_XCONST, T_MCONST. If
6344 the buffer is the empty string, return. Mark __DATE__ and
6345 __TIME__ as XCONST nodes, not MCONST.
6346 (_cpp_macroexpand): Avoid pushing an empty buffer.
6347 (funlike_macroexpand): Don't pop token_buffer here.
6349 Sun Apr 23 18:37:53 2000 Alexandre Oliva <aoliva@cygnus.com>
6351 * config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
6352 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
6353 (REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
6354 (REGNO_OK_FOR_BASE_P): Define in terms of them.
6355 (REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
6356 (REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
6357 (REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
6359 Sun Apr 23 22:23:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
6361 * loop.c (simplify_giv_expr): Be more agressive on simplifying
6364 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
6366 * cpphash.h (struct definition): Move file, line, col members...
6367 (struct hashnode): ... here. Also add 'disabled' flag.
6368 (enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
6369 T_IDENTITY. Remove T_DISABLED.
6372 * cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
6373 (collect_expansion): Split into collect_objlike_expansion and
6374 collect_funlike_expansion.
6375 (_cpp_macroexpand): Split out scan_arguments, stringify, and
6376 funlike_macroexpand.
6377 (_cpp_compare_defs): Rename compare_defs, make static.
6378 (_cpp_make_hashnode): Initialize hp->disabled.
6379 (macro_cleanup): Adjust for new token types. Clear
6381 (_cpp_create_definition): Move code here to determine what
6382 sort of macro it is, and code to check for redefinitions, from
6383 do_define. Implement a few simple cases without creating a
6385 (_cpp_macroexpand, special_symbol, _cpp_dump_definition):
6386 Handle the simple cases.
6387 (push_macro_expansion): Set buf->has_escapes and hp->disabled
6390 * cppinit.c (builtin_array): Change MCONST to XCONST
6392 * cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
6393 fix check for disabled and function-like macros.
6394 * cpplib.c (do_define): Move most logic to
6395 _cpp_create_definition.
6396 (do_undef): Handle new special token types.
6398 Sun Apr 23 14:27:44 MET DST 2000 Jan Hubicka <jh@suse.cz>
6400 * loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
6401 of CONSTANT_P for mult_val; always use validate_change to update insn.
6403 2000-04-22 Zack Weinberg <zack@wolery.cumb.org>
6405 * cpphash.c (trad_stringify, add_pat): New functions.
6406 (collect_expansion): Restore support for -traditional syntax.
6407 Use trad_stringify and add_pat.
6408 (_cpp_macroexpand): Restore support for -traditional semantics.
6409 * cpplex.c (_cpp_scan_line): Don't change space_before if we
6410 get a COMMENT token.
6411 (_cpp_lex_token): Provide COMMENT tokens to caller if
6412 traditional and parsing_define_directive.
6413 (skip_comment): Warn about // comments if -Wtraditional.
6414 * cpplib.c (do_define): Fix typo. Create EMPTY nodes with
6416 (do_undef): Don't warn about undefining EMPTY nodes.
6418 Sat Apr 22 22:35:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
6420 * loop.c (strength_reduce): Fix biv removal code.
6422 2000-04-22 Richard Henderson <rth@cygnus.com>
6424 * predict.c (estimate_probability): Examine both sides of
6425 a branch for no exits. Use 90% not 50% for predict taken.
6426 Reorg for one copy of note generation code.
6428 2000-04-22 Richard Henderson <rth@cygnus.com>
6430 * flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
6432 2000-04-22 Richard Henderson <rth@cygnus.com>
6434 * diagnostic.c (init_output_buffer): Don't initialize format_args.
6435 (output_clear): Likewise.
6436 (output_printf): Use va_copy.
6437 (vline_wrapper_message_with_location): Likewise.
6438 (v_message_with_decl): Likewise.
6439 (line_wrapper_printf): VA_START infor buffer.format_args directly.
6440 * system.h (va_copy): Provide default implementation.
6442 2000-04-22 Richard Henderson <rth@cygnus.com>
6444 * predict.c (expected_value_to_br_prob): Don't bomb if op1 of
6445 the collected condition is not a constant.
6447 2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com>
6449 * diagnostic.h: New file.
6451 * Makefile.in (diagnostic.o): Depends on diagnostic.h
6453 * diagnostic.c: Tweak. Rationalize the output logic. Adjust
6454 various function prototypes.
6455 (diagnostic.h): #include.
6456 (struct output_buffer): Move into diagnostic.h.
6457 (get_output_prefix): Rename to output_get_prefix. Export.
6458 (init_output_buffer): Export. Break out. Ajust intialization.
6459 (output_space_left, output_append): Export.
6460 (output_newline): Rename to output_add_newline. Export.
6461 (output_clear): Nullify additional output_buffer fields.
6462 (output_puts): Rename to output_add_string. Export.
6463 (dump_output): Rename to output_flush_on. Export.
6464 (build_location_prefix): Constify return-type.
6465 (emit_output_prefix): Rename to output_emit_prefix. Export.
6466 (set_real_maximum_length): New function.
6467 (output_set_maximum_length): Ditto
6468 (output_clear): Ditto.
6469 (output_add_character): Ditto.
6470 (output_add_integer): Ditto.
6471 (output_add_space): Ditto.
6472 (output_format): Ditto.
6473 (output_printf): Adjust buffer initialization.
6474 (vline_wrapper_message_with_location): Ditto.
6475 (v_message_with_decl): Ditto. Adjust call to output_puts
6476 and get_output_prefix.
6477 (default_print_error_function): Adjust buffer intialization.
6479 Sat Apr 22 06:45:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6481 * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
6484 Fri Apr 21 18:33:09 2000 Alexandre Oliva <aoliva@cygnus.com>
6486 * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
6489 Fri Apr 21 18:30:00 2000 Alexandre Oliva <aoliva@cygnus.com>
6491 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
6492 accurate data about SP moves.
6494 Fri Apr 21 18:28:28 2000 Alexandre Oliva <aoliva@cygnus.com>
6496 * config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
6497 aliases to AM33 registers.
6499 Fri Apr 21 18:26:17 2000 Alexandre Oliva <aoliva@cygnus.com>
6501 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
6502 to all EXTENDED bitmaps.
6504 Fri Apr 21 18:17:12 2000 Alexandre Oliva <aoliva@cygnus.com>
6506 * config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
6507 * config/mn10300/mn10300.h (ADDRESS_COST): New macro.
6508 * config/mn10300/mn10300.c (mn10300_address_cost): New function.
6510 Fri Apr 21 18:11:56 2000 Alexandre Oliva <aoliva@cygnus.com>
6512 * config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
6513 the operand is not constant.
6515 Fri Apr 21 14:58:29 2000 Denis Chertykov <denisc@overta.ru>
6517 * reload.c (find_equiv_reg): Checks all valueno and regno regs
6518 as a call-clobbered regs.
6520 Fri Apr 21 13:30:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6522 * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
6524 * rtl.def: Update comment.
6525 * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
6526 * integrate.c (expand_inline_function): Likewise.
6527 * profile.c (branch_prob): Likewise.
6528 * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
6529 * print-rtl.c (print_rtx): Likewise.
6530 * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
6531 (reemit_notes): Likewise; also use enum insn_note.
6533 * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
6534 (place_field): Properly compute know and actual alignment.
6536 * gengenrtl.c (gencode): Write obstack_alloc_rtx function start
6539 * cse.c (cse_insn): In (set REG0 REG1) case, remove a REG_EQUAL
6542 2000-04-21 Zack Weinberg <zack@wolery.cumb.org>
6544 * cpphash.c (struct arg, struct arglist): Const-ify strings.
6545 (warn_trad_stringify, duplicate_arg_p): New helper functions.
6546 (collect_expansion): Rewrite to scan over a token list.
6547 Remove -traditional support.
6548 (collect_formal_parameters): Rename to collect_params; rewrite
6549 to scan over a token list.
6550 (_cpp_create_definition): Adjust to scan a token list.
6551 (_cpp_macroexpand): Remove -traditional support.
6552 (_cpp_compare_defs): Whitespace is now canonicalized.
6553 (comp_def_part): Delete function.
6555 * cpphash.h: Update prototypes.
6556 * cpplex.c (init_token_list): Don't set lineno if there is no
6558 (pedantic_whitespace): New function.
6559 (_cpp_scan_line): Mark tokens that had hspace before. Don't
6560 consume a newline. Use pedantic_whitespace.
6561 (_cpp_lex_token): Remove support for -traditional macros.
6562 (_cpp_get_define_token): Delete.
6563 (_cpp_get_directive_token): Do the real work here. Use
6564 pedantic_whitespace.
6565 (_cpp_init_input_buffer): Initialize pfile->directbuf.
6567 * cpplib.c (get_macro_name): Delete.
6568 (do_define): Read the entire line into pfile->directbuf, then
6569 feed the token list to _cpp_create_definition.
6570 * cpplib.h (HSPACE_BEFORE): new define.
6571 (struct cpp_reader): Add a toklist member, "directbuf".
6573 * predict.c (estimate_probability): New heuristic: if a jump
6574 branches around a block with no successors, predict it taken.
6575 Disentangle control flow.
6577 2000-04-20 Richard Henderson <rth@cygnus.com>
6579 * loop.c (emit_iv_add_mult): Revert last change.
6581 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
6583 * cpplib.h (enum cpp_ttype): Add token types for all
6584 punctuators. Distinguish pp-numbers from valid C numbers.
6585 Give some tokens better names. Initialize from macro.
6586 (struct cpp_name, cpp_token, cpp_toklist): New data
6589 * cpplex.c (bump_column, expand_name_space,
6590 expand_token_space, init_token_list, cpp_output_list,
6591 _cpp_scan_line): New functions.
6592 (output_line_command): Add third argument, new line number.
6593 * cpphash.h: Update prototypes.
6594 * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
6597 2000-04-20 Richard Henderson <rth@cygnus.com>
6599 * config/alpha/alpha.c (alpha_emit_floatuns): Emit missing barrier.
6601 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
6603 * c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the
6606 Thu Apr 20 14:19:18 MET DST 2000 Jan Hubicka <jh@suse.cz>
6608 * loop.c (emit_iv_add_mult): Simplify it's input and emit
6609 REG_EQUAL note explaining the calculated value.
6611 * calls.c (expand_call): Avoid unnecesary precalculation
6612 and outgoing parameters space guarding for sibling calls.
6613 (store_one_arg): Likewise.
6615 Thu Apr 20 08:01:07 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6617 * toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
6618 (rest_of_compilation): Write sibling dump file and account
6619 for time as jump time.
6620 * invoke.texi: Update documentation on dump flags.
6622 2000-04-19 Marek Michalkiewicz <marekm@linux.org.pl>
6624 * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
6626 2000-04-19 Zack Weinberg <zack@wolery.cumb.org>
6628 * cpphash.c (special_symbol): Represent an empty macro with
6629 "\r \r " not just "\r ".
6630 (_cpp_macroexpand): Correct condition for the foo ( ) special
6632 (unsafe_chars): Handle EOF as second argument.
6633 (push_macro_expansion): Simplify test for removing escape at
6634 end. Do not trim both escapes if there is no text in between.
6636 2000-04-19 Jim Blandy <jimb@redhat.com>
6638 * dwarf2out.c (DWARF2_ADDR_SIZE): New macro. Use it instead
6639 of PTR_SIZE, when appropriate.
6641 2000-04-19 Mark Mitchell <mark@codesourcery.com>
6643 * system.h (ONLY_INT_FIELDS): Make sure it is defined.
6644 (USE_ENUM_BITFIELDS): Fix typo.
6646 Wed Apr 19 12:14:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6648 * stor-layout.c (place_field): Set rli->offset_align properly.
6650 2000-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6652 * mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
6653 INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
6654 PARM_BOUNDARY): Remove unnecessary casts.
6656 Wed Apr 19 12:02:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
6658 * calls.c (precompute_arguments): Remove must_preallocate and
6660 (expand_call): Update call of precompute_arguments.
6662 * loop.c (check_insn_for_bivs, for_every_insn_in_loop,
6663 check_insn_for_givs): Break out from ...
6664 (strength_reduce) ... here; use for_every_insn_in_loop to call
6665 check_insn_for_givs.
6666 * loop.h (for_every_insn_in_loop): Declare.
6667 (loop_insn_callback): New type.
6669 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
6671 * cpplib.c (do_pragma_poison): Strings in the token buffer are
6674 Tue Apr 18 16:04:12 2000 Jim Wilson <wilson@cygnus.com>
6676 * config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
6679 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
6681 * cccp.c, cexp.y, cexp.c, cccp.1: Removed.
6683 * configure.in: Delete --disable-cpplib option and all
6684 references to cpp_main.
6685 * configure: Regenerate.
6686 * Makefile.in: Remove all references to CCCP, CCCP_OBJS,
6687 @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
6688 cccp.o, cccp, or cppmain. Link cppmain.o straight to
6689 cpp$(exeext). Add --no-headers to makeinfo command line when
6690 generating INSTALL. Install and uninstall cpp.1 manpage, not
6692 * install.texi: Delete all references to cexp.y/cexp.c.
6693 Delete ancient instructions for compiling GCC on 3b1.
6694 * INSTALL: Regenerate.
6696 * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, mips/t-ecoff,
6697 mips/t-elf, mips/t-r3900: Remove references to cccp.c.
6698 * convex.h, fx80.h, m68k.h, pdp11.h: Remove references to
6700 * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
6701 which is no longer tested anywhere.
6703 * cppinit.c (handle_option): Don't run error message through
6706 Tue Apr 18 14:16:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6708 * conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
6709 * cpperror.c (hashtab.h): Now include.
6710 * cppexp.c (hashtab.h): Likewise.
6711 * cpplex.c (hashtab.h): Likewise.
6712 * cppfiles.c (hashtab.h): Likewise.
6713 (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
6714 to htab_find_slot_with_hash.
6715 * cpphash.c (hashtab.h): Now include.
6716 (_cpp_lookup_slot): INSERT is now enum insert_option.
6717 * cpphash.h (_cpp_lookup_slot): Likewise.
6718 * cppinit.c (hashtab.h): Include earlier.
6719 (initialize_builtins): Pass enum to htab_find_slot.
6720 * cpplib.c (hashtab.h): Now include.
6721 (do_define, do_undef): Pass enum type to _cpp_lookup_slot.
6722 (do_pragma_poison, do_assert): Likewise.
6723 * emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
6724 htab_find_slot_with_hash.
6725 * simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
6726 * tree.c (type_hash_add): Likewise.
6727 (build1): Minor cleanup.
6729 * ggc-common.c: Add missing blanks.
6730 * print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
6731 * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.
6733 * stmt.c (mark_case_node): New function.
6734 (mark_case_nesting): Call it.
6736 * expmed.c (emit_store_flag): If comparing two-word integer
6737 with zero, can optimize NE, EQ, GE, and LT.
6739 * c-decl.c (mark_binding_level): Use 'for' instead of `while'.
6740 * conflict.c: Minor cleanups.
6741 * optabs.c: Add blank line
6742 * simplify-rtx.c: Minor cleanups.
6744 2000-04-18 Stan Cox <scox@cygnus.com>
6746 * gengenrtl.c (genlegend): Fix misspelling.
6748 2000-04-18 Robert Lipe <robertlipe@usa.net>
6750 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added. Check that
6751 bitfields of the host compiler are not signed quantities.
6752 * config.in: Regenerate.
6753 * configure: Regenerate.
6754 * system.h (USE_ENUM_BITFIELDS): Added.
6755 (ENUM_BITFIELDS): Added.
6756 * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
6757 (SHORT_ENUM_BUG): Deleted.
6758 * tree.h (tree_common): Members `code', `mode', `built_in_class',
6760 * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
6761 (CODE_FIELD_BUG): Likewise.
6762 * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
6764 * config/m68k/x-ccur (X_CFLAGS): Likewise.
6766 2000-04-18 Mark Mitchell <mark@codesourcery.com>
6768 * cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
6771 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
6773 * cppexp.c (lex): Don't assume tokens are NUL terminated.
6774 * cpplib.c (do_include, do_import, do_include_next,
6775 read_line_number, detect_if_not_defined): Likewise.
6776 * cpphash.c (collect_expansion): Likewise.
6777 (special_symbol, _cpp_macroexpand): Check return from
6779 * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
6780 macros. Delete all uses.
6782 * gcc.dg/cpp-mi.c: Add two more test cases.
6783 * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.
6785 2000-04-17 Richard Henderson <rth@cygnus.com>
6787 * bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
6788 (reorder_basic_blocks): If no epilogue in rtl, force last block last.
6790 2000-04-17 Mark Mitchell <mark@codesourcery.com>
6792 * function.c (expand_function_start): Use hard_function_value to
6793 compute the RTL to use for DECL_RESULT.
6795 Mon Apr 17 23:35:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
6797 * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
6798 (x86_integer_DFmode_moves, x86_partial_reg_dependency,
6799 x86_memory_mismatch_stall): New global variables.
6800 (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only
6801 alloved; fix load penalties for Athlon.
6802 * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency,
6803 x86_memory_mismatch_stall): Declare.
6804 (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY,
6805 TARGET_MEMORY_MISMATCH_STALL): New.
6806 * i386.md (athlon scheduling parameters): Fix latencies according to
6807 Athlon Optimization Manual.
6808 (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to
6810 (fsqrt instruction patterns): Set athlon_decode to direct.
6811 (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for
6812 PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines.
6813 (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY
6814 and TARGET_PARTIAL_REGISTER_STALL machines.
6815 (pushdf_nointeger): New pattern.
6816 (pushdf_integer): Rename from pushdf.
6817 (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines.
6818 (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines.
6820 2000-04-17 Richard Henderson <rth@cygnus.com>
6822 * loop.c (canonicalize_condition): Add WANT_REG argument.
6823 Stop the search if we match it.
6824 * expr.h (canonicalize_condition): Update decl.
6825 * predict.c (expected_value_to_br_prob): Use it. Track last
6826 expected value note.
6827 (find_expected_value): Remove.
6829 * reorg.c (mostly_true_jump): Always use BR_PROB if present.
6831 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
6833 * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
6834 (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
6836 * configure.in: Call AC_FUNC_MMAP_FILE.
6837 * configure: Regenerate.
6838 * config.in: Regenerate.
6840 * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
6841 * fixinc/fixincl.c: Likewise.
6843 2000-04-17 Richard Henderson <rth@cygnus.com>
6845 * builtins.c (expand_builtin_expect): New.
6846 (expand_builtin): Call it.
6847 * builtins.def (BUILT_IN_EXPECT): New.
6848 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
6849 * extend.texi: Document it.
6851 * predict.c (expected_value_to_br_prob): New.
6852 (find_expected_value): New.
6853 * basic-block.h (expected_value_to_br_prob): Declare.
6854 * toplev.c (rest_of_compilation): Invoke it.
6856 * rtl.h (NOTE_EXPECTED_VALUE): New.
6857 (NOTE_INSN_EXPECTED_VALUE): New.
6858 * rtl.c (note_insn_name): Update.
6859 * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
6860 cases; handle NOTE_INSN_EXPECTED_VALUE.
6862 2000-04-17 Jakub Jelinek <jakub@redhat.com>
6864 * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use
6865 leaf sibcall delay slot if flag_pic.
6866 (output_sibcall): Always emit call for leaf sibcall if flag_pic.
6868 2000-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6870 * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
6872 * fixproto: If fix-header fails, exit with an error.
6874 Mon Apr 17 14:59:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
6876 * cse.c (struct check_depdendence_data): New.
6877 (check_dependence): New function.
6878 (invalidate): Use check_depdenence.
6880 2000-04-16 Mark Mitchell <mark@codesourcery.com>
6882 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that
6883 UNITS_PER_WORD is unsigned.
6885 * tree.h (struct tree_common): Remove misleading comment.
6887 2000-04-16 Dave Pitts <dpitts@cozx.com>
6889 * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole
6890 message in quotes. Otherwise, IBM's make program treats the '#' as the
6891 start of a comment and ignores the remainder of the line.
6893 * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed
6895 * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC.
6896 * cexp.y (initialize_random_junk): Likewise.
6897 * cppfiles.c (find_include_file): Cast alloca return value.
6898 * cppinit.c (initialize_standard_includes): Likewise.
6899 * cpplib.c (cpp_define, cpp_undef): Likewise.
6900 * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT.
6901 * final.c (output_asm_insn): Allow for holes in EBCDIC.
6902 * fold-const.c (CHARMASK): New.
6903 (real_hex_to_f): Use it.
6904 * real.c (CHARMASK): New.
6905 (etoasc, asctoeg): Use it.
6906 (asctoeg): EBCDIC lower case characters preceed upper case.
6908 * i370.c (mvs_add_label): Change spacing for coding conventions.
6909 * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the
6910 outputing case vectors.
6911 (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT.
6912 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check,
6913 since vector in in the data CSECT.
6914 (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation.
6915 * i370.md (Many patterns): Put the length in the XL directives.
6916 (movdi): Put back STM and MVC in definition.
6917 (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370
6918 pattern using the TCA.
6919 * oe.h (CPP_SPEC): Added to allow trigraphs.
6920 * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does
6921 not support the "long long" type.
6923 2000-04-16 Mark Mitchell <mark@codesourcery.com>
6925 * config/mips/mips-protos.h (mips_legitimate_address_p): New
6927 (mips_reg_mode_ok_for_base_p): Likewise.
6928 * config/mips/mips.h (REG_OK_STRICT_P): Don't define.
6929 (REG_OK_FOR_INDEX_P): Define unconditionally.
6930 (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p.
6931 (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p.
6932 * config/mips/mips.c (mips16_simple_memory_operand): Adjust now
6933 that GET_MODE_SIZE is unsigned.
6934 (mips_reg_mode_ok_for_base_p): Define.
6935 (mips_legitimate_address_p): Likewise. Adjust now
6936 that GET_MODE_SIZE is unsigned.
6937 (block_move_loop): Make the number of bytes unsigned.
6938 (expand_block_move): Likewise.
6939 (function_arg): Make the loop counter unsigned to match the
6942 2000-04-16 Richard Henderson <rth@cygnus.com>
6944 * rtl.h (enum insn_note): New enumeration. Subsume
6945 NOTE_INSN_DELETED and friends.
6946 (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS.
6947 * rtl.c (note_insn_name): Tweak string order.
6949 2000-04-15 Zack Weinberg <zack@wolery.cumb.org>
6951 * cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
6954 * cpplex.c (output_line_command): Remove debugging prints.
6955 (cpp_output_tokens): Don't write out a zero-length buffer or
6956 try to see if it has a newline in it.
6957 (_cpp_expand_to_buffer): Copy the source buffer before pushing.
6958 (_cpp_read_and_prescan): Move shift-down of pushback bytes to
6959 the end of the loop. Use memmove. Don't read past the end of
6960 the buffer. Remove trailing newlines from error messages.
6962 2004-04-16 Neil Booth <NeilB@earthling.net>
6964 * cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new.
6965 * cpplib.c: Add new syntax flags to directive table, and
6968 2000-04-15 Ulrich Drepper <drepper@redhat.com>
6970 * i386.c (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
6973 2000-04-15 David Edelsohn <edelsohn@gnu.org>
6975 * toplev.c (display_help): Prefix "f" to "sched-verbose=".
6976 * haifa-sched.c: Update -fsched-verbose comments to use "=".
6978 Sat Apr 15 10:59:19 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6980 * Makefile.in (ggc-page.o): Now includes toplev.h.
6981 * ggc-page.c (toplev.h): Now included.
6982 (gc_time): Remove declaration.
6983 (ggc_collect): TIME now long.
6984 * toplev.c (parse_time, varasm_time, gc_time): Still global; all
6986 * toplev.h (gc_time, parse_time, gc_time): New declarations.
6988 * toplev.c: Make *_time variable long to reduce chance of overflow.
6989 (TIMEVAR): Likewise for `otime'.
6990 (print_time): Arg is now long; compute percentage in FP and round.
6991 * toplev.h (print_time): Arg is long.
6993 * tree.c: Minor whitespace changes.
6995 * configure.in (alpha*-*-*): Add config/alpha/t-alpha.
6996 * configure: Rebuilt.
6997 * libgcc2.c (__fixunstfDI): Renamed from __fixunstfdi.
6998 (__fixunsxfDI): Renamed from __fixunsxfdi.
6999 (__fixunsdfDI): Renamed from __fixunsdfdi.
7000 (__fixunssfDI): Renamed from __fixunssfdi.
7001 (__floatdisf): Use proper type in REP_BIT macro.
7002 (__fixunsxfSI): Renamed from __fixunsxfsi.
7003 (__fixunsdfSI): Renamed from __fixunsdfsi.
7004 (__fixunssfSI): Renamed from __fixunssfsi.
7005 * libgcc2.h: Add cases for MIN_UNITS_PER_WORD > 4.
7006 Change location of macros and upper-case some names as above.
7007 * longlong.h ([alpha]): Use PARAMS, not __P in decl of __udiv__qrnnd.
7008 * config/alpha/t-alpha, config/alpha/qrnnd.asm: New files.
7010 * varasm.c (assemble_variable): Add cast to remove warning.
7011 (immed_real_const_1): Only use CONST[01]_RTX if not in nested function.
7013 * flow.c (count_basic_blocks, find_basic_blocks_1): Remove last change.
7014 * optabs.c (emit_libcall_block): If have REG_EH_REGION, update
7015 region number to -1.
7017 2000-04-15 Richard Earnshaw (rearnsah@arm.com)
7019 * emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
7020 call unshare_all_rtl.
7022 * arm.md (movhi): REGNO_POINTER_ALIGN is now bits.
7024 Fri Apr 14 16:58:45 2000 Jim Wilson <wilson@cygnus.com>
7026 * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
7027 Use .s1 not .s0 for all FP instructions.
7029 2000-04-14 Zack Weinberg <zack@wolery.cumb.org>
7031 * cpplex.c (cpp_output_tokens, cpp_scan_buffer_nooutput): New public
7033 (safe_fwrite, output_line_command): New static functions.
7034 (cpp_expand_to_buffer): Now private to cpplib.
7035 (cpp_scan_buffer): Take a printer.
7037 * cpphash.h: Update prototypes.
7038 * cpplib.h: Update prototypes.
7040 (cpp_buffer): Remove last_nominal_fname.
7041 (cpp_reader): Remove lineno.
7043 * cppmain.c: Use a cpp_printer.
7044 * fix-header.c: No need to inhibit line commands. Call
7045 cpp_start_read with no printer.
7047 * cpperror.c (cpp_notice_from_errno): Provide default name.
7048 * cppfiles.c (make_IHASH, _cpp_fake_ihash): New functions.
7049 (find_include_file, cpp_read_file): Use make_IHASH.
7050 (file_cleanup): Set control_macro and clear
7051 input_stack_listing_current here.
7052 (_cpp_execute_include): Don't output entering-file marker.
7053 * cpphash.c (special_symbol): Look for the line number in the
7054 buffer, not the reader.
7055 (_cpp_macroexpand): No need to disable line commands.
7056 (_cpp_dump_definition): No need to generate line commands.
7057 (dump_hash_helper): Remove excess newline from output.
7058 * cppinit.c (dump_special_to_buffer): No need to generate line
7060 (cpp_printer_init): New.
7061 (cpp_start_read): Take a printer, and start it up if it's not
7062 NULL. No need to generate line commands.
7063 (cpp_finish): Expect no buffers stacked at all. Take a
7064 printer argument, and flush the output buffer if it's not
7066 * cpplex.c (_cpp_lex_token): Return EOF if there's no buffer.
7067 Don't put two hashes at the beginning of an assertion.
7068 (cpp_get_token): Don't increment pfile->lineno or emit line
7069 commands here. Return EOF if there's no buffer when we get
7071 * cpplib.c (do_define, skip_if_group):
7072 No need to disable line commands.
7073 (_cpp_output_line_command): Delete function.
7074 (do_line): Don't emit line commands here, but set things up so
7075 they will be emitted if necessary. Use _cpp_fake_ihash to
7076 make unique nominal_fnames if necessary.
7077 (do_elif, do_else, _cpp_handle_eof): Call cpp_error_with_line
7078 with 0 for column, not -1.
7079 (_cpp_handle_eof): Don't set the control macro here. Don't
7080 clear input_stack_listing_current here. Don't emit line
7083 2000-04-14 Geoff Keating <geoffk@cygnus.com>
7085 * config/rs6000/sysv4.h (LINK_START_SOLARIS_SPEC): Define to empty
7086 always, use the default SVR4 start address.
7088 * config/rs6000/linux.h (LINK_SPEC): Don't define.
7089 (LINK_SHLIB_SPEC): Define.
7090 (LINK_START_DEFAULT_SPEC): Define.
7091 (LINK_OS_DEFAULT_SPEC): Define.
7093 * config/rs6000/sysv4.h (ENDFILE_SPEC): Use the %(endfile_*) macros.
7095 * config/rs6000/eabi.asm (__eabi): Call __init rather than
7096 __do_global_ctors to handle constructors.
7097 * config/rs6000/sysv4.h (STARTFILE_ADS_SPEC): Use crtbegin.
7098 (STARTFILE_YELLOWKNIFE_SPEC): Likewise.
7099 (STARTFILE_MVME_SPEC): Likewise.
7100 (STARTFILE_SIM_SPEC): Likewise.
7101 (ENDFILE_ADS_SPEC): Use crtend.
7102 (ENDFILE_YELLOWKNIFE_SPEC): Likewise.
7103 (ENDFILE_MVME_SPEC): Likewise.
7104 (ENDFILE_SIM_SPEC): Likewise.
7105 (STARTFILE_SOLARIS_SPEC): Use crtbegin/crtbeginS.
7106 (ENDFILE_SOLARIS_SPEC): Use crtend/crtendS.
7107 (STARTFILE_LINUX_SPEC): Use crtbeginS for shared objects.
7108 (ENDFILE_LINUX_SPEC): Use crtendS for shared objects.
7109 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Don't build eabi-ctors.o.
7110 (EXTRA_MULTILIB_PARTS): Build crtbeginS/crtendS.
7111 (CRTSTUFF_T_CFLAGS_S): Define.
7112 * config/rs6000/eabi-ctors.c: Delete.
7114 * config/rs6000/eabi-ci.asm (__init): Align stack to 16-byte
7117 * config/rs6000/eabi-cn.asm (__init): Allow for 16-byte stack frame.
7121 Fri Apr 14 16:09:02 2000 Jim Wilson <wilson@cygnus.com>
7123 * combine.c (force_to_mode, case LSHIFTRT): Check that shift shift
7124 plus mask size is smaller or equal to the mode size.
7126 Fri Apr 14 18:07:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7128 * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
7131 * expr.c (reload.h): Now included.
7132 (emit_block_move): Set volatile_ok when checking for movstr.
7133 (emit_move_1): Check for replacements in addresses in multi-word case.
7134 * Makefile.in (expr.o): Now includes reload.h.
7136 * flow.c (count_basic_blocks): Remove unused var PREV_CALL.
7137 Never have a LIBCALL end a basic block.
7138 (find_basic_blocks_1): Likewise.
7139 Reorganize CALL_INSN cases.
7141 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Revert last change.
7143 Fri Apr 14 10:54:22 2000 Jim Wilson <wilson@cygnus.com>
7145 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Drop obsolete
7146 completers from mov.ret instruction.
7148 2000-04-14 Richard Henderson <rth@cygnus.com>
7150 * fold-const.c (extract_muldiv): Don't distribute and widen
7151 multiply across plus for non-sizetype unsigned types.
7153 2000-04-14 Richard Henderson <rth@cygnus.com>
7155 * flow.c (find_auto_inc): Don't autoinc eliminable registers.
7156 If the original source is dead in the incr insn, it's dead now.
7158 Fri Apr 14 07:40:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7160 * stor-layout.c (layout_decl): Properly compare KNOWN_ALIGN to
7161 see if DECL_BIT_FIELD needs to still be set.
7163 * tree.h (struct tree_type): Make PRECISION 9 bits and MODE 7.
7165 * dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
7166 print_int_cst_octal with something that's not an INTEGER_CST.
7168 * config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
7169 and not a SUBREG to a FLOAT rtl.
7171 Thu Apr 13 19:39:56 2000 Clinton Popetz <cpopetz@cygnus.com>
7173 * emit-rtl.c (try_split): Avoid infinite loop if the split
7174 results in a sequence that contains the original insn.
7176 2000-04-13 Andreas Jaeger <aj@suse.de>
7178 * config/mips/mips.c (expand_block_move): Pass alignment
7179 argument to move_by_pieces in bits, not bytes.
7181 * config/mips/linux.h (CPP_PREDEFINES): Also define __PIC__ and
7182 __pic__ for little endian.
7184 2000-04-13 Andreas Jaeger <aj@suse.de>
7186 * config/i386/i386-protos.h: Add prototype for
7187 uno_comparison_operator.
7189 Thu Apr 13 15:55:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
7191 * alias.c (nonlocal_reference_p): Take care of CALL_INSNS's fusage.
7192 * calls.c (ECF_PURE): New flag.
7193 (emit_call_1): Handle ECF_PURE calls.
7194 (initialize_argument_information): Unset ECF_PURE flag too.
7195 (precompute_arguments): Precompute for ECF_PURE too.
7196 (expand_call): Handle ECF_PURE calls too.
7197 (emit_library_call_value_1): Rename no_queue argument to fn_type,
7198 accept value of 2 as pure function.
7199 (emit_library_call_value, emit_library_call): Rename no_queue argument
7201 * optabs.c (prepare_cmp_insn): Pass fn_type 2 to memcmp call.
7203 * tree.h (DECL_IS_PURE): New macro.
7204 (struct tree_decl): Add pure_flag.
7205 * c-common.c (enum attrs): Add attribute "pure".
7206 (init_attributes): Initialize attribute "pure"
7207 (decl_attributes): Handle attribute "pure".
7208 * extend.texi (Attribute "pure"): Document.
7209 * calls.c (expand_call): Add (mem:BLK (scratch)) to "equal from"
7211 (flags_from_decl_or_type): Support attribute "pure".
7213 2000-04-13 Jason Merrill <jason@casey.cygnus.com>
7215 * cpplex.c (_cpp_lex_token): Handle digraphs. Don't null-terminate
7216 the token except for numbers and identifiers.
7218 Thu Apr 13 00:09:16 EDT 2000 John Wehle (john@feith.com)
7220 * i386.c (ix86_expand_binary_operator,
7221 ix86_expand_unary_operator): Check no_new_pseudos
7222 instead of reload_in_progress and reload_completed.
7223 (ix86_split_ashldi, ix86_split_ashrdi,
7224 ix86_split_lshrdi): Check no_new_pseudos instead
7225 of reload_completed.
7227 2000-04-12 Jeffrey A Law (law@cygnus.com)
7229 * function.c (purge_addressof): Unshare any shared rtl created by
7230 purge_addressof and its children.
7232 2000-04-12 Mark Mitchell <mark@codesourcery.com>
7234 * function.c (aggregate_value_p): VOID_TYPE nodes are never
7237 2000-04-05 Andreas Jaeger <aj@suse.de>
7239 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
7240 not compiling PIC code, add flags for mabi=64.
7241 (SUBTARGET_CPP_SIZE_SPEC): New.
7242 (SUBTARGET_CPP_SPEC): New.
7243 (CPP_PREDEFINES): Define __PIC__ and __pic__. PIC code is default
7244 for MIPS/Linux and lots of code needs these defines.
7246 Wed Apr 12 22:44:11 2000 Hans-Peter Nilsson <hp@axis.com>
7248 * reorg.c (fill_slots_from_thread): Check side_effects_p when
7249 trying the "opposite arithmetic" approach.
7251 Wed Apr 12 20:51:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7253 * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
7254 (struct sh_args): Add new field force_mem.
7255 (INIT_CUMULATIVE_ARGS): Initialize it.
7256 (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
7258 Wed Apr 12 17:20:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
7260 * calls.c (expand_call): Do not reverse args in "equal from" field.
7261 (emit_library_call_value_1): Emit_libcall_block for const and pure
7264 Wed Apr 12 16:00:25 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7266 * reload1.c (reload_combine): Don't enable optimization for fixed
7267 registers when encountering a BARRIER.
7269 Wed Apr 12 15:54:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
7271 * builtins.c (expand_builtin_memcmp): Do expansion even with
7272 !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
7274 * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
7275 stack is propertly aligned; add sanity checking for aligned
7277 (expand_library_call_value_1): Add sanity checking for aligned
7280 Wed Apr 12 07:51:54 2000 Catherine Moore <clm@cygnus.com>
7282 * calls.c (emit_library_call_value_1): Change 3rd arg to
7283 locate_and_pad_parm to disregard the setting of partial.
7285 Wed Apr 12 08:47:38 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7287 * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
7289 * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
7290 CALL_INSN from the normal case.
7292 Fri Apr 7 12:23:04 MET DST 2000 Jan Hubicka <jh@suse.cz>
7294 * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
7295 New global variables.
7296 (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
7298 * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
7300 (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
7301 TARGET_ADD_ESP_8): New macros.
7302 * i386.md: Add peep2s to convert esp adjustments to push and pop
7304 (pushsi_prologue, popsi_epilogue): New patterns.
7306 2000-04-12 Jakub Jelinek <jakub@redhat.com>
7308 * real.c (toe64): Remove stale #endif from the last change.
7310 2000-04-12 Stephen L Moshier <moshier@mediaone.net>
7312 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
7313 * real.c (toe64): Revert previous change.
7315 2000-04-12 Jakub Jelinek <jakub@redhat.com>
7317 * objc/objc-act.c: Include ggc.h.
7318 (objc_tree_index, objc_global_trees): Convert most of the
7319 static tree variables into a static array with previous names
7321 (objc_ellipsis_node): New variable.
7322 (lang_init): Call objc_act_parse_init and c_parse_init.
7323 Create objc_ellipsis_node.
7324 (build_selector_translation_table): Use objc_ellipsis_node instead
7326 (hack_method_prototype): Likewise.
7327 (get_arg_type_list): Likewise.
7328 (start_method_def): Likewise.
7329 (continue_method_def): Likewise.
7330 (gen_method_decl): Likewise.
7331 (ggc_mark_imp_list): New function.
7332 (ggc_mark_hash_table): New function.
7333 (objc_act_parse_init): New function.
7334 * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
7335 * c-parse.in (c_parse_init): For objc add roots of objc specific
7336 local tree variables.
7337 * objc/objc-parse.y: Rebuilt.
7338 * objc/objc-parse.c: Rebuilt.
7339 (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
7341 Wed Apr 12 01:00:44 EDT 2000 John Wehle (john@feith.com)
7343 * cse.c (delete_trivially_dead_insns): Also delete insns
7344 that copy a register to itself where the destination is
7347 2000-04-11 Richard Henderson <rth@cygnus.com>
7349 * flow.c (struct propagate_block_info): Add new_dead, new_live.
7350 (propagate_block): Initialize them. Use them in parallel instead
7351 of one tmp variable, ie revert much of the 0408 and 0407 functional
7352 changes, but keep the structural changes.
7353 (mark_set_regs): Take new_dead from propagate_block_info instead.
7354 (mark_set_1, mark_set_reg): Likewise.
7355 (mark_used_regs): Likewise with new_live.
7356 (mark_used_reg): Likewise. Revert 0408 change.
7358 2000-04-11 Nick Clifton <nickc@cygnus.com>
7360 * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
7362 (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
7364 2000-04-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7366 * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
7367 const section to output a CONSTRUCTOR based on the same conditions
7370 Tue Apr 11 09:55:59 2000 Jeffrey A Law (law@cygnus.com)
7372 * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
7373 * pa/pa-protos.h (output_call): Add additional argument indicating
7374 if the call is a sibling/tail call.
7375 (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
7376 (compute_64bit_ior, cmpib_comparison_operator): Likewise.
7377 (function_arg, function_arg_partial_nregs): Likewise
7378 * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
7379 (emit_move_sequence): Zero extend certain constants as needed
7381 (compute_zdepdi_operands, output_64bit_and): New functions.
7382 (output_64bit_ior, function_arg): Likewise.
7383 (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
7384 (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
7385 (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
7386 (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
7387 (output_bvb): Likewise.
7388 (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
7389 (output_call): New argument 'sibcall'. Generate sibcall sequences
7391 (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT. For
7392 (ouput_arg_descriptor): Do not emit argument descriptors for
7394 * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
7396 (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
7397 (FUNCTION_OK_FOR_SIBALL): Define.
7398 (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
7399 (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
7400 (CPP_SPEC): Use new spec infrastructure.
7401 (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
7402 (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
7403 (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
7404 (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
7405 (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
7406 (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
7407 (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
7408 (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
7409 (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
7410 (FUNCTION_ARG); Call out to C code.
7411 (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
7412 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
7413 (MIN_UNITS_PER_WORD): Likewise.
7414 * pa/pa.md (cmpdi): New expander.
7415 (scc patterns, movstrsi): Not available for TARGET_64BIT.
7416 (64bit conditional arithmetic): New patterns.
7417 (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
7418 (movsicc): Not available if modes on all the operands to not match.
7419 (movdicc): New expander and associated patterns.
7420 (64bit branches): New patterns.
7421 (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
7422 (pre_ldd, post_std): New patterns.
7423 (64bit addil, load low part): New patterns.
7424 (special movsf constant): Not available for TARGET_64BIT.
7425 (movsf, movdf expanders): Force constants into memory.
7426 (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
7427 (64bit movdf/movdi patterns): New patterns.
7428 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
7430 (extendqidi2, extendhidi2, extendsidi2): Similarly.
7431 (adddi3 expander): Allow "arith_operand" for second input.
7432 (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
7433 (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
7434 (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
7435 (muldi3): New expander for TARGET_64BIT.
7436 (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
7438 (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
7439 patterns for TARGET_64BIT.
7440 (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
7441 patterns for TARGET_64BIT.
7442 (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
7443 (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
7444 (sibcall_epilogue): New expander.
7445 (casesi): Tweak for TARGET_64BIT.
7446 (call expanders): Set & use the outgoing argument pointer. Use the
7447 64bit call patterns as needed. Add additional arg to output_call.
7448 (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
7449 (sibcall, sibcall_internal_symref): New expanders.
7450 (sibcall_value, sibcall_value_internal_symref
7451 (interspace_jump): Turn into an expander + matching patterns.
7452 (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
7453 * pa/pa64-regs.h: Eliminate trigraph sequences.
7454 * pa/pa64-start.h (TARGET_PA_20): Fix typo.
7456 2000-04-11 Zack Weinberg <zack@wolery.cumb.org>
7458 * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
7459 cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
7460 cpp_token with cpp_ttype everywhere.
7461 * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
7462 Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
7463 CPP_BUF_COL. Line and column numbers are unsigned int, not
7465 * cpplex.c (cpp_buf_line_and_col): Delete.
7466 * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
7467 'long lineno' to 'unsigned int lineno'.
7468 (CPP_BUF_LINE, CPP_BUF_COL): New macros.
7470 2000-04-11 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7472 * extend.texi: ISO C99 is not a draft anymore.
7473 * invoke.texi: ISO C++ is not a draft anymore.
7474 * cpp.texi: __cplusplus is required by the ISO standard.
7476 * extend.texi (-fthis-is-variable): Undocument.
7477 * flags.h (warn_template_debugging): Remove declaration.
7478 * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
7479 -Wenum-clash, -Wtemplate-debugging): Undocument.
7481 2000-04-10 Nick Clifton <nickc@cygnus.com>
7483 * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
7485 (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
7487 (ARM_SIGN_EXTEND): Use HOST_UINT.
7488 (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
7489 (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
7490 (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
7491 (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
7493 * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
7494 (arm_gen_constant): Use HOST_UINT.
7495 (arm_canonicalize_constant): Use HOST_UINT.
7496 (arm_reload_in_hi): Use HOST_UINT.
7497 (arm_reload_out_hi): Use HOST_UINT.
7498 (output_multi_immediate): Use HOST_UINT.
7499 (int_log2): Use HOST_UINT.
7500 (arm_poke_function_name): Use HOST_UINT.
7501 (arm_output_epilogue): Use arm_volatile_func().
7502 (output_thumb_prologue): Use arm_strip_name_encoding().
7504 Mon Apr 10 15:40:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7506 * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
7507 of sequence point problems.
7509 2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
7511 * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
7513 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
7515 Mon Apr 10 07:21:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7517 * sbitmap.h: Whitespace changes and use upper-case macro args.
7518 (struct simple_bitmap_def): All sizes now unsigned.
7519 (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
7520 * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
7521 (sbitmap_vector_alloc): Parms and local vars now unsigned.
7522 (sbitmap_zero): Cast bzero arg to PTR.
7523 (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
7524 (sbitmap_union_of_diffs): Change loop index to unsigned and rework
7525 loop to make structure clearer.
7526 (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
7527 (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
7528 (sbitmap_a_and_b_or_c): Likewise.
7529 (sbitmap_intersection_of_succs): Minor cleanups.
7530 (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
7531 (sbitmap_union_of_preds): Likewise.
7532 (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
7533 (debug_sbitmap): New function.
7535 * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
7536 * c-typeck.c (convert_for_assignment): Likewise.
7538 * expmed.c (init_expmed): Don't free objects we make.
7539 * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
7541 * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
7542 (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
7544 * gcse.c (expr_hash_table_size): Now unsigned.
7545 (compute_ae_gen): Local variable `i' now unsigned.
7546 (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
7547 (compute_transout, hoist_code): Likewise.
7548 (compute_local_properties): Likewise, also hash_table_size.
7549 (alloc_expr_hash_table): N_INSNS now unsigned.
7550 (delete_null_pointer_checks): Mark arg F as unused.
7552 * regrename.c: Minor cleanups, including chang some variables
7555 2000-04-10 Neil Booth <NeilB@earthling.net>
7557 * cpplex.c (skip_block_comment): Use pointer arithmetic rather
7559 * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
7561 2000-04-10 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7563 * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
7564 __classof__, and __headof__ from the list of gnu keywords.
7565 (-ansi): Remove -foperator-names from list of implied options.
7566 Do not call it ANSI C++.
7567 (-foperator-names): Document as -fno-operator-names.
7569 2000-04-09 Zack Weinberg <zack@wolery.cumb.org>
7571 * cpphash.c (timestamp): Delete.
7572 (del_HASHNODE): If type is T_MCONST, free value.cpval.
7573 (special_symbol): Remove unnecessary braces. Remove
7574 T_VERSION. Treat T_STDC like T_CONST unless
7575 STDC_0_IN_SYSTEM_HEADERS. Render both __DATE__ and __TIME__
7576 when one is encountered, then convert them into T_MCONST
7578 * cppinit.c (builtin_array): version_string is T_MCONST.
7579 __STDC__ has a "1" in its cpval. Don't have a terminator
7580 entry. Clean up which entries are dumped.
7581 (initialize_builtins): Only __STDC__ gets the special
7582 -traditional treatment. Count the length of builtin_array.
7583 Render version_string here.
7584 * cpphash.h: Remove T_VERSION. Add T_MCONST.
7585 * cpplib.h (struct cpp_reader): Remove timebuf.
7587 2000-04-09 Richard Henderson <rth@cygnus.com>
7589 * genrecog.c (pred): Update comparison_operator for the unordered
7592 * config/i386/i386.c (no_comparison_operator): Disallow unordered
7594 (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
7595 (uno_comparison_operator): New.
7596 (put_condition_code): Handle UNORDERED/ORDERED.
7597 (unsigned_comparison): Likewise.
7598 (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
7599 (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
7600 (ix86_expand_fp_compare): Use them. Take scratch as argument,
7601 update all callers. Handle all 8 unordered operators.
7602 (ix86_expand_setcc): Lose the unordered argument, update all callers.
7603 (ix86_expand_branch): Likewise. Don't fully expand fp branches.
7604 * config/i386/i386.h (PREDICATE_CODES): Update.
7605 * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
7606 (ix86_expand_branch, ix86_expand_setcc): Update.
7607 * config/i386/i386.md (sunordered, sordered): New.
7608 (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
7609 (bunordered, bordered): New.
7610 (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
7611 (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
7612 (*fp_jcc_5, *fp_jcc_6, and splitters): New.
7614 2000-04-09 Philip Blundell <philb@gnu.org>
7616 * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
7618 Sun Apr 9 15:16:14 EDT 2000 John Wehle (john@feith.com)
7620 * i386.md (fix_truncsfhi2, fix_truncdfhi2,
7621 fix_truncxfhi2): New patterns.
7622 * i386.c (output_fix_trunc): Handle converting to HImode.
7624 2000-04-08 Alex Samuel <samuel@codesourcery.com>
7626 * ssa.c (convert_to_ssa): Eliminate dead code when calling
7628 (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
7629 (for_each_successor_phi): Change parameter to basic_block.
7630 (coalesce_regs_in_successor_phi_nodes): Likewise.
7631 (coalesce_regs_in_copies): Likewise.
7632 (compute_coalesced_reg_partition): Use basic_block instead of index.
7633 * rtl.h (convert_to_ssa): Delete.
7634 (convert_from_ssa): Likewise.
7635 (successor_phi_fn): Likewise.
7636 (for_each_successor_phi): Likewise.
7637 (in_ssa_form): Likewise.
7638 * basic-block.h (convert_to_ssa): Moved from rtl.h.
7639 (convert_from_ssa): Likewise.
7640 (successor_phi_fn): Likewise.
7641 (in_ssa_form): Likewise.
7642 (for_each_successor_phi): Likewise. Change parameter to basic_block.
7643 * flow.c (calculate_global_regs_live): Pass a basic_block to
7644 for_each_successor_phi.
7646 2000-04-08 Richard Henderson <rth@cygnus.com>
7648 * flow.c (mark_used_reg): Use reg_set_p to determine if a register
7649 was modified in the current insn.
7651 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
7653 * arm/thumb.md: Delete.
7654 * arm/thumb-protos.h: Delete.
7656 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
7658 Merge changes from merged-arm-thumb-backend-branch onto trunk.
7660 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
7662 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
7665 * arm.md (nop): Use the standard RTL expression. Don't code as a
7667 (*arm_nop, *thumb_nop): Delete.
7669 * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
7670 constants. Use casts instead.
7671 (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
7672 output_multi_immediate, arm_poke_function_name): Likewise.
7673 * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
7674 MASK_RETURN_ADDDR): Likewise.
7676 2000-03-31 Richard Earnshaw (rearnsha@arm.com)
7678 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
7681 * arm.md (eh_epilogue): New function.
7682 * arm.h (struct machine_function): Move to here ...
7683 * arm.c: ... from here.
7684 (arm_output_epilogue): Support epilogues for __builtin_eh_return.
7685 (thumb_exit): Extra parameter eh_ofs. All callers changed.
7686 Handle epilogues for __builtin_eh_return. Make bit-fields unsigned.
7688 2000-03-30 Nick Clifton <nickc@cygnus.com>
7690 * config/arm/semi.h (ASM_SPEC): Restore definition.
7691 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
7693 * config/arm/elf.h (ASM_SPEC): Restore definition.
7694 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
7696 * config/arm/arm.h (ASM_SPEC): Remove definition.
7697 (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
7699 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
7701 * config/arm/arm.c: Disable -fschedule-insns for Thumb.
7703 2000-03-24 Nick Clifton <nickc@cygnus.com>
7705 Various formating tidyups, elimination of compile time
7706 warnings and synchronisation with internal sources:
7708 * config/arm/arm-protos.h (assemble_align): Add prototype.
7709 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
7710 (gen_comapre_reg): Rename to arm_gen_compare_reg.
7711 (arm_return_addr_rtx): Rename to arm_return_addr.
7713 * config/arm/arm.c: Include except.h.
7714 Define shorter typenames for strict minipool_node and struct
7716 (arm_return_in_memory): For WinCE return all structures <= 32 bits
7718 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
7719 (gen_comapre_reg): Rename to arm_gen_compare_reg.
7721 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
7723 (ASM_SPEC): Define if not already defined.
7724 (ASM_OUTPUT_DEF_FROM_DECLS): Define.
7726 * config/arm/arm.md: Rename references to gen_rotated_half_load to
7727 arm_gen_rotated_half_load, and references to gen_comapre_reg to
7728 arm_gen_compare_reg.
7729 (indirect_jump): Only accept register operands.
7730 (load_indirect_jump): Keep this pattern since combine can generate
7733 * config/arm/coff.h: Include aout.h.
7734 (MULTILIB_DEFAULTS): Only define if not already defined.
7736 * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
7737 into arm.h (so that COFF ports can support thumb based aliases).
7738 (ASM_SPEC): Move definition into arm.h
7740 * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
7741 redundant apcs spec.
7742 (ASM_SPEC): Move definition to arm.h
7744 * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
7746 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
7747 for entries in the .bss section
7749 2000-03-23 Nick Clifton <nickc@cygnus.com>
7751 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
7752 to thumb_far_jump_used_p.
7754 * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
7755 single integer parameter.
7757 * config/arm/arm.c (struct machine_function): Add two new
7758 fields, 'far_jump_used' and 'arg_pointer_live'.
7759 (thumb_far_jump_used_p): Once the decision has been made that
7760 far jumps might be used, always return true.
7761 If being called from the initial elimination offset macro then
7762 do not bother to perform the test if the arg pointer is not
7764 (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
7765 (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
7767 2000-03-23 Richard Earnshaw (rearnsha@arm.com)
7769 * arm.c (output_return_instruction): Handle more cases where we can
7770 return from a function with an ldr instruction.
7771 (arm_output_epilogue): Likewise.
7773 * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
7774 if we need to push a large stack frame and there are no callee-saved
7777 * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
7778 in ARM code if the frame pointer has been eliminated.
7780 * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
7781 unspec_volatile arguments to avoid duplicates.
7782 (consttable_1, consttable_2): Fixes for big-endian mode.
7784 * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
7787 Re-write constant pool code.
7788 * arm.c (minipool_node, minipool_fix): New types.
7789 (minifix): Delete type.
7790 (arm_add_minipool_constant): Delete.
7791 (arm_compute_minipool_offsets, arm_find_barrier,
7792 arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
7793 (get_jump_table_size): Now returns HOST_WIDE_INT.
7794 (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
7796 (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
7797 (assign_minipool_offsets, arm_print_value): Likewise.
7798 (dump_minipool): Rewrite.
7799 (arm_barrier_cost): New function.
7800 (create_fix_barrier): New function.
7801 (push_minipool_barrier): New function.
7802 (push_minipool_fix): Record additional information about the fixup
7804 (note_invalid_constants): Remove push for (UNSPEC 3). Don't
7805 check the mode of what needs fixing.
7806 (arm_reorg): Rewrite.
7808 2000-03-08 Nick Clifton <nickc@cygnus.com>
7810 * config/arm/arm.md (indirect_jump): Force constant addresses into
7813 2000-03-01 Bernd Schmidt <bernds@cygnus.co.uk>
7815 * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
7817 2000-02-24 Nick Clifton <nickc@cygnus.com>
7819 * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
7820 adjust is word aligned.
7821 (thumb_expand_epilogue): Make sure that stack adjust is word
7824 * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
7826 2000-02-24 Bernd Schmidt <bernds@cygnus.com>
7828 * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
7829 pointer relative addresses.
7831 2000-02-10 Richard Earnshaw <rearnsha@arm.com>
7833 * arm.c (find_barrier): Find the last barrier within the allowed
7836 2000-02-09 Nick Clifton <nickc@cygnus.com>
7838 * config/arm/arm-protos.h: Replace PROTO with PARAMS.
7840 2000-02-09 Nick Clifton <nickc@cygnus.com>
7842 * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
7843 ARM_FUNCTION_PROFILER.
7845 * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
7846 ARM_FUNCTION_PROFILER.
7848 * config/arm/linux-oldld.h: Imported from mainline sources.
7850 2000-02-07 Nick Clifton <nickc@cygnus.com>
7852 * config/arm/lib1funcs.asm: Merge in thumb functions from
7855 * config/arm/lib1thumb.asm: Delete.
7857 2000-02-04 Nick Clifton <nickc@cygnus.com>
7859 * config/arm/arm.c: Sychronised with current Red hat local
7861 * config/arm/arm.h: Ditto.
7862 * config/arm/arm-protos.h: Ditto.
7864 2000-02-02 Bernd Schmidt <bernds@cygnus.co.uk>
7866 * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
7868 * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
7871 2000-02-02 Nick Clifton <nickc@cygnus.com>
7873 * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
7875 * config/arm/arm.md (epilogue): Fix rtl checking abort because
7876 (return) was emited using an emit_insn() call.
7878 2000-01-31 Nick Clifton <nickc@cygnus.com>
7880 * config/arm/arm.c (output_thumb_prologue): Fix bug generating
7882 (thumb_exit): Move frame pointer back into hard frame pointer
7883 register if backtracing is being used.
7885 2000-01-13 Richard Earnshaw (rearnsha@arm.com)
7887 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
7890 1999-12-15 Bernd Schmidt <bernds@cygnus.co.uk>
7892 * config/arm/arm.md (neg_pool_offset): Provide default for new
7894 (arm_movsi_insn): Add neg_pool_offset attribute.
7895 * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
7896 rtx for the insn that starts the scan and an unsigned long for its
7897 address. Add MIN_OFFSET and PINSERTED args. All callers changed.
7898 Change scan to ignore insns before MIN_OFFSET. Store size of inserted
7899 instructions in *PINSERTED.
7900 (struct minipool_fixup): Add MIN_ADDRESS elt.
7901 (sort_fixups): Compute it.
7902 (arm_reorg): Changes to support inserting pools before the insn to be
7905 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
7907 * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
7908 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
7909 * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
7911 Wed Nov 3 10:04:07 1999 Nick Clifton <nickc@cygnus.com>
7913 * config/arm/semi.h (TARGET_VERSION): Do not define if already
7915 (TARGET_DEFAULT): Do not define if already defined.
7917 Tue Nov 2 10:37:25 1999 Nick Clifton <nickc@cygnus.com>
7919 * config/arm/arm.md (anddi3): Allow disjoint source operands.
7920 (iordi3): Allow disjoint source operands.
7921 (xordi3): Allow disjoint source operands.
7922 (negdi2): Permit construction for ARM and Thumb.
7923 (arm_negdi2): Renamed version of old negdi2 pattern.
7924 (thumb_negdi2): New pattern: Only permit non-overlapping
7925 source and destination.
7927 Fri Oct 29 18:52:38 1999 Nick Clifton <nickc@cygnus.com>
7929 * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
7930 scratch low register so that it will not be deleted.
7932 Fri Oct 29 15:23:48 1999 Nick Clifton <nickc@cygnus.com>
7934 * config/arm/pe.h (ARM_PE): Define.
7936 * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
7937 interfacearm attribute if this is a PE toolchain.
7938 (output_return_instruction): Do not emit anything if the function
7939 has the naked attribute set.
7940 (is_called_in_ARM_mode): If the function has the interfacearm
7941 attribute then return true.
7942 (thumb_expand_prologue): Do not generate a prologue for naked
7944 (thumb_expand_epilogue): Do not generate an epilogie for a naked
7946 (output_thumb_prologue): Do not bother if the function is naked.
7947 Strip PE encoding from function name before emitting.
7949 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
7951 * arm.md (pic_load_addr): Fix constraints.
7953 * arm.md (casesi_insn): Fix mis-applied patch.
7955 * arm.md ("core" function unit): Add rules for single- and
7957 (All TARGET_THUMB patterns): Add "type" attribute information
7959 * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
7960 the following insn is a CALL.
7962 * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
7964 * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
7965 ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
7966 (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
7968 Wed Oct 27 14:40:48 1999 Nick Clifton <nickc@cygnus.com>
7970 * config/arm/linux-gas.h: oops - this file was missed out when the
7971 branch was created...
7973 Tue Oct 26 17:07:38 1999 Richard Earnshaw <rearnsha@arm.com>
7975 * thumb.c: Deleted. Move contents to ...
7977 * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
7979 * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
7982 * arm-protos.h: Use RTX_CODE and tidy up long lines. Don't
7983 declare a prototype for asm_output_align();
7985 * arm.c (thumb_condition_code): Delete.
7986 (arm_print_operand): Always use arm_condition_code array.
7988 * arm.c (thumb_return_addr_rtx): Delete.
7989 (arm_save_machine_status, arm_restore_machine_status): Delete.
7990 (arm_init_machine_status, arm_mark_machine_status): New functions.
7991 (arm_init_expanders): Update accordingly.
7992 (arm_return_addr): Renamed from arm_return_addr_rtx. Rewrite.
7993 (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
7994 * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
7996 Tue Oct 26 13:24:16 1999 Nick Clifton <nickc@cygnus.com>
7998 * configure.in : Fix arm-*-aout target to use new t-arm-aout
8000 * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
8003 Tue Oct 26 11:27:12 1999 Nick Clifton <nickc@cygnus.com>
8005 * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
8006 stack backtrace structure.
8008 * config/arm/arm-protos.h: Add prototypes for functions defined in
8011 * config/arm/arm.c (arm_override_options): Fix selection of
8012 attributes of default processor.
8014 * config/arm/coff.h: Delete needless #include.
8016 * config/arm/pe.c: Delete unused code.
8018 * config/arm/pe.h (CPP_DEFINES): Delete
8019 (SUBTARGET_CPP_SPEC): Define.
8020 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
8022 * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
8024 Mon Oct 25 15:42:09 1999 Richard Earnshaw (rearnsha@arm.com)
8026 * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
8028 (CAN_DEBUG_WITHOUT_FP): Define.
8029 (FIXED_REGISTERS): Make r11 call-saved.
8030 (CALL_USED_REGISTERS): Likewise.
8031 (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
8032 (FRAME_POINTER_REQUIRED): Correct logic for determining when a
8033 frame-pointer is required.
8034 (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
8035 * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
8036 if the target normally needs a stack frame in non-leaf functions.
8037 (use_return_insn): Correct logic for determining when a return
8038 instruction can be used.
8039 (output_return_instruction): Handle the frame-pointer register as
8040 a normal register when not TARGET_APCS_FRAME.
8041 (arm_output_prologue): Likewise.
8042 (arm_output_epilogue): Likewise.
8043 (output_func_epilogue): Likewise.
8044 (arm_expand_prologue): Likewise.
8045 * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
8047 * arm.c (use_return_insn): No need to check floating point regs if
8049 (arm_find_minipool_constant): Correct typo; use GET_CODE to get
8050 the code of value stored in the minipool array.
8051 (arm_add_minipool_constant): Likewise.
8053 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8055 * basic-block.h (conflict_graph_enum_fn): K&R fix.
8057 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8059 * tree.c (tree_expr_nonnegative_p): New function.
8061 * tree.h (tree_expr_nonnegative_p): Declare.
8063 * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
8064 elide some sign_compare warnings.
8065 (build_conditional_expr): Likewise.
8067 Sat Apr 8 00:21:51 EDT 2000 John Wehle (john@feith.com)
8069 * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
8071 * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
8072 * i386.c (print_operand): Use the proper suffix for a 387 HImode
8073 operand. Abort if a 387 operand has an unsupported size.
8075 2000-04-08 Neil Booth <NeilB@earthling.net>
8077 * cppexp.c (parse_charconst): Null does not end character
8079 * cppinit.c (ISTABLE): Null character handled as whitespace.
8080 * cpplex.c (null_warning): new function.
8081 (skip_string): Emit warning if nulls encountered.
8082 (_cpp_skip_hspace): Emit warning if nulls encountered.
8083 (_cpp_lex_token): Emit warning if nulls encountered. Drop
8087 2000-04-07 Richard Henderson <rth@cygnus.com>
8089 * flow.c (loop_depth): Remove.
8090 (reg_next_use, cc0_live, mem_set_list): Replace with ...
8091 (struct propagate_block_info): New.
8092 (life_analysis): Don't allocate reg_next_use.
8093 (propagate_block_delete_insn): Break out of propagate_block.
8094 Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
8095 (propagate_block_delete_libcall): Likewise.
8096 (propagate_block): Create a propagate_block_info struct to pass
8097 to subroutines. Allocate one not two temporary regsets. Don't
8098 clobber memory for const calls. Look for clobbers in
8099 CALL_INSN_FUNCTION_USAGE.
8100 (mark_set_regs): Recognize COND_EXEC.
8101 (mark_set_reg): Break out of mark_set_1.
8102 (mark_used_reg): Break out of mark_used_regs.
8103 (mark_used_regs): Recognize COND_EXEC.
8104 (insn_dead_p): Use propagate_block_info struct.
8105 (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
8106 (find_auto_inc, try_pre_increment_1): Likewise.
8107 (print_rtl_with_bb): Dump regs live at end too.
8108 (count_reg_sets_1): Pass in loop_depth.
8109 (count_reg_sets, count_reg_references): Likewise.
8110 (recompute_reg_usage): Provide it.
8112 2000-04-07 Richard Henderson <rth@cygnus.com>
8114 * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
8117 2000-04-07 Zack Weinberg <zack@wolery.cumb.org>
8119 * cpplib.c (do_elif): Skip the rest of the line if we're
8120 not going to bother evaluating it.
8121 (skip_if_group): Clear pfile->only_seen_white. Reorder loop
8122 to avoid pointless calls to the lexer.
8124 Fri Apr 7 11:50:54 2000 Jim Wilson <wilson@cygnus.com>
8126 * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
8128 2000-04-07 Jason Merrill <jason@casey.cygnus.com>
8130 * calls.c (expand_call): emit_queue if we're trying a sibcall.
8132 2000-04-07 Jakub Jelinek <jakub@redhat.com>
8134 * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
8136 2000-04-06 Geoff Keating <geoffk@cygnus.com>
8138 * Makefile.in: Build crtbeginS and crtendS like crtbegin and
8139 crtend so they can be multilibbed.
8140 (STAGESTUFF): Remove s-crt and s-crtS.
8142 2000-04-07 Richard Henderson <rth@cygnus.com>
8144 * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
8145 if we discover we need a pseudo and no_new_pseudos is true.
8146 * config/alpha/alpha.md (ne:DI insn): New.
8147 (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
8149 2000-04-07 Richard Henderson <rth@cygnus.com>
8151 * rtl.def (COND_EXEC): New.
8152 * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
8153 * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
8155 * genconfig.c (have_cond_arith_flag): Remove.
8156 (have_cond_exec_flag): New.
8157 (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
8158 (main): Print HAVE_conditional_execution.
8160 * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
8161 (sched_analyze_insn, print_pattern): Likewise.
8162 * reload.c (find_equiv_reg): Likewise.
8163 * rtlanal.c (reg_referenced_p): Likewise.
8164 (note_stores, dead_or_set_regno_p): Likewise.
8165 (reg_overlap_mentioned_p): Rewrite to use a switch.
8167 * ggc.h (struct rtx_def): Forward declare.
8169 * print-rtl.c (debug_rtx_range): New.
8170 * rtl.h (debug_rtx_range): Declare.
8172 * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
8174 * gcse.c (gcse_main): Don't rebuild the CFG here.
8175 (delete_null_pointer_checks): Likewise.
8176 * ssa.c (convert_to_ssa): Likewise.
8177 * toplev.c (rest_of_compilation): Do it here instead. Combine
8178 sequential calls to TIMEVAR. Consistently use `insns' instead of
8179 `get_insns()'. Always split insns after reload when optimizing.
8181 * basic-block.h (merge_blocks_nomove): Declare.
8182 (tidy_fallthru_edge): Declare.
8183 * flow.c (merge_blocks_nomove): Document as merging into previous
8184 blocks. Remove cruft from between blocks; remove all edges out of A.
8185 (tidy_fallthru_edge): Export.
8187 2000-04-06 Alex Samuel <samuel@codesourcery.com>
8189 * ssa.c (compute_conservative_reg_partition): Declare with
8191 * toplev.c (clean_dump_file): Remove previously-deleted function
8192 inadvertantly merged back in.
8193 * conflict.c (conflict_graph_add): Use a single call to
8194 htab_find_slot to look up and insert.
8196 2000-04-06 Richard Henderson <rth@cygnus.com>
8198 * genrecog.c (*): Rename _last_insn to last_insn.
8199 (make_insn_sequence): Set the position of the peephole2 C test
8200 to be at the last insn.
8202 2000-04-06 Richard Henderson <rth@cygnus.com>
8204 * flow.c (compute_flow_dominators): Free worklist.
8206 2000-04-06 Michael Matz <matzmich@cs.tu-berlin.de>
8208 * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
8210 2000-04-06 Alex Samuel <samuel@codesourcery.com>
8212 * rtl.h (INSN_P): New macro.
8213 (successor_phi_fn): New typedef.
8214 (for_each_successor_phi): New prototype.
8215 (in_ssa_form): New variable.
8216 (PHI_NODE_P): Likewise.
8217 * flow.c (calculate_global_regs_live): Add to new_live_at_end from
8218 phi nodes in successors.
8219 (mark_used_regs): Add PHI case.
8220 (set_phi_alternative_reg): New function.
8221 (life_analysis): Assert that dead code elimination is not selected
8223 * toplev.c (to_ssa_time): New variable.
8224 (from_ssa_time): Likewise.
8225 (compile_file): Zero to_ssa_time and from_ssa_time.
8226 Print time to convert to and from SSA.
8227 (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
8228 (print_time): Compute percent fraction as integer.
8229 * ssa.c (PHI_NODE_P): Moved to rtl.h.
8230 (convert_to_ssa): Check if we're already in SSA.
8231 Don't eliminate dead code in life_analysis.
8232 Rerun flow and life analysis at bottom.
8233 (eliminate_phi): Use canonical regnos when adding nodes.
8234 (mark_reg_in_phi): New function.
8235 (mark_phi_and_copy_regs): Likewise.
8236 (convert_from_ssa): Rerun life analysis at top.
8237 Use coalesced partition.
8238 Check for removing a phi node at the end of the block.
8239 (compute_coalesced_reg_partition): New function.
8240 (coalesce_regs_in_copies): Likewise.
8241 (coalesce_reg_in_phi): Likewise.
8242 (coalesce_regs_in_sucessor_phi_nodes): Likewise.
8243 (for_each_successor_phi): Likewise.
8244 (rename_context): New struct.
8245 (rename_block): Use a rename_context with rename_insn_1. When
8246 renaming sets of a subreg, emit a copy of the entire reg first.
8247 (rename_insn_1): Treat data as a rename_context *. Save current
8249 (rename_set_data): Add field set_insn.
8250 * Makefile.in (HASHTAB_H): Move up in file.
8251 (OBSTACK_H): New macro.
8252 (collect2.o): Use OBSTACK_H in dependencies.
8253 (sdbout.o): Likewise.
8254 (emit-rtl.o): Likewise.
8255 (simplify-rtx.o): Likewise.
8256 (fix-header.o): Likewise.
8257 (OBJS): Add conflict.o.
8258 (conflict.o): New rule.
8259 * basic-block.h: Include partition.h.
8260 (conflict_graph): New typedef.
8261 (conflict_graph_enum_fn): Likewise.
8262 (conflict_graph_new): New prototype.
8263 (conflict_graph_delete): Likewise.
8264 (conflict_graph_add): Likewise.
8265 (conflict_graph_conflict_p): Likewise.
8266 (conflict_graph_enum): Likewise.
8267 (conflict_graph_merge_regs): Likewise.
8268 (conflict_graph_print): Likewise.
8269 (conflict_graph_compute): Likewise.
8270 * conflict.c: New file.
8272 2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
8274 * tlink.c (read_repo_files): Don't look for .rpo info for
8277 Thu Apr 6 20:39:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8279 * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
8281 Thu Apr 6 19:34:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8283 * config/sh/lib1funcs.asm (___udivsi3_i4):
8284 ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
8285 only depends on FMOVD_WORKS.
8287 Thu Apr 6 19:11:47 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8289 * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
8290 make double constant 8-byte aligned.
8292 2000-04-06 Jakub Jelinek <jakub@redhat.com>
8294 * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
8295 movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
8296 movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
8297 (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
8298 Accept storing GENERAL_REGS into offsetable memory.
8299 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
8300 building a TFmode constant other than 0.0L into GENERAL_REGS.
8302 2000-04-06 Clinton Popetz <cpopetz@cygnus.com>
8304 * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
8306 2000-04-06 Zack Weinberg <zack@wolery.cumb.org>
8308 * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
8309 (macro_cleanup): No need to cast pbuf->macro.
8310 (collect_expansion): Use _cpp_get_define_token. Goto done if
8311 it returns VSPACE. Remove check for trailing space after
8313 (_cpp_create_definition): Don't diddle flags here. Return
8315 (unsafe_chars): Handle c1 being EOF.
8316 (push_macro_expansion): Use unsafe_chars for both accidental-paste
8317 checks. Don't push the buffer till after we're done with
8319 * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
8320 (PEEKN, FORWARD, GETC, PEEKC): Use them.
8321 (cpp_push_buffer): Don't set new->alimit. Set new->mark
8323 (_cpp_parse_assertion): Don't NUL terminate.
8324 (_cpp_lex_token): Fix -traditional macro handling. Don't skip
8325 hspace before calling _cpp_parse_assertion. Remove all sets
8326 of only_seen_white. Treat '\f' as hspace. Don't do anything
8327 special with '\n' here.
8328 (maybe_macroexpand): Handle T_EMPTY hash entries without
8329 pushing a buffer at all.
8330 (cpp_get_token): Handle clearing only_seen_white here. Handle
8331 incrementing the line number here. Clear
8332 potential_control_macro as well as only_seen_white, if
8334 (cpp_get_non_space_token): Don't eat CPP_POP tokens.
8335 (_cpp_get_define_token): New function, basically like
8336 _cpp_get_directive_token was but doesn't eat horizontal space.
8337 Don't do anything with only_seen_white here.
8338 (_cpp_get_directive_token): Just call _cpp_get_define_token
8339 repeatedly till it returns non-hspace.
8341 * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
8342 (conditional_skip, skip_if_group): Return int.
8343 (DIRECTIVE_TABLE): Change origin of all conditional directives
8345 (TRAD_DIRECT_P): New macro.
8346 (_cpp_handle_directive): Use _cpp_get_directive_token. Issue
8347 an error for a bogus directive, unless -lang-asm. Use
8348 TRAD_DIRECT_P. Loop calling handler functions till one returns
8350 (get_macro_name): Don't diddle flags here.
8351 (do_define): Diddle flags here. Use _cpp_get_directive_token.
8352 Create T_EMPTY nodes for #define macro /* nothing */.
8353 (do_undef): Don't copy the name. Use _cpp_get_directive_token.
8354 Use hp->name when calling pass_thru_directive.
8355 (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
8356 Return the result of conditional_skip and/or skip_if_group.
8357 Don't call _cpp_output_line_command.
8358 (consider_directive_while_skipping): Use _cpp_get_directive_token.
8359 Issue -Wtraditional warnings as appropriate. Don't complain
8360 about unrecognized directives. If we are to stop skipping,
8361 return the number of the directive that ended the skip.
8362 (skip_if_group): Use _cpp_get_directive_token. Turn off macro
8363 expansion and line commands while skipping. Return the result
8364 of consider_directive_while_skipping, if nonzero.
8365 (do_endif): Just set potential_control_macro here.
8366 (validate_else): Use _cpp_get_directive_token.
8367 (do_assert, do_unassert): Don't save pointers into the
8368 token_buffer across calls to the lexer. Use
8369 _cpp_get_directive_token.
8371 * cpplib.h (cpp_buffer): Remove alimit and colno. Make mark a
8372 pointer, not an offset. Replace 'data', which was a generic
8373 pointer, with 'macro', which points to a struct hashnode.
8374 (cpp_reader): Add 'potential_control_macro' pointer.
8375 * cpphash.h (T_UNUSED): Replace with T_EMPTY.
8376 (CPP_BUF_GET, CPP_FORWARD): Delete.
8377 (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
8378 (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
8379 ACTIVE_MARK_P): Update.
8380 (_cpp_get_define_token): New internal function.
8381 * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
8383 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
8385 * configure.in: And here.
8386 * configure: Regenerate.
8387 * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
8388 --enable-libstdcxx-v3 is passed at configure time.
8389 * config.h.in: Regenerate.
8391 2000-04-05 Mark Mitchell <mark@codesourcery.com>
8393 * final.c (final): Use xcalloc to allocate line_note_exists.
8394 * function.c (free_after_compilation): Free the temp_slots.
8395 (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
8396 (combine_temp_slot): Free temp_slots when they get combined.
8397 (purge_addressof): Fix typo in comment.
8398 * stmt.c (mark_goto_fixup): Mark the fixup itself.
8399 (expand_fixup): Allocate the fixup with ggc_alloc_obj.
8401 * ggc.h: Include varray.h.
8402 (ggc_pending_trees): Declare.
8403 (ggc_mark_tree_children): Remove declaration.
8404 (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
8405 * ggc-common.c (ggc_pending_trees): New variable.
8406 (ggc_mark_roots): Call ggc_mark_trees.
8407 (ggc_mark_tree_children): Rename to ggc_mark_trees. Process all
8408 the ggc_pending_trees.
8409 * Makefile.in (GGC_H): New variable. Use it throughout in place
8412 Thu Apr 6 00:30:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8414 * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
8417 Wed Apr 5 23:17:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8419 * sh.c (sh_insn_length_adjustment): New function.
8420 * sh-protos.h (sh_insn_length_adjustment): Declare.
8421 * sh.h (ADJUST_INSN_LENGTH): Use it.
8423 Wed Apr 5 12:35:18 2000 Hans-Peter Nilsson <hp@axis.com>
8425 * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
8426 from the insn where REG_RETVAL is added.
8427 (emit_no_conflict_block): Ditto.
8429 * md.texi (Standard Names): Clarify when movX is needed.
8431 * combine.c (simplify_comparison) [MINUS]: Do not replace
8432 all (op (minus A B) 0) with (op A B).
8434 Wed Apr 5 18:03:31 2000 Toshiyasu Morita (toshi.morita@sega.com)
8435 J"orn Rennecke <amylaar@cygnus.co.uk>
8437 * sh.md (block_lump_real_i4): Add missing clobber of T_REG
8438 (block_lump_real): Likewise.
8440 2000-04-05 Chris Demetriou <cgd@netbsd.org>
8442 * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
8443 remaining non-zero debugging masks.
8445 Wed Apr 5 09:44:07 2000 Jeffrey A Law (law@cygnus.com)
8447 * basic-block.h (verify_flow_info): Declare.
8448 (flow_loop_outside_edge_p): Declare.
8449 * flow.c (verify_flow_info): Remove declaration.
8450 (clear_log_links, flow_loop_outside_edge_p): Likewise.
8452 Wed Apr 5 09:34:26 2000 Philippe De Muyter <phdm@macqel.be>
8454 * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
8457 2000-04-05 Jakub Jelinek <jakub@redhat.com>
8459 * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
8460 snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
8461 seqdi_zero_trunc+1): Allow splits only if registers are
8464 2000-04-04 Ulrich Drepper <drepper@cygnus.com>
8466 * acconfig.h: Add HAVE_GAS_HIDDEN.
8467 * config.in: Regenerated.
8468 * configure.in: Add test for .hidden pseudo-op in gas.
8469 * configure: Regenerated.
8470 * crtstuff.c: Include auto-host.h.
8471 Emit additional .hidden pseudo-op for __dso_handle if the
8472 assembler knows about it.
8474 2000-04-04 Philippe De Muyter <phdm@macqel.be>
8476 * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
8477 before freeing argnames.
8478 * cpplib.c (do_ifndef): Cast return value of xstrdup.
8480 2000-04-05 Michael Meissner <meissner@redhat.com>
8482 * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
8483 Walton <jonboy@gordian.com> to make memory references with update
8484 work wtih -mregnames.
8486 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8488 * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
8489 (regrename_optimize): Rename variables `def_uses' and
8490 `ext_basic_blocks' to avoid conflicts with similarly named
8491 typedefs in traditional C.
8493 * calls.c (initialize_argument_information): Fix typo in previous
8496 2000-04-04 Richard Henderson <rth@cygnus.com>
8498 * regrename.c (consider_available): Test fixed_regs not
8499 PIC_OFFSET_TABLE_REGNUM.
8501 2000-04-04 Geoff Keating <geoffk@cygnus.com>
8503 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
8505 (CRTSTUFF_T_CFLAGS_S): Delete definition.
8506 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
8507 (ENDFILE_LINUX_SPEC): Always use crtend.
8508 * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
8509 (powerpc-*-linux-gnu): Likewise.
8510 * configure: Regenerate.
8512 * config/rs6000/eabi.h: Don't include sysv4.h.
8513 (MULTILIB_DEFAULTS): Don't define.
8514 * config/rs6000/eabiaix.h: Don't include eabi.h.
8515 * config/rs6000/eabile.h: Delete.
8516 * config/rs6000/eabilesim.h: Delete.
8517 * config/rs6000/eabisim.h: Don't include eabi.h.
8518 * config/rs6000/linux.h: Don't include sysv4.h.
8519 (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
8520 (MULTILIB_DEFAULTS): Don't redefine.
8521 * config/rs6000/rtems.h: Don't include eabi.h.
8522 * config/rs6000/sol2.h: Don't include sysv4le.h.
8523 * config/rs6000/sysv4le.h: Don't include sysv4.h.
8524 * config/rs6000/t-ppc: Delete.
8525 * config/rs6000/t-ppcgas: Correct comment.
8526 * config/rs6000/t-ppcos: Correct comment. Don't build
8527 multilibs for -fPIC, rather use -fPIC -mstrict-align
8529 * config/rs6000/t-ppc: Delete.
8530 * config/rs6000/vxppc.h: Don't include sysv4.h.
8531 * config/rs6000/vxppcle.h: Delete.
8532 * configure.in: Use multiple header files for p2pc ELF targets
8533 powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
8534 powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
8535 powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
8536 powerpc-vxworks, powerpcle-vxworks. Assume GAS functionality is
8537 always available for these platforms.
8539 2000-04-04 Richard Henderson <rth@cygnus.com>
8541 * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
8543 2000-04-04 Stan Cox <scox@cygnus.com>
8545 * Makefile.in: Add rules for regrename.o
8546 * regrename.c: New file.
8547 * rtl.h (regrename_optimize): Add prototype.
8548 * toplev.c (rename_registers_dump, flag_rename_registers): New variables
8549 (compile_file, decode_d_option): Add support for -frename-registers.
8550 (rest_of_compilation): Call regrename_optimize.
8551 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
8554 2000-04-04 Martin v. Löwis <loewis@informatik.hu-berlin.de>
8556 * Makefile (gccbug): New target.
8557 (doc): Depend on it.
8558 * gcc.texi (Bugs): Link subnodes.
8560 * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
8561 Document severities, priorities, and classes in bug form.
8563 2000-04-04 Zack Weinberg <zack@wolery.cumb.org>
8565 * cpplex.c (trigraph_map, speccase): Combine into single
8567 (NORMAL, NONTRI): New macros.
8568 (_cpp_read_and_prescan): Change to use unified table. Use
8569 is_hspace to test for whitespace.
8571 * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
8572 definition that doesn't provoke the "empty body in an
8573 if-statement" warning.
8575 2000-04-04 Clinton Popetz <cpopetz@cygnus.com>
8577 * builtins.c (expand_builtin_strlen): Force the source to
8578 be a memory address.
8580 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8582 * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
8584 Tue Apr 4 19:17:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
8586 * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
8587 ECF_LONGJMP, ECF_FORK_OR_EXEC): New constants.
8588 (ECF_IS_CONST): Rename to ECF_CONST.
8589 (special_function_p): Make static, change interface.
8590 (flags_from_decl_or_type, try_to_integrate): Break out from ...
8591 (expand_call) ... here; convert number of variables to flags.
8592 (emit_library_call_vlue_1): Likewise.
8593 (setjmp_call_p): New function.
8594 (initialize_argument_information): Accepts flags as argument;
8596 (precompute_arguments): Likewise.
8597 * tree.h (special_function_p): Remove.
8598 (setjmp_call_p): Add prototype.
8600 2000-04-04 Jakub Jelinek <jakub@redhat.com>
8602 * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
8603 so that addresses are offsetable by up to 16 bytes.
8604 (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
8605 non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
8608 * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
8609 (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
8610 (movsf): Don't force any constant to memory if target is integer
8612 Move fp_zero_operand check below the const0_rtx check.
8613 (movtf): Likewise. Also allow fp_zero_operand for stores into
8615 (movdf): Likewise. Also allow fp_zero_operand for stores into
8616 memory and into integer hard registers.
8617 (clear_df, clear_dfp, movdf_const_intreg_sp32,
8618 movdf_const_intreg_sp64): Remove.
8619 (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
8621 (movdf_no_e_insn_v9_sp32): New pattern.
8622 (movdf_insn_v9only): Remove.
8623 (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
8624 (movdf_insn_sp64): Remove.
8625 (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
8626 (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
8627 (following splits): Rewrite conditions. Add two new splits
8628 for storing 0.0 into memory and registers.
8629 (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
8630 (movtf_insn_sp32): Redo constraints and conditions.
8631 (movtf_insn_vis_sp32): New pattern.
8632 (movtf_no_e_insn_sp32): Redo constraints and conditions.
8633 (movtf_insn_hq_sp64): Likewise.
8634 (movtf_insn_hq_vis_sp64): New pattern.
8635 (movtf_insn_sp64): Redo constraints and conditions.
8636 (movtf_insn_vis_sp64): New pattern.
8637 (movtf_no_e_insn_sp64): Redo constraints and conditions.
8638 (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
8640 * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
8641 -mvis or -m64 to take down the number of various reload patterns.
8643 Tue Apr 4 00:41:53 2000 Jeffrey A Law (law@cygnus.com)
8645 * pa/pa-64.h: New file.
8646 * pa/pa64-regs.h: New file.
8647 * pa/pa64-start.h: New file.
8648 * pa/t-pa64: New file.
8649 * pa/xm-pa64hpux.h: New file.
8651 2000-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8653 * sparc.c (output_restore_regs): Prototype.
8654 (sparc_emit_float_lib_cmp): Constification.
8656 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
8658 * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
8661 * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
8662 (get_value_hash, hash_rtx): Likewise.
8664 * ssa.c (compute_conservative_reg_partition): Prototype.
8666 * tree.c (mark_hash_entry): Prototype.
8668 2000-04-03 Zack Weinberg <zack@wolery.cumb.org>
8670 * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
8671 * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
8672 * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
8674 * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
8675 * objc/lang-specs.h: Likewise.
8677 2000-04-03 Neil Booth <NeilB@earthling.net>
8679 * cppexp.c: wrap long lines. New macros CPP_ICE, SYNTAX_ERROR
8680 and SYNTAX_ERROR2. Replace `' in messages with ''.
8681 (op_to_str): Make re-entrant.
8682 (_cpp_parse_expr): Implement new error macros. Use | rather
8683 than || to logically or 2 boolean integers. Simply expression
8684 checking we have a left operand iff needed.
8686 2000-04-03 Nick Clifton <nickc@cygnus.com>
8688 * Makefile.in (diagnostic.o): Depend upon diagnostic.c
8690 2000-04-03 Philip Blundell <philb@gnu.org>
8692 * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
8694 2000-04-03 Felix Lee <flee@cygnus.com>
8696 * fixinc/server.c (find_shell): New function. Avoid $SHELL.
8697 (run_shell): Use it.
8699 2000-04-03 Jonathan Larmour <jlarmour@redhat.co.uk>
8701 * Makefile.in (stmp-int-hdrs): Make include subdir here...
8702 (stmp-fixproto): ...rather than here.
8704 Mon Apr 3 00:50:06 2000 Jason Eckhardt <jle@cygnus.com>
8706 * pa.c (print_operand): Compute 'base' only inside the code paths
8709 2000-04-03 Geoffrey Keating <geoffk@cygnus.com>
8711 * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
8714 2000-04-03 Philipp Thomas <pthomas@suse.de>
8716 * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
8718 Mon Apr 3 00:02:59 2000 Brad Lucier <lucier@math.purdue.edu>
8720 * Makefile.in (alias.o): Depend on $(TREE_H).
8722 2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
8724 * cppinit.c (cpp_start_read): Turn off -Wtraditional if
8726 * cpplib.c (_cpp_handle_directive): Improve warnings for
8727 traditional C and indented directives.
8729 * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
8730 fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
8731 fixinc/inclhack.def: Indent the # of #include_next one space.
8732 * cp/rtti.c: Un-indent #if and #endif.
8734 * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
8735 syntax error, but an error has already been printed.
8736 * cpplex.c (_cpp_parse_assertion): Give a more specific error
8737 message when called with nothing remaining on the line.
8738 (_cpp_lex_token): If _cpp_parse_assertion fails, return an
8739 OTHER token, not an ASSERTION.
8740 * cpplib.c (do_assert): When we create a 'base' node, clear
8741 its aschain pointer.
8743 2000-04-02 Neil Booth <NeilB@earthling.net>
8745 * cppexp.c: New typedef op_t. struct operation and struct
8746 token updated to use it.
8747 (op_to_str): New function.
8748 (_cpp_parse_expr): Error messages modified to use op_to_str.
8750 2000-04-02 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8752 * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
8753 before checking MUST_PASS_IN_STACK.
8755 2000-04-02 Neil Booth <NeilB@earthling.net>
8757 * cppexp.c: New FINISHED dummy token. Combine operator initial
8758 flags and initial priority into a single constant. New
8759 EQUALITY macro. New operator flag SHORT_CIRCUIT.
8760 (_parse_cpp_expr): Implement new constants. Take left operand
8761 checks out of reduction loop. Handle SHORT_CIRCUIT. End of
8762 parse indicated by reducing FINISHED token. Remove new lines
8763 from cpp_error messages.
8765 2000-04-01 Mark Mitchell <mark@codesourcery.com>
8767 * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
8770 2000-04-01 Zack Weinberg <zack@wolery.cumb.org>
8772 * cpplib.c: Include symcat.h. Add 'origin' field to struct
8773 directive. Add origin values to DIRECTIVE_TABLE. Generate
8774 the strings and function names on the fly. Take the #sccs
8775 entry out of the table if SCCS_DIRECTIVE is not defined.
8776 (_cpp_handle_directive): Decide if the # was at the beginning
8777 of the line here. Issue -pedantic warnings for extended
8778 directives here. Warn about K+R directives with the #
8779 indented, and C89/extended directives with the # not indented,
8781 (do_import, do_include_next, do_warning, do_ident, do_sccs,
8782 do_assert, do_unassert): Don't issue pedantic warning here.
8784 * cpphash.h: Add CPP_WTRADITIONAL macro.
8785 * cpplib.h (struct cpp_options): Rename warn_stringify to
8786 warn_traditional; update comments.
8787 * cppinit.c (handle_option): Set warn_traditional not
8789 * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
8790 CPP_WTRADITIONAL (pfile).
8791 * cpplex.c (_cpp_lex_token): Don't decide if directives should
8792 be ignored in -traditional mode here.
8794 * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
8795 to initialize speccase[] and trigraph_map[]. Delete all
8796 references to pfile->input_speccase. Always treat '?' as a
8797 special character. Remove table-initialization code from
8798 _cpp_init_input_buffer.
8800 * cpplib.h (struct cpp_reader): Remove input_speccase field.
8801 * cppinit.c (cpp_cleanup): Don't free input_speccase.
8803 2000-04-01 Richard Henderson <rth@cygnus.com>
8805 * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
8806 (mostlyclean): Likewise.
8808 * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
8809 (struct dump_file_info, enum dump_file_index, dump_file): New.
8810 (open_dump_file): Take a dump_file_index not a suffix, and a decl
8811 not a string. Clean out file if we havn't yet done so. Do nothing
8812 if the dump isn't enabled.
8813 (close_dump_file): Do nothing if the dump isn't open. Dump
8814 graph data if requested.
8815 (dump_rtl, clean_dump_file): Remove.
8816 (compile_file): Don't clean the dump files. Only finalize .bp dump
8817 if flag_test_coverage or flag_branch_probabilities. Only finalize
8818 .combine dump if optimizing. Iterate over dump_file to finalize the
8820 (rest_of_compilation): Update for open_dump_file/close_dump_file.
8821 Convert all uses of dump_rtl.
8822 (decode_d_option): Iterate over dump_file to implement 'a' and to
8823 locate pass-specific dumps.
8825 2000-04-01 Neil Booth <NeilB@earthling.net>
8827 * cppexp.c: Redefine priority constants.
8828 (_cpp_parse_expr): Replace left and right priority scheme with
8829 single priority logic. Move LOGICAL to same place as COMPARE.
8830 Remove bogus check for multiple unary +/- operators.
8832 2000-04-01 Neil Booth <NeilB@earthling.net>
8834 * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
8835 within the switch statement. Binary operations break out of
8836 the switch naturally. '(' tokens handled by forcing
8837 immediate shift. ')' handled by forcing immediate reduce to
8838 the previous '('. New error messages.
8840 2000-03-31 Geoff Keating <geoffk@cygnus.com>
8842 * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
8843 part', it's already in use. Use %K instead. Add a return at the
8844 end of what is now %K.
8845 * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
8847 Sat Apr 1 02:05:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
8849 * builtins.c (expand_builtin_apply): Pass proper parameters to
8850 allocate_dynamic_stack_space.
8851 * calls.c (emit_call_1): Do not adjust stack pointer for SIB,
8852 update stack_pointer_delta; do not update arg_size_so_far.
8853 (compute_argument_block_size): Use stack_delta instead of
8854 stack_pointer_pending and arg_size_so_far.
8855 (expand_call): Add sanity checking for stack_pointer_delta;
8856 save and restore stack_pointer_delta for SIB, use
8857 stack_pointer_delta for alignment; do not update arg_space_so_far.
8858 (emit_library_call_value): Use stack_pointer_delta for alignment.
8859 (store_one_arg): Do not update arg_space_so_far.
8860 * explow.c (adjust_stack, anti_adjust_stack): Update
8861 stack_pointer_delta.
8862 (allocate_dynamic_stack_space): Add sanity checking for
8863 stack_pointer_delta.
8864 * expr.c (init_expr, clear_pending_stack_adjust): Clear
8865 stack_pointer_delta.
8866 (emit_push_insn): Update stack_pointer_delta.
8867 * function.h (struct expr_status): Add x_stack_pointer_delta;
8868 remove x_arg_space_so_far.
8869 (arg_space_so_far): Remove.
8870 (stack_pointer_delta): New macro.
8872 2000-03-31 Zack Weinberg <zack@wolery.cumb.org>
8874 * cpplib.h: Merge struct cpp_options into struct cpp_reader.
8875 Reorder struct cpp_options and struct cpp_reader for better
8876 packing. Replace CPP_OPTIONS macro with CPP_OPTION which
8877 takes two args. Change all 'char' flags to 'unsigned char'.
8878 Move show_column flag into struct cpp_options. Don't
8879 prototype cpp_options_init.
8880 * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
8881 cppinit.c, cpplex.c, cpplib.c:
8882 Replace CPP_OPTIONS (pfile)->whatever with
8883 CPP_OPTION (pfile, whatever), and likewise for
8884 opts = CPP_OPTIONS (pfile); ... opts->whatever;
8886 * cppinit.c (merge_include_chains): Take a cpp_reader *.
8887 Extract CPP_OPTION (pfile, pending) and work with that
8889 (cpp_options_init): Delete.
8890 (cpp_reader_init): Turn on on-by-default options here.
8891 Allocate the pending structure here.
8892 (cl_options, enum opt_code): Define these from the same table,
8893 kept in a large macro. Add -fshow-column and -fno-show-column
8896 * cpperror.c (v_message): If show_column is off, don't print
8899 * cppmain.c: Update for new interface.
8900 * fix-header.c: Likewise.
8902 2000-03-30 Geoff Keating <geoffk@cygnus.com>
8904 * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
8906 * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
8907 are passed to any invocation of AR_FOR_TARGET.
8908 (AR_CREATE_FOR_TARGET): New macro.
8909 (AR_EXTRACT_FOR_TARGET): New macro.
8910 (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
8911 AR_EXTRACT_FOR_TARGET.
8912 (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
8913 in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
8914 `$(AR_FOR_TARGET) x'. Pass AR_CREATE_FOR_TARGET and
8915 AR_EXTRACT_FOR_TARGET to sub-makes.
8917 2000-03-31 Neil Booth <NeilB@earthling.net>
8919 * cppexp.c: Delete SKIP_OPERAND. Correct priority
8921 (_cpp_parse_expr): Check for multiple unary +/- operators.
8922 Correct priorities of ':' and '?'. Treat ')' as having a
8923 value. Ensure conditional expression is not void.
8925 2000-03-31 Mark Mitchell <mark@codesourcery.com>
8927 * alias.c (canon_rtx): Make it global.
8928 (rtx_equal_for_memref_p): CONST_INT equality is now pointer
8930 * cse.c (struct table_elt): Add canon_exp.
8932 (invalidate): Canonicalize expressions only once.
8933 * rtl.h (canon_rtx): Declare.
8935 2000-03-30 Mark Mitchell <mark@codesourcery.com>
8937 * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
8938 * alias.c (reg_known_value): Add comments.
8939 (init_alias_analysis): Likewise.
8940 * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
8942 (cse_basic_block): Fix typo in comment.
8943 * emit-rtl.c: Include hashtab.h.
8944 (const_int_htab): New variable.
8945 (const_int_htab_hash): New function.
8946 (const_int_htab_eq): Likewise.
8947 (rtx_htab_mark_1): Likewise.
8948 (rtx_htab_mark): Likewise.
8949 (gen_rtx_CONST_INT): Cache all CONST_INTs.
8950 (unshare_all_rtx): Fix formatting.
8951 (init_emit_once): Initialize const_int_htab.
8952 * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
8954 * rtl.texi: Document the fact that all CONST_INTs with the same
8957 2000-03-30 Richard Henderson <rth@cygnus.com>
8959 * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
8961 2000-03-30 Zack Weinberg <zack@wolery.cumb.org>
8963 * configure.in: Comment out --enable-c-cpplib stanza.
8964 * configure: Regenerate.
8966 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8968 * expr.c (store_constructor): Properly compute displacement and
8969 alignment when offset is variable.
8971 * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
8972 cases of alignment in bytes.
8974 Thu Mar 30 13:30:40 2000 Jeffrey A Law (law@cygnus.com)
8976 * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
8977 since it is used to generate c-parse.y.
8978 * objc-parse.c, objc-parse.y: Regenerated.
8980 * function.c (expand_function_end): Pass alignment argument to
8981 emit_block_move in bits, not bytes.
8983 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8985 * expr.c (move_by_pieces_ninsns): Fix one more missing align
8988 * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
8990 * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
8991 * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
8992 * function.c (assign_parms): Likewise.
8993 * integrate.c (expand_inline_function): Likewise.
8994 * stmt.c (expand_decl): Likewise.
8995 (copy_rtx_and_substitute): Likewise.
8996 * expr.c (expand_expr, expand_expr_unaligned): Likewise.
8997 (clear_by_pieces): Fix error in last change.
8998 * emit-rtl.c (init_emit): Set known registers alignment in bits.
8999 * function.h (regno_pointer_align): Now unsigned.
9000 * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
9002 * config/i386/i386.c (aligned_operand): Likewise.
9003 * config/sparc/sparc.c (mem_min_alignment): Likewise.
9004 * config/alpha/alpha.c (aligned_memory_operand): Likewise.
9005 (unaligned_memory_operand): Likewise.
9006 (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
9007 Also make alignments and sizes unsigned and some whitespace cleanup.
9008 (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
9010 * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
9011 (expand_builtin_apply): Pass alignment to emit_block_move in bits.
9012 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
9013 (expand_builtin_memset): Likewise, but to clear_storage.
9014 * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
9015 (restore_fixed_argument_area): Likewise.
9016 (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
9017 (load_register_parameters): Likewise, to emit_group_load.
9018 (expand_call): Likewise, to emit_group_store and emit_block_move.
9019 (emit_library_call_value_1): Likewise, to emit_block_move.
9020 (store_one_arg): Likewise, and to emit_push_insn.
9021 * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
9022 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
9023 * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
9024 (emit_block_move, emit_group_load, emit_group_store): Likewise.
9025 (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
9026 (expand_assigment, store_expr, store_constructor_field): Likewise.
9027 (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
9028 (store_constructor, store_field, get_inner_reference): Likewise.
9029 Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
9030 (expand_expr, case COMPONENT_REF): Likewise.
9031 (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
9032 and positions; reindent code.
9033 * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
9034 * function.c (purge_addressof_1): Pass bit align to store_bit_field.
9035 (assign_parms): Likewise to emit_group_store.
9036 * optabs.c (prepare_cmp_insn): Alignment is in bits.
9037 (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
9038 * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
9039 (expand_return): Likewise to {extract,store}_bit_field.
9040 * stor-layout.c (get_mode_alignment): Minor cleanup.
9041 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
9042 * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
9044 2000-03-29 Nick Clifton <nickc@cygnus.com>
9046 * config/arm/arm.h: Undo effects of previous delta:
9047 (ASM_SPEC): Do not define.
9048 (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
9050 * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
9053 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
9055 * cppinit.c (cpp_start_read): Call initialize_dependency_output
9056 only after reading in the primary source file.
9058 2000-03-29 Geoff Keating <geoffk@cygnus.com>
9060 * c-common.c (c_common_nodes_and_builtins): The first parameter to
9061 __builtin_va_start and __builtin_va_copy is now either a 'va_list'
9062 or a reference to a va_list.
9063 * builtins.c (stabilize_va_list): Simplify now we don't have to
9064 work around C array address decay.
9065 * c-typeck.c (convert_for_assignment): Handle assignment to
9066 a reference parameter by taking the address of the RHS.
9067 * ginclude/stdarg.h (va_start): Don't take address of first parameter.
9068 (va_copy): Likewise.
9069 (__va_copy): Likewise.
9070 * ginclude/varargs.h (va_start): Likewise.
9071 (__va_copy): Likewise.
9073 Wed Mar 29 15:44:53 2000 Jeffrey A Law (law@cygnus.com)
9075 * i386/djgpp.h: Remove extraneous "+".
9077 * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
9079 * calls.c (expand_call): Fix typo in last change.
9081 2000-03-29 Jason Merrill <jason@casey.cygnus.com>
9083 * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
9086 Wed Mar 29 15:39:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9088 * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
9089 (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
9090 (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
9091 * tree.c (bit_position, byte_position): Likewise.
9092 * tree.h: Declare new functions.
9094 2000-03-29 Nick Clifton <nickc@cygnus.com>
9096 * config/arm/arm.c: Minor formatting changes/
9097 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
9099 (ASM_SPEC): Define if not already defined.
9101 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
9103 * cppfiles.c (cpp_read_file): Don't pass zero-length string to
9106 2000-03-29 Jakub Jelinek <jakub@redhat.com>
9108 * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
9109 value, don't output it as unsigned.
9111 Wed Mar 29 10:53:49 2000 Jeffrey A Law (law@cygnus.com)
9113 * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
9115 2000-03-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9117 * c-common.c (c_common_nodes_and_builtins): Don't special case
9118 cplus_mode when declaring builtin bzero/bcmp, always avoid
9119 prototype arguments.
9121 2000-03-29 Bruce Korb <bkorb@gnu.org>
9123 * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
9126 Wed Mar 29 15:08:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
9128 Convert ACCUMULATE_OUTGOING_ARGS to an expression.
9129 * calls.c (PUSH_ARGS_REVERSED) Change to expression.
9130 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
9131 (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
9132 (save_fixed_argument_area, restore_fixed_argument_area):
9133 conditionize by #ifdef REG_PARM_STACK_SPACE only.
9134 (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
9135 to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
9136 (precompute_register_parameters): Avoid #ifdefs on
9137 ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
9138 (stire_one_args): Likewise.
9139 (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
9140 (emit_library_call_value_1): Likewise.
9141 (compute_argument_block_size): Align to STACK_BOUNDARY only for
9142 ACCUMULATE_OUTGOING_ARGS.
9143 * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
9145 (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
9146 (use_crosses_set_p): Likewise.
9147 * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
9148 #define ACCUMULATE_OUTGOING_ARGS 1.
9149 * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
9151 * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
9153 (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
9154 (TARGET_SWITCHES): Add push-args, no-push-args,
9155 accumulate-outgoing-args and no-accumulate-outgoing-args.
9156 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
9157 * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
9158 (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
9160 (emit_push_insn): Likewise.
9161 * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
9162 (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
9163 * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
9164 (STACK_DYNAMIC_OFFSET): Define correctly for both
9165 ACCUMULATE_OUTGOING_ARGS and normal mode.
9166 * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
9167 * tm.texi (PUSH_ARGS): Document.
9168 (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
9170 Wed Mar 29 11:51:13 MET DST 2000 Jan Hubicka <jh@suse.cz>
9172 * flags.h (flag_optimize_sibling_calls): Declare.
9173 * calls.c (expand_call): Fail sibcall when
9174 !flag_optimize_sibling_calls
9175 * invoke.texi (flag_optimize_sibling_calls): Document.
9176 * toplev.c (flag_optimize_sibling_calls): New global variable.
9177 (f_options): Add flag_optimize_sibling_calls.
9178 (rest_of_compilation): Conditionize
9179 optimize_sibling_and_tail_recursive_calls by
9180 flag_optimize_sibling_calls.
9181 (main): Set flag_optimize_sibling_calls for -O2.
9182 * stmt.c (expand_return): Conditionize tail recursion by
9183 flag_optimize_sibling_calls.
9185 2000-03-29 Richard Henderson <rth@cygnus.com>
9187 * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
9188 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
9190 2000-03-29 Nathan Sidwell <nathan@codesourcery.com>
9192 * except.c (add_eh_table_entry): Mark type_info's as referenced.
9194 2000-03-29 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9196 * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
9198 * config/rs6000/aix43.h (CPP_SPEC): Likewise.
9199 * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
9200 * config/rs6000/aix.h: then modified likewise.
9202 2000-03-28 Richard Henderson <rth@cygnus.com>
9204 * rtl.h: Redistribute enum reg_note documentation.
9205 Kill trailing whitespace.
9206 * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
9207 Kill trailing whitespace.
9209 2000-03-28 Zack Weinberg <zack@wolery.cumb.org>
9211 * cppfiles.c (hash_IHASH): Just return i->hash.
9212 (cpp_included): Set dummy.hash using _cpp_calc_hash. Use
9213 htab_find_with_hash.
9214 (cpp_read_file): Likewise.
9215 (find_include_file): Likewise. Properly initialize
9216 ih->nshort. Share ih->name and ih->nshort if possible.
9217 * cpphash.c (_cpp_calc_hash): New function.
9218 (hash_HASHNODE): Just return h->hash.
9219 (_cpp_lookup): Set dummy.hash using _cpp_calc_hash. Use
9220 htab_find_with_hash.
9221 * cpphash.h: Prototype _cpp_calc_hash.
9222 * cppinit.c (initialize_builtins): Provide a valid hash
9223 to _cpp_make_hashnode, using _cpp_calc_hash.
9225 * cpphash.c (collect_expansion): # is not a special character
9226 in object-like macros. In -traditional mode, /**/ is not
9227 token paste at the beginning or end of the line.
9228 * cpplib.c (do_include, do_import, do_include_next): If
9229 parse_include fails, return immediately.
9231 2000-03-28 Jason Merrill <jason@casey.cygnus.com>
9233 * config/arm/arm.md (return peepholes): Update to reflect the new
9235 * config/arm/arm.c (arm_volatile_func): Also check
9236 current_function_nothrow.
9237 (output_return_instruction, output_func_prologue): Use it.
9238 (arm_output_epilogue, arm_expand_prologue): Likewise.
9240 2000-03-27 Tom Tromey <tromey@cygnus.com>
9242 * gcc.c (handle_braces): In {x*...} case, break out of loop if
9245 Tue Mar 28 11:55:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9247 * expr.c (store_constructor): SIZE now signed.
9248 For EXPR_SIZE, don't evaluate size; just needed if constant.
9249 * fold-const.c (fold): Fix a number of cases when folded tree is
9251 * function.c (flush_addressof): Reenable.
9252 * tree.h (flush_addressof): Likewise.
9253 * toplev.c (independent_decode_option): Look at strings_processed.
9254 * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
9256 Tue Mar 28 08:29:46 2000 Jan Hubicka <jh@suse.cz>
9258 * sibcall.c (indentify_call_return_value): Find last call in the chain;
9259 Allow stack adjustment after function call.
9261 * regmove.c (struct csa_memlist): Make mem field rtx *.
9262 (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
9263 (try_apply_stack_adjustment): Replace whole MEM rtx.
9264 (combine_stack_adjustments_for_block): Update calls
9265 to record_one_stack_ref.
9267 2000-03-28 Neil Booth <NeilB@earthling.net>
9269 * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
9270 '\\' rather than a null character, so nulls are not special. Fix
9271 "\\\n" handling in end-of-buffer conditions. Use trigraph map to
9272 speed trigraph conversion.
9273 (_cpp_init_input_buffer): Initialize trigraph map.
9275 2000-03-27 Alan Modra <alan@linuxcare.com.au>
9277 * config/i386/i386.c (output_387_binary_op): Correct intel
9278 mode assembly output, and add spaces after commas in AT&T
9279 output. Correct Unixware assembler comment. Document input
9280 constraints. Comment fp operations. Reduce profligate buffer
9281 size. Remove extraneous abort. Localize temp var.
9282 (SYSV386_COMPAT): Define. Add !SYSV386_COMPAT code.
9283 (output_fix_trunc): Add spaces after commas in assembly output.
9285 2000-03-27 Richard Henderson <rth@cygnus.com>
9287 * i386-protos.h (ix86_match_ccmode): Declare.
9288 * i386.c (ix86_match_ccmode): New.
9289 (ix86_expand_fp_compare): Update for pattern renames.
9290 (ix86_expand_strlensi_unroll_1): Likewise.
9291 * i386.h (EXTRA_CC_MODES): Add CCZ.
9292 (SELECT_CC_MODE): Use it for EQ/NE zero.
9293 * i386.md (cmpsi_ccz_1): New.
9295 (*testsi_ccz_1): New.
9296 (testqi_ccz_1): New.
9297 (cmpsi_ccno_1): Rename from cmpsi_0.
9298 (testsi_ccno_1): Rename from testsi_1.
9299 (testqi_ccno_1): Rename from testqi_1.
9300 (*testqi_ext_ccz_0): Rename from testqi_ext_0.
9301 (testqi_ext_ccno_0): Rename from *testqi_ext_1.
9302 (*cmphi_0): Use ix86_match_ccmode.
9303 (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
9304 (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
9305 (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
9306 (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
9307 (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
9308 (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
9309 (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
9310 (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
9311 (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
9312 (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
9313 (appropriate peepholes): Likewise.
9314 (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
9315 (*subsi_3, *subhi_3, *subqi_3): Remove.
9316 (*negdi2_1+1 splitter): Use CCZ for neg patterns.
9317 (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
9318 (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
9319 (*neghi2_cmpz, *negqi2_cmpz): Similarly.
9320 (x86_shift_adj_1): Use CCZ.
9321 (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
9323 2000-03-27 Stan Cox <scox@cygnus.com>
9325 * resource.h (mark_resource_type): New.
9326 * resource.c (find_dead_or_set_registers, mark_target_live_regs,
9327 find_free_register): Use mark_resource_type.
9328 (mark_set_resources): Change include_delayed_effects
9329 to mark_resource_type.
9330 * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
9331 redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
9332 Use mark_resource_type.
9334 2000-03-27 Richard Henderson <rth@cygnus.com>
9336 * i386.md (call_pop_0, call_value_pop_0): New.
9337 (call_pop_1): Remove constraint from unused arg. Support sibcalls.
9338 (call_value_pop_1): Likewise.
9339 (call_0, call_value_0): New.
9340 (call_1, call_value_1): Remove constraint from unused arg.
9342 2000-03-27 Nick Clifton <nickc@cygnus.com>
9344 * invoke.texi (Spec Files): Document new spec % command created by
9345 Tom Tromey's recent patch.
9347 2000-03-27 Jakub Jelinek <jakub@redhat.com>
9349 * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
9352 Mon Mar 27 06:04:22 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9354 * expr.c (expand_assignment): Fix typo in last change.
9356 * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
9358 Sun Mar 26 20:15:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9360 * c-convert.c (convert): Return if output or input type is ERROR_MARK.
9361 * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
9362 and DECL_INLINE if FUNCTION_DECL.
9363 (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
9364 (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
9365 Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
9366 (combine_parm_decls): Likewise.
9367 * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
9368 * print-tree.c (print_node): Likewise.
9369 Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
9370 DECL_TRANSPARENT_UNION on proper decl types.
9371 Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
9372 * stor-layout.c (layout_decl): Only check DECL_PACKED and
9373 DECL_BIT_FIELD of FIELD_DECL.
9374 * tree.h (DECL_RESULT_FLD): New macro.
9376 * expr.c (expand_assignment): Add code to handle variable-sized
9379 2000-03-26 Richard Henderson <rth@cygnus.com>
9381 * calls.c (expand_call): Pass parms not original exp to
9382 optimize_tail_recursion. Mind return value instead of looking
9384 * stmt.c (optimize_tail_recursion): Take parameter list, not entire
9385 call_expr. Move checks for call_expr and current_function_decl ...
9386 (expand_return): ... here.
9388 2000-03-26 Tom Tromey <tromey@cygnus.com>
9390 * gcc.c (handle_braces): Recognize `%{<S}' construct.
9391 (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
9393 (process_command): Use them.
9394 (check_live_switch): Likewise.
9395 (give_switch): Skip ignored switches.
9397 2000-03-26 Jan Hubicka <jh@suse.cz>
9399 * jump.c (jump_optimize_1): Fix typo in elide optimizations
9400 for minimal jump pass test.
9402 2000-03-26 Mark Mitchell <mark@codesourcery.com>
9404 * integrate.c (function_cannot_inline_p): Do inline functions that
9407 Sun Mar 26 11:37:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9409 * stor-layout.c (layout_type, set_sizetype): early_type_list is
9410 now a list of TREE_LIST entries, not types.
9411 * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
9413 * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
9414 * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
9416 * config/mips/mips.c (function_arg): Likewise; also remove cast
9417 and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
9418 (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
9419 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
9420 * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
9421 (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
9422 (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
9423 (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
9424 (struct mips_arg): arg_number, arg_words, fp_arg_words, and
9425 num_adjusts now unsigned.
9426 (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
9427 * config/sparc/sparc.c (struct function_arg_record_value_parms):
9429 (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
9430 as is BITPOS variable; use host_integerp and int_bit_position.
9431 (function_arg_record_value_2): Likewise.
9432 (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
9433 Variable REGNO now unsigned.
9434 (function_arg_record_value): NREGS now unsigned.
9436 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
9438 * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
9440 Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9442 * Rework fields used to describe positions of bitfields and
9443 modify sizes to be unsigned and use HOST_WIDE_INT.
9444 * alias.c (reg_known_value_size): Now unsigned.
9445 * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
9446 (really_start_incremental_init): Use bitsize_zero_node.
9447 (push_init_level, pop_init_level, output_init_element): Likewise.
9448 Use bitsize_unit_node and bitsize_one_node.
9449 (output_pending_init_elements, process_init_element): Likewise.
9450 * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
9451 (make_extraction): Position and length HOST_WIDE_INT and unsigned
9452 HOST_WIDE_INT, respectively.
9453 (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
9454 (num_sign_bit_copies): Returns unsigned.
9455 BITWIDTH now unsigned; rework arithmetic.
9456 Remove recursive call from arg to MAX.
9457 (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
9458 (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
9460 (set_nonzero_bit_and_sign_copies): NUM now unsigned.
9461 (find_split_point, expand_compound_operation, make_extraction): LEN
9462 now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
9463 (make_field_assignment): Likewise.
9464 (combine_simplify_rtx): Add cast.
9465 (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
9466 (force_to_mode): WIDTH now unsigned; add cast.
9467 (if_then_else_cond): SIZE now unsigned.
9468 (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
9469 (extended_count): Now returns unsigned.
9470 (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
9471 Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
9472 (simplify_comparison): MODE_WIDTH now unsigned.
9473 (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
9474 (mark_used_regs_combine): Likewise; rework arithmetic.
9475 (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
9476 (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
9477 (record_promoted_value): REGNO now unsigned.
9478 (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
9479 (get_last_value): REGNO now unsigned.
9480 (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
9481 (reg_dead_regno, reg_dead_endregno): Now unsigned.
9482 (remove_death): Arg REGNO now unsigned.
9483 (move_deaths): REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
9484 (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
9486 * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
9487 * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
9488 (struct cse_reg_info): REGNO now unsigned.
9489 (cached_regno): Now unsigned.
9490 (REGNO_QTY_VALID_P): Add cast.
9491 (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
9492 (remove_invalid_regs): Likewise.
9493 (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
9494 as are variables END and I.
9495 (get_cse_reg_info, insert): Likewise.
9496 (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
9497 (canon_hash): Likewise.
9498 (insert_regs, lookup_for_remove): REGNO now unsigned.
9499 (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
9501 * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
9502 * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
9503 * emit-rtl.c (subreg_realpart_p): Add cast.
9504 (operand_subword): Arg I is now unsigned as is var PARTWORDS.
9505 (operand_subword_force): Arg I is now unsigned.
9506 * except.c (eh_regs): Variable I is now unsigned.
9507 * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
9508 * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
9509 length is unsigned HOST_WIDE_INT; likewise for internal variables.
9510 (store_split_bit_field, extract_fixed_bit_field): Likewise.
9511 (extract_split_bit_field, store_bit_field, extract_bit_field):
9513 * expr.c (store_constructor_fields, store_constructor, store_field):
9514 Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
9515 (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
9516 (do_jump): Likewise.
9517 (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
9518 MAX_SIZE is now unsigned.
9519 (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
9520 (emit_group_store): Likewise.
9521 (emit_move_insn): I now unsigned.
9522 (store_constructor): Use host_integerp, tree_low_cst, and
9524 (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
9525 Rework all calculations to use trees and new fields.
9526 * expr.h (promoted_input_arg): Regno now unsigned.
9527 (store_bit_field, extract_bit_field): Adjust types of pos and size.
9528 (mark_seen_cases): Arg is HOST_WIDE_INT.
9529 * flow.c (verify_wide_reg_1): REGNO now unsigned.
9530 * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
9531 precisions and alignments are unsigned.
9532 (optimize_bit_field_compare, fold_truthop): Likewise.
9533 (int_const_binop): Adjust threshold for size_int_type_wide call.
9534 (fold_convert): Likewise.
9535 (size_int_type_wide): Make table larger and fix thinko that only
9536 had half of table used.
9537 (all_ones_mask_p, fold): Precisions are unsigned.
9538 * function.c (put_reg_info_stack): REGNO is unsigned.
9539 (instantiate_decl): Size is HOST_WIDE_INT.
9540 (instantiate_virtual_regs): I is unsigned.
9541 (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
9542 (promoted_input_arg): REGNO is unsigned.
9543 * function.h (struct function): x_max_parm_reg is now unsigned.
9544 * gcse.c (max_gcse_regno): Now unsigned.
9545 (struct null_pointer_info): min_reg and max_reg now unsigned.
9546 (lookup_set, next_set): REGNO arg now unsigned.
9547 (compute_hash_table): REGNO and I now unsigned.
9548 (handle_avail_expr): regnum_for_replacing now unsigned.
9549 (cprop_insn): REGNO now unsigned.
9550 (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
9551 * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
9552 * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
9553 * hard-reg-set.h (reg_class_size): Now unsigned.
9554 * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
9555 * jump.c (mark_modified_reg): I now unsigned; add cast.
9556 (rtx_equal_for_thread_p): Add cast.
9557 * loop.c (max_reg_before_loop): Now unsigned.
9558 (struct_movable): REGNO now unsigned.
9559 (try_copy_prop): REGNO arg unsigned.
9560 (regs_match_p): XN and YN now unsigned.
9561 (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
9562 (strength_reduce): Likewise; NREGS also unsigned.
9563 (first_increment_giv, last_increment_giv unsigned): Now unsigned.
9564 * loop.h (struct iv_class): REGNO now unsigned.
9565 (max_reg_before_loop, first_increment_giv, last_increment_giv):
9567 * machmode.h (mode_size, mode_unit_size): Now unsigned.
9568 (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
9569 * optabs.c (expand_binop): I and NWORDS now unsigned.
9570 (expand_unop): I now unsigned.
9571 * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
9572 print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
9573 * real.c (significand_size): Now returns unsigned.
9574 * real.h (significand_size): Likewise.
9575 * regclass.c (reg_class_size): Now unsigned.
9576 (choose_hard_reg_mode): Both operands now unsigned.
9577 (record_reg_classes): REGNO and NR now unsigned.
9578 (reg_scan): NREGS now unsigned.
9579 (reg_scan_update): old_max_regno now unsigned.
9580 (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
9581 * reload.c (find_valid_class): BEST_SIZE now unsigned.
9582 (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
9583 (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
9584 Likewise for variable R.
9585 (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
9586 as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
9587 (find_equiv_reg): Add casts.
9588 (regno_clobbered_p): Arg REGNO now unsigned.
9589 * reload.h (struct reload): NREGS now unsigned.
9590 (refers_to_regno_for_reload_p): Regno args are unsigned.
9591 (regno_clobbered_p): Likewise.
9592 * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
9593 (compute_use_by_pseudos): REGNO now unsigned.
9594 (find_reg): I and J now unsigned, new variable K, and change loop
9595 variables accordingly; THIS_NREGS now unsigned.
9596 (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
9597 (spill_hard_reg): REGNO arg now unsigned; add casts.
9598 (forget_old_reloads_1): REGNO, NR, and I now unsigned.
9599 (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
9600 (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
9601 END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
9602 (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
9603 (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
9604 (emit_reload_insns): REGNO now unsigned.
9605 (reload_cse_move2add): Add cast.
9606 (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
9608 * resource.c (mark_referenced_resources, mark_set_resources): New
9609 variable R; REGNO and LAST_REGNO now unsigned.
9610 (mark_target_live_regs): J and REGNO now unsigned.
9611 * rtl.c (mode_size, mode_unit_size): Now unsigned.
9612 * rtl.h (union rtunion_def): New field rtuint.
9613 (XCUINT): New macro.
9614 (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
9615 (operand_subword, operand_subword_force): Word number is unsigned.
9616 (choose_hard_reg_mode): Operands are unsigned.
9617 (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
9618 (find_regno_note, find_regno_fusage, replace_regs): Likewise.
9619 (regno_use_in, combine_instructions, remove_death): Likewise.
9620 (reg_scan, reg_scan_update): Likewise.
9621 (extended_count): Return is unsigned.
9622 * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
9623 INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
9624 (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
9625 (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
9626 (reg_reg_last_1): FIRS and LAST now unsigned.
9627 (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
9628 (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
9630 (find_regno_note, regno_use_in): Arg REGNO now unsigned.
9631 (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
9632 (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
9633 (replace_regs): Arg NREGS now unsigned.
9634 * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
9635 * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
9636 (simplify_binary_operation): Likewise.
9637 (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
9638 THIS_LAST now unsigned.
9639 (cselib_record_set): Add cast.
9640 * ssa.c (ssa_max_reg_num): Now unsigned.
9641 (rename_block): REGNO now unsigned.
9642 * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
9644 (all_cases_count): Just return -1 not -2.
9645 COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
9646 Rework tests to use trees whenever possible.
9647 Use host_integerp and tree_low_cst.
9648 (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
9649 Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
9650 (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
9651 * stor-layout.c (mode_for_size): SIZE arg now unsigned.
9652 (smallest_mode_for_size): Likewise.
9653 (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
9654 KNOWN_ALIGN is now an alignment, so simplify code.
9655 Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
9656 (start_record_layout): Renamed from new_record_layout_info.
9657 Update to new fields.
9658 (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
9660 (place_union_field): Renamed from layout_union_field.
9661 Update to use new fields in rli.
9662 (place_field): Renamed from layout_field.
9663 Major rewrite to use new fields in rli; pass alignment to layout_decl.
9664 (finalize_record_size): Rework to use new fields in rli and handle
9666 (compute_record_mode): Rework to simplify and to use new DECL fields.
9667 (finalize_type_size): Make rounding more consistent.
9668 (finish_union_layout): Deleted.
9669 (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
9670 (layout_type, case RECORD_TYPE): Call new function names.
9671 (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
9672 (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
9673 (get_best_mode): UNIT is now unsigned; remove casts.
9674 * tree.c (bit_position): Compute from new fields.
9675 (byte_position, int_byte_position): New functions.
9676 (print_type_hash_statistics): Cast to remove warning.
9677 (build_range_type): Use host_integerp and tree_low_cst to try to hash.
9678 (build_index_type): Likewise; make subtype of sizetype.
9679 (build_index_2_type): Pass sizetype to build_range_type.
9680 (build_common_tree_nodes): Use size_int and bitsize_int to
9681 initialize nodes; add bitsize_{zero,one,unit}_node.
9682 * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
9683 (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
9684 (DECL_PACKED, DECL_BIT_FIELD): Likewise.
9685 (DECL_FIELD_BITPOS): Deleted.
9686 (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
9687 (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
9688 (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
9689 (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
9690 (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
9691 (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
9692 (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
9693 (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
9694 (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
9695 (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
9696 (DECL_ALIGN): Adjust to new field in union.
9697 (DECL_OFFSET_ALIGN): New field.
9698 (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
9699 (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
9700 (union tree_decl): Add struct for both aligns.
9701 (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
9702 (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
9703 (struct record_layout_info): Rework fields to have offset
9704 alignment and byte and bit position.
9705 (start_record_layout, place_field): Renamed from old names.
9706 (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
9707 (byte_position, int_byte_position): Likewise.
9708 (get_inner_reference): Change types of position and length.
9709 * unroll.c (unroll_loop): New variable R; use for some loops.
9710 MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
9711 (calculate_giv_inc): Arg REGNO now unsigned.
9712 (copy_loop_body): REGNO and SRC_REGNO now unsigned.
9713 * varasm.c (assemble_variable): Clean up handling of size using
9714 host_integerp and tree_low_cst.
9715 (decode_addr_const): Use byte, not bit, position.
9716 (output_constructor): bitpos and offsets are HOST_WIDE_INT;
9717 use tree_low_cst and int_bit_position.
9718 * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
9720 Fri Mar 24 20:13:49 2000 Jason Eckhardt <jle@cygnus.com>
9722 * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
9723 (reorder_block_def): New members eff_head and eff_end.
9724 (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
9725 (verify_insn_chain): New function.
9726 (skip_insns_between_block): Add code to skip deleted insns.
9727 Check for note before using.
9728 (chain_reorder_blocks): Replace calls to skip_insns_between_block
9729 with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
9730 Check for note before using.
9731 (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
9732 (fixup_reorder_chain): Restructure, clean up, defect removal.
9733 (reorder_basic_blocks): Remove last_insn and references to it.
9734 Moved insn chain verification code into a new function (see above).
9735 Delete defective code that sets last insn.
9736 Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
9739 2000-03-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9741 * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
9743 2000-03-24 Richard Henderson <rth@cygnus.com>
9745 * tree.c (lang_safe_for_unsave): Remove.
9746 (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
9747 allowing for two levels of unsafeness. Remove lang hook.
9748 * tree.h: Update declarations.
9749 * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
9750 Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
9751 Always fail sibcalls when there are pending cleanups.
9753 2000-03-24 Geoff Keating <geoffk@cygnus.com>
9755 * flow.c (propagate_block): When we delete an ADDR_VEC,
9756 also delete the BARRIER following it if there is one.
9758 2000-03-24 Richard Henderson <rth@cygnus.com>
9760 * builtins.c (expand_builtin_bzero): Convert `length' argument
9763 2000-03-24 Jakub Jelinek <jakub@redhat.com>
9765 * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
9766 comparison if regno's are equal.
9767 * calls.c (initialize_argument_informat): Add ecf_flags argument.
9768 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
9769 (expand_call): Update caller.
9770 Avoid making a sibling call if argument size of the callee is larger
9771 than argument size of the caller.
9772 Call hard_function_value with outgoing set if in sibcall pass.
9773 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
9775 * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
9776 Change LEAF_REGISTERS from an array initializer to actual array
9777 identifier. Move static global variable into the function.
9778 (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
9779 sequences for leaf functions.
9780 * global.c (global_alloc): Likewise.
9781 * tm.texi (LEAF_REGISTERS): Update documentation.
9783 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
9784 TARGET_FLAT leaf disabling hack.
9785 (LEAF_REGISTERS): Changed from an array initializer to actual array
9786 identifier to avoid duplication and remove the above hack.
9787 (FUNCTION_OK_FOR_SIBCALL): Define.
9788 * config/sparc/sparc.md (sibcall): New attr type. Use it almost
9789 always like call attribute.
9790 (eligible_for_sibcall_delay): New attribute.
9791 (sibcall): New delay type.
9792 (sibcall, sibcall_value, sibcall_epilogue): New expands.
9793 (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
9794 sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
9795 * config/sparc/sparc.c (sparc_leaf_regs): New array.
9796 (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
9798 (output_function_epilogue): Move part of the code into
9799 output_restore_regs.
9800 (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
9802 * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
9805 * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
9806 until infrastructure is finished.
9808 Fri Mar 24 13:49:45 2000 Jeffrey A Law (law@cygnus.com)
9810 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
9811 (save_parm_insns): Not here.
9813 2000-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9815 * builtins.c (expand_builtin_bzero): New function.
9816 (expand_builtin): Handle bzero.
9818 * builtins.def: Add BUILT_IN_BZERO.
9820 * c-common.c (c_common_nodes_and_builtins): Provide builtin
9821 prototype & function for bzero.
9823 2000-03-23 Michael Meissner <meissner@redhat.com>
9825 * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
9826 change adding TARGET_FP to the TF floating point insns, except for
9827 trunctfsf2, which generates direct calls to truncdfsf2.
9829 2000-03-23 Geoff Keating <geoffk@cygnus.com>
9831 * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
9832 try to protect against middle-end changes that break binary
9834 (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
9836 2000-03-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9838 * config/c4x/c4x.md (load_immed_address): Add DP reg clobber.
9840 Thu Mar 23 17:10:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9842 * calls.c (expand_call): If TARGET is passed by reference and
9843 is readonly, write a CLOBBER.
9845 2000-03-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9847 * builtins.c (expand_builtin): Handle bcmp.
9849 * builtins.def: Add BUILT_IN_BCMP.
9851 * c-common.c (c_common_nodes_and_builtins): Provide builtin
9852 prototype & function for bcmp.
9854 Thu Mar 23 11:34:39 2000 Jim Wilson <wilson@cygnus.com>
9856 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
9857 (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
9858 * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
9860 Thu Mar 23 16:04:40 2000 Andrew Haley <aph@cygnus.com>
9862 * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
9863 alternative when using -fp64 -gp32.
9865 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
9867 * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
9868 * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
9869 * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
9871 * frame.h (frame_state): Revert last change.
9872 * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
9873 * libgcc2.c (throw_helper): Revert last change.
9875 2000-03-22 Richard Henderson <rth@cygnus.com>
9877 * stmt.c (expand_asm_operands): Don't promote the temporary.
9879 2000-03-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
9881 * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
9882 * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
9883 c_get_alias_set): Likewise.
9884 * c-decl.c (duplicate_decls): Likewise.
9885 * c-typeck.c (default_conversion,build_unary_op): Likewise.
9886 * calls.c (initialize_argument_information): Likewise.
9887 * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
9889 * dwarfout.c (decl_class_context,output_type): Likewise.
9890 * expr.c (get_inner_reference): Likewise.
9891 * fold-const.c (simple_operand_p,fold): Likewise.
9892 * function.c (aggregate_value_p): Likewise.
9893 * stmt.c (expand_asm_operands): Likewise.
9894 * varasm.c (named_section): Likewise.
9896 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
9898 Implement dwarf2 exception handling for the ARM.
9899 * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
9900 (DWARF_FRAME_RETURN_COLUMN): Define.
9901 * config/arm/arm.c (emit_multi_reg_push): Return rtx. Attach
9902 REG_FRAME_RELATED_EXPR note.
9903 (emit_sfm): Likewise.
9904 (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
9905 * dwarf2out.c (reg_save): Handle saving a register to itself.
9906 (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
9907 * except.c (eh_regs): Don't use the static chain reg if it's
9909 * frame.h (frame_state): Add cfa_saved field.
9910 * frame.c (execute_cfa_insn): Set it.
9911 * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
9913 * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
9915 (instantiate_virtual_regs): Adjust.
9917 * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
9918 * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
9919 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
9921 * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
9922 (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
9924 2000-03-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9926 * builtins.def: New file.
9928 * Makefile.in (TREE_H): Depend on builtins.def.
9930 * builtins.c (built_in_names): Use builtins.def.
9932 * tree.h (built_in_function): Likewise.
9934 2000-03-22 Mark Mitchell <mark@codesourcery.com>
9936 * tree.c (size_in_bytes): Return size_zero_node, not
9939 2000-03-22 Geoff Keating <geoffk@cygnus.com>
9941 * config/fp-bit.c (pack_d): Correct the case when a denormal
9942 is rounded up and stops being denormal.
9944 2000-03-21 Richard Henderson <rth@cygnus.com>
9946 * config/alpha/alpha.c (function_arg): Check for void_type_node
9947 before using MUST_PASS_IN_STACK.
9949 2000-03-21 Stephane Carrez <stcarrez@worldnet.fr>
9951 * regmove.c (combine_stack_adjustments_for_block): Check that
9952 the stack pointer is a valid memory address.
9954 Wed Mar 22 11:44:50 MET 2000 Jan Hubicka <jh@suse.cz>
9956 * calls.c: re-install Mar 16 emit_library_call merge.
9958 2000-03-21 Jakub Jelinek <jakub@redhat.com>
9960 * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
9961 we cannot be sure that if reload_completed base register will
9962 be properly aligned.
9964 2000-03-21 Richard Henderson <rth@cygnus.com>
9966 * flow.c (delete_block): Fix typo last change.
9968 2000-03-21 Mark Mitchell <mark@codesourcery.com>
9970 * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
9971 not COMPLETE_TYPE_P, to check the type of the expression.
9973 2000-03-21 Michael Meissner <meissner@redhat.com>
9975 * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
9976 all floating point insns that just tested the macro
9977 TARGET_HAS_XFLOATING_LIBS.
9978 (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
9979 used to only use the gprs.
9981 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
9983 * tree.h (COMPLETE_TYPE_P): New macro.
9984 (COMPLETE_OR_VOID_TYPE_P): New macro.
9985 (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
9986 * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
9987 * c-aux-info.c (gen_type): Use them.
9988 * c-common.c (c_expand_expr_stmt): Likewise.
9989 * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
9990 grokdeclarator, grokparms, finish_struct, start_function,
9991 store_parm_decls, combine_parm_decls): Likewise.
9992 * c-parse.y (cast_expr): Likewise.
9993 * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
9994 c_size_in_bytes, c_alignof, build_component_ref,
9995 build_indirect_ref, build_array_ref, convert_arguments,
9996 build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
9997 * calls.c (initialize_argument_information): Likewise.
9998 * convert.c (convert_to_integer): Likewise.
9999 * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
10000 * dwarfout.c (location_or_const_value_attribute,
10001 output_enumeration_type_die, output_structure_type_die,
10002 output_union_type_die, output_type): Likewise.
10003 * expr.c (safe_from_p, expand_expr): Likewise.
10004 * function.c (assign_parms): Likewise.
10005 * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
10006 * tree.c (build_array_type, build_function_type,
10007 build_method_type, build_offset_type, build_complex_type): Likewise.
10008 * c-parse.c, c-parse.h: Regenerated.
10010 2000-03-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10012 * config/c4x/rtems.h: Include config/rtems.h.
10014 Tue Mar 21 09:24:00 2000 Denis Chertykov <denisc@overta.ru>
10016 * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
10017 decl is a FUNCTION_DECL
10019 Mon Mar 20 19:53:53 2000 Jim Wilson <wilson@cygnus.com>
10021 * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
10022 function uses output registers. Don't save RP for leaf functions.
10023 Do save RP even if no epilogue.
10024 * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
10025 (CALL_USED_REGISTERS): Unmark in registers.
10026 (REG_ALLOC_ORDER): Move out regs up, to near the top. Move in regs up,
10027 to near the middle.
10029 2000-03-20 Geoff Keating <geoffk@cygnus.com>
10031 * config/rs6000/rs6000.md (bunordered): New expander.
10032 (bordered): New expander.
10033 (buneq): New expander.
10034 (bunge): New expander.
10035 (bungt): New expander.
10036 (bunle): New expander.
10037 (bunlt): New expander.
10038 (bltgt): New expander.
10040 * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
10041 (ccr_bit_negated_p): New function.
10042 (print_operand): For %C, generate appropriate cror for UNEQ,
10043 UNLT, UNGT, and LTGT. For %T and %t, use ccr_bit_negated_p.
10045 2000-03-20 Andreas Jaeger <aj@suse.de>
10047 * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
10050 * tree.h (safe_for_unsave): Prototype.
10052 2000-03-20 Richard Henderson <rth@cygnus.com>
10054 * regmove.c (stack_memref_p): Fix typo, reorg for readability.
10055 (combine_stack_adjustments_for_block): Don't allow sp references
10056 in the side of a set we're not fixing up.
10057 * toplev.c (rest_of_compilation): Run combine_stack_adjustments
10058 after life_analysis.
10060 2000-03-20 Richard Henderson <rth@cygnus.com>
10062 * calls.c (expand_call): Don't bother generating tail call
10063 sequences if there are pending cleanups. Use
10064 expand_start_target_temps/expand_end_target_temps to elide
10065 cleanups created during sibcall expansion.
10067 2000-03-20 Geoff Keating <geoffk@cygnus.com>
10069 * configure.in: Set $IFS to a value if it doesn't already have one
10070 in the --enable-checking handling.
10071 * configure: Regenerate.
10073 2000-03-20 Martin v. Löwis <loewis@informatik.hu-berlin.de>
10075 * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
10076 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
10079 Mon Mar 20 11:43:15 MET 2000 Jan Hubicka <jh@suse.cz>
10081 * jump.c (delete_noop_moves): Remove code attempting to
10082 combine stack adjustments.
10084 2000-03-19 Martin v. Löwis <loewis@informatik.hu-berlin.de>
10086 * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
10087 * except.c (emit_cleanup_handler): Use them.
10088 (expand_end_all_catch): Likewise.
10089 * function.c (fixup_var_refs): Likewise.
10090 (expand_function_end): Clear catch_clauses_last.
10091 * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
10092 * except.h (struct eh_status): New field x_catch_clauses_last.
10093 (catch_clauses_last): New define.
10095 * Makefile.in (tree.o): Depend on HASHTAB_H.
10096 * tree.c: Include hashtab.h.
10097 (struct type_hash): Remove next field.
10098 (TYPE_HASH_SIZE): Remove.
10099 (TYPE_HASH_INITIAL_SIZE): New define.
10100 (type_hash_table): Change type to htab_t.
10101 (type_hash_eq, type_hash_hash, print_type_hash_statistics,
10102 mark_hash_entry): New functions.
10103 (init_obstacks): Allocate type hash.
10104 (type_hash_lookup): Use htab functions.
10105 (type_hash_add, mark_type_hash): Likewise.
10106 (dump_tree_statistics): Call print_type_hash_statistics.
10108 2000-03-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10110 * rs6000/t-aix41: New file.
10112 * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
10114 Sun Mar 19 13:27:30 2000 Hans-Peter Nilsson <hp@axis.com>
10116 * tm.texi (Driver): Fix typos and tweak entry for
10118 Move misplaced STRUCT_FORCE_BLK entry ...
10119 (Storage Layout): ... to here.
10120 (Run-time Target): Recommend having TARGET_MASK_... helper macros.
10122 2000-03-19 Richard Henderson <rth@cygnus.com>
10124 * flow.c (delete_block): Delete the addr_vec along with the block.
10125 (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
10128 * fold-const.c (extract_muldiv): Apply type check for defined
10129 overflow to multiply as well as divide.
10131 * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
10133 2000-03-18 Mark Mitchell <mark@codesourcery.com>
10135 * emit-rtl.c (remove_unncessary_notes): Check that all
10136 NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
10137 associated NOTE_BLOCK.
10138 * function.h (identify_blocks): Update comments.
10139 (reorder_blocks): Declare.
10140 * function.c (identify_blocks): Don't take paramters.
10141 (reorder_blocks): Don't take parameters.
10142 * loop.h (find_loop_tree_blocks): Remove.
10143 (unroll_block_trees): Likewise.
10144 * loop.c (loop_optimize): Don't call find_loop_tree_blocks. Use
10145 reorder_blocks instead of unroll_block_trees.h
10146 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
10147 * stmt.c (find_loop_tree_blocks): Remove.
10148 (unroll_block_trees): Likewise.
10149 * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
10150 in whole-function mode.
10151 * tree.h (reorder_blocks): Remove declaration.
10153 * expr.c: Include intl.h.
10154 * Makefile.in (expr.o): Depend on intl.h.
10156 2000-03-18 Richard Henderson <rth@cygnus.com>
10158 * expr.c (emit_move_insn_1): Clarify cannot_inline message.
10160 2000-03-18 Mark Mitchell <mark@codesourcery.com>
10162 * tree.h (tree_index): Remove enumerals for integer types.
10163 (integer_type_kind): New type.
10164 (integer_types): New variable.
10165 (char_type_node): Adjust.
10166 (signed_char_type_node): Likewise.
10167 (unsigned_char_type_node): Likewise.
10168 (short_integer_type_node): Likewise.
10169 (short_unsigned_type_node): Likewise.
10170 (integer_type_node): Likewise.
10171 (unsigned_type_node): Likewise.
10172 (long_integer_type_node): Likewise.
10173 (long_unsigned_type_node): Likewise.
10174 (long_long_integer_type_node): Likewise.
10175 (long_long_unsigned_type_node): Likewise.
10176 * tree.c (integer_types): New variable.
10177 (init_obstacks): Register it as a root.
10179 Sat Mar 18 14:38:00 2000 Jason Eckhardt <jle@cygnus.com>
10181 * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
10182 NEXT_INSN. Update last insn in chain.
10184 2000-03-17 Jason Merrill <jason@casey.cygnus.com>
10186 * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
10187 with TYPE_DECL_SUPPRESS_DEBUG set.
10189 2000-03-18 Richard Henderson <rth@cygnus.com>
10191 * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
10193 2000-03-18 Richard Henderson <rth@cygnus.com>
10195 * i386.c (call_insn_operand): Always allow SYMBOL_REF,
10196 care for HALF_PIC_P.
10197 (expander_call_insn_operand): Remove.
10198 (ix86_expand_epilogue): New arg `emit_return' to control return insn.
10199 * i386.h (PREDICATE_CODES): Update.
10200 * i386.md (all call expanders): Remove predicates, remove special
10201 handling for half-pic.
10202 (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
10203 (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
10204 (sibcall_epilogue): New.
10206 2000-03-17 Richard Henderson <rth@cygnus.com>
10208 * rtlanal.c (single_set): Reject if the parallel has anything
10209 except SET or USE or CLOBBER.
10211 2000-03-17 Jeff Law <law@cygnus.com>
10212 Richard Henderson <rth@cygnus.com>
10214 * Makefile.in (OBJS): Add sibcall.o.
10216 * sibcall.c: New file.
10217 * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
10218 (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
10219 (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
10220 Emit sibcall patterns when requested. Update all callers.
10221 (expand_call): Generate CALL_PLACEHOLDER insns when tail call
10222 elimination seems feasable.
10223 * final.c (leaf_function_p): Sibling calls don't discount being
10225 * flow.c (HAVE_sibcall_epilogue): Provide default.
10226 (find_basic_blocks_1): Sibling calls don't throw.
10227 (make_edges): Make edge from sibling call to EXIT.
10228 (propagate_block): Don't remove sibcall_epilogue insns.
10229 * function.c (prologue, epilogue): Turn into varrays. Update all uses.
10230 (sibcall_epilogue): New.
10231 (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
10232 (identify_blocks_1): Likewise. Break out from ...
10233 (identify_blocks): ... here.
10234 (reorder_blocks_1): Scan CALL_PLACEHOLDER. Break out from ...
10235 (reorder_blocks): ... here.
10236 (init_function_for_compilation): Zap prologue/epilogue as varrays.
10237 (record_insns): Extend a varray instead of mallocing new memory.
10238 (contains): Read a varray not array of ints.
10239 (sibcall_epilogue_contains): New.
10240 (thread_prologue_and_epilogue_insns): Emit and record
10241 sibcall_epilogue patterns.
10242 (init_function_once): Allocate prologue/epilogue varrays.
10243 * genflags.c (gen_insn): Treat sibcall patterns as calls.
10244 * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
10245 Broken out from ...
10246 (save_for_inline_nocopy): ... here.
10247 (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
10248 Broken out from ...
10249 (expand_inline_function): ... here.
10250 (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
10251 (subst_constants): Handle 'n' formats.
10252 * jump.c (jump_optimize_minimal): New.
10253 (jump_optimize_1): New arg `minimal'; update callers. Elide most
10254 optimizations if it's set.
10255 * rtl.c (copy_rtx): Do copy jump & call for insns.
10256 * rtl.h (struct rtx_def): Document use of jump and call for insns.
10257 (SIBLING_CALL_P): New.
10258 (sibcall_use_t): New.
10259 * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
10260 Invoke optimize_sibling_and_tail_recursive_calls.
10261 * tree.c (lang_safe_for_unsave): New.
10262 (safe_for_unsave): New.
10263 * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
10265 * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
10266 * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
10267 (*sibcall_osf_1, *sibcall_value_osf_1): New.
10269 2000-03-17 Mark Mitchell <mark@codesourcery.com>
10271 * objc/objc-act.c (encode_method_prototype): Pass types, not
10272 PARM_DECLs, to int_size_in_bytes.
10274 Fri Mar 17 11:51:34 2000 Jim Wilson <wilson@cygnus.com>
10276 * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
10278 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10279 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
10281 Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10283 * Clean up usages of TREE_INT_CST_LOW.
10284 * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
10285 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
10287 * c-tree.h (min_precision): Move declaration to here.
10288 * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
10289 (build_unary_op, add_pending_init): Use bit_position.
10290 (pending_init_member, process_init_element): Likewise.
10291 (really_start_incremental_init, push_init_level, pop_init_level):
10292 Don't make copies of nodes or modify them in place, use consistent
10293 types when tracking positions, and use tree routines computations.
10294 (set_init_index, output_init_element): Likewise.
10295 (output_pending_init_elements, process_init_element): Likewise.
10296 * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
10297 tree_low_cst and int_bit_position; also minor cleanup.
10298 (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
10299 (print_cst_octal): Precision is unsigned.
10300 (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
10301 * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
10302 (simple_type_align_in_bits): Result is unsigned int.
10303 Use tree_int_low_cst and host_integerp.
10304 (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
10305 (field_byte_offset): Result is HOST_WIDE_INT.
10306 Change types of internal variables so alignments are unsigned int,
10307 offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
10308 Use host_integerp, tree_low_cst, and int_bit_position.
10309 (add_bit_offset_attribute): Likewise.
10310 (add_data_member_location_attribute): Use tree_cst_low.
10311 (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
10312 (add_bit_size_attribute): Use tree_low_cst.
10313 (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
10314 * dwarfout.c: Similar changes to dwarf2out.c.
10315 * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
10316 * genoutput.c (n_occurences): Return -1 for null string.
10317 (strip_whitespace): Accept null string and make into function.
10318 (scan_operands): Reflect above changes.
10319 * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
10320 (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
10321 * ssa.c (rename_registers): Add missing cast of arg to bzero.
10322 * tree.c (int_size_in_bytes): Check for too big to represent.
10323 (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
10324 * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
10326 (min_precision): Delete from here.
10327 * varasm.c (decode_addr_const): Use host_integerp, bit_position,
10328 and int_bit_position.
10329 * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
10330 (encode_method_def): Likewise.
10331 (build_ivar_list_initializer): Use int_bit_position.
10332 (generate_shared_structures): Convert size.
10333 (encode_type, encode_complete_bitfield): Use integer_zerop.
10334 (encode_bitfield): Use tree_low_cst and int_bit_position.
10336 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10338 * config/c4x/c4x.h (CPP_SPEC): Fix typo.
10340 2000-03-17 Martin v. Löwis <loewis@informatik.hu-berlin.de>
10342 * call.c (special_function_p): It is only malloc if it returns
10345 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10347 * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
10348 (C33_FLAG, TARGET_C3X): Add macros.
10349 (TARGET_SWITCHES): Add -m33 option.
10350 * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
10352 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10354 * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
10355 (PARALLEL_PACK_FLAG): Delete.
10356 (TARGET_SWITCHES): Update.
10357 (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
10359 Thu Mar 16 18:52:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10361 * fold-const.c (fold): Fix a few cases when the returned result
10362 is not of the same type as the input.
10364 2000-03-16 Nick Clifton <nickc@cygnus.com>
10366 * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
10369 2000-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10371 * libgcc2.h: Move prototypes above macros with the same name.
10372 Wrap some function prototypes in the conditional which indicates
10373 whether they are supported, i.e. "BITS_PER_UNIT == 8".
10375 2000-03-16 Richard Henderson <rth@cygnus.com>
10377 * calls.c: Revert last two changes.
10379 2000-03-16 Bernd Schmidt <bernds@cygnus.co.uk>
10381 * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
10382 has exponent 0 is a zero.
10384 * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
10385 HASH may already be nonzero. Add code/mode into hash value
10386 immediately after repeat label.
10387 (cselib_lookup): Don't leave the hash table in an inconsistent
10388 state before a hash lookup operation.
10390 Thu Mar 16 17:03:10 MET 2000 Jan Hubicka <jh@suse.cz>
10392 * i386.md (all HI and QI mode non-move patterns): Conditionize
10393 by TARGET_[HQ]IMODE_MATH.
10394 * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
10395 x86_promote_qi_regs): Declare.
10396 (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
10397 TARGET_PROMOTE_QI_REGS): New macros.
10398 (PROMOTE_MODE): New macro.
10399 * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
10400 x86_promote_qi_regs): New global variables.
10402 Thu Mar 16 16:50:44 MET 2000 Jan Hubicka <jh@suse.cz>
10404 * calls.c (emit_library_call_value_1): Break out from ...; handle
10405 VOIDmode function calls too.
10406 (emit_library_call_value): ... here.
10407 (emit_library_call): Implement by calling emit_library_call_value_1.
10409 Thu Mar 16 16:01:30 MET 2000 Jan Hubicka <jh@suse.cz>
10411 * calls.c (expand_call): Do sanity checking on arg_space_so_far.
10412 Update arg_space_so_far on stack adjustments.
10413 (emit_library_call, emit_library_call_value): Likewise; take into
10414 account arg_space_so_far and pending_stack_adjust when calculcating
10417 Thu Mar 16 09:02:19 2000 Jason Eckhardt <jle@cygnus.com>
10419 * flow.c: Move all basic block reordering code into its own file.
10420 (create_basic_block): Externalize.
10421 * bb-reorder.c: New file. Copy all basic block reordering code from
10422 flow.c to this file.
10423 (reorder_basic_blocks): Fix fencepost error in for-loop.
10424 (reorder_basic_blocks): Remove braces from single statement for-loops.
10425 * basic-block.h: Add declaration for create_basic_block.
10426 * Makefile.in: Add rules for bb-reorder.o.
10428 2000-03-16 Neil Booth <NeilB@earthling.net>
10430 * cppinit.c (handle_option): Implement #unassert directive
10431 as -A- command line option.
10432 (print_help): Update.
10433 * cpptexi.c: Update.
10435 Thu Mar 16 02:14:16 2000 Hans-Peter Nilsson <hp@bitrange.com>
10437 * md.texi (Standard Names): Document `jump'.
10439 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
10441 * calls.c (emit_call_1): Nothrow functions can still have nonlocal
10444 2000-03-15 Geoff Keating <geoffk@cygnus.com>
10446 Merge changes from newppc-branch onto trunk.
10448 2000-03-15 Geoff Keating <geoffk@cygnus.com>
10450 * rs6000.c (toc_hash_table): Update for new hash table functions.
10451 (toc_hash_function): Likewise.
10452 (toc_hash_eq): Likewise.
10453 (toc_hash_mark_entry): Likewise.
10454 (toc_hash_mark_table): Likewise.
10455 (output_toc): Likewise.
10456 (rs6000_add_gc_roots): Likewise.
10458 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10460 * t-aix43 (AR_FOR_TARGET): Deleted. Moved `-X32_64'...
10461 (AR_FLAGS_FOR_TARGET): here. New macro.
10463 2000-03-05 Clinton Popetz <cpopetz@cygnus.com>
10465 * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
10466 fpmem_operand) Delete.
10468 (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
10469 (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
10470 (rs6000_save_machine_status, rs6000_restore_machine_status,
10471 rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
10472 references to above variables.
10473 (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
10474 * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
10475 DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
10476 (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
10477 (XER_REGNO_P, XER_REGNO): New.
10478 (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
10479 (PREDICATE_CODES): Change fpmem_operand to xer_operand.
10480 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
10482 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
10483 REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS, and remove FLOAT_OR_FPMEM_REGS.
10484 (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
10486 2000-02-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10488 * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
10489 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
10490 * rs6000.h: from here.
10492 * rs6000-protos.h (rs6000_select_section): Provide prototype.
10493 (rs6000_select_rtx_section): Likewise.
10494 (rs6000_encode_section_info): Likewise.
10495 (sdata_section): Likewise.
10496 (sdata2_section): Likewise.
10497 (sbss_section): Likewise.
10498 * sysv4.h (rs6000_select_section): Delete prototype.
10499 (rs6000_select_rtx_section): Likewise.
10500 (rs6000_encode_section_info): Likewise.
10501 (sdata_section): Likewise.
10502 (sdata2_section): Likewise.
10503 (sbss_section): Likewise.
10504 (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
10506 * sysv4.h: Delete various unnecessary #undef's and put a comment
10507 on the remaining ones.
10508 Change various comments according to coding standard.
10510 2000-02-29 Clinton Popetz <cpopetz@cygnus.com>
10512 * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
10513 CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
10514 (CR0_REGNO_P) Remove.
10515 * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
10516 setup_incoming_varargs, mtcrf_operation, print_operand,
10517 rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
10518 Use the above macros.
10520 2000-02-24 Clinton Popetz <cpopetz@cygnus.com>
10522 * config/rs6000/rs6000.md: Added a new alternative for each
10523 pattern that had a 'x' alternative but no 'y' alternative.
10524 Added a new split for each of the above patterns.
10526 2000-02-18 Geoff Keating <geoffk@cygnus.com>
10528 * aix41.h (ASM_CPU_SPEC): Delete.
10529 (CPP_CPU_SPEC): Delete.
10531 * aix.h (RS6000_OUTPUT_BASENAME): Define.
10532 (ASM_OUTPUT_LABEL): Define.
10533 (ASM_GLOBALIZE_LABEL): Define.
10534 (STRIP_NAME_ENCODING): Define.
10535 * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
10536 (STRIP_NAME_ENCODING): Don't define.
10537 (ASM_OUTPUT_LABEL): Don't define.
10538 (ASM_GLOBALIZE_LABEL): Don't define.
10539 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
10540 names, and ASM_OUTPUT_LABEL to output labels, rather than
10542 (ASM_OUTPUT_LABEL): Define.
10543 (ASM_OUTPUT_INT): Use assemble_name.
10544 (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
10545 (STRIP_NAME_ENCODING): Don't undefine first.
10546 (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
10548 (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
10549 specified with 'asm' even with -fleading-underscore.
10550 * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
10551 (output_epilog): Likewise.
10552 (output_toc): Likewise.
10553 * tramp.asm: Handle -fleading-underscore correctly.
10555 * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
10557 (nonlocal_goto_receiver): Delete.
10558 * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
10560 * rs6000.h (ASM_OUTPUT_DEF): Don't define.
10561 (SET_ASM_OP): Define.
10562 * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
10564 * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
10565 (ASM_LONG): Define.
10567 * rs6000.c (rs6000_dll_import_ref): Delete, not used.
10568 * rs6000-protos.h (rs6000_dll_import_ref): Delete.
10570 * rs6000.h: Add 'u' to more constants.
10572 2000-02-18 David Edelsohn <edelsohn@gnu.org>
10574 * rs6000.md (mfcr+shift): Delete PowerPC64 version.
10576 2000-02-15 David Edelsohn <edelsohn@gnu.org>
10578 * rs6000.c (reg_or_u_cint_operand): New function.
10579 (logical_operand): Handle 64-bit hosts.
10580 (logical_u_operand): New function.
10581 (non_logical_cint_operand): Handle 64-bit hosts.
10582 (non_logical_u_cint_operand): New function.
10583 * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
10584 (PREDICATE_CODES): Define new functions.
10585 * rs6000-protos.h: Declare new functions.
10586 * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
10587 (movdi_64): Bracket code intended for 64-bit hosts. Create
10588 CONST_DOUBLE for 32-bit values.
10589 (scc insns): Generate DImode compares.
10590 (mfcr insns): Create DImode versions.
10591 (sge matchers): New patterns.
10593 2000-02-15 Gabriel Paubert <paubert@iram.es>
10595 * rs6000.md: Correct instructions length attributes and
10596 constraints on unsigned compare instructions.
10597 (*ne0): Disable for PowerPC64.
10599 2000-02-11 Geoff Keating <geoffk@cygnus.com>
10601 * rs6000.c (output_function_profiler): Use .long for a 32-bit
10602 quantity, fix profile1.C test failure under -fPIC.
10604 * rs6000.c: Add 'u' to many constants to suppress warnings.
10605 (constant_pool_expr_1): Make static.
10606 (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
10607 * rs6000.h: Add 'u' to many constants to suppress warnings.
10609 * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
10610 for the start of the TOC, instead of LCTOC..0.
10611 * aix.h (toc_section): Use LCTOC..1 under AIX for the start
10613 * rs6000.md (load_toc_aix_si): Use LCTOC..1.
10614 (load_toc_aix_di): Use LCTOC..1.
10616 * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
10617 * rs6000.c (rs6000_legitimize_address): New function from
10618 LEGITIMIZE_ADDRESS. Only use create_TOC_reference on
10619 symbols in the constant pool that really are TOC references.
10620 (print_operand_address): For ELF, write TOC offsets under
10621 -fPIC as subtractions in the insn.
10622 (output_toc): For ELF, define symbols in TOC as normal labels,
10624 (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
10625 * rs6000-protos.h (rs6000_legitimize_address): Prototype.
10626 (create_TOC_reference): Prototype only when RTX_CODE is defined.
10627 * rs6000.md (movsi): Only use create_TOC_reference on
10628 symbols in the constant pool that really are TOC references.
10630 * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
10631 * rs6000.c (rs6000_reorg): Delete.
10632 * rs6000-protos.h (rs6000_reorg): Delete.
10634 2000-02-09 Geoff Keating <geoffk@cygnus.com>
10636 * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
10638 * aix.h (SETUP_FRAME_ADDRESSES): Define.
10639 * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
10640 [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
10641 [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
10642 * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
10643 rs6000_aix_emit_builtin_unwind_init.
10644 * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
10645 rs6000_emit_eh_toc_restore on AIX.
10646 (return_eh_si): Use r2.
10647 (return_eh_di): Use r2.
10649 * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
10650 since we're breaking binary compatibility anyway.
10652 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
10654 * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
10655 constant_pool_expr_p): Declare them.
10656 (constant_pool_expr_p): Declare it.
10657 * config/rs6000/rs6000.c (toc_label_name): Define.
10658 (rs6000_override_options): Set toc_label_name.
10659 (input_operand): Allow any TOC_RELATIVE_EXPR_P.
10660 (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
10661 uses_TOC): New functions.
10662 (print_operand): Delete old '*' case.
10663 (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
10664 and strip off rtl for TOC before calling output_addr_const.
10665 (rs6000_emit_load_toc_table): Use toc_label_name.
10666 * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
10668 (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
10669 (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
10670 (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
10671 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
10672 into explicit TOC_REGISTER offsets.
10673 (TOC_REGISTER): New macro.
10674 * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
10675 TARGET_TOC to reference TOC_REGISTER.
10676 (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
10677 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
10678 uses_TOC before emitting label references.
10680 2000-02-05 Geoff Keating <geoffk@cygnus.com>
10682 * rs6000.md (stack_tie): Fix warning.
10684 * eabi-ctors.c: Use 'asm' names for the start/end variables,
10685 to handle -fleading-underscore.
10686 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
10687 (USER_LABEL_PREFIX): New macro.
10688 (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
10689 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
10690 * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
10691 call-linux can use the same multilibs.
10692 * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
10693 and call-linux multilibs. Do multilib with -fleading-underscore.
10694 (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
10695 (MULTILIB_EXCEPTIONS): Remove call-linux exceptions. Add restrictions
10698 * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
10699 have MASK_SOFT_FLOAT set.
10700 (CPP_FLOAT_DEFAULT_SPEC): New macro.
10701 (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
10702 CPP_FLOAT_DEFAULT_SPEC.
10704 * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
10705 * rs6000.md: Whitespace change.
10706 * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
10707 * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
10709 2000-02-05 Geoff Keating <geoffk@cygnus.com>
10711 * rs6000.md (eh_epilogue): New expander.
10712 (eh_reg_restore): New expand/split/insn combination.
10713 (return_eh_si): New insn.
10714 (return_eh_di): New insn.
10716 * eabi-ci.asm: Put a label at the start of the .eh_frame section.
10717 * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
10718 * eabi-ctors.c (__do_global_ctors): Register this object's
10719 frame. Clean up. Call atexit() after the constructors.
10720 (__do_global_dtors): Deregister this object's frame. Clean up.
10721 Allow for recursive calls to exit().
10722 * rs6000.c (fixuplabelno): New variable.
10723 * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
10724 TARGET_RELOCATABLE, it slows down exec() under linux.
10725 (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
10727 * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
10728 (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
10729 (ASM_OUTPUT_DWARF_DELTA2): New macro.
10730 (ASM_OUTPUT_DWARF_DELTA4): New macro.
10731 (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
10732 (ASM_OUTPUT_DWARF_ADDR): New macro.
10733 (ASM_OUTPUT_DWARF_DATA4): New macro.
10734 (ASM_OUTPUT_DWARF_DATA2): New macro.
10735 (ASM_OUTPUT_DWARF_OFFSET4): New macro.
10736 (ASM_OUTPUT_DWARF_OFFSET): New macro.
10737 (UNALIGNED_INT_ASM_OP): New macro, fake definition.
10739 2000-02-03 Geoff Keating <geoffk@cygnus.com>
10741 * rs6000.c (rs6000_sr_alias_set): New variable.
10742 (rs6000_override_options): Initialise rs6000_sr_alias_set.
10743 (rs6000_emit_stack_tie): New function.
10744 (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
10745 in a way that dwarf2out can understand.
10746 (rs6000_frame_related): New function.
10747 (rs6000_emit_prologue): Use rs6000_sr_alias_set. Specify
10748 RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
10749 Use rs6000_emit_stack_tie when needed.
10750 (rs6000_emit_epilogue): Use rs6000_sr_alias_set. Don't set
10751 RTX_FRAME_RELATED_P. Use rs6000_emit_stack_tie when needed.
10752 * rs6000.md (stack_tie): New insn.
10753 (return_internal_si): Allow return value to be in the count
10755 (return_internal_di): Likewise.
10757 * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
10759 2000-02-03 Geoff Keating <geoffk@cygnus.com>
10761 * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
10763 2000-01-31 Geoff Keating <geoffk@cygnus.com>
10765 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
10767 * rs6000.md (stmw): Use the right POWER opcode.
10770 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10772 * rs6000-protos.h: New file.
10774 * rs6000.c: Include tm_p.h. Fix compile time warnings.
10776 * rs6000.h: Move prototypes to rs6000-protos.h. Fix compile time
10779 * sysv4.h: Likewise.
10781 2000-01-28 Geoff Keating <geoffk@cygnus.com>
10783 * ../../configure.in: Delete powerpcle-*-winnt*
10784 and powerpcle-*-pe|powerpcle-*-cygwin*.
10785 * ../../configure: Regenerated.
10786 * cygwin.h: Delete.
10787 * rs6000.h (OBJECT_WINDOWS_NT): Delete.
10788 (TARGET_WINDOWS_NT): Delete.
10790 (CALL_NT_DLLIMPORT): Delete.
10791 Delete NT-specific code.
10792 * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
10793 * win-nt.h: Delete.
10795 * nt-ci.asm: Delete.
10796 * nt-cn.asm: Delete.
10797 * ntstack.asm: Delete.
10799 2000-01-27 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10801 * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
10802 (ASM_FILE_START): Likewise.
10803 (ASM_DECLARE_FUNCTION_NAME): Likewise.
10804 (ASM_OUTPUT_LABELREF): Likewise.
10805 (ASM_OUTPUT_SKIP): Likewise.
10806 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
10807 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
10808 (ASM_OUTPUT_CASE_LABEL): Likewise.
10809 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10810 (ASM_OUTPUT_ASCII): Likewise.
10812 2000-01-27 Clinton Popetz <cpopetz@cygnus.com>
10814 * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
10815 reload_toc_labelno for non-prologue TOC reloads. Also, don't
10816 increment rs6000_pic_labelno here.
10817 (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
10818 and increment rs6000_pic_labelno here.
10820 2000-01-24 Geoffrey Keating <geoffk@cygnus.com>
10822 * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
10823 rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
10824 allocation knows (reg) is dead before the insn.
10826 2000-01-21 Geoff Keating <geoffk@cygnus.com>
10828 * rs6000.md (movsi_to_cr): Correct typo in output template.
10830 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
10832 * rs6000.c (rs6000_pic_labelno): Always define.
10833 (rs6000_pic_func_labelno): Delete.
10834 (lmw_operation): Check for a zero base register,
10835 which doesn't mean what we want.
10836 (stmw_operation): New function.
10837 (print_operand): Define new 'l' modifier.
10838 (rs6000_stack_info): We must save all 64 bits of the registers
10839 if TARGET_POWERPC64.
10840 (rs6000_output_load_toc_table): Delete.
10841 (rs6000_emit_load_toc_table): New function.
10842 (rs6000_allocate_stack_space): Delete.
10843 (rs6000_emit_allocate_stack): New function.
10844 (rs6000_emit_prologue): New function.
10845 (output_prolog): Use rs6000_emit_prologue.
10846 (rs6000_emit_epilogue): Change a few variable names to be
10847 more accurate. Restore all 64 bits of the registers if
10848 TARGET_POWERPC64. Only restore the FP registers which were used
10849 if they are being saved/restored one-at-a-time.
10850 (output_mi_thunk): Delete inefficient code generation.
10851 (output_function_profiler): Don't use rs6000_output_load_toc_table.
10852 * rs6000.h: Declare rs6000_emit_load_toc_table,
10853 rs6000_allocate_stack_space, stmw_operation. Don't declare
10854 rs6000_output_load_toc_table.
10855 * rs6000.md (elf_high): Allow register 0, but discourage it
10857 (elf_low): Support loading into register 0.
10858 (load_toc_aix_si): New pattern.
10859 (load_toc_aix_di): New pattern.
10860 (load_toc_v4_pic_si): New pattern.
10861 (load_toc_v4_pic_di): New pattern.
10862 (load_toc_v4_PIC_1): New pattern.
10863 (load_toc_v4_PIC_1b): New pattern.
10864 (load_toc_v4_PIC_2): New pattern.
10865 (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
10866 (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
10867 (prologue): New expander.
10868 (movesi_from_cr): New pattern.
10869 (stmw): New pattern.
10870 (save_fpregs_si): New pattern.
10871 (save_fpregs_di): New pattern.
10873 2000-01-19 Geoff Keating <geoffk@cygnus.com>
10875 * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
10880 2000-01-19 Geoff Keating <geoffk@cygnus.com>
10882 * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
10884 (movsi_got_internal): Likewise.
10885 (movsi_got_internal+1): Likewise.
10886 (set_sp): 'unspec 7' does a SImode clobber.
10888 2000-01-19 Geoff Keating <geoffk@cygnus.com>
10890 * rs6000.md (floatsidf2): Don't use the fpmem "register", just
10891 allocate a stack temporary.
10892 (floatsidf2_internal): Likewise.
10893 (floatsidf2_internal+1): Likewise. Don't do bizzare hacks
10895 (floatunssidf2): Don't use the fpmem "register", just
10896 allocate a stack temporary.
10897 (floatunssidf2_internal): Likewise.
10898 (floatunssidf2_internal+1): Likewise. Don't do bizzare hacks
10900 (floatsidf2_loadaddr): Delete.
10901 (floatsidf2_store1): Delete.
10902 (floatsidf2_store2): Delete.
10903 (floatsidf2_load): Delete.
10904 (fix_truncdfsi2): Don't use the fpmem "register", just
10905 allocate a stack temporary.
10906 (fix_truncdfsi2_internal_si): Delete.
10907 (fix_truncdfsi2_internal_di): Delete.
10908 (fix_truncdfsi2_internal): New insn.
10909 (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
10910 (fix_truncdfsi2_store): Delete.
10911 (fix_truncdfsi2_load): Delete.
10912 (fctiwz): Produce gen_fctiwz.
10914 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
10916 * eabi.h (INVOKE__main): Define.
10917 * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
10919 (rs6000_emit_prologue): Likewise.
10920 * rs6000.h (struct rs6000_stack): Don't keep track of whether
10921 this is the main program.
10923 2000-01-19 Geoff Keating <geoffk@cygnus.com>
10925 * rs6000.c (rs6000_va_arg): Delete some unused variables.
10927 2000-01-19 Geoff Keating <geoffk@cygnus.com>
10929 * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
10930 goes after the argument.
10932 2000-01-12 Geoff Keating <geoffk@cygnus.com>
10934 * rs6000.md: Document 'unspec' values used.
10935 (epilogue): New expander.
10936 (movesi_to_cr_one): New expander.
10937 (movesi_to_cr and following): New pattern.
10938 (lmw): New pattern.
10939 (return_internal_si): New pattern.
10940 (return_internal_di): New pattern.
10941 (return_and_restore_fpregs_si): New pattern.
10942 (return_and_restore_fpregs_di): New pattern.
10943 * rs6000.h: Declare new functions.
10944 * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
10945 rather than rs6000_calls_p.
10946 (rs6000_makes_calls): Delete.
10947 (lmw_operation): New function.
10948 (mtcrf_operation): New function.
10949 (rs6000_emit_epilogue): New function.
10950 (output_epilog): Call rs6000_emit_epilogue and final if
10951 !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
10953 2000-01-12 Geoff Keating <geoffk@cygnus.com>
10955 * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
10956 * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
10957 * aix.h (SUBTARGET_SWITCHES): Document switches.
10958 * rs6000.h: (TARGET_SWITCHES): Don't print options twice. Make
10959 sched-prolog and sched-epilog the same. Document all the
10961 (TARGET_OPTIONS): No longer allow -mdebug-.
10963 2000-01-12 Geoff Keating <geoffk@cygnus.com>
10965 * rs6000.h (ASM_FILE_END): Move to aix.h.
10966 (EXTRA_SECTIONS): Move to aix.h.
10967 (READONLY_DATA_SECTION): Move to aix.h.
10968 (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
10969 (SELECT_SECTION): Move to aix.h.
10970 (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
10971 (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
10972 (LINK_REGISTER_REGNUM): New definition.
10973 (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
10974 (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
10976 * sysv4.h: Delete the code between the inclusion of rs6000.h
10978 (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
10979 (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
10980 (RS6000_REG_SAVE): Move generic definition to rs6000.h.
10981 (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
10982 * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
10983 (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
10984 (fix_truncdfsi2_internal_di): New pattern.
10985 (fix_truncdfsi2_store): The second arg here is Pmode too.
10986 (fix_truncdfsi2_load): The second arg here is Pmode too.
10987 (tablejumpdi): Now that switch tables hold only SImode values,
10988 gcc needs to know how to add them to the pc which is DImode.
10989 * rs6000.c (rs6000_stack_info): Use symbolic name for
10990 LINK_REGISTER_REGNUM.
10991 (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
10992 (output_toc): Delete unused variables s1 and s2.
10993 (output_ascii): Use fputs not fprintf on a variable string.
10995 2000-01-07 David Edelsohn <edelsohn@gnu.org>
10997 * rs6000.c (processor_target_table): Add power3 as alias for 630.
10998 * aix43.h: Revert Aug 2 change.
10999 (HAS_INIT_SECTION): Define, not visible yet.
11000 (LD_INIT_SWITCH): Define, not visible yet.
11001 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
11003 2000-01-04 Joel Sherrill (joel@OARcorp.com>
11005 * config/rs6000/rtems.h: Include config/rtems.h.
11007 2000-01-04 David Edelsohn <edelsohn@gnu.org>
11009 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
11010 (SLOW_UNALIGNED_ACCESS): Define.
11011 (CASE_VECTOR_MODE): Always use 32-bit offsets.
11012 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
11013 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
11014 (toc_section): Likewise and .toc pseudo-op.
11015 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
11017 (TEXT_SECTION_ASM_OP): Likewise.
11018 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
11021 1999-12-17 Jakub Jelinek <jakub@redhat.com>
11023 * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
11024 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
11027 2000-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11029 * rs6000.h: Move more stuff from here...
11031 * sysv4.h: Cleanup accordingly.
11032 * netware.h: Likewise
11034 2000-01-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11036 * rs6000.h: Continue cleanup.
11038 * lynx.h: Likewise.
11039 * netware.h: Likewise.
11040 * sol2.h: Likewise.
11041 * sysv4.h: Likewise.
11042 * win-nt.h: Likewise.
11044 * rs6000.h (TARGET_SWITCHES): Add descriptions.
11045 (TARGET_OPTIONS): Likewise.
11047 * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
11048 (SUBTARGET_OPTIONS): Likewise.
11050 * rs6000.md: Fix compile time warnings.
11052 2000-01-04 Geoff Keating <geoffk@cygnus.com>
11054 vxworks patches from the Cygnus tree originally by
11055 Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
11056 <vmakarov@cygnus.com>.
11057 * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
11058 (ENDFILE_SPEC): Likewise.
11059 (LIB_VXWORKS_SPEC): New macro.
11060 (STARTFILE_VXWORKS_SPEC): New macro.
11061 (ENDFILE_VXWORKS_SPEC): New macro.
11062 (LINK_START_VXWORKS_SPEC): New macro.
11063 (LINK_OS_VXWORKS_SPEC): New macro.
11064 (CPP_OS_VXWORKS_SPEC): New macro.
11065 (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
11066 * vxppc.h: Rewrite to use proper configuration method.
11067 * vxppcle.h: New file.
11068 * ../../configure.in: Add powerpcle-wrs-vxworks*.
11069 * ../../configure: Rebuilt.
11071 2000-01-04 Geoff Keating <geoffk@cygnus.com>
11073 Lots of changes to rs6000.h, sysv4.h, aix.h,
11074 aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
11075 with the aim that rs6000.h is the first header
11076 included and the others override it.
11079 * x-aix41-gld: Remove.
11081 * x-aix41: Remove target-specific switches, and don't specify
11082 -Wl,-bbigtoc as we don't need it any more.
11083 * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
11084 Use t-aix43 for AIX 4.3 and above.
11085 * ../../configure: Regenerated.
11087 * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
11088 options, that don't do anything yet.
11089 (MASK_SCHED_PROLOG): New macro.
11090 (MASK_SCHED_EPILOG): New macro.
11091 (TARGET_SCHED_PROLOG): New macro.
11092 (TARGET_SCHED_EPILOG): New macro.
11094 2000-01-04 Geoff Keating <geoffk@cygnus.com>
11096 * rs6000.c: Correct comment, the `minimal' TOCs are actually
11097 one per translation unit, not one per function.
11098 (output_toc): Also do duplicate constant elimination
11099 for per-translation-unit TOCs.
11101 * rs6000.md (nonlocal_goto_receiver): Put it back as before. Add
11102 a comment explaining _exactly_ when this pattern gets used.
11103 (builtin_setjmp_receiver): New pattern for better clarity.
11104 (init_v4_pic): Move it into a section dealing with TOC registers.
11106 1999-12-30 Geoff Keating <geoffk@cygnus.com>
11108 * rs6000.c (toc_hash_table): New variable.
11109 (rs6000_hash_constant): New function.
11110 (toc_hash_function): New function.
11111 (toc_hash_eq): New function.
11112 (toc_hash_mark_entry): New function.
11113 (toc_hash_mark_table): New function.
11114 (output_toc): Don't output duplicate TOC entries in
11116 (rs6000_add_gc_roots): Add the hash table as a GC root.
11117 * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
11118 where they clearly shouldn't be. This may need to be fixed
11119 later when there is a GNU ar for AIX.
11120 * x-aix43: Don't define CLIB or AR_FOR_TARGET.
11121 Don't define BOOT_LDFLAGS as it is now not necessary.
11123 1999-12-29 Geoff Keating <geoffk@cygnus.com>
11125 * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
11126 for va_list on AIX. Use unsigned_char_type_node rather than
11127 constructing our own version on svr4.
11129 1999-12-17 Geoff Keating <geoffk@cygnus.com>
11131 * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
11132 since patently it's not.
11134 1999-12-08 Geoff Keating <geoffk@cygnus.com>
11136 * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
11137 define_expand/define_insn pair, and handle restore of the
11138 SVR4 -fpic register.
11140 Wed Mar 15 15:43:38 2000 Jeffrey A Law (law@cygnus.com)
11142 * acconfig.h (HAVE_GAS_WEAK): New define.
11143 * configure.in (assembler weak support): Check for .weak support.
11144 * config.in, configure: Rebuilt.
11145 * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
11146 HAVE_GAS_WEAK is defined.
11148 2000-03-15 Nick Clifton <nickc@cygnus.com>
11150 * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
11153 2000-03-15 Zack Weinberg <zack@wolery.cumb.org>
11155 * cppfiles.c (open_include_file): New function.
11156 (find_include_file, cpp_read_file): Use it.
11158 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
11160 * cpphash.c (dump_hash_helper): Take the slot, not the element.
11162 Wed Mar 15 14:28:54 2000 Jason Eckhardt <jle@cygnus.com>
11164 * flow.c (verify_flow_info): Check for unconditional return.
11166 Wed Mar 15 11:34:27 2000 Jim Wilson <wilson@cygnus.com>
11168 * config/ia64/ia64.md (restore_stack_nonlocal): New.
11169 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
11170 (__ia64_restore_stack_nonlocal): New.
11171 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
11173 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11175 * cpphash.c (collect_formal_parameters): Do not complain about
11176 parameter names that just start with `__VA_ARGS__'.
11178 Wed Mar 15 13:26:58 MET 2000 Jan Hubicka <jh@suse.cz>
11180 * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
11181 movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
11182 * i386.c (pentiumpro_cost): Set mul cost to 4.
11183 (x86_use_movx): Set for PPro.
11185 Wed Mar 15 13:07:05 MET 2000 Jan Hubicka <jh@suse.cz>
11187 * i386.md (ix86_compute_frame_size): stack_alignment_needed is
11188 STACK_BOUNDARY for empty frames now.
11190 2000-03-14 Mark Mitchell <mark@codesourcery.com>
11192 * stor-layout.c (layout_union): Remove.
11193 (layout_union_field): New function, split out from layout_union.
11194 (finish_union_layout): Likewise.
11195 (layout_field): Handle unions by calling layout_union_field.
11196 (finish_record_layout): Handle unions.
11197 (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
11198 QUAL_UNION_TYPE handling.
11200 Wed Feb 23 13:00:06 CET 2000 Jan Hubicka <jh@suse.cz>
11202 * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
11203 end of basic block is jump_insn, not barrier; use create_basic_block
11204 instead of creating basic block by hand.
11206 2000-03-14 Jason Eckhardt <jle@cygnus.com>
11208 * flow.c (reorder_basic_blocks): Account for barriers when writing
11209 over NEXT_INSN (last_bb->end).
11210 (verify_flow_info): Add check for missing barriers.
11212 2000-03-14 Greg McGary <gkm@gnu.org>
11214 * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
11215 * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
11216 * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
11217 __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
11218 __unbounded, __unbounded__): New keywords.
11219 * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
11220 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
11221 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
11223 2000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
11225 * cselib.h: New file.
11226 * alias.c: Include "cselib.h".
11227 (fixed_scalar_and_varying_struct_p): Accept the addresses of the
11228 MEMs as two new arguments.
11229 (get_addr): New static function.
11230 (find_base_term): Handle VALUEs.
11231 (memrefs_conflict_p): Likewise.
11232 (true_dependence): Call get_addr on the addresses.
11233 Call fixed_scalar_and_varying_struct_p with addresses that have been
11234 passed through get_addr and canon_rtx.
11235 (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
11236 with true_dependence.
11237 Call get_addr on the addresses; don't call canon_rtx on the MEMs.
11238 * loop.c: Include "cselib.h".
11239 (load_mems): Process extended basic block that enters the loop with
11240 cselib. Use that information to change initialization of the shadow
11241 register so that a constant equivalence is seen by later passes.
11242 * reload1.c: Include "cselib.h".
11243 (reload_cse_invalidate_regno): Delete function.
11244 (reload_cse_mem_conflict_p): Likewise.
11245 (reload_cse_invalidate_mem): Likewise.
11246 (reload_cse_invalidate_rtx): Likewise.
11247 (reload_cse_regno_equal_p): Likewise.
11248 (reload_cse_check_clobber): Likewise.
11249 (reload_cse_record_set): Likewise.
11250 (reg_values): Delete static variable.
11251 (invalidate_regno_rtx): Likewise.
11252 (reload_cse_delete_noop_set): New static function.
11253 (reload_cse_simplify): New static function, broken out of
11255 (reload_cse_noop_set_p): Delete unused argument INSN.
11256 Just call rtx_equal_for_cselib_p on set source and destination.
11257 (reload_cse_regs_1): Break out some code into reload_cse_simplify and
11258 reload_cse_delete_noop_set. Delete code to keep track of values; use
11259 cselib functions instead. Delete code to push/pop obstacks.
11260 (reload_cse_simplify_set): Use cselib to find equivalent values.
11261 Delete code to push/pop obstacks.
11262 (reload_cse_simplify_operands): Likewise.
11263 * rtl.def (VALUE): New rtx code.
11264 * rtl.h (union rtunion_def): New elt rt_cselib.
11265 (X0CSELIB, CSELIB_VAL_PTR): New macros.
11266 * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
11267 (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
11268 unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
11269 discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
11270 hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
11271 cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
11272 cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
11273 cselib_record_set, cselib_record_sets): New static functions.
11274 (cselib_lookup, cselib_update_varray_sizes, cselib_init,
11275 cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
11276 references_value_p): New functions.
11277 (MAX_USELESS_VALUES, REG_VALUES): New macros.
11278 (table, cselib_current_insn, next_unknown_value, cselib_nregs,
11279 n_useless_values, reg_values, callmem, cselib_obstack,
11280 cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
11281 New static variables.
11282 * varray.h (union varray_data_tag): New elt te.
11283 (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
11284 * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
11287 2000-03-14 Nick Clifton <nickc@cygnus.com>
11289 * gcc.c (do_spec_1): Catch the case where %* is used in a
11290 substitution pattern, but it has not been initialised.
11291 Issue a meaningful error message if an unrecognised operator
11292 is encountered in a spec string.
11294 2000-03-14 Richard Earnshaw <rearnsha@arm.com>
11296 * function.c (prepare_function_start): Correctly initialize
11297 cfun->stack_alignment_needed.
11299 2000-03-14 Zack Weinberg <zack@wolery.cumb.org>
11301 * cppfiles.c (find_include_file): Don't assume nshort is a
11304 Tue Mar 14 08:42:21 2000 Jeffrey A Law (law@cygnus.com)
11306 * configure.in (hppa configurations): Add pa32-regs.h to the
11307 list of tm files as appropriate.
11308 * configure: Rebuilt.
11309 * pa.c (compute_frame_size): Remove explicit knowledge about FP
11310 register numbering.
11311 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
11312 (fmpyaddoperands, fmpysuboperands): Likewise.
11313 * pa.h: Remove various definitions which depend on knowing
11314 how registers are numbered.
11315 * pa32-regs.h: New file with PA32 register numbering specific
11318 2000-03-14 Richard Henderson <rth@cygnus.com>
11320 * regmove.c (combine_stack_adjustments): New.
11321 (stack_memref_p, single_set_for_csa): New.
11322 (free_csa_memlist, record_one_stack_memref): New.
11323 (try_apply_stack_adjustment): New.
11324 (combine_stack_adjustments_for_block): New.
11325 * rtl.h (combine_stack_adjustments): Declare.
11326 * toplev.c (rest_of_compilation): Call it.
11328 * i386.md: Revert 2000-01-16 change.
11330 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
11332 * gccbug.in: Add web category, gcc specific classes.
11334 2000-03-14 Nathan Sidwell <nathan@codesourcery.com>
11336 * stor-layout.c (finalize_record_size): Fix typo.
11338 2000-03-14 Stan Shebs <shebs@apple.com>
11340 * c-typeck.c (c_alignof): Error on incomplete types.
11341 * extend.texi (Alignment): Document this.
11343 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
11345 * cppfiles.c: Include mkdeps.h.
11346 (find_include_file, read_include_file): Remove _cpp_ prefix
11347 from name, make static.
11348 (_cpp_execute_include): New function, broken out of
11351 * cpplib.c: Don't include mkdeps.h.
11352 (struct directive): Remove type field. Reorder entries. The
11353 function takes only one argument.
11354 (struct if_stack): Make type field an int.
11355 (directive_table): Rename to dtable. Generate it, the
11356 prototypes of the directive handlers, and the enum for the
11357 directive numbers, from a template macro.
11358 (do_ifndef, do_include_next, do_import): New functions.
11359 (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
11360 do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
11361 do_ident, do_assert, do_unassert, do_sccs): Take only one
11363 (do_sccs): Define always, but alter behavior based on
11365 (_cpp_handle_directive, consider_directive_while_skipping):
11366 Restructure for new directive table layout.
11368 (pass_thru_directive): Take a directive number, not a pointer
11369 to a struct directive.
11370 (parse_include): New function, broken out of do_include.
11371 (do_include, do_import, do_include_next): Use parse_include
11372 and _cpp_execute_include.
11373 (do_elif, do_else): Test for T_ELSE specifically when checking
11374 for #elif/#else after #else.
11375 (parse_ifdef): New function, broken out of do_ifdef.
11376 (validate_else): Expect a name arg without a leading #.
11377 (if_directive_name): Delete.
11378 (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
11379 directive handlers with only one argument.
11381 * cpphash.h: Update prototypes.
11382 (enum node_type): Remove entries for directives.
11383 * Makefile.in: Update dependencies.
11385 * cpphash.c (dump_hash_helper): Only dump nodes of type
11386 T_MACRO. Emit a newline after each definition.
11388 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
11390 * gccbug.in: New file.
11391 * configure.in (all_outputs): Add gccbug.
11392 * Makefile.in (install-common): Install gccbug.
11393 (GCCBUG_INSTALL_NAME): New variable.
11394 * configure: Rebuilt.
11396 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
11398 * function.c (put_var_into_stack): Use type_for_mode to calculate
11399 part_type. Use MEM_SET_IN_STRUCT_P.
11400 * expr.c (store_field): Handle CONCAT.
11401 (store_constructor): Use fields_length.
11402 * tree.c (fields_length): New fn.
11403 * tree.h: Declare it.
11405 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
11407 * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
11408 (cpplex.o): New target.
11409 * po/POTFILES.in: Add cpplex.c.
11411 * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
11412 cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
11413 cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
11414 skip_block_comment, skip_line_comment, skip_comment,
11415 copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
11416 _cpp_parse_name, skip_string, parse_string,
11417 _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
11418 _cpp_get_directive_token, find_position,
11419 _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
11420 (maybe_macroexpand, _cpp_lex_token): New functions.
11422 * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
11423 parse_goto_mark): Delete.
11424 (_cpp_handle_eof): New function.
11425 (_cpp_handle_directive): Rename from handle_directive.
11426 (_cpp_output_line_command): Rename from output_line_command.
11427 (do_if, do_elif): Call _cpp_parse_expr directly.
11428 * cppfiles.c (_cpp_read_include_file): Don't call
11429 init_input_buffer here.
11430 * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
11431 * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
11432 here; pop the token_buffer and skip the rest of the line here.
11433 * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
11436 * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
11438 (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
11439 CPP_GOTO_MARK): New macros.
11440 (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
11441 _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
11442 _cpp_read_and_prescan, _cpp_init_input_buffer,
11443 _cpp_grow_token_buffer, _cpp_get_directive_token,
11444 _cpp_handle_directive, _cpp_handle_eof,
11445 _cpp_output_line_command): Prototype them here.
11446 * cpplib.h (enum cpp_token): Add CPP_MACRO.
11447 (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
11448 quote_string, output_line_command): Remove.
11450 2000-03-13 Bernd Schmidt <bernds@cygnus.co.uk>
11452 * stmt.c (expand_end_case): RANGE may be signed, and when checking
11453 whether it is too large we must also verify that it isn't negative.
11455 2000-03-13 Jakub Jelinek <jakub@redhat.com>
11457 * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
11458 (movsi_zero_liveg0): Remove.
11459 (movsf_insn_novis_liveg0): Remove.
11461 (negsi2_not_liveg0): Rename to negsi2.
11462 (one_cmplsi2): Remove.
11463 (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
11464 (one_cmplsi2_liveg0): Remove.
11465 * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
11466 MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
11467 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
11468 (PREDICATE_CODES): Remove zero_operand.
11469 * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
11470 TARGET_BROKEN_SAVERESTORE.
11471 (zero_operand): Remove.
11472 * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
11473 -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
11475 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
11476 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
11477 TARGET_BROKEN_SAVERESTORE): Remove.
11478 * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
11480 * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
11482 * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
11485 * config/sparc/sparc.md (return_df_no_fpu): New pattern.
11487 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
11489 * cpplib.c (do_pragma_implementation): Fix off-by-one error
11490 truncating a string. Don't assume tokens are nul terminated.
11491 Problem noted by Andreas Jaeger <aj@suse.de>
11493 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
11495 * dwarf2out.c (add_name_and_src_coords_attributes): Only add
11496 DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
11497 (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
11499 2000-03-13 Richard Earnshaw <rearnsha@arm.com>
11501 * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
11502 STRUCTURE_SIZE_BOUNDARY.
11504 2000-03-13 Mark Mitchell <mark@codesourcery.com>
11506 * tree.h (record_layout_info_s): New structure.
11507 (record_layout_info): New type.
11508 (new_record_layout_info): New function.
11509 (layout_field): Likewise.
11510 (finish_record_layout): Likewise.
11511 * stor-layout.c (layout_record): Remove.
11512 (new_record_layout_info): New function.
11513 (layout_field): New function, broken out from layout_record.
11514 (finalize_record_size): Likewise.
11515 (compute_record_mode): Likewise.
11516 (finalize_type_size): New function, broken out from layout_type.
11517 (finish_record_layout): Likewise.
11518 (layout_type): Use them.
11520 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
11522 * cpphash.c: Don't include version.h.
11523 (special_symbol) [case T_VERSION]: Look for the string in
11524 hp->value.cpval; don't use version_string.
11525 * cppinit.c (initialize_builtins): Set hp->value.cpval for
11526 __VERSION__ to version_string.
11527 * Makefile.in (cpphash.o): Update deps.
11529 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
11531 Convert cpplib to use libiberty/hashtab.c.
11533 * cpplib.h (struct cpp_reader): Make hashtab and
11534 all_include_files of type 'struct htab *'. Delete HASHSIZE
11535 and ALL_INCLUDE_HASHSIZE macros.
11537 * cpphash.h: Update prototypes.
11538 (struct hashnode): Remove next, prev, and bucket_hdr members.
11539 Make length a size_t. Add hash member.
11540 (struct ihash): Remove next member. Add hash member. Make
11541 name a flexible array member.
11543 * cppfiles.c: Include hashtab.h.
11544 (include_hash): Delete.
11545 (IHASHSIZE): New macro.
11546 (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
11547 (cpp_included): Do the hash lookup here.
11548 (_cpp_find_include_file): Rewrite.
11549 (cpp_read_file): Put the "fake" hash entry into the hash
11550 table. Honor the control_macro, if it turns out we've seen
11551 the file before. Don't push the buffer here.
11552 (_cpp_read_include_file): Push the buffer here.
11553 (OMODES): New macro. Use it whenever we call open(2).
11555 * cpphash.c: Include hashtab.h.
11556 (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
11557 _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
11558 _cpp_lookup_slot): New functions.
11559 (HASHSIZE): new macro.
11560 (hashf, _cpp_install, _cpp_delete_macro): Delete.
11561 (_cpp_lookup): Use hashtab.h routines.
11563 * cppinit.c: Include hashtab.h.
11564 (cpp_reader_init): Call _cpp_init_macro_hash and
11565 _cpp_init_include_hash. Don't allocate hashtab directly.
11566 (cpp_cleanup): Just call htab_delete on pfile->hashtab and
11567 pfile->all_include_files.
11568 (initialize_builtins): Use _cpp_make_hashnode and
11569 htab_find_slot to add hash entries.
11570 (cpp_finish): Just call _cpp_dump_macro_hash.
11571 * cpplib.c: Include hashtab.h.
11572 (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
11573 create hash entries.
11574 (do_pragma_poison, do_assert): Likewise.
11575 (do_include): Don't push the buffer here. Don't increment
11576 system_include_depth unless _cpp_read_include_file succeeds.
11577 (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
11578 or htab_remove_elt.
11579 (do_pragma_implementation): Use alloca to create copy.
11581 * Makefile.in: Update dependencies.
11583 2000-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11585 * cppinit.c (cl_directive_handler): More K&R fixing.
11587 Sat Mar 11 23:54:26 2000 Jim Wilson <wilson@cygnus.com>
11589 * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
11591 * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
11593 2000-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11595 * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
11596 Change from char[] to macros.
11598 2000-03-12 Neil Booth <NeilB@earthling.net>
11600 * cppinit.c (cpp_start_read): Update indirect function
11603 Sat Mar 11 16:18:12 2000 Jim Wilson <wilson@cygnus.com>
11605 * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
11608 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
11609 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
11611 2000-03-11 Neil Booth <NeilB@earthling.net>
11613 * cppinit.c (struct pending option): Replace undef with a
11614 pointer to a directive handling routine.
11615 (struct cpp_pending): Replace separate assert_ and define_
11616 lists with one directive_ list.
11617 (new_pending_define): Rename new_pending_directive. Extra
11618 argument is the directive's handling routine.
11619 (handle_option): Update to use new_pending_directive.
11621 2000-03-11 Neil Booth <NeilB@earthling.net>
11623 * cppfiles.c (file_cleanup, _cpp_find_include_file,
11624 remap_filename, _cpp_read_include_file, actual_directory,
11625 hack_vms_include_specification): Replace bcopy(), index() etc
11626 calls. Add casts to some allocations. Make some variables
11627 pointers to const [unsigned] char.
11628 * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
11629 collect_formal_parameters): Similarly.
11630 * cppinit.c (struct pending_option, append_include_chain,
11631 cpp_options_init, cpp_reader_init, initialize_standard_includes,
11632 cpp_start_read, new_pending_define, handle_option): Similarly.
11633 * cpplib.c (cpp_define, copy_comment, do_define, do_include,
11634 do_undef, do_error, do_warning, do_pragma, do_pragma_once,
11635 do_pragma_implementation, detect_if_not_defined,
11636 do_ifdef, skip_if_group, cpp_get_token, parse_string,
11637 do_assert, do_unassert): Similarly.
11638 * cpplib.h (cpp_buffer, cpp_options): Update types. Update
11639 function prototypes.
11640 * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
11642 2000-03-10 Richard Henderson <rth@cygnus.com>
11644 * builtins.c (expand_builtin_strlen): Revert last change.
11645 Use emit_insn_before if we're at the beginning of a sequence.
11647 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
11649 * builtins.c (expand_builtin_strlen): Make sure that we have something
11650 at the beginning of the sequence.
11652 * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
11655 * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
11657 2000-03-10 Richard Henderson <rth@cygnus.com>
11659 * except.c (can_throw): Use INTVAL on a CONST_INT.
11660 (reachable_handlers): Likewise.
11661 * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
11663 2000-03-10 Andreas Jaeger <aj@suse.de>
11665 * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
11666 MD_STARTFILE_PREFIX since those are not needed on linux.
11667 (ASM_FILE_START): New, from mips/gnu.h.
11669 2000-03-09 Richard Henderson <rth@cygnus.com>
11670 Alex Samuel <samuel@codesourcery.com> and others
11672 * Makefile.in (ssa.o): New rule.
11674 (STAGESTUFF): Add *.ssa and *.ussa.
11675 (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
11676 * rtl.def (PHI): New RTL expression.
11677 * rtl.h (clear_log_links): New declaration.
11678 (convert_to_ssa): Likewise.
11679 (convert_from_ssa): Likewise.
11680 * flow.c (split_edge): If the entry node falls through to the
11681 split edge's source block, split the entry edge.
11682 (clear_log_links): New function.
11683 * toplev.c (ssa_dump): New variable.
11684 (flag_ssa): Likewise.
11685 (f_options): Add "ssa".
11686 (compile_file): Create SSA dump files.
11687 (rest_of_compilation): Go to and from SSA if enabled.
11688 (decide_d_option): Handle -de for SSA dump files.
11691 Thu Mar 9 20:01:38 2000 Jim Wilson <wilson@cygnus.com>
11693 * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
11696 2000-03-09 Benjamin Kosnik <bkoz@cygnus.com>
11698 * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
11700 Thu Mar 9 18:10:02 2000 Jeffrey A Law (law@cygnus.com)
11702 * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
11703 (MD_STARTFILE_PREFIX_1): New macro.
11705 2000-03-09 Robert Lipe <robertl@sco.com>
11707 * config/ia64/ia64.c: Include system.h.
11709 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
11711 * except.c (nothrow_function_p): If -fno-exceptions, just return.
11712 (init_eh_nesting_info): Likewise.
11714 * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
11715 (TREE_NOTHROW): Rename from TREE_RAISES.
11716 * toplev.c (rest_of_compilation): Set it.
11717 * print-tree.c (print_node): Adjust.
11718 * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
11719 (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
11720 * calls.c (emit_call_1): Add 'nothrow' parm. Add
11721 REG_EH_REGION note as appropriate.
11722 (libfunc_nothrow): New fn.
11723 (emit_library_call, emit_library_call_value): Use it.
11724 (expand_call): Check TREE_NOTHROW.
11726 * varasm.c (make_decl_rtl): Skip initial '*' when setting
11727 DECL_ASSEMBLER_NAME.
11729 2000-03-09 Andreas Jaeger <aj@suse.de>
11731 * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
11732 (TARGET_MEM_FUNCTIONS): Define.
11734 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
11736 * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
11738 * except.c (can_throw): See through a SEQUENCE.
11739 (nothrow_function_p): New fn.
11740 * except.h: Declare it.
11741 * function.c (current_function_nothrow): New var.
11742 (prepare_function_start): Initialize it.
11743 * output.h: Declare it.
11744 * toplev.c (rest_of_compilation): Set it.
11745 * dwarf2out.c (dwarf2out_begin_prologue): Use it.
11747 2000-03-09 Zack Weinberg <zack@wolery.cumb.org>
11749 * cpphash.c (collect_formal_parameters): strncmp returns 0 for
11750 match. (cpp_compare_defs): Count the nul separator when
11751 advancing over argument names.
11753 2000-03-09 Bernd Schmidt <bernds@cygnus.co.uk>
11755 * recog.c (preprocess_constraints): Matching constraints affect
11756 same alternative/different operand, not same operand/different
11759 * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
11760 register and a constant specially.
11762 2000-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11764 * libgcc2.h: New file.
11765 * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
11767 Wed Mar 8 16:19:42 2000 Jim Wilson <wilson@cygnus.com>
11769 * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
11770 * configure: Regenerate.
11771 * config/ia64: New.
11773 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
11775 * Makefile.in (LIBCPP_DEPS): New macro.
11776 (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
11777 it to declare deps.
11778 * cpperror.c: Include cpphash.h.
11779 * cppexp.c: Include cpphash.h. Remove MULTIBYTE_CHARS
11781 (lex): Don't use CPP_WARN_UNDEF.
11782 (_cpp_parse_expr): Return an int, the truth value.
11783 * cppfiles.c: Include cpphash.h.
11784 (_cpp_merge_include_chains): Move to cppinit.c and make static.
11785 * cppinit.c (include_defaults_array): Disentangle.
11786 (cpp_cleanup): Don't free the if stack here.
11787 (cpp_finish): Pop off all buffers, not just one.
11788 * cpplib.c (eval_if_expr): Return int.
11789 (do_xifdef): Rename do_ifdef.
11790 (handle_directive): Don't use CPP_PREPROCESSED.
11791 (cpp_get_token): Don't use CPP_C89.
11792 * fix-header.c: Don't use CPP_OPTIONS.
11794 * cpplib.h: Move U_CHAR, enum node_type, struct
11795 file_name_list, struct ihash, is_idchar, is_idstart,
11796 is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
11797 CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
11798 CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
11799 CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
11800 CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
11801 of _cpp_simplify_pathname, _cpp_find_include_file,
11802 _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
11803 Move struct if_stack to cpplib.c. Move struct cpp_pending to
11805 Change all uses of U_CHAR to be unsigned char instead.
11806 Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
11808 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
11810 * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
11811 (dwarf2out_begin_prologue): Set it.
11812 (output_call_frame_info): Don't emit EH unwind info for leaves.
11814 * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
11815 can occur outside of an EH region.
11816 * except.c: Correct comments about rethrow behavior.
11817 (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
11819 2000-03-08 Andrew MacLeod <amacleod@cygnus.com>
11821 * flow.c (make_edges): Always call make_eh_edge for calls.
11823 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
11825 * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
11826 (struct cpp_buffer): Remove fname and underflow fields.
11827 (struct cpp_reader): Remove get_token field.
11828 (struct include_hash): Rename to struct ihash. Add typedef to
11830 (struct if_stack): Remove fname field.
11831 (IF_STACK_FRAME): Rename to IF_STACK.
11833 * cpperror.c (print_containing_files): Trust that there are no
11834 macro buffers below the top file buffer.
11835 * cppfiles.c: Replace all references to 'struct include_hash'
11836 with 'IHASH'. Rename initialize_input_buffer to
11837 init_input_buffer. Don't set or reference cpp_buffer->fname,
11838 use buffer->ihash->name instead.
11839 * cpphash.c (special_symbol): Use cpp_file_buffer. Use NULL
11840 not CPP_NULL_BUFFER.
11841 * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
11842 IF_STACK_FRAME, IHASH not struct include_hash.
11843 * cpplib.c: Rename eval_if_expression to eval_if_expr. Remove
11844 null_underflow. Use IF_STACK not IF_STACK_FRAME, IHASH not
11845 struct include_hash, NULL not CPP_NULL_BUFFER. Remove all
11846 references to cpp_buffer->fname (delete entirely, or use
11847 ->ihash->name instead) and IF_STACK->fname.
11848 (cpp_push_buffer): Don't set new->underflow.
11849 (do_include): Use cpp_file_buffer.
11851 * cpphash.c (collect_formal_parameters): Remove duplicate
11852 increment of argslen. Pedwarn in C99 mode if __VA_ARGS__ is
11853 used as a macro argument name. Don't append "..." to namebuf
11854 for varargs macros. After we're done scanning, go through
11855 namebuf and make it NUL separated, not comma separated.
11856 (_cpp_compare_defs): Remove register tag from variables.
11857 Expect defn->argnames to be NUL separated.
11858 (_cpp_dump_definition): Expect defn->argnames to be NUL
11859 separated and in forward order.
11860 * cpphash.h: Update documentation of argnames field.
11862 2000-03-08 Richard Henderson <rth@cygnus.com>
11864 * builtins.c (expand_builtin_strlen): Be prepared for strlensi
11865 to fail. Don't pre-expand the source operand.
11867 * i386.md (strlensi): Initialize eoschar and align before use.
11869 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
11871 * expr.c (expand_expr, case ARRAY_REF): Still check for missing
11872 CONSTRUCTOR element.
11874 2000-03-08 Gavin Romig-Koch <gavin@cetus.cygnus.com>
11876 * mips.c (mips_expand_prologue): If the last
11877 named argument is the vararg marker "va_list", treat it as
11878 an unnamed argument.
11880 2000-03-08 Clinton Popetz <cpopetz@cygnus.com>
11882 * dbxout.c (dbxout_parms): When correcting for promoted
11883 big-endian parameters, use the mode of the DECL_RTL rather
11884 than UNITS_PER_WORD.
11886 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
11888 * c-common.h (make_fname_decl): Declare.
11889 * c-common.c (make_fname_decl): Define.
11890 (declare_hidden_char_array): Remove.
11891 (declare_function_name): Use make_fname_decl.
11892 * c-decl.c (c_make_fname_decl): New function.
11893 (init_decl_processing): Set make_fname_decl.
11895 Tue Mar 7 23:50:31 2000 Jeffrey A Law (law@cygnus.com)
11897 * cccp.c (handle_directive): Initialize backslash_newlines_p.
11899 2000-03-07 Philipp Thomas <pthomas@suse.de>
11901 * po/POTFILES.in: Remove cppalloc.c from file list.
11903 2000-03-07 Steve Chamberlain <sac@pobox.com>
11905 * pj.c (pj_expand_prologue): current_function->args_info is
11906 now current_function_args_info.
11908 * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
11909 LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
11910 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
11912 2000-03-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11914 * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
11915 output as hexadecimal rather than the default octal.
11917 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
11919 * cpphash.c (special_symbol): Fix thinko in previous commit.
11921 2000-03-07 Neil Booth <NeilB@earthling.net>
11923 * cppexp.c (struct operation, left_shift, right_shift,
11924 cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
11925 "int"s to "unsigned int"s.
11926 * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
11928 * cpplib.h: Update for above.
11929 * mkdeps.c (deps_init, deps_calc_target): Cast pointers
11930 returned from allocations.
11932 * cppinit.c (opt_comp, parse_options): New functions.
11933 (handle_option): Use parse_option to parse a single command
11934 line option, that possibly takes an argument.
11935 (cpp_handle_options): Sort the array of command line options on
11936 first invocation (non-ASCII hosts only).
11937 (print_help): Update.
11939 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
11941 * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
11942 backslash counting loops. Problem noted by Matt Kraai <kraai@ghs.com>.
11944 * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
11946 * cppinit.c (cpp_cleanup): Free imp->nshort also.
11948 * cpperror.c (cpp_print_containing_files,
11949 cpp_print_file_and_line, v_cpp_message): Rename to
11950 print_containing_files, print_file_and_line, and v_message.
11951 * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
11952 to _cpp_parse_expr, parse_escape, and lex.
11953 (parse_charconst): Remove broken multibyte support.
11954 * cppfiles.c (include_hash): Make static.
11955 (cpp_included): New function.
11956 (merge_include_chains, find_include_file, finclude,
11957 simplify_pathname): Rename to _cpp_merge_include_chains,
11958 _cpp_find_include_file, _cpp_read_include_file, and
11959 _cpp_simplify_pathname.
11960 * cpphash.c (cpp_lookup, free_definition, delete_macro,
11961 cpp_install, create_definition, macroexpand, compare_defs,
11962 dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
11963 _cpp_delete_macro, _cpp_install, _cpp_create_definition,
11964 _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
11965 * cppinit.c (cpp_handle_option): Rename to handle_option, make
11967 * cpplib.c: Remove extern prototype of cpp_parse_expr.
11969 * cpphash.h: Update prototypes.
11970 * cpplib.h: Likewise. Prototype _cpp_parse_expr here.
11972 2000-03-07 Andrew Haley <aph@cygnus.com>
11974 * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
11975 PTRDIFF_TYPE should be based solely on Pmode.
11976 (SIZE_TYPE): ditto.
11978 2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11980 * rtl.h (rtunion_def): Constify member `rtstr'.
11981 (emit_line_note_after, emit_line_note, emit_line_note_force,
11982 emit_note, decode_asm_operands): Constify.
11984 * cse.c (canon_hash): Likewise.
11986 * dbxout.c (dbxout_block): Likewise.
11988 * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
11989 v_warning_for_asm): Likewise.
11991 * dwarfout.c (function_start_label): Likewise.
11993 * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
11994 emit_line_note_force): Likewise.
11996 * final.c (last_filename, asm_insn_count, final_scan_insn,
11997 output_source_line): Likewise.
11999 * function.h (struct emit_status): Likewise.
12001 * gcse.c (hash_expr_1): Likewise.
12003 * genattr.c (gen_attr, main): Likewise.
12005 * genattrtab.c (struct function_unit, current_alternative_string,
12006 write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
12007 attr_numeral, check_attr_test, check_attr_value,
12008 convert_set_attr_alternative, convert_set_attr,
12009 compute_alternative_mask, simplify_by_exploding, gen_attr,
12010 gen_unit): Likewise.
12012 * genflags.c (gen_insn): Likewise.
12014 * gengenrtl.c (type_from_format): Likewise.
12016 * genopinit.c (gen_insn): Likewise.
12018 * genoutput.c (n_occurrences, process_template, process_template):
12021 * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
12024 * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
12027 * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
12028 ggc_set_mark, ggc_get_size): Likewise.
12030 * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
12032 * optabs.c (init_one_libfunc): Likewise.
12034 * output.h (assemble_start_function): Likewise.
12036 * recog.c (decode_asm_operands): Likewise.
12038 * toplev.c (rest_of_compilation): Likewise.
12040 * tree.h (emit_line_note_after, emit_line_note,
12041 emit_line_note_force): Likewise.
12043 * varasm.c (asm_output_bss, asm_output_aligned_bss,
12044 asm_emit_uninitialised, assemble_start_function,
12045 assemble_variable, const_hash, compare_constant_1,
12046 find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
12048 * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
12050 * alpha/alpha.md (call_vms, call_value_vms): Likewise.
12052 * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
12054 * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
12056 * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
12057 arm_dllimport_name_p): Likewise.
12059 * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
12062 * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
12064 * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12066 * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
12067 arm_mark_dllexport, arm_mark_dllimport,
12068 arm_pe_encode_section_info): Likewise.
12070 * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
12071 ASM_FINISH_DECLARE_OBJECT): Likewise.
12073 * arm/thumb.c (thumb_function_prologue): Likewise.
12075 * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
12077 * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12079 * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
12081 * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
12083 * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
12085 * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12087 * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
12088 ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
12090 * i386/i386-protos.h (asm_output_function_prefix): Likewise.
12092 * i386/i386.c (asm_output_function_prefix): Likewise.
12094 * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
12096 * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12098 * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
12100 * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
12101 ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
12102 ASM_OUTPUT_SECTION_NAME): Likewise.
12104 * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
12106 * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
12108 * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
12110 * m32r/m32r.c (m32r_encode_section_info): Likewise.
12112 * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12114 * mcore/mcore.c (mcore_encode_section_info): Likewise.
12116 * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12118 * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12120 * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12122 * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
12124 * mips/mips.md (movdi, movsi): Likewise.
12126 * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12128 * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12130 * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12132 * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
12133 ASM_OUTPUT_ASCII): Likewise.
12135 * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
12136 output_mi_thunk, output_toc): Likewise.
12138 * rs6000/rs6000.md (movsi): Likewise.
12140 * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
12142 * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
12144 * v850/v850.c (print_operand, print_operand_address,
12145 v850_encode_data_area): Likewise.
12147 2000-03-07 Clinton Popetz <cpopetz@cygnus.com>
12149 * config/mips/mips.md (zero_extendsidi2): Always force operand
12150 one to memory for mips16.
12152 Mon Mar 6 15:22:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12154 * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
12155 (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
12156 (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
12157 (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
12158 (min_precision): Result is unsigned.
12159 (add_double, neg_double, mul_double): Low word is unsigned.
12160 (lshift_double, rshift_double, lrotate_double): Likewise.
12161 (rrotate_double, div_and_round_double): Likewise.
12162 (tree_floor_log2, compare_tree_int): New functions.
12163 (preserve_rtl_expr_temps): New declaration.
12164 * c-common.c (declare_hidden_char_array): Use compare_tree_int.
12165 (decl_attributes): Use tree_log2 to find alignment.
12166 Check for TREE_INT_CST_HIGH for format args.
12167 (min_precision): Now unsigned.
12168 Use tree_floor_log2.
12169 (truthvalue_conversion): Delete long-disabled code.
12170 * c-decl.c (finish_struct): Clean up tests on field width.
12171 (finish_function): Use compare_tree_int.
12172 * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
12173 * c-typeck.c (comptypes): Use tree_int_cst_equal.
12174 (default_conversion, digest_init): Use compare_tree_int.
12175 (build_binary_op): Use integer_all_onesp and compare_tree_int.
12176 Fix type errors in forming masks.
12177 * calls.c (initialize_argument_information): Use compare_tree_int.
12178 * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
12179 * except.c (expand_eh_region_start_tree): Use compare_tree_int.
12180 * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
12181 (store_field): Use compare_tree_int.
12182 (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
12183 (expand_expr, case ARRAY_REF): Use compare_tree_int.
12184 (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
12185 (do_store_flag): Use compare_tree_int.
12186 * fold-const.c (encode, decode): Low part is always unsigned.
12187 (force_fit_type, add_double, neg_double, mul_double): Likewise.
12188 (lshift_double, rshift_double, lrotate_double): Likewise.
12189 (rrotate_double, div_and_round_double, int_const_binop): Likewise.
12190 (fold_convert): Use compare_tree_int.
12191 (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
12192 (invert_truthvalue, case INTEGER_CST): Likewise.
12193 (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
12194 * mkdeps.c (deps_dummy_targets): Make I unsigned.
12195 * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
12196 (lshift_double, rshift_double, lrotate_double, rrotate_double):
12198 * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
12199 (expand_end_case): Use compare_tree_int.
12200 (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
12201 * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
12202 (layout_decl): Likewise.
12203 (layout_record, layout_union): Make sizes unsigned.
12204 (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
12205 (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
12206 * tree.c (struct type_hash): hashcode is unsigned.
12207 (build_type_attribute_variant, type_hash_list): Likewise.
12208 (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
12209 (attribute_hash_list, build_array_type, build_method_type): Likewise.
12210 (build_complex_type): Likewise.
12211 (real_value_from_int_cst): Remove unneeded casts.
12212 (integer_all_onesp): Add casts.
12213 (tree_floor_log2, compare_tree_int): New functions.
12214 (build_index_type): Use tree_int_cst_sgn.
12215 * varasm.c (assemble_variable): Use compare_tree_int.
12217 2000-03-06 Jason Merrill <jason@casey.cygnus.com>
12219 * cpphash.c (collect_expansion): Also catch ## at start of macro.
12221 * varasm.c (make_decl_rtl): Don't add a number to members of
12223 (make_function_rtl): Likewise.
12225 2000-03-06 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12227 * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
12228 patch from 2000-01-28.
12230 2000-03-06 Clinton Popetz <cpopetz@cygnus.com>
12232 * config/sh/sh.c: (barrier_align): Handle a delay slot that is
12233 filled with an insn from the jump target.
12235 2000-03-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12237 * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
12238 (c4x_external_ref): Likewise.
12239 * config/c4x/c4x.c (struct name_list): Likewise.
12241 1999-12-16 Ben Collins <bcollins@debian.org>
12243 * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
12244 argument to genmultilib.
12245 * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
12246 the contents into the multilib.h header.
12247 * gcc.c: Declare multilib_exclusions for the specs file.
12248 (set_multilib_dir): Use it.
12249 (print_multilib_info): Likewise.
12250 * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
12251 to pass to genmultilib.
12253 2000-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12255 * builtins.c (built_in_class_names, built_in_names): Constify a
12258 * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
12260 (_mcleanup): Ensure value matches format specifier in sprintf.
12262 * cpphash.c (special_symbol): Don't needlessly cast away
12265 * cppinit.c (base_name): Delete unused prototype.
12267 * mkdeps.c (deps_init): Make definition K&R safe.
12269 * tree.h (built_in_class_names, built_in_names): Constify a
12272 2000-03-06 Jakub Jelinek <jakub@redhat.com>
12274 * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
12275 floating point instructions for epilogue delay.
12277 * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
12278 to gas if it supports .register pseudo.
12280 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
12281 LONG_DOUBLE_TYPE_SIZE if not defined.
12282 Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
12283 LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
12284 * real.c: Likewise.
12285 * gengenrtl.c: Likewise.
12286 * print-rtl.c: Likewise.
12288 * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
12289 MASK_LONG_DOUBLE_128.
12290 * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
12291 * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
12292 * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
12293 (SUBTARGET_SWITCHES): Define.
12294 (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
12295 with -mlong-double-128.
12296 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
12297 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
12298 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
12299 (CC1_SPEC): Include -mlong-double-{64,128} as needed.
12300 * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
12301 (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
12302 with -mlong-double-128.
12303 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
12304 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
12305 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
12306 * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
12307 TARGET_LONG_DOUBLE_128): Define.
12308 * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
12309 * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
12310 long double on TARGET_ARCH64.
12312 2000-03-06 Mark Mitchell <mark@codesourcery.com>
12314 * function.c (free_temps_for_rtl_expr): Don't free slots
12315 that have been pushed into a higher level.
12318 2000-03-05 Mark Mitchell <mark@codesourcery.com>
12320 2000-03-05 Mark Mitchell <mark@codesourcery.com>
12322 * basic-block.h (ALLOCA_REG_SET): Remove.
12323 (INITIALIZE_REG_SET): New macro.
12324 * flow.c (update_life_info): Use it.
12325 (calculate_global_regs_live): Likewise.
12326 (propagate_block): Likewise.
12327 * global.c (build_insn_chain): Likewise.
12328 * haifa-sched.c (schedule_region): Likewise.
12330 2000-03-05 Stephane Carrez <stcarrez@worldnet.fr>
12332 * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
12333 (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
12334 (DWARF_ARANGES_PAD_SIZE): New define.
12335 (output_aranges): Use it to pad the address range header.
12336 (DWARF_ROUND): Fix for non power of 2 rounding.
12338 2000-03-05 Jason Merrill <jason@casey.cygnus.com>
12340 * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
12342 2000-03-05 Mark Mitchell <mark@codesourcery.com>
12344 * tree.def (RTL_EXPR): Update documentation.
12345 * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
12346 * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
12347 * function.c (preserve_rtl_expr_temp): New function.
12348 (preserve_rtl_expr_temps): Likewise.
12349 (preserve_rtl_expr_result): Use it.
12352 2000-03-04 Mark Mitchell <mark@codesourcery.com>
12354 2000-03-04 Thomas Schuster <Thomas.Schuster@gmx.net>
12356 * regmove.c (copy_src_to_dest) Do not create src->dest move
12357 for unchanging destination.
12359 2000-03-04 Mark Mitchell <mark@codesourcery.com>
12361 * function.h (struct sequence_stack): Remove rtl_expr.
12362 (struct emit_staus): Likewise.
12363 (seq_rtl_expr): Remove.
12364 * tree.h (free_temps_for_rtl_expr): Don't declare.
12365 (start_sequence_for_rtl_expr): Likewise.
12366 * rtl.h (preserve_rtl_expr_result): Likewise.
12367 * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
12368 (start_sequence_for_rtl_expr): Remove.
12369 (push_topmost_sequence): Don't save sequence_rtl_expr.
12370 (pop_topmost_sequence): Remove comment about not restoring it.
12371 (end_sequence): Don't set seq_rtl_expr.
12372 (init_emit): Don't initialize it.
12373 (mark_sequence_stack): Don't mark it.
12374 (mark_emit_status): Likewise.
12375 * except.c (protect_with_terminate): Use
12376 start_sequence_for_rtl_expr, not start_sequence.
12377 * expr.c (expand_expr, case RTL_EXPR): Don't call
12378 preserve_rtl_expr_result or free_temps_for_rtl_expr.
12379 * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
12380 (preserve_rtl_expr_result): Remove.
12381 (free_temps_for_rtl_expr): Likewise.
12382 (pop_temp_slots): Likewise.
12383 (mark_temp_slot): Don't mark the rtl_expr.
12384 * stmt.c (expand_start_stmt_expr): Use start_sequence, not
12385 start_sequence_for_rtl_expr.
12387 2000-03-04 Zack Weinberg <zack@wolery.cumb.org>
12389 * mkdeps.c, mkdeps.h: New files.
12390 * po/POTFILES.in: Add them.
12391 * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
12392 (cpplib.o, cppinit.o): Depend on mkdeps.h.
12393 (mkdeps.o): New target.
12395 * cppfiles.c: Delete deps_output.
12396 * cppinit.c: Include mkdeps.h. Delete known_suffixes,
12397 OBJECT_SUFFIX, and base_name.
12398 (cpp_cleanup): Use deps_free. Free ihash->name when clearing
12400 (initialize_dependency_output): Use deps_init,
12401 deps_add_target, deps_calc_target, and deps_add_dep. Remove
12402 all the unnecessary string bashing.
12403 (cpp_finish): Use deps_write. Remove an unnecessary nesting
12405 * cpplib.c (do_include): Use deps_add_dep.
12406 * cpplib.h (struct cpp_reader): Replace deps_buffer,
12407 deps_allocated_size, deps_size, deps_column members with
12408 single pointer to a struct deps. Delete prototype of
12411 * cppinit.c: Fix thinko in previous patch.
12413 Sat Mar 4 11:32:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12415 * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
12416 * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
12417 (mode_for_size_tree): New function.
12418 (layout_decl, layout_type): Call it and clean up BLKmode checks.
12419 * tree.h (mode_for_size_tree): New declaration.
12421 * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
12423 2000-03-04 Jason Merrill <jason@casey.cygnus.com>
12425 * stmt.c (is_body_block): Move...
12426 * dwarfout.c, dwarf2out.c: ...from here.
12427 * tree.h: Declare it.
12428 * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
12429 * final.c (final_start_function): Do call remove_unnecessary_notes
12432 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
12434 * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
12436 * cpplib.h (_dollar_ok): New macro.
12437 (is_idchar, is_idstart): Use it.
12438 (IStable): Rename to _cpp_IStable. Declare it const if
12439 gcc >=2.7 or C99. Delete all references to FAKE_CONST.
12440 (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
12441 is_space): Update for renamed IStable.
12443 * cppinit.c: Delete all references to FAKE_CONST and CAT
12444 macros. Define init_IStable as empty macro if gcc >=2.7 or
12445 C99. Change TABLE() to ISTABLE and hardcode name of table.
12446 (cpp_start_read): Don't change the IStable based on
12449 * cpphash.c (unsafe_chars): Add pfile argument. All callers
12450 changed. Handle '$' for char1 correctly.
12451 * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
12453 * cppexp.c (tokentab2): Make const.
12454 (cpp_lex): Make toktab const.
12455 * cppinit.c (include_defaults_array): Make const.
12456 (initialize_standard_includes): Make default_include const.
12458 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
12460 * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
12461 (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
12462 (gen_decl_die): Likewise.
12463 * dwarfout.c (dwarfout_file_scope_decl): Likewise.
12464 (output_decl): Likewise.
12466 * varasm.c (make_function_rtl): If we change the name used in the
12467 rtl, update DECL_ASSEMBLER_NAME accordingly.
12468 (make_decl_rtl): Likewise.
12470 * toplev.c (rest_of_compilation): Tweak formatting.
12472 * toplev.c (rest_of_compilation): find_loop_tree_blocks before
12473 remove_unnecessary_notes.
12474 (debug_ignore_block): New fn.
12475 * toplev.h: Declare it.
12476 * emit-rtl.c (remove_unncessary_notes): Call it.
12477 * dwarf2out.c (dwarf2out_ignore_block): New fn.
12478 * dwarf2out.h: Declare it.
12479 * final.c (final_start_function): Don't call remove_unnecessary_notes
12480 if we did insn scheduling.
12482 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
12484 * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
12485 * cpplib.h: Delete SET_CPP_PEDANTIC.
12487 Fri Mar 3 14:56:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12489 * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
12490 result is a RECORD_TYPE.
12492 2000-03-03 Jonathan Larmour <jlarmour@cygnus.co.uk>
12494 * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
12496 2000-03-03 Richard Henderson <rth@cygnus.com>
12498 * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
12499 addition over compliments over shifts.
12501 Fri Mar 3 12:49:28 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
12503 * reload1.c (reload_combine_note_use): Handle return register USEs.
12504 REG case: Handle multi-hard-register hard regs.
12506 Fri Mar 3 07:38:34 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12508 * md.texi: Document use of '*' in insn pattern name.
12510 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
12512 * calls.c (special_function_p): operator new may not be malloc-like.
12514 * gcse.c (dump_hash_table): Really fix error in last change.
12516 2000-03-02 Denis Chertykov <denisc@overta.ru>
12518 * avr.c (print_operand): Use print_operand_address instead of
12520 * avr/libgcc.S: Cleanup code.
12522 2000-03-02 Richard Henderson <rth@cygnus.com>
12524 * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
12526 2000-03-02 Mark Mitchell <mark@codesourcery.com>
12528 * tree.h (TYPE_ALIGN_UNIT): New macro.
12530 2000-03-02 Clinton Popetz <cpopetz@cygnus.com>
12532 * i386.c: (constant_call_address_operand): Reject CONST_INT.
12534 2000-03-02 Jason Merrill <jason@casey.cygnus.com>
12536 * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
12538 (SET_CPP_PEDANTIC): New macro.
12539 * cpplib.c (do_include): Don't bother checking system_header_p.
12540 (do_warning, do_ident, do_assert, do_unassert): Likewise.
12541 * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
12543 * function.h (struct expr_status): Add x_arg_space_so_far.
12544 (arg_space_so_far): New macro.
12545 * expr.c (init_expr): Initialize it.
12546 * calls.c (emit_call_1): Reset it.
12547 (compute_argument_block_size, expand_call): Use it.
12548 (expand_call, store_one_arg): Increment it.
12550 Thu Mar 2 17:27:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12552 * varasm.c (output_constant): Strip off a CONVERT_EXPR to
12555 2000-03-02 Zack Weinberg <zack@wolery.cumb.org>
12557 * cppfiles.c (cpp_read_file): New function.
12559 * cpphash.c (collect_expansion): Make sure to reset last_token
12560 to NORM when we hit a string. Handle trailing whitespace
12561 properly when the expansion is empty.
12562 (create_definition): Disable line commands while parsing the
12564 (dump_definition): If pfile->lineno == 0, output a line
12565 command ahead of the dump, and add a trailing newline.
12567 * cppinit.c (append_include_chain): Add fifth argument, which
12568 indicates whether or not system headers are C++ aware.
12569 (initialize_standard_includes): New function,
12570 broken out of read_and_prescan. Pass 'cxx_aware' value from
12571 the include_defaults_array on to append_include_chain.
12572 (dump_special_to_buffer): Const-ify char array.
12573 (builtin_array): Don't dump __BASE_FILE__.
12574 (cpp_start_read): Use cpp_read_file. Reorder code for
12575 clarity. Don't output line commands here for -D/-A/-U
12576 switches. Don't call deps_output for files included with
12577 -include or -imacros.
12579 * cpplib.c (do_define): Don't pay any attention to the second
12581 (cpp_expand_to_buffer): Disable line commands while scanning.
12582 (output_line_command): Work in the file buffer.
12583 * cpplib.h: Remove no_record_file flag from struct cpp_reader.
12584 Fix formatting of comments. Prototype cpp_read_file.
12586 Thu Mar 2 13:29:46 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12588 * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
12589 reference the language-equivalent of sizetype.
12590 * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
12591 * fold-const.c (size_binop, size_diffop): Put back checks.
12592 * gcse.c (dump_hash_table): Fix minor error in last change.
12593 * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
12594 Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
12597 Thu Mar 2 12:48:45 MET 2000 Jan Hubicka <jh@suse.cz>
12599 * calls.c (expand_call) Do not attempt to combine stack adjustments
12600 with inhibit_defer_pop set.
12602 2000-03-01 Mark Mitchell <mark@codesourcery.com>
12604 * stor-layout.c (layout_decl): Allow front-ends to explicitly set
12605 the DECL_SIZE for a FIELD_DECL.
12607 2000-03-01 Bruce Korb <bkorb@gnu.org>
12609 * fixinc/inclhack.tpl: remove unused symlinks
12610 * fixinc/README: GCC Maintainer info
12611 * fixinc/inclhack.sh: regen
12612 * fixinc/fixincl.sh: regen
12614 2000-03-01 Zack Weinberg <zack@wolery.cumb.org>
12616 * cpphash.c (collect_expansion): Trim trailing white space
12617 from macro definitions, but don't go past the last insertion
12620 Wed Mar 1 12:14:31 MET 2000 Jan Hubicka <jh@suse.cz>
12622 * i386.md (mulqi3): New pattern.
12624 2000-02-29 Zack Weinberg <zack@wolery.cumb.org>
12626 * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
12628 (struct cpp_reader): Add parsing_if_directive and
12629 parsing_define_directive flags.
12630 (struct cpp_options): Remove output_conditionals flag.
12631 (check_macro_name): Delete prototype.
12633 * cpphash.h (struct macrodef): Delete.
12634 (struct reflist): Separate from struct definition.
12635 (struct definition): Remove unused fields. Add column number.
12636 (create_definition): Returns a DEFINITION *. Takes a
12637 cpp_reader * and an int.
12639 * cpphash.c (SKIP_WHITE_SPACE): Delete.
12640 (PEEKC): Copy defn from cpplib.c.
12641 (rest_extension, REST_EXTENSION_LENGTH): Delete.
12643 (struct arglist): Simplify.
12644 (collect_expansion): Rewrite. Get tokens by calling
12645 cpp_get_token. Add more error checking.
12646 (collect_formal_parameters): New function, broken out of
12647 create_definition and reworked to use get_directive_token.
12648 (create_definition): All real work is now in collect_expansion
12649 and collect_formal_parameters. do_define handles finding the
12650 macro name. Return a DEFINITION, not a MACRODEF.
12651 (macroexpand): Replace bcopy with memcpy throughout. Replace
12652 character-at-a-time copy loop with memcpy and pointer increments.
12653 (compare-defs): d1->argnames / d2->argnames might be null.
12655 * cpplib.c (copy_rest_of_line): Delete function.
12656 (skip_rest_of_line): Do all the work ourselves.
12657 (skip_string): New function.
12658 (parse_string): Use skip_string.
12659 (get_macro_name): New function.
12660 (check_macro_name): Delete.
12661 (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
12662 (cpp_skip_hspace): Use CPP_BUMP_LINE.
12663 (handle_directive): ICE if we're called on a macro buffer.
12664 (do_define): Determine macro name and type (funlike/objlike)
12665 here. Expunge all uses of MACRODEF.
12666 (cpp_push_buffer): Set line_base to NULL.
12667 (do_undef, read_line_number): Don't worry about getting a POP token.
12668 (eval_if_expression): Set/reset parsing_if_directive around
12669 cpp_parse_expr. Don't clear only_seen_white.
12670 (skip_if_group): Remove output_conditionals logic. Use
12672 (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
12673 tokens under appropriate conditions.
12674 (cpp_unassert): Call do_unassert not do_assert. Oops.
12676 * cppexp.c (parse_defined): New function, break out of
12678 (cpp_lex): We now get CPP_ASSERTION tokens and can check them
12679 ourselves, with cpp_defined.
12680 * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
12682 * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
12683 * gcc.dg/strpaste-2.c: New.
12685 2000-02-29 Mark Mitchell <mark@codesourcery.com>
12687 * fold-const.c (size_binop): Don't asert inputs are the same and
12688 have TYPE_IS_SIZETYPE set.
12689 (size_diffop): Likewise.
12691 2000-02-29 Jason Merrill <jason@casey.cygnus.com>
12693 * dwarfout.c (output_block): Output abstract blocks even if they
12694 don't have TREE_ASM_WRITTEN set.
12696 * calls.c (emit_library_call): Check for null REG.
12698 2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
12700 * c-decl.c (current_function_decl): Move to toplev.c.
12701 (init_decl_processing): Don't add current_function_decl as a ggc
12703 * dbxout.c (dbxout_symbol): Change return type to int.
12704 (dbxout_symbol_location, dbxout_syms): Likewise.
12705 (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
12706 any locals. Use current_function_func_begin_label if set.
12707 * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
12708 * dwarf2out.c (dwarf2out_begin_prologue): Set
12709 current_function_func_begin_label.
12710 * final.c (final_start_function): Reset it.
12711 * toplev.c (current_function_decl): Define it here.
12712 (current_function_func_begin_label): New variable.
12713 (main): Add both as ggc roots.
12714 * tree.h (current_function_func_begin_label): Declare.
12716 Tue Feb 29 14:07:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12718 * gcse.c: Cleanups throughout: mostly white-space, but also
12719 some minor rearrangement of code.
12721 Tue Feb 29 10:45:59 2000 Jeffrey A Law (law@cygnus.com)
12723 * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
12724 returns a PARALLEL. Use emit_group_load and use_group_regs
12726 (emit_library_call_value): Similarly.
12728 * pa/t-pa: Use quadlib.c instead of quadlib.asm.
12729 * pa/quadlib.asm: Remove.
12730 * pa/quadlib.c: New file.
12732 * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
12733 * configure: Rebuilt.
12735 2000-02-29 Philip Blundell <pb@futuretv.com>
12737 * config/arm/conix-elf.h: New file.
12738 * configure.in (arm*-*-conix*): New configuration.
12739 * configure: Regenerate.
12741 2000-02-28 Jason Merrill <jason@casey.cygnus.com>
12743 * dwarf2out.c (gen_block_die): Output abstract blocks even if they
12744 don't have TREE_ASM_WRITTEN set.
12746 Mon Feb 28 21:07:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12748 * Eliminate DECL_FIELD_SIZE.
12749 * builtins.c (built_in_class_names, built_in_names): New variables.
12750 * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
12751 * expr.c (expand_expr, case COMPONENT_REF): Get field size from
12752 DECL_SIZE, not DECL_FIELD_SIZE.
12753 * print-tree.c (print_node): Remove code that prints extra blank
12754 lines in some cases.
12755 Properly handle inline and builtin function cases.
12756 * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
12757 * tree.h (built_in_class_named, built_in_names): New declarations.
12758 (union tree_decl): Rename internal unions to u1 and u2 and change
12759 some of their components.
12760 Add new field built_in_class.
12761 (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
12762 Reflect above changes.
12763 (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
12764 (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
12765 * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
12766 (encode_field_decl): Likewise; also remove obsolete test for bitfield.
12768 2000-02-28 Dmitri Makarov <dim@windriver.com>
12770 * extend.texi: Document ARM's support for long/short calls.
12772 * invoke.texi: Document ARM's -mlong-calls command line switch.
12774 * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
12775 (arm_encode_call_attribute): Add prototype.
12776 (arm_set_default_type_attribute): Add prototype.
12777 (arm_strip_name_encoding): Add prototype.
12779 * config/arm/arm.c (arm_init_cumulative_args): replace
12780 initialisation og 'long_calls' field with initialisation of
12781 'call_cookie' field.
12782 (enum arm_pragma_enum): New enum.
12783 (arm_pragma_long_calls): New static variable.
12784 (arm_process_pragma): Also process "#pragma long_calls_off".
12785 (arm_valid_type_attribute_p): Accept short_call attribute.
12786 (arm_comp_type_attributes): Check long/short call attributes.
12787 (arm_encode_call_attribute): New function: Encode long_call
12788 or short_call attribute in function name.
12789 (arm_set_default_type_attributes): New function: Assign
12790 default attributes to newly defined type.
12791 (current_file_function_operand): New function: Return true if
12792 the symbol is a function which has already been compiled.
12793 (arm_is_longcall_p): New function: Return true if the
12794 indicated function should be called via a long call.
12795 (arm_get_strip_length): New function. Returns number of
12796 prefix characters to be stripped from a function's name.
12797 (arm_strip_name_encoding): New function. Strip prefix characters
12798 from a function's name.
12800 * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
12801 with 'call_cookie'.
12802 (SHORT_CALL_FAG_CHAR): Define.
12803 (LONG_CALL_FAG_CHAR): Define.
12804 (ENCODED_SHORT_CALL_ATTR_P): Define.
12805 (ENCODED_LONG_CALL_ATTR_P): Define.
12806 (ARM_NAME_ENCODING_LENGTHS): Define.
12807 (STRIP_NAME_ENCODING): Define.
12808 (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
12809 (ARM_ENCODE_CALL_TYPE): Define.
12810 (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
12811 (ARM_DECLARE_FUNCTION_SIZE): Define.
12812 (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
12814 * config/arm/arm.md (call): Call arm_is_longcall_p to decide
12815 if a long call is needed.
12816 (call_value): Ditto.
12817 (call_symbol): Ditto.
12819 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
12820 ARM_DECLARE_FUNCTION_SIZE.
12822 * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
12823 (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
12824 (ARM_STRIP_NAME_ENCODING): Undefine.
12825 (STRIP_NAME_ENCODING): Undefine.
12826 (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
12827 (ASM_DECLARE_FUNCTION_NAME): Ditto.
12828 (ASM_OUTPUT_COMMON): Ditto.
12829 (ASM_DECLARE_OBJECT_NAME): Ditto.
12831 * config/arm/pe.c (arm_dllexport_name_p): Check for
12833 (arm_dllimport_name_p): Ditto.
12834 (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
12835 (arm_mark_dllimport): Ditto.
12837 Mon Feb 28 22:11:12 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
12839 * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
12841 2000-02-28 Mark Mitchell <mark@codesourcery.com>
12843 * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
12845 2000-02-28 Zack Weinberg <zack@wolery.cumb.org>
12847 * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
12848 * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
12849 NO_BUILTIN_WCHAR_TYPE is not defined.
12850 (CPP_WCHAR_TYPE): Delete.
12851 * cccp.c (main): Don't change wchar_type if cplusplus.
12852 (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
12854 2000-02-28 Nick Clifton <nickc@cygnus.com>
12856 * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
12858 Mon Feb 28 14:21:15 2000 Catherine Moore <clm@cygnus.com>
12860 * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
12861 (ASM_WEAKEN_LABEL): Define.
12863 Mon Feb 28 13:07:19 MET 2000 Jan Hubicka <jh@suse.cz>
12865 * expr.c (store_constructor): Do not emit USE.
12866 * rtl.h (stupid_life_analysis): Remove.
12868 Mon Feb 28 07:03:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12870 * function.c (number_blocks): Reset next_block_index based on
12871 what debugging format is used, not what is defined.
12873 * lcm.c: Minor reformatting throughout.
12874 (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
12876 * toplev.c (rest_of_compilation): Account for time in
12877 optimize_mode_switching.
12879 * jump.c (jump_optimize_1): Don't call delete_barrier_successors
12880 if only marking labels.
12882 Mon Feb 28 12:53:57 MET 2000 Jan Hubicka <jh@suse.cz>
12884 * calls.c (expand_call): Attempt to combine stack adjustments with
12885 pending stack adjustments.
12887 Mon Feb 28 11:34:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
12889 * loop.c (reg_in_basic_block_p): Don't abort when falling through
12890 to the end of the function.
12892 2000-02-27 Mark Mitchell <mark@codesourcery.com>
12894 * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
12896 * final.c (next_block_index): Remove.
12897 (max_block_depth): Likewise.
12898 (pending_blocks): Likewise.
12899 (init_final): Don't initialize them.
12900 (final_start_function): Don't set next_block_index. Set up
12902 (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
12903 * function.h (number_blocks): New function.
12904 * function.c (get_block_vector): New function.
12905 (identify_blocks): Use it.
12906 (reorder_blocks): Set NOTE_BLOCK.
12907 (number_blocks): New function.
12908 * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
12909 * tree.h (BLOCK_NUMBER): New macro.
12910 (tree_block): Add block_num field.
12911 * dbxout.c (next_block_number): Remove.
12912 (dbxout_init): Don't set it.
12913 (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
12914 set. Use BLOCK_NUMBER, rather than next_block_num, to determine
12916 * toplev.c (rest_of_compilation): Always call
12917 find_loop_tree_blocks. Fix indentation.
12918 * dwarf2out.c (next_block_number): Remove.
12919 (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
12920 to determine block numbers.
12921 (gen_inlined_subroutine_die): Likewise.
12922 (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
12923 (decls_for_scope): Don't increment next_block_number.
12924 * dwarfout.c (next_block_number): Remove.
12925 (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
12926 to determine block numbers.
12927 (output_inlined_subroutine_die): Likewise.
12928 (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
12929 (output_decls_for_scope): Don't increment next_block_number.
12930 * sdbout.c (next_block_number): Remove.
12931 (sdbout_block): Use BLOCK_NUMBER.
12932 (sdbout_begin_block): Simplify.
12933 * xcoffout.c (next_block_number): Remove.
12934 (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
12935 (xcoffout_begin_block): Don't set next_block_number.
12936 (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
12939 Sun Feb 27 16:40:33 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12941 * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
12942 (expand_builtin_strcpy): Pass correct type to size_binop.
12943 (expand_builtin_strcmp): Likewise.
12944 Clean up conditional structure.
12945 * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
12946 (complete_array_type): Don't use size_binop for MAXINDEX.
12947 * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
12948 (c_sizeof_nowarn, c_size_in_bytes): Likewise.
12949 (c_alignof): Use size_one_node.
12950 (build_unary_op): Pass arg of proper type to size_binop.
12951 (really_start_incremental_init, push_init_level): Use sizetype for
12952 constructor{,_bit,_unfilled}_index.
12953 (pop_init_label, output_init_element): Likewise.
12954 (output_pending_init_elements, process_init_element): Likewise.
12955 * calls.c (compute_argument_block_size): Field VAR is ssizetype.
12956 * expr.c (store_expr): Use size_int.
12957 (store_constructor): Use proper types for size_binop args.
12958 (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
12959 (expand_expr_unaligned): Likewise.
12960 (string_contant): Return object of sizetype.
12961 * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
12962 (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
12963 (ARGS_SIZE_TREE): Pass proper types to size_binop.
12964 * fold-const.c (int_const_binop): Refine when size_int is called.
12965 (fold_convert): Likewise.
12966 (size_int_wide): Rework to take KIND as arg, only take low order
12967 bits, handle new sizetype_tab datatype, and chain entries in
12969 (size_int_type_wide): New function.
12970 (size_binop): Validate types of arguments.
12971 (ssize_binop): Deleted.
12972 (size_diffop): New function.
12973 (extract_muldiv): Only fold division into multiplication for sizetypes.
12974 * function.c (assign_parms): Use size_diffop and make sure
12975 VAR field is of ssizetype; also pass proper type to size_binop.
12976 (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
12977 (round_down): Deleted from here.
12978 * store-layout.c (sizetype_tab): Now an array.
12979 (sizetype_set, early_root_list): New variables.
12980 (variable_size): Use size_one_node.
12981 (round_up): Pass proper type to size_binop.
12982 (round_down): Moved to here and corrected as above.
12983 (layout_record): Pass proper arg types to size_binop.
12984 (layout_type): Likewise.
12985 If sizetype_set is zero, record the type just laid out.
12986 (make_unsigned_type): Don't call set_sizetype;
12987 (make_signed_type): Likewise; also, call fixup_signed_type.
12988 (initialize_sizetypes): New function.
12989 (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
12990 set name of bitsizetype to "bit_size_type".
12991 Fix up type of sizes of all types made before call.
12992 * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
12993 * tree.c (fix_sizetype): Deleted.
12994 (build_common_tree_nodes): Call initialize_sizetypes.
12995 (build_common_tree_nodes_2): Don't call fix_sizetype.
12996 * tree.h (TYPE_IS_SIZETYPE): New macro.
12997 (initialize_sizetype): New declaration.
12998 (enum size_type_kind): New type.
12999 (struct sizetype_tab): Deleted.
13000 (sizetype_tab): Now array; adjust sizetype macros.
13001 (size_diffop, size_int_type_wide): New functions.
13002 (size_int_wide): Change number of args and type; access macros changed.
13003 (ssize_int, sbitsize_int): New macros.
13004 * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
13005 (ROUND_TYPE_SIZE_UNIT): New macro.
13007 2000-02-27 Zack Weinberg <zack@wolery.cumb.org>
13009 * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
13011 Sun Feb 27 07:44:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13013 * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
13014 Mark as possibly unused.
13016 * cse.c (cse_insn): Delete dead code involving tablejump.
13017 Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
13019 * Makefile.in (libcpp.a): Start by deleting it.
13021 2000-02-27 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13023 * cpplib.h (enum file_change_code): Added rename_file.
13024 * cpplib.c (do_line): If a filename is given, set file_change to
13026 (output_line_command): If file_change is rename_file, always
13027 output a # directive with the file name.
13029 * cpplib.c (do_pragma): Accept #pragma without consecutive token.
13031 2000-02-26 Mark Mitchell <mark@codesourcery.com>
13033 * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
13034 when copying a PARM_DECL or RESULT_DECL.
13036 2000-02-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13038 * fix-header.c (recognized_function): Also fix prototypes for
13039 functions taking "void".
13041 2000-02-26 Geoff Keating <geoffk@cygnus.com>
13043 * reload1.c (do_output_reload): Check reg_reloaded_valid before
13044 looking at reg_reloaded_contents.
13046 2000-02-26 Zack Weinberg <zack@wolery.cumb.org>
13048 * Makefile.in (STMP_FIXINC): New toggle.
13049 (LIBGCC2_DEPS): Delete all references.
13050 (stmp-headers): Delete target. All references either deleted
13051 or changed to stmp-int-headers.
13052 (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
13053 (LIBCPP_OBJS): Take out cppalloc.o.
13054 (cppalloc.o): Delete target.
13055 (stmp-int-hdrs): Depend on $(STMP_FIXINC).
13056 (gen-protos, fix-header): Link with libiberty.a.
13057 * build-make: Don't change FIXINCLUDES. Override STMP_FIXINC
13060 * configure.in: Remove refs to strerror.
13061 * acconfig.h: Take out NEED_DECLARATION_STRERROR.
13062 * system.h: Take out strerror stanza.
13064 * cpperror.c (my_strerror): Delete function.
13065 (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
13066 * cppmain.c (main): Call xmalloc_set_program_name first thing.
13067 * cppalloc.c: Delete file.
13068 * gen-protos.c: Don't provide xrealloc.
13070 * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
13071 xstrerror throughout.
13073 2000-02-26 Bruce Korb <bkorb@gnu.org>
13075 * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
13076 match for DOS headers, too.
13077 * fixinc/inclhack.sh,fixincl.x: Regenerate.
13079 2000-02-26 Geoff Keating <geoffk@cygnus.com>
13081 * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define. The default
13082 is right for most ELF targets.
13083 * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
13084 Let the default file use %U properly.
13085 * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define. Use the
13088 * config/fp-bit.c (pack_d): Properly handle rounding of denormal
13091 Sat Feb 26 09:39:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13093 * toplev.c (documented_lang_options): Correct spelling error.
13094 (decode_d_option, decode_f_option, main): Likewise.
13096 * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
13098 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
13099 to tell assembler it is permitted to expand large constants.
13101 2000-02-25 Mumit Khan <khan@xraylith.wisc.edu>
13103 * protoize.c: (AUX_INFO_SUFFIX): New macro.
13104 (aux_info_suffix): Use.
13105 (SAVE_SUFFIX): New macro.
13106 (save_suffix): Use.
13107 (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
13108 (gen_aux_info_file): Use aux_info_suffix instead of ".X".
13109 (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
13111 * invoke.texi (Running Protoize): Update documentation.
13113 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
13115 * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
13117 2000-02-25 John Wehle (john@feith.com)
13119 * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
13121 2000-02-25 Anthony Green <green@cygnus.com>
13123 * toplev.c (rest_of_compilation): Rebuild jump labels if
13124 combine_instructions has created a new direct jump.
13125 * combine.c (try_combine): Add new_direct_jump_p argument. Set it
13127 (combine_instructions): Call try_combine with new argument.
13128 Return non-null value when new direct jump instruction is created.
13129 * rtl.h: combine_instructions returns an int.
13131 Fri Feb 25 19:49:08 2000 Jeffrey A Law (law@cygnus.com)
13133 * cse.c (cse_insn): Replace the PATTERN of the insn with an new
13134 jump when changing a computed jump into a jump to a known
13137 Fri Feb 25 19:22:44 2000 Graham Stott <grahams@rcp.co.uk>
13139 * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
13140 to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
13142 * i386.md (define_expand "clrstrsi"): Fix typo.
13144 Fri Feb 25 18:49:39 2000 "K. Richard Pixley" <rich@microunity.com>
13146 * rtl.texi: Fix typo.
13148 Fri Feb 25 20:02:35 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13150 * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
13151 UNITS_PER_WORD. Change caller initial_elimination_offset.
13152 (rounded_frame_size): Take into account that argument pushed has
13153 changed. Fix TARGET_ALIGN_DOUBLE problem.
13155 2000-02-25 Geoff Keating <geoffk@cygnus.com>
13157 * haifa-sched.c (schedule_block): Explain the real reason
13158 we delete REG_SAVE_NOTEs on the first insn of a block.
13159 Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
13161 2000-02-24 Mark Mitchell <mark@codesourcery.com>
13163 * input.h (push_srcloc): New function.
13164 (pop_srcloc): Likewise.
13165 * toplev.c (push_srcloc): Define it.
13166 (pop_srcloc): Likewise.
13168 2000-02-24 Richard Henderson <rth@cygnus.com>
13170 * flow.c (life_analysis): When collecting reg info, clear
13173 Thu Feb 24 22:06:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13175 Fix bug exposed by reload.c no longer rounding the frame
13176 size to BIGGEST_ALIGNMENT:
13177 * sh.c (rounded_frame_size): New function.
13178 (sh_expand_prologue, sh_expand_epilogue): Use it.
13179 (initial_elimination_offset): Likewise.
13181 Thu Feb 24 20:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13183 Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
13184 * sh-protos.h (sh_need_epilogue): Declare.
13185 * sh.c (sh_need_epilogue_known): New static variable.
13186 (sh_need_epilogue): New function.
13187 (function_epilogue): Clear need_epilogue_known.
13188 * sh.md (return): Split into expander / insn pattern.
13189 Make the expander conditional on ! sh_need_epilogue ().
13191 2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
13193 * machmode.h (get_mode_alignment): Declare.
13194 (GET_MODE_ALIGNMENT): Call it.
13195 * stor-layout.c (get_mode_alignment): New function. Make
13196 sure alignment is always power of 2.
13198 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
13200 * i386.h: Remove useless definition of "I386" and misleading
13203 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
13205 * tree.h (TREE_SET_PERMANENT): New macro. Document conditions
13206 under which TREE_PERMANENT will be set.
13207 * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
13208 build1): Use TREE_SET_PERMANENT.
13209 * print-tree.c (print_node): Don't report value of
13210 TREE_PERMANENT if ggc_p is true.
13212 * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
13213 decide whether to give a type a new alias set.
13214 * objc/objc-act.c (build_objc_string_object): Never copy the string.
13215 * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
13216 of value of 'obstack'.
13219 2000-02-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13221 * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
13223 2000-02-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13225 * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
13226 * cpplib.c (cpp_get_token): Produce them.
13227 * cppexp.c (cpp_lex): Handle them.
13229 2000-02-23 Nick Clifton <nickc@cygnus.com>
13231 * config/arm/arm.c (arm_comp_type_attributes): Simply and
13232 comment tests on type attributes.
13234 Wed Feb 23 16:42:21 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13236 * final.c (shorten_branches): Make value passed to LOOP_ALIGN
13237 conform to documentation.
13238 * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
13239 to check for special cases.
13240 * sh-protos.h (sh_loop_align): Declare.
13241 * sh.c (sh_loop_align): Define.
13243 2000-02-22 Andrew Haley <aph@cygnus.com>
13245 * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
13246 (SIZE_TYPE): Is 32 bits when using -mgp32.
13247 (PTRDIFF_TYPE): Ditto.
13249 Wed Feb 23 07:26:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13251 * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
13253 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
13255 * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
13256 BIGGEST_FIELD_ALIGNMENT a constant.
13258 2000-02-21 Jason Merrill <jason@casey.cygnus.com>
13260 * dwarf2out.c (output_line_info): Put the marker for the end of
13261 the line number info at the actual end.
13262 (gen_struct_or_union_type_die): Use decl_function_context
13263 to check for local classes.
13264 * dwarfout.c (output_type): Likewise.
13266 Tue Feb 22 01:38:57 2000 Jeffrey A Law (law@cygnus.com)
13268 * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
13269 for arguments with a mode, but no type.
13270 (FUNCTION_ARG_CALLEE_COPIES): Similarly.
13271 * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
13272 * pa/long_double.h: New file.
13273 * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
13274 both have 128bit wide long doubles.
13275 * configure: Rebuilt.
13277 2000-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13279 * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
13281 * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
13282 fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
13283 (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
13285 * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
13287 * integrate.c (compare_blocks, find_block): Likewise.
13289 * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
13291 * rtl.h (set_file_and_line_for_stmt): Constify a char*.
13293 * stmt.c (stmt_status, set_file_and_line_for_stmt,
13294 expand_asm_operands): Likewise.
13296 Mon Feb 21 17:06:27 2000 Jason Eckhardt <jle@cygnus.com>
13298 * predict.c (estimate_probability): Added the pointer heuristic to
13299 the collection of static branch predictors.
13301 2000-02-21 Catherine Moore <clm@cygnus.com>
13303 * config/mips/mips.h (ASM_SPEC): Add -mfix700.
13304 * invoke.texi (-mfix7000): Document.
13306 2000-02-21 Gabriel Dos Reis <gdr@codesourcery.com>
13308 * diagnostic.c (init_output_buffer): Make it possible to output at
13309 least 32 characters if we're given a too long prefix.
13311 2000-02-20 Mark Mitchell <mark@codesourcery.com>
13313 * varasm.c (initializer_constant_valid_p): Call
13314 lang_expand_constant to simplify the constant.
13316 2000-02-20 Bruce Korb <bkorb@gnu.org>
13318 * fixinc/inclhack.def(stdio_va_list):
13319 typedef needs to be disabled.
13320 * fixinc/inclhack.sh: regen
13321 * fixinc/fixincl.x: regen
13323 2000-02-20 Geoff Keating <geoffk@cygnus.com>
13325 * print-rtl.c (print_rtx): Don't print addresses when
13326 flag_dump_unnumbered.
13328 2000-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13330 * sparc.c (sparc_output_scratch_registers): Mark parameter with
13332 (sparc_va_arg, sparc_flat_output_function_prologue,
13333 sparc_flat_output_function_epilogue): Cast value to unsigned in
13335 (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
13337 * sparc.md: Add default case in switch.
13339 2000-02-19 Richard Henderson <rth@cygnus.com>
13341 * c-typeck.c (add_pending_init): Don't abort for multiple
13342 fields at the same offset.
13343 (pending_init_member): Test the correct member.
13345 2000-02-19 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13347 * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
13349 (start_catch_handler) : Same.
13351 2000-02-19 Brad Lucier (lucier@math.purdue.edu)
13353 * Makefile.in: Have flow.o depend on $(EXPR_H)
13355 Sat Feb 19 18:43:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13357 * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
13358 * c-decl.c (duplicate_decls, finish_enum): Likewise.
13359 (finish_decl): Remove -Wlarger-than code from here.
13360 * flags.h (id_clash_len): Now int.
13361 (larger_than_size): Now HOST_WIDE_INT.
13362 * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
13363 Clean up checking to see if in table.
13364 (make_bit_field_ref): Remove extra parm to bitsize_int.
13365 * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
13366 * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
13367 * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
13368 and for computing size of decl.
13369 * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
13370 Move -Wlarger-than code to here.
13371 (layout_record): Remove extra arg to bitsize_int.
13372 Set TYPE_BINFO_SIZE_UNIT.
13373 (layout_union): Remove extra arg to bitsize_int.
13374 Use proper type for size of QUAL_UNION.
13375 (layout_type): Remove extra arg to bitsize_int.
13376 * toplev.c (id_clash_len): Now int.
13377 (larger_than_size): Now HOST_WIDE_INT.
13378 (decode_W_option): Clean up id-clash and larger-than- cases.
13379 * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
13380 (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
13381 * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
13382 (struct tree_decl): New field size_unit.
13383 (size_int_wide): No HIGH operand; NUMBER is now signed.
13384 (size_int_2): Deleted.
13385 (size_int, bitsize_int): Don't use it and rework args.
13386 * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
13388 Fri Feb 18 20:01:58 2000 Jeffrey A Law (law@cygnus.com)
13390 * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
13392 2000-02-18 Geoff Keating <geoffk@cygnus.com>
13394 * invoke.texi (Warning Options): Add an explanation of why
13395 you might want the -Wfloat-equal flag.
13397 Fri Feb 18 20:08:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13399 * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
13400 * cppinit.c (new_pending_define): Add cast to avoid warning.
13401 * expmed.c (extract_bit_field): Likewise.
13402 * flow.c (enum reorder_skip_type): New type.
13403 (skip_insns_between_blcok): New it.
13404 Rework to avoid warning about possibly undefined variable.
13405 * function.c (assign_parms): Make thisparm_boundary unsigned.
13406 * genrecog.c (write_switch): Cast XWINT result to int.
13407 * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
13408 * mips-tfile.c (init_file): Make two versions of FDR intializer:
13409 one for MIPS and one for Alpha.
13410 (get_tag, copy_object): Add casts to avoid warnings.
13411 * optabs.c (init_one_libfunc): Cast NAME to (char *).
13412 * reload.c (find_reloads): Make TYPE enum reload_type.
13413 * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
13414 * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
13415 * varasm.c (compare_constant_1): Add cast to avoid warning.
13416 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
13418 (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
13419 Cast switch operand of size to int.
13420 (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
13421 * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
13424 2000-02-18 Nick Clifton <nickc@cygnus.com>
13426 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
13427 anything for an alignment of zero.
13429 * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
13430 anything for an alignment of zero.
13432 2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de>
13434 * gcc.texi (Bug Reporting): Refer to bugs.html.
13435 (Bug Lists): Likewise.
13436 * system.h (GCCBUGURL): New preprocessor define.
13437 * rtl.c (fancy_abort): Use it.
13438 * gcc.c (main): Likewise.
13440 2000-02-18 Richard Henderson <rth@cygnus.com>
13442 * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
13443 (life_analysis_1): Subsume into ...
13444 (life_analysis): ... here. Force PROP_REG_INFO off after reload.
13445 Use update_life_info for the relaxation.
13446 (update_life_info): Update REG_BASIC_BLOCK for registers live on
13447 entry and regs_live_at_setjmp.
13448 (set_noop_p): Simplify.
13449 (notice_stack_pointer_modification_1): Renamed from s/_1//.
13450 (record_volatile_insns): Split into ...
13451 (delete_noop_moves): ... here,
13452 (notice_stack_pointer_modification): ... here,
13453 (insn_dead_p): ... and here.
13454 (propagate_block): Don't query INSN_VOLATILE.
13455 (mark_used_regs): Mind !PROP_REG_INFO.
13456 * toplev.c (rest_of_compilation): Call mark_constant_function here,
13457 not in life_analysis.
13459 Fri Feb 18 01:29:22 EST 2000 John Wehle (john@feith.com)
13461 * loop.c (canonicalize_condition): New function,
13462 broken out of get_condition.
13463 (get_condition): Use it.
13464 * expr.h (canonicalize_condition): Prototype it.
13466 * tree.h (tree_int_cst_msb): Declare.
13467 * tree.c (tree_int_cst_msb): New function.
13469 2000-02-17 Mark Mitchell <mark@codesourcery.com>
13471 * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
13474 * invoke.texi (-fmessage-length=n): Document.
13476 2000-02-17 Jason Merrill <jason@casey.cygnus.com>
13478 * bitmap.c (bitmap_operation): Don't leak bitmap elements.
13480 2000-02-17 Mark Mitchell <mark@codesourcery.com>
13482 * function.c (thread_prologue_and_epilogue_insns): Put a line note
13483 after the prologue.
13485 2000-02-17 Nick Clifton <nickc@cygnus.com>
13487 * config/arm/thumb.c: Replace includes of system headers with
13488 #include "system.h".
13490 2000-02-16 Richard Henderson <rth@cygnus.com>
13492 * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
13493 Add crtbeginS.o and crtendS.o.
13494 * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
13495 (ENDFILE_SPEC): Use crtendS.o.
13496 * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
13498 * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
13499 (__do_global_dtors_aux): ... here. Call __cxa_finalize if
13500 shared and present.
13501 (__dso_handle): New variable.
13502 * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
13503 bias to __CTOR_END__.
13505 2000-02-16 Richard Henderson <rth@cygnus.com>
13507 * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
13509 Wed Feb 16 21:40:04 2000 Hans-Peter Nilsson <hp@bitrange.com>
13511 * longlong.h (__clz_tab): Declare as static to match definition.
13513 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
13515 * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
13516 (XREF_FILE_NAME): Define.
13518 * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
13519 (EH_FRAME_SECTION_ASM_OP): Define.
13520 (IDENT_ASM_OP): Define.
13521 (TEXT_SECTION_ASM_OP): Define.
13522 (CPP_SPEC): Define.
13523 (CTORS_SECTION_ASM_OP): Define.
13524 (CTOR_SECTION_FUNCTION): Use it.
13525 (DTORS_SECTION_ASM_OP): Define.
13526 (DTOR_SECTION_FUNCTION): Use it.
13528 2000-02-16 Zack Weinberg <zack@wolery.cumb.org>
13530 * reg-stack.c (emit_swap_insn): Do not put a new insn before a
13533 * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
13534 debug_bb_n): New functions.
13535 (dump_flow_info, print_rtl_with_bb): Use dump_regset.
13536 * basic-block.h: Prototype new functions.
13538 Wed Feb 16 21:07:53 2000 Denis Chertykov <denisc@overta.ru>
13540 * configure.in: Add support for avr target.
13541 * configure: Rebuilt.
13543 * invoke.texi: Add AVR invocation docs.
13544 * install.texi: Add information about AVR.
13545 * md.texi: Add AVR constraint letters description.
13546 * extend.texi: Add description for AVR specific attributes.
13548 2000-02-16 Jason Merrill <jason@casey.cygnus.com>
13550 * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
13552 2000-02-16 Nick Clifton <nickc@cygnus.com>
13554 * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
13555 (make_insn_raw): Move RTL check here.
13557 2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13559 * version.c: Include gansidecl.h and version.h.
13561 * version.h: Wrap entire file in macro __GCC_VERSION_H__.
13563 * configure.in (gcc_version): When setting, narrow search to
13564 lines containing `version_string'.
13566 * Makefile.in (mainversion): Likewise.
13567 (GCC_H): New variable.
13568 (gcc.h): Delete target.
13569 (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
13570 (version.o): Depend on version.h.
13571 (dbxout.o): Don't depend on gcc.h.
13573 Wed Feb 16 15:04:49 2000 Hans-Peter Nilsson <hp@bitrange.com>
13574 Michael Meissner <meissner@cygnus.com>
13576 * md.texi (Simple Constraints): Add item about whitespace.
13577 * genoutput.c (strip_whitespace): New.
13578 (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
13579 strip_whitespace for constraints.
13580 Test pointer using NULL, not 0.
13582 2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13584 * cpplib.c (do_line): Pedwarn for #line > 32767.
13586 * c-lex.c (readescape): Warn about '\x', but do not reject it.
13588 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
13590 * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
13591 to default cpp spec.
13592 (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
13593 * cpp.texi: Document __GNUC_PATCHLEVEL__.
13596 * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
13599 2000-02-15 Denis Chertykov <denisc@overta.ru>
13601 * configure.in: Add support for avr target.
13603 Wed Feb 16 03:21:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13605 * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
13606 (sh_addr_diff_vec_mode): Don't declare.
13607 * sh.c (sh_addr_diff_vec_mode): Delete.
13609 Wed Feb 16 01:27:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13611 * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
13613 Wed Feb 16 00:58:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13615 * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
13616 (smulsi3_highpart_i): Name.
13617 (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
13618 (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
13619 (smulsi3_highpart, umulsi3_highpart): Likewise.
13621 (mulsidi3_i, umulsidi3_i): Make rtl describe operation
13622 correctly independent of endianness.
13623 (mulsidi3, umulsidi3): Now define_insn. Hide details that
13624 confuse the optimizers.
13625 (mulsidi3+1, umulsidi3+1): New define_split.
13627 Tue Feb 15 23:22:26 2000 Andrew Haley <aph@cygnus.com>
13629 * config/sh/sh.md: Guard insn splits against illegal registers.
13630 * config/sh/sh.h: Correct comment about macros.
13632 Tue Feb 15 22:30:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13633 Andrew MacLeod <amacleod@cygnus.com>
13635 * Makefile.in (lcm.o): Depend on insn-attr.h.
13636 * basic-block.h (optimize_mode_switching): Declare.
13637 * lcm.c (tm_p.h, insn-attr.h): #include.
13638 (seginfo, bb_info): New structs.
13639 (antic, transp, comp, delete, insert) : New file-scope static variables.
13640 (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
13641 (reg_becomes_live, optimize_mode_switching): Likewise.
13642 * tm.texi: Add description of mode switching macros.
13643 * toplev.c (rest_of_compilation): Call optimize_mode_switching.
13645 * sh-protos.h (remove_dead_before_cse): Remove prototype.
13646 (fldi_ok, fpscr_set_from_mem): New prototypes.
13647 * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
13648 (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
13649 Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
13650 (sh_flag_remove_dead_before_cse): Remove declaration.
13651 (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
13652 (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
13653 (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
13654 * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
13655 (barrier_align): Allow for JUMP_INSNS containing a parallel.
13656 (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
13657 (fldi_ok): New function.
13658 (get_fpscr_rtx): Add fpscr_rtx as GC root.
13659 (emit_sf_insn): Only generate fpu switches when optimize < 1.
13660 (emit_df_insn): Likewise.
13661 (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
13662 (sh_flag_remove_dead_before_cse): Delete.
13663 (get_free_reg, fpscr_set_from_mem): New functions.
13664 * sh.md (movdf, movsf): Remove no_new_pseudos code.
13665 (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
13667 2000-02-15 Loren Rittle <ljrittle@acm.org>
13669 * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
13671 2000-02-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13673 * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
13674 cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
13676 * cccp.c: Include version.h and/or don't declare `version_string'.
13677 * collect2.c: Likewise.
13678 * alpha.c: Likewise.
13679 * arm/aof.h: Likewise.
13680 * arm/coff.h: Likewise.
13681 * arm/elf.h: Likewise.
13682 * arm/pe.h: Likewise.
13683 * arm/tcoff.h: Likewise.
13684 * arm/telf.h: Likewise.
13685 * arm/tpe.h: Likewise.
13686 * arm/vxarm.h: Likewise.
13687 * convex/convex.c: Likewise.
13688 * i386/dgux.c: Likewise.
13689 * i386/sun386.h: Likewise.
13690 * m88k/m88k.c: Likewise.
13691 * mcore/mcore-pe.h: Likewise.
13692 * mips/mips.h: Likewise.
13693 * romp/romp.h: Likewise.
13694 * sh/sh.c: Likewise.
13695 * cpphash.c: Likewise.
13696 * cppinit.c: Likewise.
13697 * dwarf2out.c: Likewise.
13698 * dwarfout.c: Likewise.
13701 * mips-tfile.c: Likewise.
13702 * protoize.c: Likewise.
13703 * toplev.c: Likewise.
13704 * tree.h: Likewise.
13706 * version.c (version_string): Constify a char*.
13708 * version.h: New file.
13710 2000-02-14 Nick Clifton <nickc@cygnus.com>
13712 * configure.in: Add mcore-elf and mcore-pe targets.
13713 * configure: Regenerate.
13715 * NEWS: Add note that MCore port has been contributed.
13717 * invoke.texi: Document command line switches for MCore port.
13718 * install.texi: Add MCore to list of supported targets.
13720 2000-02-14 Geoff Keating <geoffk@cygnus.com>
13722 * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
13723 then we will need to import the frame handling functions.
13724 (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
13725 to import the frames themselves.
13727 Mon Feb 14 13:31:01 2000 Stan Cox <scox@cygnus.com>
13728 Jason Eckhardt <jle@cygnus.com>
13730 * basic_block.h: Added prototype for reorder_basic_blocks.
13731 * toplev.c: Changes to add -freorder-blocks and graph dump after
13732 block reordering is done.
13733 * flow.c (reorder_block_def): New structure for use during block
13735 (REORDER_BLOCK_*): New macros to access members of above structure.
13736 (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
13737 make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
13738 functions for block reordering.
13740 Mon Feb 14 11:24:44 2000 Hans-Peter Nilsson <hp@bitrange.com>
13742 * gcc.texi (Passes): Fix typo.
13743 * md.texi (Standard Names): Ditto.
13744 * tm.texi (Storage Layout): Ditto.
13746 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
13748 * cpplib.c (do_define): Only free the old definition if it
13751 2000-02-13 Neil Booth <NeilB@earthling.net>
13753 * cppfiles.c (read_and_prescan): When emitting deferred
13754 newlines, test speccase[] again instead of checking each
13755 possible whitespace character in turn. When we encounter \r,
13756 look behind for \n first, then ahead.
13758 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
13760 * cse.c (cse_altered): New internal flag.
13761 (cse_insn): Set it if we changed an insn.
13762 (cse_main): Clear cse_altered before each basic block.
13763 Only garbage collect if cse_altered is true afterward.
13765 Sun Feb 13 14:12:28 2000 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13767 * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
13769 Sun Feb 13 13:21:55 2000 Jeffrey A Law (law@cygnus.com)
13771 * combine.c (simplify_comparison): Fix typo.
13773 Sun Feb 13 12:57:52 2000 Neil Booth <NeilB@earthling.net>
13775 * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
13778 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13780 * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
13781 previously inserted node instead of root node. Caller changed.
13783 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13785 * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
13787 2000-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13789 * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
13790 __dereg_frame_dtor): Add prototype argument.
13792 * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
13794 * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
13796 * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
13798 * gthr-vxworks.h (__gthread_once): Likewise.
13800 * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
13802 Sat Feb 12 01:44:26 MET 2000 Jan Hubicka <jh@suse.cz>
13804 * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
13805 (ix86_expand_epilogue): ... here. Use mov instead of add to restore
13806 stack pointer in functions w/o saved registers, output LEAVE more often
13807 on TARGET_USE_LEAVE machines.
13809 2000-02-07 Dmitri Makarov <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
13811 * config/arm/arm.c (arm_init_cumulative_args); New function:
13812 Initlaise the CUMULATIE_ARGS strcuture for a function
13814 (arm_function_arg): New function: Determine where to place a
13815 function's argument. Also handles deciding the function's
13817 (current_file_function_operand): New function: Return true if
13818 the symbol is a function which has already been compiled.
13819 (arm_is_long_call_p): New function: Return true if the
13820 indicated function should be called via a long call.
13821 (arm_valid_type_attribute_p): New function: Return true if the
13822 attribute is a valid, arm specific, attribute.
13823 (arm_comp_type_attribute): New function: Return true if the
13824 two types have compatable, arm specific, attributes.
13826 * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
13828 (FUNCTION_ARG): Redefine to call arm_function_arg.
13829 (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
13831 (INIT_CUMULATIVE_ARGS): Redefine to call
13832 arm_init_cumulative_args.
13833 (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
13835 (SETUP_INCOMING_VARARGS): Redefine to use correct structure
13837 (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
13839 (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
13840 (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
13841 (COMP_TYPE_ATTRIBUTES): Define.
13843 * config/arm/arm.md (call): Call arm_is_long_call_p to decide
13844 if a long call is needed.
13845 (call_value): Call arm_is_long_call_p to decide if a long call
13847 (call_symbol): Call arm_is_long_call_p to decide if a long call
13850 * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
13852 2000-02-11 Denis Chertykov <denisc@overta.ru>
13854 * README.AVR: New file with information about the avr ports.
13855 * config/avr: New directory with avr port files.
13857 2000-02-11 Andreas Jaeger <aj@suse.de>
13859 * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
13861 2000-02-11 Zack Weinberg <zack@wolery.cumb.org>
13863 * cpphash.c: Fix formatting, update commentary.
13864 (dump_definition): Take three separate arguments instead of a
13865 MACRODEF structure argument.
13866 * cpphash.h: Update prototype of dump_definition.
13867 * cppinit.c (cpp_finish): Update call of dump_definition.
13869 * cpplib.c (do_define): Always create new hash entry with
13870 T_MACRO type. Remove redundant check for redefinition of
13871 poisoned identifier. Update call of dump_definition.
13872 (do_undef): Don't call check_macro_name. Rename sym_length to
13874 (do_error, do_warning): Don't use copy_rest_of_line or
13876 (do_warning): Don't use pedwarn for the actual warning,
13877 only the notice about its not being in the standard. (Fixes
13878 bug with #warning in system headers.)
13879 (do_ident): Stricter argument checking - accept only a single
13880 string after #ident. Also, macro-expand the line.
13881 (do_xifdef): Use cpp_defined. De-obfuscate.
13883 (do_pragma): Split out specific pragma handling to separate
13884 functions. Use get_directive_token. Update commentary. Do
13885 not pass on #pragma once or #pragma poison to the front end.
13886 (do_pragma_once, do_pragma_implementation, do_pragma_poison,
13887 do_pragma_default): New.
13889 Feb 11 12:30:53 2000 Jeffrey A Law (law@cygnus.com)
13891 * jump.c (jump_optimize_1): The first operand in a relational
13892 can be a CONST_INT.
13893 * optabs.c (emit_conditional_move): Handle relationals which
13894 have a known true/false result.
13896 2000-02-11 Geoff Keating <geoffk@cygnus.com>
13898 * function.c (thread_prologue_and_epilogue_insns): Don't insert
13899 a RETURN insn into a block which already ends with a jump.
13901 2000-02-11 Geoff Keating <geoffk@cygnus.com>
13903 * haifa-sched.c (BUF_LEN): Increase a lot.
13905 2000-02-11 Nick Clifton <nickc@cygnus.com>
13907 * configure.in: Add tm_p_file specification for thumb targets.
13908 * configure: Regenerate.
13910 * config/arm/thumb-protos.h: New file: Prototypes for exported
13911 functions defined in thumb.c.
13913 2000-02-11 Robert Lipe <robertl@sco.com>
13915 * Makefile.in (bootstrap-lean): Remove additional files.
13916 (bootstrap2-lean): Likewise.
13917 (VOL_FILES): List of files for above.
13919 2000-02-11 Nathan Sidwell <nathan@acm.org>
13921 * cpphash.c (special_symbol): Remove spurious argument to
13924 2000-02-11 Joel Sherrill (joel@OARcorp.com>
13926 * configure.in: (i*86-*-rtems*): Swapped elf and coff
13928 * configure: Rebuilt.
13930 2000-02-11 Rodney Brown <RodneyBrown@pmsc.com>
13932 * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
13934 Fri Feb 11 02:59:05 2000 Jeffrey A Law (law@cygnus.com)
13936 * pa.c, pa.h: Remove trigraph sequences within comments.
13938 Fri Feb 11 02:51:56 2000 Pavel Roskin <pavel_roskin@geocities.com>
13940 * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
13942 Fri Feb 11 02:48:30 2000 Brad Lucier (lucier@math.purdue.edu)
13944 * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
13946 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13948 * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
13950 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13952 * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
13953 (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
13954 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
13955 (ASM_FILE_END): Use c4x_file_end.
13956 * config/c4x/c4x.c (c4x_global_label): New function.
13957 (c4x_external_ref, c4x_file_end): Likewise.
13959 * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
13960 (c4x_external_ref, c4x_end_file): Likewise.
13962 2000-02-10 Zack Weinberg <zack@wolery.cumb.org>
13964 * cppexp.c: Don't include cpphash.h.
13965 (parse_charconst, cpp_lex): Use cpp_defined.
13966 (cpp_lex): Use get_directive_token throughout. Remove
13967 unnecessary cases from switch. Move assertion-handling code
13968 down to OTHER case.
13969 (cpp_parse_expr): If we see '+' or '-', check the context to
13970 determine if they are unary or binary operators. Streamline
13971 the jumps a bit. Do not call skip_rest_of_line.
13973 * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
13974 static. Export get_directive_token. Update commentary.
13975 (cpp_defined): New function.
13976 (do_define): Remove reference to T_PCSTRING. Call
13977 free_definition to release memory for old definition, when
13978 redefining a macro.
13979 (eval_if_expression): Set only_seen_white to 0 before calling
13980 cpp_parse_expr. Call skip_rest_of_line after it returns.
13981 (cpp_read_check_assertion): Don't preserve a pointer into the
13982 token buffer across a call to cpp_get_token.
13984 * Makefile.in (cppexp.o): Don't depend on cpphash.h.
13985 * cppfiles.c (redundant_include_p): Use cpp_defined.
13986 * cpphash.c (free_definition): New function.
13987 (delete_macro): Use it. Update commentary.
13988 * cpphash.h: Typedef HASHNODE here. Prototype cpp_lookup and
13990 * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
13991 from enum node_type. Prototype cpp_defined and get_directive_token.
13992 Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
13994 * fix-header.c (check_macro_names): Use cpp_defined.
13995 (read_scan_file): Set inhibit_warnings and inhibit_errors in
13996 the options structure.
13998 2000-02-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14000 * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
14002 2000-02-10 Jason Merrill <jason@casey.cygnus.com>
14004 * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
14005 rather than die->die_tag.
14007 Thu Feb 10 16:26:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14009 * combine.c (make_extraction, force_to_mode): Avoid warning on
14010 mixed-signedness conditionals.
14011 (make_field_assignment, nonzero_bits): Likewise.
14012 * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
14013 (store_split_bit_field, extract_split_bit_field): Likewise.
14014 (extract_fixed_bit_field, store_bit_field,
14015 * expr.c: Change alignment to be unsigned everywhere.
14016 (move_by_pieces, store_constructor_field, store_constructor):
14017 Alignment parm is unsigned.
14018 (emit_block_move, emit_group_load, emit_group_store): Likewise.
14019 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
14020 (do_compare_rtx_and_jump): Likewise.
14021 (move_by_pieces_ninsns, clear_by_pieces): Likewise.
14022 Compare align with GET_MODE_ALIGNMENT.
14023 (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
14024 (get_inner_reference): Likewise.
14025 (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
14026 (expand_assignment): Local vars for alignment now unsigned.
14027 (store_constructor, store_field, expand_expr, do_jump): Likewise.
14028 (do_compare_and_jump): Likewise.
14029 (store_field): Call new function expr_align.
14030 * expr.h (emit_block_move, emit_group_load, emit_group_store):
14031 Alignment arg now unsigned.
14032 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
14033 (do_compare_rtx_and_jump, store_bit_field): Likewise.
14034 (extract_bit_field): Likewise.
14035 * fold-const.c (add_double): Add cast to eliminate signedness warning.
14036 * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
14037 (get_best_mode): Alignment arg is unsigned.
14038 * rtl.h (move_by_pieces): Likewise.
14039 * store-layout.c (maximum_field_alignment, set_alignment):
14041 (layout_decl): Alignment arg is now unsigned.
14042 Remove unneeded casts.
14043 (layout_record, layout_union, layout_type): Remove unneeded casts.
14044 Local alignment variables now unsigned.
14045 (get_best_mode): Alignment arg now unsigned.
14046 * tree.c (expr_align): New function.
14047 * tree.h (expr_align): Likewise.
14048 (maximum_field_alignment, set_alignment): Now unsigned.
14049 (get_inner_reference): Alignment argument is now pointer to unsigned.
14050 * varasm.c (assemble_variable): Add cast to eliminate warning.
14052 Thu Feb 10 12:56:47 2000 Jim Wilson <wilson@cygnus.com>
14054 * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
14055 then store directly into op0.
14057 * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
14058 the CALL_INSN, and emit the note immediately after it.
14060 2000-02-10 Nick Clifton <nickc@cygnus.com>
14062 * config/arm/thumb.md (epilogue): Include a (return) in the
14063 generated insn, and emit it using emit_jump_insn not
14066 Thu Feb 10 18:28:59 MET 2000 Jan Hubicka <jh@suse.cz>
14068 * function.c (assign_temp): Change zero-sized arrays to size 1.
14069 * integrate.c (expand_inline_function): Do not update
14070 stack_alignment_needed
14071 * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
14072 add some sanity checking, remove optimization for function with
14075 2000-02-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14077 * flow.c (mark_regs_live_at_end): Delete unused variables.
14079 * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
14081 * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
14082 in macro FRAME_GROWS_DOWNWARD.
14084 * stmt.c (expand_end_bindings): Delete unused variable.
14086 * unroll.c (iteration_info): Mark parameter `loop' with
14089 2000-02-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14091 * fixinc/server.c (load_data): Return NULL if the marker line is
14093 (run_shell): If load_data returns NULL, retry the command once, in
14096 * configure: Rebuilt.
14098 2000-02-09 Bruce Korb <bkorb@gnu.org>
14100 * gcc/fixincludes: ** DELETED **
14101 * gcc/fixcpp: ** DELETED **
14102 * gcc/fixinc-nt.sed: ** DELETED **
14103 * gcc/just-fixinc: ** DELETED **
14104 * gcc/Makefile.in: Removed out-dated commentary
14105 * gcc/configure.in: Removed fast-fixincludes disablement.
14106 * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
14108 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
14109 * function.c (thread_prologue_and_epilogue_insns): Uncomment
14112 2000-02-09 Richard Henderson <rth@cygnus.com>
14114 * jump.c (delete_insn): Don't delete user labels at -O0.
14116 2000-02-09 Robert Lipe <robertl@sco.com>
14118 * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
14119 Don't link with HOST_LIBS.
14121 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
14123 * configure.in: Correct --help text for --with-dwarf2.
14124 Put tm-dwarf2.h after other tm files, if it's requested.
14125 * configure: Regenerate.
14126 * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
14129 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
14131 * cpplib.h: Provide HASHNODE typedef and forward decl of
14132 struct hashnode only. Kill cpp_hashnode typedef. MACRODEF,
14133 DEFINITION, struct hashnode, struct macrodef, struct
14134 definition, scan_decls prototype, default defn of
14135 INCLUDE_LEN_FUDGE moved elsewhere.
14137 * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
14138 definition, and struct hashnode moved here. Remove the unused
14139 'predefined' field from struct definition. Replace the 'args'
14140 union with its sole member. All users updated (cpphash.c).
14141 Delete HASHSTEP and MAKE_POS macros, and hashf prototype. Add
14142 multiple include guard.
14144 * cpphash.c (hashf): Make static; use better algorithm; drop
14145 HASHSIZE parameter; return an unsigned int.
14146 (cpp_lookup): Drop HASH parameter. PFILE parameter is
14147 used. Calculate HASHSIZE modulus here.
14148 (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
14150 (create_definition): Drop PREDEFINITION parameter.
14151 * cpplib.c (do_define): Don't calculate a hash value here.
14152 Don't pass (keyword == NULL) to create_definition.
14154 * scan.h: Prototype scan_decls here.
14155 * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
14156 * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
14157 callers of cpp_lookup and cpp_install updated.
14159 * cpphash.c (macarg): Hoist all the flag diddling out of the
14161 (macroexpand): ... and out of the loop that calls macarg.
14162 Skip over the initial paren before macro arguments with
14163 cpp_get_non_space_token; point may be some distance before
14164 that paren. Abort if it's not there.
14166 * cpplib.c (parse_clear_mark): Delete function.
14167 (parse_set_mark, parse_goto_mark): Make static.
14168 (ACTIVE_MARK_P): New macro.
14169 (skip_block_comment, skip_line_comment): Do not bump the line
14170 if ACTIVE_MARK_P is true.
14171 (cpp_pop_buffer): The buffer to be popped may not have an
14173 (cpp_get_token): When looking for the initial paren before
14174 macro arguments, only set a mark in a file buffer, Always
14175 return to that mark before proceeding to call macroexpand or
14176 return a NAME token.
14178 * cpplib.h: Remove prototypes of parse_set_mark,
14179 parse_clear_mark, parse_goto_mark.
14180 (struct cpp_options): Rename 'put_out_comments' to
14181 'discard_comments' and invert its sense.
14182 * cppinit.c, cpphash.c, cpplib.c: All users of
14183 put_out_comments changed to use discard_comments, with
14186 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
14188 * function.c (thread_prologue_and_epilogue_insns): Don't delete
14189 the edge from a block that both jumps and falls through to the
14192 2000-02-09 Scott Bambrough <scottb@netwinder.org>
14194 * config/arm/arm.md (movsi): In PIC mode, make sure that a
14195 constant source address is legitimate.
14197 2000-02-09 Philip Blundell <pb@futuretv.com>
14199 * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
14202 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
14204 (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
14206 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
14208 * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
14209 ends with a newline and a NUL. Don't be so clever manipulating
14212 Wed Feb 9 14:18:08 MET 2000 Jan Hubicka <jh@suse.cz>
14214 * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
14215 not to BIGGEST_ALIGNMENT.
14217 2000-02-08 Geoff Keating <geoffk@cygnus.com>
14219 * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
14220 * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
14221 (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
14222 (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
14223 * frame.c (execute_cfa_insn): Handle
14224 DW_CFA_GNU_negative_offset_extended.
14226 2000-02-08 Richard Henderson <rth@cygnus.com>
14228 * flow.c (tidy_fallthru_edges): Split out from ...
14229 (delete_unreachable_blocks): ... here.
14230 (find_basic_blocks): Use it.
14232 Tue Feb 8 15:51:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14234 * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
14236 2000-02-08 Zack Weinberg <zack@wolery.cumb.org>
14238 * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
14239 (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
14240 (fix-header.o): Don't depend on cpphash.h.
14242 * scan.c (hashstr): New function.
14243 * scan.h: Prototype it.
14244 * fix-header.c: Don't include cpphash.h. Use hashstr.
14245 * gen-protos.c: Don't include cpphash.h or cpplib.h. Use
14246 hashstr. Report hash table statistics. Add private
14247 definition of xrealloc.
14249 2000-02-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14251 * i386.h (TARGET_SWITCHES): Fix typo in option name.
14253 2000-02-08 Clinton Popetz <cpopetz@cygnus.com>
14255 * function.c (thread_prologue_and_epilogue_insns): Don't replace
14256 jumps with returns unless they are jumps to the fallthru block.
14258 Tue Feb 8 07:53:55 2000 Jan Hubicka <jh@suse.cz>
14260 * i386.md (addqi3_cc): Fix contraints.
14262 Tue Feb 8 01:39:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
14264 * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
14266 2000-02-07 Mark Mitchell <mark@codesourcery.com>
14268 * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
14269 carriage return after a macro name.
14271 2000-02-07 Fred Fish <fnf@be.com>
14273 * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
14274 so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
14276 2000-02-07 Zack Weinberg <zack@wolery.cumb.org>
14278 * cppfiles.c (deps_output): Count spacers in deps_column.
14280 2000-02-07 Neil Booth <NeilB@earthling.net>
14282 * cppinit.c (initialize_dependency_output): If there is no
14283 suffix, don't try to look for known suffixes. Use strrchr.
14284 (cpp_start_read): Remove duplicate initialization.
14286 Mon Feb 7 18:36:41 MET 2000 Jan Hubicka <jh@suse.cz>
14288 * calls.c (compute_argument_block_size): New argument
14289 preferred_stack_boundary.
14290 (expand_call): update cfun->preferred_stack_boundary, update call of
14291 compute_argument_block_size
14292 (emit_library_call): Increate cfun->preferred_stack_boundary
14293 to PREFERRED_STACK_BOUNDARY
14294 (emit_library_call_value): Likewise.
14295 * explow.c (allocate_dynamic_stack_spave): Likewise.
14296 * function.c (prepare_function_start): Set
14297 cfun->preferred_stack_boundary
14298 * function.h (struct function): Add preferred_stack_boundary field.
14299 * integrate.c (expand_inline_function): Update
14300 cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
14301 (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
14302 * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
14304 2000-02-06 Zack Weinberg <zack@wolery.cumb.org>
14306 * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
14307 cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
14308 cpp_pedwarn, cpp_pedwarn_with_line,
14309 cpp_pedwarn_with_file_and_line): Move to cpperror.c.
14310 (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
14311 v_cpp_error_with_line, v_cpp_warning_with_line,
14312 cpp_message_from_errno, cpp_perror_with_name): Delete.
14314 * cpperror.c (cpp_print_containing_files): Take starting
14315 buffer as argument.
14316 (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
14317 (v_cpp_message): Now called directly by all entry points.
14319 (cpp_pfatal_with_name, cpp_message): Delete.
14320 (cpp_notice_from_errno, cpp_ice): New functions.
14321 (cpp_notice): Is now for reporting error conditions, just
14322 without an associated file.
14323 (cpp_error, cpp_error_with_line): Don't do anything if
14324 opts->inhibit_errors is on.
14325 (cpp_pedwarn_with_file_and_line): Take column argument also.
14327 * cpplib.h: Update prototypes of exported functions.
14328 (struct cpp_options): Add inhibit_errors.
14330 * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
14331 non-error messages. Include intl.h.
14333 * cppinit.c, cppmain.c: Likewise. Also, use
14334 cpp_notice_from_errno instead of cpp_perror_with_name or
14335 cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
14337 * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
14338 report internal errors.
14340 * cpplib.c (do_define): Switch bcopy to memcpy.
14341 Give cpp_pedwarn_with_file_and_line a dummy column argument.
14343 * cpplib.c (copy_rest_of_line): Revert previous change: don't
14344 bail out early if we hit a line comment.
14346 2000-02-06 Richard Henderson <rth@cygnus.com>
14348 * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
14349 * basic-block.h: Declare them.
14350 * emit-rtl.h (active_insn_p): New.
14351 (next_active_insn, prev_active_insn): Use it.
14352 * rtl.h: Declare it.
14353 * function.c (emit_return_into_block): New.
14354 (thread_prologue_and_epilogue_insns): Insert return insns instead
14355 of epilogues when possible.
14356 * jump.c (jump_optimize_1): Remove code to insert a return insn
14357 on the fallthru to the exit block.
14359 * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
14360 and for non-empty stack frames.
14361 * i386.md (return): Expand to return-pop as needed.
14363 2000-02-06 Richard Henderson <rth@cygnus.com>
14365 * simplify-rtx.c (simplify_relational_operation): Canonicalize
14366 constant to op1 for testing.
14368 2000-02-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14370 * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
14371 (fixuns_truncqfqi2): Use it.
14373 2000-02-06 Richard Henderson <rth@cygnus.com>
14375 * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
14376 as a TYPE_LEA insn.
14378 * i386.md (widening and peepholes): Mask the constant instead of
14381 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
14383 * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
14384 input pointer before possibly branching off to the backslash
14386 * cpphash.c (macroexpand): Correctly delete \r escapes when
14387 stringifying parameters.
14388 * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
14389 if we can; bail out early if we hit a line comment.
14390 (handle_directive): Treat '# 123' in an .S file just like
14391 '# <punctuation>'. Discard the shifted '#' if we hit '#\n'.
14392 Return 1 for '# not_a_directive'.
14393 (get_directive_token): Pop macro buffers here, so that
14394 cpp_get_token can't sneakily move past a newline.
14396 (cpp_get_token): goto randomchar if handle_directive returns 0.
14398 * cppalloc.c: Update copyright.
14399 * cpplib.c: Merge all the static function prototypes into one
14401 * cpplib.h: Remove #if 0 block.
14403 * cpperror.c: Remove #ifdef EMACS block.
14404 * cppmain.c: Likewise.
14405 * cpphash.c: Remove #if 0 blocks.
14406 * cppinit.c: Remove #if 0 blocks, and the -lint option.
14407 * cpplib.c: Remove #if 0 blocks and code referencing
14408 pcp_inside_if or for_lint. Remove duplicate error message.
14409 Fix error messages for #else after #else or #elif. Reformat.
14410 Remove archaic TODO list.
14411 * cpplib.h: Remove pcp_inside_if and for_lint flags.
14413 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
14415 * i386/osf1elf.h: Add missing backslash to multiline string.
14417 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14419 * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
14421 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14423 * Makefile.in (c-common.o): Depend on $(EXPR_H).
14425 * c-common.c: Include expr.h.
14427 * c-pragma.c (mark_align_stack): Add prototype.
14429 * caller-save.c (add_stored_regs): Likewise.
14431 * combine.c (record_promoted_value): Likewise.
14433 * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
14436 * cppinit.c (new_pending_define): Likewise.
14438 * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
14440 * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
14441 AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
14442 AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
14443 class_scope_p): Likewise.
14445 * dwarf2out.h (dwarf2out_set_demangle_name_func,
14446 dwarf2out_add_library_unit_info): Likewise.
14448 * ggc.h (ggc_page_print_statistics): Likewise.
14450 * haifa-sched.c (propagate_deps): Likewise.
14452 * reg-stack.c (next_flags_user, record_label_references): Likewise.
14454 * rtl.h (set_stack_check_libfunc): Likewise.
14456 * toplev.h (set_fatal_function): Likewise.
14458 * toplev.c (set_fatal_function): Delete prototype.
14460 * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
14462 2000-02-05 Geoff Keating <geoffk@cygnus.com>
14464 * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
14465 (FUNC_END): Likewise.
14467 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14469 * caller-save.c: Include tm_p.h.
14471 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14473 * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
14475 2000-02-04 Neil Booth <NeilB@earthling.net>
14477 * cccp.c (main): Check 'dir' for a NULL pointer before passing
14480 2000-02-04 Zack Weinberg <zack@wolery.cumb.org>
14482 * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
14483 * genflags.c: Use the max_operand_1 logic from genemit.c to
14484 calculate how many arguments gen_insn prototypes have. Remove
14485 NO_MD_PROTOTYPES ifdefs from the generated file.
14486 * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
14487 file. Cast gen_insn initializers to insn_gen_fn.
14488 * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
14489 * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
14491 2000-02-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14493 * fixinc/Makefile.in (HDR): Add machname.h.
14496 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14498 * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
14499 (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
14500 (c4x_cpu_version): Ditto.
14501 * config/c4x/c4x-protos.h: ... here.
14503 2000-02-04 Jason Merrill <jason@casey.cygnus.com>
14505 * dwarf2out.c (add_abstract_origin_attribute): Don't call
14506 gen_abstract_function on our context if we're a nested function.
14508 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14510 * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
14511 * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
14513 2000-02-04 Bruce Korb <bkorb@gnu.org>
14515 * fixinc/genfixes(machname.h):
14516 Move the functionality from gen-machine.h into this file.
14517 UNdef MN_NAME_PAT if there are no names to change.
14518 Also, be a little kinder when AutoGen is not present.
14520 * fixinc/Makefile.in(machname.h):
14521 Change the generation rule to use genfixes.
14523 * fixinc/fixfixes.c(machine_name):
14524 machine_name_fix's functionality now dependent upon whether
14525 MN_NAME_PAT is defined.
14527 * fixinc/fixtests.c(machine_name):
14530 * fixinc/fixlib.c(mn_get_regexps): conditional on definition
14533 * fixinc/fixlib.h(mn_get_regexps):
14536 * fixinc/gen-machine.h: DELETED
14538 2000-02-04 Jan Hubicka <jh@suse.cz>
14539 Richard Henderson <rth@cygnus.com>
14541 * i386.c (SAVE_REGS_FIRST): Remove.
14542 (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
14543 (ix86_compute_frame_size): Likewise.
14544 (ix86_expand_prologue): Likewise. Use pro_epilogue_adjust_stack.
14545 (ix86_emit_restore_regs): Remove.
14546 (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
14547 when a frame pointer is in use.
14548 (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode. Use mov
14549 instead of pop to restore a register when profitable; emit leave
14551 (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
14552 as a TYPE_LEA insn.
14553 (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
14554 * i386.md (prologue_allocate_stack): Remove.
14555 (epilogue_deallocate_stack): Remove.
14556 (pro_epilogue_adjust_stack): New.
14558 2000-02-04 Richard Henderson <rth@cygnus.com>
14560 * function.c (diddle_return_value): Rework to use a callback function.
14561 Use current_function_return_rtx if it's been set up.
14562 (do_clobber_return_reg, clobber_return_register): New.
14563 (do_use_return_reg, use_return_register): New.
14564 (expand_function_end): Use them.
14565 * stmt.c (expand_null_return): Likewise.
14566 * function.h: Declare them.
14567 * flow.c (mark_regs_live_at_end): Use diddle_return_value.
14568 (mark_reg): Change arguments as appropriate for callback.
14569 * integrate.c (expand_inline_function): Revert 19 Jan change.
14571 Fri Feb 4 20:25:42 2000 Hans-Peter Nilsson <hp@bitrange.com>
14573 * tm.texi (Values in Registers): Fix typo: "fo" "for".
14574 (Misc): Say the scheduler, not the Haifa scheduler.
14576 2000-02-04 Clinton Popetz <cpopetz@cygnus.com>
14578 * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
14579 when in_mem is set. Update all callers.
14581 2000-02-04 Richard Henderson <rth@cygnus.com>
14583 * i386/openbsd.h (INT_ASM_OP): Define.
14585 Fri Feb 4 10:51:30 2000 Hans-Peter Nilsson <hp@bitrange.com>
14587 * tm.texi: Fix various typos.
14589 Thu Feb 3 17:17:32 2000 Steve Ellcey <sje@cup.hp.com>
14591 * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
14592 (MD_STARTFILE_PREFIX_1): New macro.
14594 Thu Feb 3 15:08:13 MET 2000 Jan Hubicka <jh@suse.cz>
14596 * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
14597 destination when needed.
14598 (strmovsi, strsetsi): New expander.
14599 (strmovsi_1, strsetsi_1): New pattern.
14600 * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
14601 TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
14602 (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
14603 * invoke.texi (align-stringops, inline-all-stringops): Document.
14605 Wed Feb 2 23:04:47 2000 Krister Walfridsson <cato@df.lth.se>
14607 * i386/netbsd.h (INT_ASM_OP): Define.
14609 2000-02-02 Zack Weinberg <zack@wolery.cumb.org>
14611 * cpplib.h (cpp_reader): Add new flag, no_directives.
14612 * cpphash.c (macarg): Set it.
14613 * cpplib.c (handle_directive): If no_directives is on and we
14614 find a directive, issue an error and discard the line.
14616 Wed Feb 2 13:07:10 2000 Jim Wilson <wilson@cygnus.com>
14618 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
14619 FP constants. Add ! TARGET_FPU check for FP constants.
14621 2000-02-02 Clinton Popetz <cpopetz@cygnus.com>
14623 * flow.c (find_basic_blocks): Don't kill label_value_list
14625 (cleanup_cfg): Kill it here.
14627 Wed Feb 2 08:12:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14629 * expr.c (store_field): Ensure ALIGN is no stricter than the
14632 2000-02-02 Richard Henderson <rth@cygnus.com>
14634 * jump.c (delete_insn): Partially revert 19 Jan change;
14635 don't convert unused code labels to notes at -O0.
14637 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14639 * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
14640 split_all_insns to recreate REG_LABEL notes for flow2 pass.
14642 2000-02-01 Richard Henderson <rth@cygnus.com>
14644 * i386.c (general_no_elim_operand): New.
14645 (nonmemory_no_elim_operand): New.
14646 (ix86_expand_move): Copy eliminable operands before a push.
14647 * i386-protos.h: Declare new functions.
14648 * i386.h (CAN_ELIMINATE): Simplify.
14649 (PREDICATE_CODES): Update.
14650 * i386.md (push insns): Don't allow eliminable register operands.
14652 2000-02-01 Richard Henderson <rth@cygnus.com>
14654 * flow.c (mark_regs_live_at_end): Follow expand_function_end and
14655 replace BLKmode with DECL_RTL's mode.
14657 2000-02-01 Zack Weinberg <zack@wolery.cumb.org>
14659 * frame.c (find_fde): Convert for loop to do-while so compiler
14660 sees it's always executed at least once.
14661 * libgcc2.c (BBINBUFSIZE): Kill.
14662 (__bb_init_prg): Use fgets.
14663 (__bb_exit_trace_func): Don't paste strings.
14664 * unroll.c (unroll_loop): Initialize unroll_type, not
14665 unroll_number, and tweak logic to match.
14667 * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
14669 (ix86_flags_dependant): Likewise. Disentangle control flow.
14670 (ix86_sched_reorder): Break guts out to
14671 ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
14672 (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
14675 * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
14676 use string concatenation. Don't save and restore esi.
14678 * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
14679 (machname.h): Remove script to separate file. Use two-step
14680 sequence so target is not created if script fails.
14681 * fixinc/gen-machname.h: New file. Handle case where no non-reserved
14682 identifiers are defined.
14683 * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
14684 an empty string, machine_name doesn't need to do anything at
14686 (is_cxx_header): Add more cases to regexp.
14687 * fixinc/fixlib.h: Update prototype.
14688 * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
14690 * fixinc/fixincl.c: Define NO_BOGOSITY.
14692 * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
14693 (hp_sysfile): Add missing comma.
14694 (math_exception): Put the wrapper ifdefs at the beginning and
14695 the end of the file.
14696 * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
14698 2000-02-01 Richard Henderson <rth@cygnus.com>
14700 * sparc.c (fp_zero_operand): Turn into a normal predicate.
14701 Use CONST0_RTX. Update all callers.
14702 * sparc.h, sparc-protos.h: Update accordingly.
14703 * sparc.md (fp mov insns): Use fp_zero_operand directly
14706 Wed Feb 2 02:59:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
14708 * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
14711 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14713 * Makefile.in (specs.ready): New target.
14714 (fixinc.sh): Depend on `specs.ready' instead of `specs'.
14716 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14718 * fixinc.irix: Use unique filenames for writing into /tmp,
14719 * fixinc.ptx: Likewise.
14720 * fixinc.sco: Likewise.
14721 * fixinc.svr4: Likewise.
14722 * fixinc.winnt: Likewise.
14724 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14726 * tsystem.h: New file.
14728 * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
14729 s-crtS): Depend on tsystem.h.
14731 * crtstuff.c: Include tsystem.h.
14732 * frame.c: Likewise.
14733 * libgcc2.c: Likewise.
14735 Tue Feb 1 19:53:27 CET 2000 Jan Hubicka <jh@suse.cz>
14737 * builtins.c (expand_builtin_memset): Expand for variable sized
14740 2000-02-01 David Billinghurst <David.Billinghurst@riotinto.com.au>
14742 * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
14745 Tue Feb 1 00:57:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
14747 * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
14749 * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
14751 2000-01-31 Chandra Chavva <cchavva@cygnus.com>
14753 * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
14754 case 3->2 combining (combining with splitting) in which 2 is CC0
14755 setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
14756 checked at the begining of the function with the aid of calling
14757 function 'can_combine_p'.
14759 2000-01-31 Dave Brolley <brolley@redhat.com>
14761 * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
14763 2000-01-31 Jason Merrill <jason@casey.cygnus.com>
14765 * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
14768 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14770 * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
14772 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
14775 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
14777 * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
14778 i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
14779 i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
14780 i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
14781 i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
14782 i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
14783 i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
14784 i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
14785 i386/vxi386.h, i386/win-nt.h, i386/win32.h:
14786 Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
14788 * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
14789 Add %(cpp_cpu) to CPP_SPEC.
14791 * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
14792 Add %(cc1_cpu) to CC1_SPEC.
14794 2000-01-28 Ulrich Drepper <drepper@redhat.com>
14796 * c-decl.c (c_decode_option): Accept optional numeric argument to
14797 -Wformat and set warn_format.
14798 * c-common.c: Don't emit warning about non-constant printf format
14799 string unless warn_format > 1.
14801 2000-01-30 Richard Henderson <rth@cygnus.com>
14803 * alpha.md (return_internal): Allow after reload only.
14805 2000-01-30 Richard Henderson <rth@cygnus.com>
14807 * i386.c (ix86_compute_frame_size): Omit padding1 if the
14808 local frame size is zero.
14810 2000-01-30 Richard Henderson <rth@cygnus.com>
14812 * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
14813 * alpha.h (EPILOGUE_USES): New. Mark $26 live.
14814 * alpha.md (return): Turn into an expander.
14815 (return_internal): Don't use $26.
14816 (epilogue): Emit the return insn.
14818 2000-01-30 Richard Henderson <rth@cygnus.com>
14820 * alpha.md (negtf2, abstf2): Fix word order thinko.
14821 (extendsftf2): New.
14822 (trunctfsf2): Avoid intermediate rounding errors.
14824 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
14826 * cppfiles.c (find_position): Drop 'colp' argument, return the
14828 (read_and_prescan): Adjust to match. Don't ever manipulate
14829 line or line_base except via find_position.
14831 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
14833 * c-parse.in: Apply Ulrich's changes from c-parse.y.
14834 * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
14837 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
14839 * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
14840 just print "<command line>". If 'filename' is null or an
14841 empty string, print "<stdin>" for the filename.
14842 * cpplib.c (do_define): Don't print the 'location of the
14843 previous definition' message if we're still parsing the
14845 (cpp_pedwarn_with_file_and_line): Always call
14846 cpp_file_line_for_message.
14848 2000-01-29 Mark Mitchell <mark@codesourcery.com>
14850 * flow.c (mark_regs_live_at_end): Fix typo.
14852 2000-01-28 Ulrich Drepper <drepper@redhat.com>
14854 * c-common.c: Adjust variable names, comments, help strings to c99.
14855 * c-lex.c: Likewise.
14856 * c-parse.y: Likewise.
14857 * c-tree.h: Likewise.
14858 * cccp.c: Likewise.
14859 * cpplib.h: Likewise.
14860 * c-decl.c: Likewise. Recognize options with names "*99" as well.
14861 * cppinit.c: Likewise.
14863 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14865 * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
14866 * c4x.c: Define the optab rtx values.
14867 (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
14868 (c4x_emit_libcall): Use new optab rtx values.
14869 (c4x_emit_libcall3): Likewise.
14870 (c4x_emit_libcall_mulhi): Likewise.
14871 * c4x-protos.h: Add prototypes for optab rtx values and change
14872 prototypes for above c4x_emit_libcall functions.
14874 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14876 * c4x.c (c4x_output_ascii): Restrict line length of output when TI
14878 (c4x_function_prologue): Use regnames intead of float_reg_names when
14880 (c4x_function_epilogue): Likewise.
14881 (c4x_print_operand): Likewise.
14882 * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
14883 * c4x.md (set_high): Disable for TARGET_TI.
14885 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14887 * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
14888 of framepointer + constant to ADDR_REGS class.
14889 * c4x.md (addqi3, addqi3_noclobber_reload): Update.
14890 * c4x.c (std_or_reg_operand): New function.
14891 * c4x-protos.h (std_or_reg_operand): Prototype it.
14893 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14895 * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
14896 object names as libgcc2.c.
14897 * libgcc.S: Use newly defined names.
14899 Fri Jan 7 19:48:04 CET 2000 Jan Hubicka <jh@suse.cz>
14900 * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
14902 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
14903 * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
14904 (FLOW_LOOP_LAST_BLOCK): Likewise.
14906 2000-01-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14908 * basic-block.h (struct loop): New fields 'first' and 'last'.
14909 * flow.c (flow_loops_find): Compute loop->first and loop->last.
14910 (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
14911 and loop->last to check for NOTE_INSN_LOOP_END.
14913 Fri Jan 28 10:57:58 2000 Jason Eckhardt <jle@cygnus.com>
14915 * predict.c (estimate_probability): Use the new FIRST and LAST fields
14916 of the loop descriptor rather than HEADER and LATCH. Also added
14917 missing break statements as well making some coding style modifications
14918 as suggested by Michael Hayes.
14920 2000-01-28 Richard Henderson <rth@cygnus.com>
14922 * flow.c (find_basic_blocks): Remove do_cleanup argument.
14923 Break out that code ...
14924 (cleanup_cfg): ... here.
14925 (commit_one_edge_insertion): Detect a return instruction being
14926 emitted to an edge. Emit a barrier following; clear fallthru.
14927 (commit_edge_insertions): Verify CFG consistency.
14928 * function.c (expand_function_start): Kill unused variable.
14929 (expand_function_end): Likewise.
14930 (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
14931 to insert the epilogue.
14933 * gcse.c (gcse_main): Adjust for find_basic_blocks change.
14934 (delete_null_pointer_checks): Likewise.
14935 * output.h: Likewise.
14936 * reg-stack.c (reg_to_stack): Likewise.
14937 * toplev.c (rest_of_compilation): Likewise. Run
14938 thread_prologue_and_epilogue_insns after rebuilding the CFG.
14940 2000-01-28 Richard Henderson <rth@cygnus.com>
14942 * Makefile.in (flow.o): Revert 24 Jan change.
14943 * flow.c (mark_regs_live_at_end): Likewise. Force BLKmode
14944 FUNCTION_VALUE result to DECL_RESULT's mode.
14946 * haifa-sched.c (schedule_insns): Don't recompute reg info
14949 2000-01-28 Zack Weinberg <zack@wolery.cumb.org>
14951 * configure.in: Make --enable-cpplib the default.
14952 * configure: Regenerate.
14953 * gcc.dg/990119-1.c: No longer expected to fail.
14955 2000-01-28 Bernd Schmidt <bernds@cygnus.co.uk>
14957 * jump.c (jump_optimize_1): Delete an optimization that is also done
14958 by merge_blocks in flow.
14960 2000-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14962 * diagnostic.c (build_message_string, output_printf,
14963 line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
14964 (build_location_prefix): Fix non-literal format string.
14966 2000-01-27 Richard Henderson <rth@cygnus.com>
14968 * alpha.md (trunctfsf2): New.
14970 2000-01-27 Andrew Hobson <ahobson@eng.mindspring.net>
14972 * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
14974 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
14976 * cppinit.c (cpp_handle_option): Recognize C++ comments under
14978 * cpplib.c (skip_block_comment, skip_line_comment): Split code
14980 (skip_comment) ... here. Permit C++ comments in system
14981 headers always. Warn about C++ comments in user code under
14982 -std=gnu89 -pedantic.
14983 (copy_comment): Use skip_comment.
14984 (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
14986 (consider_directive_while_skipping, do_else, do_endif): Call
14987 validate_else unconditionally.
14988 (validate_else): Check CPP_PEDANTIC here. Accept non-comment
14989 text after the conditional in a system header.
14990 * cpplib.h (struct cpp_buffer): Add flag
14991 warned_cplusplus_comments.
14993 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
14995 * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
14996 Use unshare_all_rtl_1.
14997 (unshare_all_rtl_again): New function.
14998 (unshare_all_rtl_1): New function split out of unshare_all_rtl.
15000 * function.c (purge_addressof_1): Use unshare_all_rtl_again
15001 rather than resetting the 'used' flags ourself.
15003 * toplev.c (rest_of_compilation): Add current_function_decl
15004 to the unshare_all_rtl call.
15005 * tree.h: Prototype unshare_all_rtl.
15006 * rtl.h: Prototype unshare_all_rtl_again here.
15008 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
15010 * genoutput.c (output_prologue): Include ggc.h in generated
15012 * Makefile.in (insn-output.o): Depends on ggc.h.
15014 2000-01-27 Ian Dall <ian@sibyl.beware.dropbear.id.au>
15015 Hans-Peter Nilsson <hp@bitrange.com>
15017 * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
15018 Remove redundant include of xm-ns32k.h.
15019 * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
15020 Remove redundant include of xm-ns32k.h.
15021 * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
15022 Remove redundant include of xm-ns32k.h.
15023 * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
15025 * ns32k/ns32k.h: Update comment on multiply-add instructions.
15026 (TARGET_SWITCHES): Add documentation strings.
15027 (DWARF_FRAME_REGNUM): Override default definition.
15028 (REG_CLASS_CONTENTS): Add comments.
15029 (SUBSET_P): Format to reduce line length.
15030 (SMALL_REGISTER_CLASSES): Make a run time option.
15031 (GO_IF_NONINDEXED_ADDRESS): Reformat.
15032 (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
15033 dereferencing it. Braces to avoid "ambiguous else" were misplaced.
15034 (regclass_map): fix typo in comment.
15035 * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
15036 Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
15037 (trace, reg_or_mem_operand): Delete, unused function.
15038 (calc_address_cost): Small offsets are cheaper than large ones.
15039 (expand_block_move): Generate more efficient code when bytes is a
15040 known at compile time.
15041 * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
15042 (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
15043 instead of reg_or_mem_operand.
15045 * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
15046 not general_operand. Similarly use "=rm" or stricter, not "=g".
15047 For input operands, use stricter constraints than "g" if not
15048 general_operand. Similarly use stricter predicate than
15049 "general_operand" when stricter constraints than "g" are present,
15050 except for matching constraints.
15051 (movstrsi): Use "memory_operand" for operands 0 and 1.
15052 (truncsiqi2, truncsihi2, trunchiqi2): Remove.
15053 (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
15054 not reg_or_mem_operand.
15055 (udivmoddisi4): Ditto.
15056 Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
15057 Use nonimmediate_operand for operand 3, not register_operand.
15058 (udivmoddiqi4_internal): Use register_operand for operand 1, not
15059 reg_or_mem_operand.
15061 2000-01-27 Fred Fish <fnf@be.com>
15063 * gthr-posix.h: Fix typo; compatibily -> compatibility.
15064 * gthr-single.h: Likewise.
15065 * gthr-solaris.h: Likewise.
15066 * gthr-vxworks.h: Likewise.
15067 * gthr-win32.h: Likewise.
15068 * gthr.h: Likewise.
15070 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
15072 * cppinit.c: Add " (cpplib)" to end of string printed by
15075 2000-01-27 Richard Henderson <rth@cygnus.com>
15077 * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
15078 testing for a signed comparison.
15079 (alpha_emit_floatuns): New.
15080 * alpha-protos.h: Declare it.
15081 * alpha.md (floatunsdisf2, floatunsdidf2): New.
15082 (extendsfdf2): Tidy.
15084 2000-01-27 Jakub Jelinek <jakub@redhat.com>
15086 * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
15087 no -g option specifying debugging format, default to -gstabs+.
15089 Wed Jan 26 22:19:14 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15091 * calls.c (special_function_p): New argument fork_or_exec.
15092 (expand_call): When profile_arc_flag is set and the function
15093 is in the fork_or_exec group, call __bb_fork_func first.
15094 * libgcc2.c, _bb module (__bb_fork_func): New function.
15095 (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
15097 * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
15098 * tree.h (special_function_p): Update prototype.
15100 2000-01-26 Richard Henderson <rth@cygnus.com>
15102 * alpha.c (alpha_split_tfmode_pair): New.
15103 * alpha-protos.h: Declare it.
15104 * alpha.md (abstf2, negtf2): New.
15105 (movtf insn): Add input G constraint.
15106 (movtf splitter): Use alpha_split_tfmode_pair.
15108 2000-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15110 * i386/cygwin.h: PROTO -> PARAMS.
15112 2000-01-26 Jakub Jelinek <jakub@redhat.com>
15114 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
15115 TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
15116 using _Qp_cmp/_Q_cmp and testing the return value.
15117 (print_operand): Call reverse_condition_maybe_unordered if
15118 we are handling CCFPmode or CCFPEmode.
15119 Handle ORDERED, UN* and LTGT comparisons.
15120 * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
15121 if not TARGET_HARD_QUAD.
15122 (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
15123 bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
15124 Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
15125 Adjust gen_b* calls so that they reflect return comparison of
15126 sparc_emit_float_lib_cmp.
15128 2000-01-26 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
15130 * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
15131 incoming operands array is large enough for one more operand.
15132 (alpha_emit_xfloating_arith): Likewise.
15134 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
15136 * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
15137 file with one line and no trailing newline.
15138 Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
15139 * fixinc/fixtests.c (machine_name_test): Fix fencepost error
15140 checking if the match is on the line.
15141 * fixinc/gnu-regex.c: Provide regerror not __regerror.
15143 2000-01-25 Richard Henderson <rth@cygnus.com>
15145 * sparc.c (output_cbranch): Fix accidental squashing of the
15146 fp branch pre-delay nop.
15148 2000-01-25 Richard Henderson <rth@cygnus.com>
15150 * tree.def (UNNE_EXPR): Remove.
15151 * c-typeck.c (build_binary_op): Don't handle it.
15152 * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
15154 * rtl.def (UNNE): Remove.
15156 * jump.c (reverse_condition): Update accordingly.
15157 (swap_condition): Likewise.
15158 (comparison_dominates_p): Handle unordered comparisons.
15159 (reverse_condition_maybe_unordered): New.
15160 * rtl.h (reverse_condition_maybe_unordered): Declare.
15162 * sparc.c (select_cc_mode): Update for UNNE/LTGT.
15163 (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
15164 * sparc.h (REVERSIBLE_CC_MODE): Always true. Update docs.
15165 * sparc.md (bltgt): New.
15167 2000-01-25 Nick Clifton <nickc@redhat.com>
15169 * emit-rtl.c (emit_insn): Only check machine class insns for
15170 improper emission of a RETURN.
15172 2000-01-25 Richard Henderson <rth@cygnus.com>
15174 * Makefile.in (flow.o): Depend on $(EXPR_H).
15175 * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
15176 duplicate the structure of diddle_return_value for keeping regs live.
15178 2000-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15180 * loop.c (current_loop_info): Delete.
15181 (consec_sets_invariant_p): Add loop argument, update callers.
15182 (get_condition_for_loop): Likewise.
15183 (count_nonfixed_reads, update_giv_derive): Likewise.
15184 (simplify_giv_expr, general_induction_var): Likewise.
15185 (consec_sets_giv, recombine_givs): Likewise.
15186 (move_movables): Delete loop_start and loop_end arguments,
15187 add loop argument, and update callers.
15188 (find_mem_givs, check_final_value): Likewise.
15189 (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
15190 (loop_invariant_p): Rename from invariant_p, add loop argument, and
15192 (basic_induction_var): Add loop argument, delete loop_level argument,
15193 and update callers.
15194 * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
15195 add loop argument, and update callers.
15196 (find_splittable_regs, find_splittable_givs): Likewise.
15197 (reg_dead_after_loop, loop_find_equiv_value): Likewise.
15198 (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
15199 (biv_total_increment): Delete loop_start and loop_end arguments;
15201 (precondition_loop_p): Delete loop_start and loop_info arguments;
15203 * loop.h (get_condition_for_loop): Add loop argument.
15204 (biv_total_increment): Delete loop_start and loop_end arguments.
15205 (precondition_loop_p): Delete loop_start and loop_info arguments;
15207 (final_biv_value): Delete loop_start and loop_end arguments;
15209 (final_giv_value, back_branch_in_range_p): Likewise.
15211 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
15213 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
15215 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
15217 * Makefile.in (c-gperf.h) : Change the "See" pointer to
15218 point to the new "generated_files" doc.
15220 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
15222 * config/fp-bit.c (_unord_f2): Fix typo.
15224 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
15226 * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
15227 c-typeck.c, objc/objc-act.c: Remove all references to obstack
15228 functions obsoleted by GC, such as push_obstacks_nochange,
15229 end_temporary_allocation, savealloc, saveable_tree_cons, etc.
15230 and code which existed only to decide whether or not to call
15231 them. Remove now-unused NESTED argument from start_function;
15232 all callers changed. Do not change behavior based on ggc_p.
15233 The use of the ixp_obstack in c-iterate.c and the util_obstack
15234 in objc/objc-act.c remain; these are not obsoleted by garbage
15236 * c-tree.h: Update prototype for start_function.
15238 * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
15240 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
15242 * config/mips/mips.md (zero_extendsidi2_internal): Disable for
15245 2000-01-25 Richard Henderson <rth@cygnus.com>
15247 * sparc-protos.h (select_cc_mode): Declare.
15248 * sparc.c (select_cc_mode): New. Handle unordered compares.
15249 (output_cbranch): Always reverse via code change. Handle
15250 unordered compares. Factor tests and string updates.
15251 * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
15252 (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
15253 * sparc.md (bunordered, bordered): New.
15254 (bungt, bunlt, buneq, bunge, bunle): New.
15256 2000-01-25 Richard Henderson <rth@cygnus.com>
15258 * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
15259 * ggc-common.c (ggc_add_rtx_varray_root): New.
15260 (ggc_mark_rtx_varray): New.
15261 (ggc_mark_rtx_varray_ptr): New. Shift all ggc_mark_foo_ptr
15262 functions down below ggc_mark_foo.
15263 * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
15265 2000-01-25 Richard Henderson <rth@cygnus.com>
15267 * alpha.c (secondary_reload_class): Don't allocate a secondary
15268 for integral mode memories into FLOAT_REGS. Rearrange the more
15269 complicated memory expression inward.
15271 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
15273 * inclhack.def: Fixes to play nicer with FreeBSD, and
15274 corrections to comments.
15275 (cxx_unready): Add select expression.
15276 (irix_sockaddr): Add bypass expression.
15277 (machine_ansi_h_va_list): New fix.
15278 (stdio_va_list): No need to edit _BSD_VA_LIST_.
15279 Split out addition of "#include <stdarg.h>" to...
15280 (stdio_stdarg_h): ... here.
15281 (systypes_for_aix): Rename to systypes_stdlib_size_t. Apply
15282 to stdlib.h also. Do not munge _BSD_SIZE_T_.
15283 (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
15285 (ultrix_ifdef): Tighten up select expression.
15287 * fixincl.tpl: Exorcise 'exesel'. Rewrite calculations of
15288 re_ct and max_mach to avoid use of shell. Make printed names
15289 match names in inclhack.def. Use static copyright date.
15290 Don't count c_test and test expressions as requiring regex_t
15291 slots. Add some commentary.
15292 * inclhack.tpl: Do not include the 'This script contains N
15293 fixup scripts' line if PROGRAM is defined. Use static
15296 2000-01-24 Jason Merrill <jason@casey.cygnus.com>
15298 * dwarf2out.c: include "varray.h", not dyn-string.h.
15299 (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
15300 (addr_const_to_string, addr_to_string): Lose.
15301 (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
15302 (struct dw_val_struct): val_addr is now an rtx.
15303 (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
15304 (used_rtx_varray): New varray.
15305 (dwarf2out_init): Initialize it.
15306 (save_rtx): New fn.
15307 (mem_loc_descriptor, add_const_value_attribute): Call it instead of
15309 * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
15310 sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
15311 * Makefile.in (dwarf2out.o): Update dependencies.
15313 2000-01-24 Richard Henderson <rth@cygnus.com>
15315 * i386.c (i386_dwarf_output_addr_const): New.
15316 * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
15318 * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
15320 * dwarfout.c (output_mem_loc_descriptor): Likewise.
15321 * i386.c (i386_simplify_dwarf_addr): New.
15322 * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
15324 Mon Jan 24 16:56:10 2000 Jim Wilson <wilson@cygnus.com>
15326 * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
15327 TYPE_STUB_DECL is NULL.
15329 2000-01-24 Richard Henderson <rth@cygnus.com>
15331 * builtins.c (expand_tree_builtin): Move ...
15332 * c-common.c (expand_tree_builtin): ... here.
15334 2000-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15336 * loop.h (LOOP_INFO): New accessor macro.
15337 * basic-block.h (struct loop): Rename field `info' to `aux'.
15338 * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
15339 (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
15340 * unroll.c (loop_iterations, unroll_loop): Likewise.
15342 2000-01-24 Christopher Faylor <cgf@cygnus.com>
15344 * config/i386/t-cygwin: Accomodate new winsup directory layout
15345 when searching for include files.
15347 2000-01-24 Richard Henderson <rth@cygnus.com>
15349 * rtl.def: Add unordered fp comparisions.
15350 * tree.def: Likewise.
15351 * tree.h: Add ISO C 9x unordered fp comparision builtins.
15353 * builtins.c (expand_tree_builtin): New function.
15354 * c-typeck.c (build_function_call): Use it.
15355 (build_binary_op): Support unordered compares.
15356 * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
15358 * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
15359 (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
15360 * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
15361 (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
15362 * jump.c (reverse_condition): Don't abort for UNLE etc, but
15364 (swap_condition): Handle unordered compares.
15365 (thread_jumps): Check can_reverse before reversing.
15366 * loop.c (get_condition): Likewise. Allow UNORERED/ORDERED to be
15369 * optabs.c (can_compare_p): New argument CODE. Verify branch or
15370 setcc is present before acking for cmp_optab. Update all callers.
15371 (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
15372 * expmed.c (do_cmp_and_jump): Update for can_compare_p.
15373 * expr.c (expand_expr): Likewise. Support unordered compares.
15374 (do_jump, do_store_flag): Likewise.
15375 * expr.h (enum libfunc_index): Add unordered compares.
15377 * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
15378 (DPBIT_FUNCS): Add _unord_df.
15379 * config/fp-bit.c (_unord_f2): New.
15380 * fp-test.c (main): Try unordered compare builtins.
15382 * alpha-protos.h (alpha_fp_comparison_operator): Declare.
15383 * alpha.c (alpha_comparison_operator): Check mode properly.
15384 (alpha_swapped_comparison_operator): Likewise.
15385 (signed_comparison_operator): Likewise.
15386 (alpha_fp_comparison_operator): New.
15387 (alpha_emit_conditional_branch): Handle unordered compares.
15388 * alpha.h (PREDICATE_CODES): Update.
15389 * alpha.md (fp compares): Use alpha_fp_comparison_operator.
15390 (bunordered, bordered): New.
15392 2000-01-24 Richard Henderson <rth@cygnus.com>
15394 * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
15395 * alpha.md (movtf): New expander, insn, and splitter.
15397 Mon Jan 24 19:49:47 MET 2000 Jan Hubicka <jh@suse.cz>
15399 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
15402 Mon Jan 24 17:37:31 MET 2000 Jan Hubicka <jh@suse.cz>
15404 * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
15405 (FIXED_REGISTERS, CALL_USED_REGISTERS,
15406 REG_ALLOC_ORDER): Add frame pointer
15407 (FRAME_POINTER_REGNUM): Set to 20
15408 (HARD_FRAME_POINTER_REGNUM): New macro.
15409 (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
15410 to HARD_FRAME_POINTER.
15411 (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
15412 (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
15413 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
15414 (HI_REGISTER_NAMES): Add "frame".
15415 (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
15416 (debug_reg): Handle FRAME_POINTER_REGNUM.
15417 (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
15418 GENERAL_REGS and INDEX_REGS.
15419 * i386.c (SAVED_REGS_FIRST): new macro.
15420 (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
15421 (ix86_decompose_address, memory_address_length): Likewise.
15422 (regclass_map): Add frame pointer.
15423 (call_insn_operand): Handle frame_pointer_rtx.
15424 (reg_no_sp_operand): Likewise.
15425 (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
15426 (print_operand, legitimize_pic_address): Fix formating.
15427 (ix86_compute_frame_size): Make static, update prototype, new
15428 parameters padding1, padding2, use ix86_nsaved_regs, use
15429 stack_alignment_needed.
15430 (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
15431 to HARD_FRAME_POINTER_REGNUM conversions.
15432 (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
15433 (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
15434 (print_reg): Abort on FRAME_POINTER_REGNUM
15436 Mon Jan 24 16:50:08 MET 2000 Jan Hubicka <jh@suse.cz>
15438 * i386.h (PREDICATE_CODES): Add aligned_operand.
15439 * i386.c (aligned_operand): New function.
15440 (ix86_aligned_p): Kill.
15441 * i386.md (movhi_1): Emit mov for aligned operands.
15442 (promoting peep2s): Use aligned_operand.
15444 2000-01-23 Zack Weinberg <zack@wolery.cumb.org>
15446 * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
15447 expression to allow underscores in macro names.
15448 (fix_char_macro_defines): Increment scanning pointer.
15450 2000-01-23 Richard Henderson <rth@cygnus.com>
15452 * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
15453 * alpha/osf5.h: New file.
15454 * configure.in (alpha-*-osf5): Add it to tm_file.
15456 * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
15458 * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
15459 (alpha_emit_xfloating_cvt, function_arg): Declare.
15460 * alpha.c (alpha_emit_conditional_branch): Call
15461 alpha_emit_xfloating_compare for TFmode compares.
15462 (alpha_lookup_xfloating_lib_func): New.
15463 (alpha_compute_xfloating_mode_arg): New.
15464 (alpha_emit_xfloating_libcall): New.
15465 (alpha_emit_xfloating_arith): New.
15466 (alpha_emit_xfloating_compare): New.
15467 (alpha_emit_xfloating_cvt): New.
15468 (print_operand): Add default abort case.
15469 (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
15470 * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
15471 (BIGGEST_ALIGNMENT): Increase to 128 bits.
15472 (RETURN_IN_MEMORY): True for TF/TCmode.
15473 (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
15474 (FUNCTION_ARG): Move to function_arg.
15475 (FUNCTION_ARG_PASS_BY_REFERENCE): New.
15476 (ASM_OUTPUT_LONG_DOUBLE): New.
15477 (ASM_OUTPUT_DOUBLE): Always output bits.
15478 * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
15479 (fix_trunctfdi2, floatditf2, floatunsditf2): New.
15480 (extenddftf2, trunctfdf2): New.
15482 2000-01-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
15484 * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
15485 * config/sparc/sol2.h: ... here.
15487 2000-01-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15489 * basic-block.h (struct loops): New field `levels'.
15490 * flow.c (flow_loops_level_compute): Traverse all outer loops.
15491 (flow_loop_level_compute): Initialise level to 1.
15492 (flow_loops_find): Set loops->levels.
15493 (flow_loops_dump): Print loops->levels.
15495 2000-01-23 Richard Henderson <rth@cygnus.com>
15497 * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
15498 (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
15500 2000-01-23 Richard Henderson <rth@cygnus.com>
15502 * i386.c (dbx_register_map, svr4_dbx_register_map): New.
15503 * i386.h (DBX_REGISTER_NUMBER): Use them.
15504 * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
15505 * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
15506 * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
15507 * i386/sequent.h: Kill incorrect comment.
15509 2000-01-23 Mark Mitchell <mark@codesourcery.com>
15511 * ggc-page.c (struct page_entry): Make `context_depth' an
15513 (struct globals): Likewise.
15515 2000-01-23 Clinton Popetz <cpopetz@cygnus.com>
15517 * loop.c (check_dbra_loop): When checking a loop for
15518 reversability, check the source of any stores to ensure
15519 they don't depend on an initial value.
15521 2000-01-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15523 * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
15525 2000-01-22 Zack Weinberg <zack@wolery.cumb.org>
15527 * fixinc/fixincl.c: Move declarations of 'pz_fname' and
15528 'pz_scan' into scope of entire function. Only affects
15529 compiles with -DDEBUG.
15531 2000-01-22 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
15533 * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
15534 section naming to that prior to 2000-01-07 patch.
15535 * config/mips/elf.h (UNIQUE_SECTION): Ditto.
15536 * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
15537 * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
15538 * config/i386/interix.c (UNIQUE_SECTION): Ditto.
15539 * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
15541 2000-01-22 Bernd Schmidt <bernds@cygnus.co.uk>
15543 * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
15546 2000-01-21 Jim Wilson <wilson@cygnus.com>
15548 * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
15549 * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
15551 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
15553 * cpphash.c (change_newlines): Delete function.
15554 (struct argdata): Delete 'newlines' and 'use_count' fields.
15555 (macroexpand): Remove code referencing those fields.
15557 2000-01-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15559 * loop.c (loops_info): New variable.
15560 (loop_optimize): Allocate loops->array and free it on exit.
15561 Allocate memory for loops_info and assign to each loop,
15563 (find_and_verify_loops): Do not allocate loops->array.
15565 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
15567 * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
15569 2000-01-21 Jakub Jelinek <jakub@redhat.com>
15571 * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
15572 pseudos if expanded after first flow.
15573 (movdi_pic_label_ref): Likewise.
15575 2000-01-20 Richard Henderson <rth@cygnus.com>
15577 * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
15579 2000-01-20 Zack Weinberg <zack@wolery.cumb.org>
15581 * Makefile.in (fixinc.sh): Depend on specs.
15582 * fixinc/Makefile.in: Add rule to create machname.h.
15583 (fixlib.o): Depend on machname.h.
15584 * fixinc/fixtests.c (machine_name): New test.
15585 * fixinc/fixfixes.c (machine_name): New fix.
15586 * fixinc/fixlib.c (mn_get_regexps): New helper function for
15587 the machine_name test and fix.
15588 * fixinc/fixlib.h: Prototype it.
15589 * fixinc/inclhack.def (machine_name): Use the C test and fix.
15590 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
15592 * gcc.c (do_spec_1) [case P]: Take care not to create
15593 identifiers with three leading or trailing underscores.
15595 * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
15596 (fixincl): Don't specify libraries twice on link line.
15597 (gnu-regex.o): Remove special rule.
15598 * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
15599 defined by config.h. Do not define _REGEX_RE_COMP.
15600 (regcomp): Allocate and initialize a fastmap.
15601 * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
15603 2000-01-20 Brad Lucier <lucier@math.purdue.edu>
15605 * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
15607 2000-01-19 Richard Henderson <rth@cygnus.com>
15609 * flow.c (propagate_block): Replace FIRST, LAST and BNUM
15610 arguments with BB. Update all callers. Tidy line wrapping.
15612 2000-01-19 Clinton Popetz <cpopetz@cygnus.com>
15614 * emit-rtl.c (try_split): Return last_insn if we split the
15617 Thu Jan 20 01:01:23 MET 2000 Jan Hubicka <jh@suse.cz>
15619 * i386-protos.h (ix86_compute_frame_size): Remove prototype.
15620 (ix86_initial_elimination_offset): Declare.
15621 * i386.c (ix86_nsaved_regs): Break out from ...
15622 (ix86_can_use_return_insn_p): ... here.
15623 (ix86_emit_save_regs): Break out from ...
15624 (ix86_expand_prologue): ... here.
15625 (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
15627 (ix86_expand_epilogue): ... here.
15628 (ix86_compute_frame_size): Make static, add prototype.
15629 (ix86_initial_elimination_offset): Break out from ...
15630 * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
15632 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15634 * recog.h (OUT_FCN): Delete.
15636 * vax.md: Call `get_insn_template' instead of OUT_FCN.
15638 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15640 * cppalloc.c: PROTO -> PARAMS.
15641 * cpperror.c: Likewise.
15642 * cppfiles.c: Likewise.
15643 * cpplib.c: Likewise.
15644 * cpplib.h: Likewise.
15646 * config/arm/arm-protos.h: PROTO -> PARAMS.
15647 * config/arm/arm.c: Likewise.
15648 * config/c4x/c4x.c: Likewise.
15649 * config/fr30/fr30-protos.h: Likewise.
15650 * config/nextstep.c: Likewise.
15651 * config/pa/pa.c: Likewise.
15652 * config/pj/pj.c: Likewise.
15653 * config/rs6000/rs6000.c: Likewise.
15654 * config/v850/v850-protos.h: Likewise.
15655 * config/v850/v850.c: Likewise.
15657 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15659 * i370-protos.h: New file.
15661 * i370.c: Include tm_p.h. Fix compile time warnings.
15663 * i370.h: Move prototypes to i370-protos.h. Fix compile time
15666 * i370.md: Likewise.
15668 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15670 * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
15671 (target_isinf, target_isnan, eisnan): Mark parameter with
15673 (eiisinf): Wrap in INFINITY.
15674 (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
15675 (ibmtoe): Remove unused variable `rndsav'.
15677 Wed Jan 19 20:23:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
15679 * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
15680 (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
15682 2000-01-19 Zack Weinberg <zack@wolery.cumb.org>
15684 * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
15685 * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
15686 (fix_char_macro_defines, fix_char_macro_uses): New functions.
15688 * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
15689 Recognize Emacs mode markers also.
15690 * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
15691 C++ comments in C++ headers. Call is_cxx_header only if
15694 * fixinc/inclhack.def (avoid_bool): Add select for the problem and
15695 bypass for ncurses.
15696 (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
15697 (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
15698 ... these, which use the new C fixes.
15699 (math_exception): Escape literal '+' in bypass expression.
15701 * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
15704 2000-01-19 Geoff Keating <geoffk@cygnus.com>
15706 * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
15709 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15711 * loop.c (loop_optimize): Allocate loop_info structure for each loop
15712 prior to calling scan_loop.
15714 Wed Jan 19 19:54:38 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
15716 * sh.c (find_barrier, gen_block_redirect): Fix indentation.
15717 (split_branches, calc_live_regs): Likewise.
15719 Wed Jan 19 19:12:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
15721 * sh.md (fpu_single, fp_mode): New attributes.
15723 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15725 * loop.c (current_loop_info): Renamed from loop_info_data
15726 and changed to a pointer.
15727 (loop_optimize): Allocate loop_info structure for each loop
15728 and initialise to zero.
15729 (scan_loop): Set current_loop_info.
15731 * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
15734 2000-01-19 Richard Henderson <rth@cygnus.com>
15736 * stupid.c: Die die die.
15737 * Makefile.in (OBJS): Remove stupid.o.
15738 (stupid.o): Likewise.
15740 * except.c (emit_eh_context): Don't emit USEs for stupid.
15741 * explow.c (probe_stack_range): Likewise.
15742 * flags.h (obey_regdecls): Remove.
15743 * flow.c (find_basic_blocks): Don't run try_merge_blocks
15744 when not optimizing.
15745 (life_analysis): Limit data collection when not optimizing.
15746 (mark_regs_live_at_end): Always mark the return value registers.
15747 (mark_used_regs): Remove dummy RETURN case.
15748 (print_rtl_with_bb): Don't consult obey_regdecls.
15749 * function.c (use_variable, use_variable_after): Remove.
15750 (assign_parms): Consult optimize not obey_regdecls.
15751 (expand_function_start): Don't emit USEs for stupid.
15752 (expand_function_end): Likewise.
15753 * global.c (build_insn_chain): Export.
15754 * integrate.c (expand_inline_function): Kill return-value USE
15756 * jump.c (jump_optimize_1): Do simple jump optimizations and
15757 dead code elimination.
15758 (calculate_can_reach_end): Remove check_deleted argument.
15759 (delete_insn): Patch out insns even when not optimizing.
15760 * local-alloc.c (block_alloc): Don't do tying when not optimizing.
15761 * rtl.h (use_variable, use_variable_after): Remove declarations.
15762 (build_insn_chain): Declare.
15763 * stmt.c (expand_value_return): Don't emit USEs for stupid.
15764 (expand_end_bindings): Likewise.
15765 (expand_decl): Likewise. Consult optimize not obey_regdecls.
15766 * toplev.c (obey_regdecls): Remove.
15767 (rest_of_compilation): Don't set it. Kill stupid in favour of
15768 flow1, local-alloc, and reload.
15769 (main): Don't set obey_regdecls.
15771 * config/nextstep.c (handle_pragma): Likewise.
15773 * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
15775 * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
15777 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15779 * alpha-protos.h: PROTO -> PARAMS.
15780 * alpha.c: Likewise.
15782 * h8300.c: Likewise.
15783 * i386-protos.h: Likewise.
15784 * i386.c: Likewise.
15785 * m32r-protos.h: Likewise.
15786 * m32r.c: Likewise.
15787 * mips.c: Likewise.
15788 * mips.md: Likewise.
15789 * gmon-sol2.c: Likewise.
15790 * sparc.c: Likewise.
15792 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15794 * ns32k-protos.h: New file.
15796 * ns32k.c: Fix compile time warnings.
15798 * ns32k.h: Move prototypes to ns32k-protos.h. Fix compile time
15801 * ns32k.md: Likewise.
15803 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15805 * vax-protos.h: New file.
15807 * vax.c: Fix compile time warnings.
15809 * vax.h: Move prototypes to vax-protos.h. Fix compile time
15812 * vax.md: Likewise.
15814 * vaxv.md: Likewise.
15816 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15818 * romp-protos.h: New file.
15820 * romp.c: Fix compile time warnings.
15822 * romp.h: Move prototypes to romp-protos.h. Fix compile time
15825 * romp.md: Likewise.
15827 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15829 * we32k-protos.h: New file.
15831 * we32k.c: Fix compile time warnings.
15833 * we32k.h: Move prototypes to we32k-protos.h. Fix compile time
15836 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15838 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
15840 * except.c (eh_regs): Likewise.
15842 * final.c (output_operand): Likewise.
15844 * fold-const.c (target_isinf, target_isnan): Likewise.
15846 Tue Jan 18 16:19:55 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
15848 * i386.h (BIGGEST_ALIGNMENT): Set to 128.
15849 (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
15851 * i386.md (memstr): Do not use rep stosb for counts divisible by 4
15852 when optimize_size.
15853 (clrstrsi): Rewrite.
15854 (strsethi, strsetqi): New expanders.
15855 (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
15856 (cmpstrsi): Emit compare insn before cmpstrsi_1
15857 (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
15858 (strlensi_1): Likewise.
15859 (cmpstrsi_1): Likewise; do not output compare.
15860 (strlen expander): Do not unroll when optimizing for size.
15861 (*subsi3_carry): Rename to subsi3_carry
15862 (addqi3_cc): New pattern.
15863 * i386.h (processor_costs): Add move_ratio field.
15864 (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
15865 * i386.c (*_cost): Set move_ratio.
15866 (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
15867 (x86_expand_strlensi_1): Rewrite the main loop.
15869 2000-01-17 Richard Henderson <rth@cygnus.com>
15871 * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
15872 * cse.c (find_comparison_args, fold_rtx): Likewise.
15873 * integrate.c (subst_constants): Likewise.
15874 * loop.c (get_condition): Likewise.
15876 * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
15878 * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
15880 2000-01-18 Martin v. Löwis <loewis@informatik.hu-berlin.de>
15882 * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
15883 (RESTORE_WARN_FLAGS): Unpack it.
15884 Change semantic type of extension to ttype.
15885 * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
15886 * c-parse.y, c-parse.c, objc/objc-parse.y,
15887 objc/objc-parse.c: Regenerate.
15889 2000-01-17 Zack Weinberg <zack@wolery.cumb.org>
15891 * fixinc/fixlib.c: Add copyright notice.
15892 (compile_re): New function.
15893 * fixinc/fixlib.h: Prototype compile_re.
15895 * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
15896 Use compile_re to compile regular expressions.
15898 * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
15899 where the pattern matched.
15901 * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
15903 (ultrix_ansi_compat): Likewise.
15904 (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
15906 (interactv_add2, interactv_add3): Delete.
15907 (x11_sprintf): Don't use filename glob.
15908 * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
15911 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15913 * print-rtl.c: PROTO -> PARAMS.
15914 * real.c: Likewise.
15915 * reg-stack.c: Likewise.
15916 * resource.c: Likewise.
15917 * sdbout.h: Likewise.
15918 * simplify-rtx.c: Likewise.
15919 * stor-layout.c: Likewise.
15920 * stupid.c: Likewise.
15921 * xcoffout.c: Likewise.
15922 * xcoffout.h: Likewise.
15924 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15926 * toplev.c: PROTO -> PARAMS.
15927 * toplev.h: Likewise.
15928 * tree.c: Likewise.
15929 * tree.h: Likewise.
15930 * unroll.c: Likewise.
15931 * varasm.c: Likewise.
15932 * varray.c: Likewise.
15933 * varray.h: Likewise.
15935 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15937 * reload.c: PROTO -> PARAMS.
15938 * reload.h: Likewise.
15939 * reload1.c: Likewise.
15940 * reorg.c: Likewise.
15941 * resource.h: Likewise.
15944 * rtlanal.c: Likewise.
15945 * sbitmap.h: Likewise.
15946 * sdbout.c: Likewise.
15947 * stack.h: Likewise.
15948 * stmt.c: Likewise.
15949 * system.h: Likewise.
15951 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15953 * machmode.h: PROTO -> PARAMS.
15954 * mbchar.h: Likewise.
15955 * mips-tdump.c: Likewise.
15956 * mips-tfile.c: Likewise.
15957 * optabs.c: Likewise.
15958 * output.h: Likewise.
15959 * prefix.c: Likewise.
15960 * profile.c: Likewise.
15961 * protoize.c: Likewise.
15962 * real.h: Likewise.
15963 * recog.c: Likewise.
15964 * recog.h: Likewise.
15965 * regclass.c: Likewise.
15966 * regmove.c: Likewise.
15967 * regs.h: Likewise.
15969 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15971 * ggc-common.c: PROTO -> PARAMS.
15972 * ggc-page.c: Likewise.
15973 * ggc-simple.c: Likewise.
15975 * global.c: Likewise.
15976 * graph.c: Likewise.
15977 * gthr-win32.h: Likewise.
15978 * haifa-sched.c: Likewise.
15979 * halfpic.h: Likewise.
15980 * integrate.c: Likewise.
15981 * integrate.h: Likewise.
15982 * jump.c: Likewise.
15984 * local-alloc.c: Likewise.
15985 * loop.c: Likewise.
15986 * loop.h: Likewise.
15988 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15990 * genattr.c: PROTO -> PARAMS.
15991 * genattrtab.c: Likewise.
15992 * gencheck.c: Likewise.
15993 * gencodes.c: Likewise.
15994 * genconfig.c: Likewise.
15995 * genemit.c: Likewise.
15996 * genextract.c: Likewise.
15997 * genflags.c: Likewise.
15998 * gengenrtl.c: Likewise.
15999 * genopinit.c: Likewise.
16000 * genoutput.c: Likewise.
16001 * genpeep.c: Likewise.
16002 * genrecog.c: Likewise.
16004 2000-01-16 Mark Mitchell <mark@codesourcery.com>
16006 * tree.h (BINFO_VPTR_FIELD): Augment documentation.
16008 2000-01-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16010 * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
16011 * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
16012 * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
16013 * configure, config.in: Rebuilt.
16015 2000-01-16 Zack Weinberg <zack@wolery.cumb.org>
16017 * config/i386/i386.md: Add peephole to merge successive stack
16020 Sat Jan 15 15:41:14 EST 2000 John Wehle (john@feith.com)
16022 * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
16023 instead of emit_insn_before. Also handle NOTE_INSN_BASIC_BLOCK
16024 when walking backwards to find all the parameter loads when
16025 the basic block ends in a call.
16027 2000-01-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16029 * loop.c (this_loop_info): Delete.
16030 (uid_loop): Add in place of uid_loop_num. All uses updated.
16031 (loop_number_exit_count): Delete and replace with entry in loop
16032 structure. All uses updated.
16033 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
16034 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
16035 (loop_outer_loop): Likewise.
16036 (loop_invalid, loop_number_exit_labels): Likewise.
16037 (loop_used_count_register): Delete and replace with entry in
16038 loop_info structure.
16039 (find_and_verify_loops): Add loops argument.
16040 (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
16041 loop_end, etc. arguments with loop structure pointer. All callers
16043 (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
16044 (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
16045 (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
16046 (insert_bct): Likewise.
16047 (basic_induction_var): New argument level.
16048 * loop.h (struct loop_info): Delete fields num, loops_enclosed,
16049 vtop, and cont. Add used_count_register.
16050 (uid_loop): Delete declaration.
16051 (loop_number_exit_count): Likewise.
16052 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
16053 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
16054 (loop_outer_loop, loop_used_count_register): Likewise.
16055 (loop_invalid, loop_number_exit_labels): Likewise.
16056 (unroll_loop): Replace loop_start and loop_end arguments
16057 with loop structure pointer.
16058 (loop_precondition_p, loop_iterations): Likewise.
16059 Include basic-block.h.
16060 * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
16061 with loop structure pointer.
16062 (loop_precondition_p, loop_iterations): Likewise.
16063 * basic-block.h (struct loop): New entries vtop, cont,
16064 cont_dominator, start, end, top, scan_start, exit_labels,
16066 * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
16068 2000-01-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16070 * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
16072 2000-01-14 Nathan Sidwell <sidwell@codesourcery.com>
16074 * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
16076 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16078 * pdp11-protos.h: New file.
16080 * pdp11.c: Include tm_p.h. Add static prototypes. Fix compile
16083 * pdp11.h: Move prototypes to pdp11-protos.h. Fix compile time
16086 * pdp11.md: Likewise.
16088 * 2bsd.h: Likewise.
16090 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16092 * mn10300-protos.h: New file.
16094 * mn10300.c: Include tm_p.h. Add static prototypes. Fix compile
16097 * mn10300.h: Move prototypes to mn10300-protos.h. Fix compile time
16100 * mn10300.md: Likewise.
16102 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16104 * mn10200-protos.h: New file.
16106 * mn10200.c: Include tm_p.h. Add static prototypes. Fix compile
16109 * mn10200.h: Move prototypes to mn10200-protos.h. Fix compile time
16112 * mn10200.md: Likewise.
16114 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16116 * h8300-protos.h: New file.
16118 * h8300.c: Include tm_p.h. Add static prototypes. Fix compile
16121 * h8300.h: Move prototypes to h8300-protos.h. Fix compile time
16124 * h8300.md: Likewise.
16126 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16128 * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
16129 (asm_emit_uninitialised): Likewise.
16131 2000-01-13 Gavin Romig-Koch <gavin@cygnus.com>
16133 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
16134 * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
16136 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
16138 * config/mips/mips.c (override_options): Don't turn on extra
16139 alignment for mips16.
16141 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
16143 * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
16144 eabi, and make sure queued POSTINCREMENT rtl is emitted at
16147 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
16149 * builtins.c (PAD_VARARGS_DOWN): Define.
16150 (std_expand_builtin_va_arg): Use the above macro.
16151 * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
16152 * tm.texi (Register Arguments): Document the above macro.
16154 2000-01-14 Nick Clifton <nickc@cygnus.com>
16156 * emit-rtl.c (emit_insn): If checking is enabled, make sure
16157 that this function has not been used to emit a jump
16160 * jump.c (return_jump_1): Cope with being passed a null rtx.
16162 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16164 * eh-common.h: PROTO -> PARAMS.
16165 * emit-rtl.c: Likewise.
16166 * errors.c: Likewise.
16167 * errors.h: Likewise.
16168 * except.c: Likewise.
16169 * except.h: Likewise.
16170 * explow.c: Likewise.
16171 * expmed.c: Likewise.
16172 * expr.c: Likewise.
16173 * expr.h: Likewise.
16174 * final.c: Likewise.
16175 * fix-header.c: Likewise.
16176 * flow.c: Likewise.
16177 * fold-const.c: Likewise.
16178 * function.c: Likewise.
16179 * function.h: Likewise.
16181 * gcov-io.h: Likewise.
16182 * gcov.c: Likewise.
16183 * gcse.c: Likewise.
16185 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16187 * sh-protos.h: New file.
16189 * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
16190 Add static prototypes. Fix compile time warnings.
16192 * sh.h: Move prototypes to sh-protos.h. Fix compile time warnings.
16196 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16198 * arc-protos.h: New file.
16200 * arc.c: Include tm_p.h. Add static prototypes. Fix compile
16203 * arc.h: Move prototypes to arc-protos.h. Fix compile time
16206 * arc.md: Likewise.
16208 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16210 * dsp16xx-protos.h: New file.
16212 * dsp16xx.c: Include tm_p.h. Add static prototypes. Fix compile
16215 * dsp16xx.h: Move prototypes to dsp16xx-protos.h. Fix compile time
16218 * dsp16xx.md: Likewise.
16220 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16222 * convex-protos.h: New file.
16224 * convex.c: Include tm_p.h. Add static prototypes. Fix compile
16227 * convex.h: Move prototypes to convex-protos.h. Fix compile time
16230 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16232 * elxsi-protos.h: New file.
16234 * elxsi.c: Include tm_p.h. Add static prototypes. Fix compile
16237 * elxsi.h: Move prototypes to elxsi-protos.h. Fix compile time
16240 * elxsi.md: Likewise.
16242 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
16244 * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
16245 case for moving from HI/LO/HI_LO_REG. This makes the behavior
16246 match the comment for MIPS16.
16248 Fri Jan 14 00:28:06 2000 Jeffrey A Law (law@cygnus.com)
16250 * flow.c (split_edge): Do not call set_block_for_insn if we
16251 do not have a basic_block_for_insn structure.
16253 * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
16254 and destination functions are 32bit aligned within the trampoline.
16255 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
16256 (TRAMPOLINE_ALIGNMENT): Define.
16258 * cse.c (cse_insn): When changing (set (pc) (reg)) to
16259 (set (pc) (label_ref)), verify the change creates a valid insn.
16261 * fr30.c (call_operand): Tighten and rework to match rules for
16262 call RTL expressions.
16263 * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
16264 * fr30.md (call patterns): Improve constraints.
16266 Thu Jan 13 23:44:03 2000 Richard Henderson <rth@cygnus.com>
16268 * fr30.c (fr30_expand_epilogue): Revert last change.
16269 Use emit_jump_insn for the return insn.
16271 Thu Jan 13 14:46:03 2000 Jason Eckhardt <jle@cygnus.com>
16272 Stan Cox <scox@cygnus.com>
16274 * predict.c: New file. Preliminary infrastructure work for static
16275 branch prediction and basic block reordering.
16276 * basic-block.h: Add prototype for estimate_probability.
16277 * Makefile.in: Add rules for predict.o.
16279 2000-01-13 Jason Merrill <jason@yorick.cygnus.com>
16281 * fixincludes (va_list): Use __not_va_list__ for the dummy.
16282 * fixinc/*: Likewise.
16284 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16286 * cccp.c: PROTO -> PARAMS.
16287 * cexp.y: Likewise.
16288 * collect2.c: Likewise.
16289 * combine.c: Likewise.
16290 * convert.h: Likewise.
16292 * dbxout.c: Likewise.
16293 * dbxout.h: Likewise.
16294 * diagnostic.c: Likewise.
16295 * doprint.c: Likewise.
16296 * dwarf2out.c: Likewise.
16297 * dwarf2out.h: Likewise.
16298 * dwarfout.c: Likewise.
16299 * dwarfout.h: Likewise.
16300 * dyn-string.h: Likewise.
16302 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16304 * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
16305 macro conditionals guarding use.
16307 * dwarf2out.c: Include "tm_p.h".
16309 * function.c (locate_and_pad_parm): Mark parameter with
16311 (expand_function_end): Likewise for variable `context'.
16313 * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
16315 2000-01-13 Nick Clifton <nickc@cygnus.com>
16317 * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
16318 register to prevent compile time warnings.
16320 2000-01-13 Zack Weinberg <zack@wolery.cumb.org>
16322 * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
16323 to avoid -Wtraditional warning.
16325 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16327 * 1750a-protos.h: New file.
16329 * 1750a.c: Include tm_p.h. Add static prototypes. Fix compile
16332 * 1750a.h: Move prototypes to 1750a-protos.h. Fix compile time
16335 * 1750a.md: Likewise.
16337 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16339 * a29k-protos.h: New file.
16341 * a29k.c: Include tm_p.h. Add static prototypes. Fix compile
16344 * a29k.h: Move prototypes to a29k-protos.h. Fix compile time
16347 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16349 * clipper-protos.h: New file.
16351 * clipper.c: Include tm_p.h. Add static prototypes. Fix compile
16354 * clipper.h: Move prototypes to clipper-protos.h. Fix compile time
16357 Thu Jan 13 16:03:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
16359 * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
16361 2000-01-13 Nathan Sidwell <sidwell@codesourcery.com>
16363 * configure.in (--enable-new-gxx-abi): New option.
16364 * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
16365 * Makefile.in (GXX_ABI_FLAG): New variable.
16366 * configure: Regenerate.
16368 2000-01-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16370 * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
16371 * tm.texi (FORCE_STRUCT_BLK): Document.
16372 * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
16374 Wed Jan 12 23:12:47 2000 Hans-Peter Nilsson <hp@axis.com>
16376 * config/ns32k/ns32k.md: Revert Jan 9 change.
16378 * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
16379 to a mode-test, if the predicate is address_operand.
16381 Wed Jan 12 22:34:00 2000 Jeffrey A Law (law@cygnus.com)
16383 * combine.c (if_then_else_cond): Be careful about what kinds
16384 of RTL expressions are passed to operand_subword.
16386 * flow.c (split_edge): If we have to insert a new jump, make
16387 sure to associate it with a basic block.
16389 * flow.c (commit_one_edge_insertion): A block with one successor
16390 can end in a JUMP_INSN that is not a simplejump.
16392 2000-01-12 Robert Lipe <robertl@sco.com>
16394 * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
16395 (BUILD_VA_LIST_TYPE): Define.
16396 (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
16399 2000-01-12 Jason Merrill <jason@casey.cygnus.com>
16401 * cccp.c (do_pragma): Add cast to (char *).
16403 2000-01-12 Richard Henderson <rth@cygnus.com>
16404 Fred Fish <fnf@be.com>
16405 Jason Merrill <jason@cygnus.com>
16407 * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
16408 * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
16409 * i386/beos-elf.h, i386/beos-pe.h: New files.
16411 * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
16412 * cross-make (SYSTEM_HEADER_DIR): Define using
16413 CROSS_SYSTEM_HEADER_DIR.
16415 * gcc.c (LIBRARY_PATH_ENV): Provide default.
16416 (process_command): Use it.
16417 (main): Likewise. Kill trailing = from env vars.
16418 (build_search_list): Put it back.
16419 * collect2.c (main): Use LIBRARY_PATH_ENV.
16421 * configure.in (GCC_NEED_DECLARATIONS): Add environ.
16422 * toplev.c: Use NEED_DECLARATION_ENVIRON.
16424 * tm.texi (Frame Layout): Document SMALL_STACK.
16425 * c-common.c (c_common_nodes_and_builtins): Check it.
16427 * system.h: Undef alloca after including glibc's <stdlib.h>,
16428 if USE_C_ALLOCA is defined.
16430 * gcc.c (set_input): New fn.
16431 (main): After all input files are compiled, reset the input file
16434 * aclocal.m4 (rindex, index): If already defined, don't attempt
16437 * ginclude/varargs.h: (__va_list__): Define ifndef.
16438 * ginclude/stdarg.h: Likewise.
16440 * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
16441 instead of unsigned char.
16443 * hash.h (true, false, boolean): Undef before enum.
16445 * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
16446 proper type of "HOST_WIDE_INT *", rather than their natural type of
16447 "unsigned HOST_WIDE_INT *".
16449 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16451 * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
16453 * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
16455 * regclass.c (choose_hard_reg_mode): Likewise.
16457 * reload.c (find_valid_class, strict_memory_address_p): Likewise.
16459 * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
16461 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16463 * c-common.c: PROTO -> PARAMS.
16464 * c-common.h: Likewise.
16465 * c-decl.c: Likewise.
16466 * c-iterate.c: Likewise.
16467 * c-lang.c: Likewise.
16468 * c-lex.c: Likewise.
16469 * c-lex.h: Likewise.
16470 * c-parse.in: Likewise.
16471 * c-pragma.c: Likewise.
16472 * c-pragma.h: Likewise.
16473 * c-tree.h: Likewise.
16474 * c-typeck.c: Likewise.
16475 * objc/objc-act.c: Likewise.
16476 * objc/objc-act.h: Likewise.
16478 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16480 * m88k-protos.h: New file.
16482 * m88k.c: Include tm_p.h. Add static prototypes. Fix compile
16485 * m88k.h: Move prototypes to m88k-protos.h. Fix compile time warnings.
16487 * m88k.md: Likewise.
16489 * tekXD88.h: Likewise.
16491 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16493 * m68k-protos.h: New file.
16495 * m68k.c: Include tm_p.h. Add static prototypes. Fix compile
16498 * m68k.h: Move prototypes to m68k-protos.h. Fix compile time warnings.
16500 * mot3300.h: Likewise.
16502 2000-01-12 Richard Earnshaw <rearnsha@arm.com>
16504 * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
16506 (extract_bitlist): Declare bitlen.
16508 2000-01-12 Zack Weinberg <zack@wolery.cumb.org
16510 * cccp.c: Accept and ignore -lang-fortran.
16512 * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
16513 qualifiers don't match at any level of pointerness.
16515 2000-01-12 Robert Lipe <robertl@sco.com>
16517 * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
16519 2000-01-12 Bernd Schmidt <bernds@cygnus.co.uk>
16521 * reload1.c (reload_reg_unavailable): New static variable.
16522 (reload_reg_free_p): Test it.
16523 (reload_reg_free_for_value_p): Test it instead of
16525 (choose_reload_regs_init): Compute it.
16527 Wed Jan 12 03:24:41 2000 Toshiyasu Morita (toshi.morita@sega.com)
16529 * reorg.c (fill_slots_from_thread): Check modified_in_p
16532 Wed Jan 12 03:20:31 2000 John Marshall <john_w_marshall@palm.com>
16534 * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
16535 these nodes even if INTERNALS is not set.
16537 Wed Jan 12 09:39:22 2000 Nick Burrett <nick.burrett@btinternet.com>
16539 * gcse.c (delete_null_pointer_checks_1): Cope when
16540 get_condition cannot determine the condition.
16542 2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
16544 * toplev.h (set_message_length): Declare.
16546 * diagnostic.c (obstack_chunk_alloc): Define macro.
16547 (obstack_chunk_free): Likewise.
16548 (struct output_buffer): New data structure.
16549 (vmessage): Remove.
16550 (output_maximum_width): New variable.
16551 (doing_line_wrapping, set_message_length, init_output_buffer,
16552 get_output_prefix, output_space_left, emit_output_prefix,
16553 output_newline, output_append, output_puts, dump_output,
16554 vbuild_message_string, build_message_string, build_location_prefix,
16555 voutput_notice, output_printf, line_wrapper_printf,
16556 vline_wrapper_message_with_location): New functions. Implement
16557 automatic line wrapping.
16558 (v_message_with_decl): Make it handle automatic line wrapping.
16559 (v_error_with_file_and_line): Likewise.
16560 (v_warning_with_file_and_line): Likewise.
16561 (announce_function): Likewise.
16562 (default_print_error_function): Likewise.
16564 2000-01-11 16:24 -0800 Zack Weinberg <zack@wolery.cumb.org>
16566 * cpplib.h (struct cpp_options): Change lang_asm to char.
16568 * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
16569 done in cpp_handle_option now.
16570 (initialize_builtins): Take out special case code used only by
16572 (cpp_handle_option): Turn off trigraphs and trigraph warnings
16573 if -traditional. Recognize -lang-fortran and set
16574 lang_fortran, also turn off cplusplus_comments.
16575 (print_help): Document -lang-fortran.
16576 * cpplib.c (handle_directive): Ignore `# 123 "file"' if
16577 lang_asm. Ignore all directives other than `# 123 "file"' if
16579 (cpp_get_token): If -traditional, don't recognize directives
16580 unless the # is in column 1.
16581 (parse_string): If lang_fortran or lang_asm, silently
16582 terminate strings ('' or "") at end of line.
16583 Remove unnecessary braces.
16585 2000-01-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16586 Richard Henderson <rth@cygnus.com>
16588 * resource.c (mark_referenced_resources): Mark a set strict_low_part
16590 * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
16591 strict_low_part when possible.
16593 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16595 * alias.c: PROTO -> PARAMS.
16596 * basic-block.h: Likewise.
16597 * bitmap.c: Likewise.
16598 * bitmap.h: Likewise.
16599 * builtins.c: Likewise.
16600 * c-aux-info.c: Likewise.
16601 * caller-save.c: Likewise.
16602 * calls.c: Likewise.
16604 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16606 * Makefile.in (toplev.o): Depend on regs.h.
16608 * output.h (tdesc_section): Prototype.
16610 * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
16612 * sdbout.c: Include "tm_p.h".
16614 * toplev.c: Include "regs.h".
16616 Tue Jan 11 11:37:58 2000 Mike Stump <mrs@wrs.com>
16618 * unroll.c (unroll_loop): Add EH support.
16620 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16622 * pa-protos.h: New file.
16624 * pa.c: Include recog.h and tm_p.h.
16625 (compute_zdepwi_operands, compute_movstrsi_length,
16626 remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
16627 find_addr_reg, import_milli): Add static prototypes.
16628 (pa_cpu_string, pa_arch_string): Constify a char*.
16629 (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
16630 (read_only_operand): Add argument `mode'.
16631 (singlemove_string, output_move_double, output_fp_move_double,
16632 output_block_move, output_and, output_ior, output_ascii,
16633 remove_useless_addtr_insns, milli_names, output_mul_insn,
16634 output_div_insn, output_mod_insn, output_arg_descriptor,
16635 output_cbranch, output_bb, output_bvb, output_dbra, ,
16636 output_millicode_call, output_call, hppa_encode_label,
16637 output_parallel_movb, output_parallel_addb): Constify a char*.
16638 (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
16639 (output_parallel_addb): Remove extra arg to `constrain_operands'
16641 * pa.h: Move all prototypes to pa-protos.h.
16642 (pa_cpu_string, pa_arch_string): Constify a char*.
16643 (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
16645 * pa.md: Call `function_label_operand' with mode argument.
16646 Likewise for `read_only_operand'.
16647 Fix nesting of parens in call to `symbolic_operand'.
16649 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16651 * i860-protos.h: New file.
16653 * i860.c: Include tm_p.h. Add static prototypes. Fix compile
16656 * i860.h: Move prototypes to i860-protos.h. Fix compile time warnings.
16658 * i860.md: Likewise.
16660 Tue Jan 11 18:59:35 MET 2000 Jan Hubicka <jh@suse.cz>
16662 * i386.md (movstrsi expander): Rewrite.
16663 (movstrsi_1 insn): Deleted.
16664 (strmovhi, strmovqi expander): New expanders.
16665 (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
16666 * i386.c (x86_single_stringop): New global variable.
16667 * i386.h (x86_single_stringop): Declare.
16668 (TARGET_SINGLE_STRINGOP): New macro.
16670 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
16672 * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
16673 integer vararg POSTINCREMENT before the destination of the jump
16674 for the hard fp case.
16675 (function_arg_pass_by_reference): Pass a copy of CUM to
16678 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
16679 for CONSTANT_ADDRESS_P above while loop for subreg.
16681 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
16683 * flow.c (propagate_block): When a prologue/epilogue insn
16684 is marked dead, unconditionally clear libcall_is_dead and
16685 insn_is_dead, and only dump rtl if warnings aren't being
16688 Tue Jan 11 16:26:47 MET 2000 Jan Hubicka <jh@suse.cz>
16690 * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
16691 * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
16692 (FIXED_REGISTERS): Set dirflag as fixed.
16693 (CALL_USED_REGISTERS): Set dirflag as used.
16694 (REG_ALLOC_ORDER): Set dirflag as last one.
16695 (DIRFLAG_REG): New macro.
16696 (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
16697 (HI_REGISTER_NAMES): Add dirflag.
16698 (DEBUF_PRINT_REG): Handle dirflag.
16699 * i386.md (type attribute): New cld and str types.
16700 (length_opcode attribute): Set cld and str to 1.
16701 (memory attribute): Set str to unknown - it is not clear from the
16703 (pent_np function unit): Prefixed string operations takes 12 cycles
16704 minimally; cld takes 2 cycles.
16705 (ppro_uops attribute): Str is "many" and cld is "few".
16706 (ppro_p0 unit): Handle cld here.
16707 (k6_alux unit): Handle cld and str types.
16708 (k6_load unit): It is ocupied by str opcodes.
16709 (k6_store unit): It is ocupied by str opcodes.
16710 (athlon_decode): Str is vector decoded.
16711 (athlon_ieu): Handle str and cld.
16712 (cld pattern): New.
16713 (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
16714 (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
16715 cmpstrsi_nz_1 insn): Do not output cld instruction
16717 Tue Jan 11 06:14:39 2000 David Starner <dstarner98@aasaa.ofe.org>
16719 * gcc.texi (G++ and GCC): Add Java and Chill.
16720 (Bug Critera): Don't list languages.
16722 * gcc.texi (Incompatibilities): No longer claim most C compilers
16725 * gcc.texi (G++ and GCC): Update other front-ends list.
16727 Tue Jan 11 05:49:01 2000 Jeffrey A Law (law@cygnus.com)
16729 * i386.c (ix86_expand_setcc): Fix typo.
16730 (ix86_expand_movcc): Similarly.
16732 * Band-aid until haifa's bitset implementation is nuked.
16733 * haifa-sched.c (extract_bitlst): New parameter for size of the
16734 bitset in bits. All callers changed. Avoid looking at undefined
16735 bits in the bitset.
16736 (edgeset_bitsize): New variable.
16737 (schedule_region): Initialize edgeset_bitsize.
16739 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16741 * Makefile.in (optabs.o): Depend on real.h
16742 (resource.o): Depend on insn-attr.h
16744 * builtins.c (result_vector): Wrap prototype in macro conditions
16745 governing definition and use.
16747 * c-common.c: Include tm_p.h.
16749 * c-lex.c: Likewise.
16751 * elfos.h: Constify a char*.
16753 * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
16754 (get_attr_length, shorten_branches, profile_after_prologue): Mark
16755 parameter with ATTRIBUTE_UNUSED.
16757 * fold-const.c (exact_real_inverse): Wrap variable `i' in
16760 * haifa-sched.c (schedule_insns): Mark parameter with
16763 * optabs.c: Include real.h.
16765 * real.h (ereal_atof): Add prototype arguments.
16767 * resource.c: Include insn-attr.h.
16769 * sdbout.c (sdbout_queue_anonymous_type,
16770 sdbout_dequeue_anonymous_types): Wrap in macro
16771 SDB_ALLOW_FORWARD_REFERENCES.
16772 (sdbout_init, sdbout_start_new_source_file): Mark parameter with
16775 * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
16777 * stupid.c: Include tm_p.h.
16779 * tree.c (real_value_from_int_cst): Mark parameter with
16782 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16784 * i960-protos.h: New file.
16786 * i960.c: Include tm_p.h. Add static prototypes. Fix compile
16789 * i960.h: Move prototypes to i960-protos.h. Fix compile time warnings.
16791 2000-01-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16793 * combine.c (expand_field_assignment): Do not discard SUBREGs
16794 while computing nonzero_bits.
16796 2000-01-09 Nick Clifton <nickc@cygnus.com>
16798 * config/arm/arm.c: Fix compile time warnings about signed vs
16799 unsigned constants.
16800 * config/arm/arm.h: Fix compile time warnings about signed vs
16801 unsigned constants.
16803 2000-01-09 Philip Blundell <philb@gnu.org>
16805 * config/arm/arm.c (output_return_instruction): Use `ldr' rather
16806 than `ldm' with only one register.
16807 * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
16810 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
16813 Sun Jan 9 17:50:23 2000 Hans-Peter Nilsson <hp@axis.com>
16815 * config/ns32k/ns32k.md (load or push effective address): Operand 1
16818 2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16820 * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
16821 assignment used as truth value.
16823 * function.c (assign_temp): Mark parameter `dont_promote' with
16824 ATTRIBUTE_UNUSED. Wrap variable `unsignedp' with macro
16825 PROMOTE_FOR_CALL_ONLY.
16827 * genrecog.c (write_subroutine): Mark variable `operands' with
16830 * optabs.c (prepare_cmp_insn): Mark parameter `align' with
16833 * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
16834 (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
16836 * toplev.c (note_deferral_of_defined_inline_function): Likewise
16839 2000-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16841 * config/c4x.h: Tidy up comments.
16842 * config/c4x.c: Likewise.
16844 Sun Jan 9 01:02:55 EST 2000 John Wehle (john@feith.com)
16846 * fold-const.c (lshift_double, rshift_double): Handle
16847 shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
16849 2000-01-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16851 * toplev.c (rest_of_compilation): Initialize cse_not_expected as
16852 in prepare_function_start().
16854 Sat Jan 8 12:12:46 2000 Nick Clifton <nickc@cygnus.com>
16856 * config/v850/v850.c (expand_epilogue): Interrupt functions no
16857 longer allocate extra stack for function calls.
16859 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16861 * config/c4x/c4x.md (*subqf3_set): Fix typo.
16863 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16865 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
16867 2000-01-07 David Edelsohn <edelsohn@gnu.org>
16869 * rs6000.c (processor_target_table): Add power3 as alias for 630.
16870 * aix43.h: Revert Aug 2 change.
16871 (HAS_INIT_SECTION): Define, not visible yet.
16872 (LD_INIT_SWITCH): Define, not visible yet.
16873 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
16875 * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
16877 * collect2.c (main): Expand ld2 size further.
16878 (export_object_lst): Cast assignment to avoid warning.
16879 (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
16880 (scan_prog_file, COFF): Do not collect initialization or
16881 finalization functions generated for entire shared object if
16882 init/fini support present.
16884 2000-01-07 Nick Clifton <nickc@cygnus.com>
16886 * config/elfos.h: Tidy up formatting of marcos. Make sure
16887 that .section directives are always prefixed by a tab.
16889 * config/svr4.h: Add #include "elfos.h" and remove duplicate
16892 2000-01-07 Matt Austern <austern@sgi.com>
16894 * fold-const.c (real_hex_to_f): Remove duplicate declaration of
16897 Fri Jan 7 01:55:34 2000 Jeffrey A Law (law@cygnus.com)
16899 * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
16901 (crtbegin.o, s-crtS): Likewise.
16903 2000-01-06 Richard Henderson <rth@cygnus.com>
16905 * alpha.md (adddi_2+1): Limit offset such that it will be
16906 loadable with a single ldah+lda pair.
16907 (adddi_2+2): Explicitly fail split if we can't make it work.
16909 2000-01-06 Mumit Khan <khan@xraylith.wisc.edu>
16911 * protoize.c: Conditionally include unistd.h.
16912 (IS_SAME_PATH_CHAR): New macro.
16913 (IS_SAME_PATH): New macro.
16914 (CPLUS_FILE_SUFFIX): New macro.
16915 (cplus_suffix): New static variable.
16916 (is_abspath): New static function.
16917 (in_system_include_dir): Handle DOS style pathnames.
16918 (file_could_be_converted): Likewise.
16919 (file_normally_convertible): Likewise.
16920 (directory_specified_p): Likewise.
16921 (file_excluded_p): Likewise.
16922 (abspath): Likewise.
16923 (shortpath): Likewise.
16924 (referenced_file_is_newer): Likewise.
16925 (save_def_or_dec): Likewise.
16926 (do_processing): Likewise.
16928 (edit_file): Likewise. Use rename instead of link.
16929 (rename_c_file): Likewise. Don't rename syscalls file.
16930 (munge_compile_params): Define null device for DOS based systems.
16931 (process_aux_info_file): Use binary mode if appliable.
16932 (edit_file): Likewise.
16933 * invoke.texi (Running Protoize): Document C++ suffixes used.
16935 * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
16936 IS_DIR_SEPARATOR macros.
16937 * collect2.c: Likewise.
16938 * cppinit.c: Likewise.
16939 * dwarf2out.c: Likewise.
16941 * gcov.c: Likewise.
16942 * prefix.c: Likewise.
16944 * toplev.c: Likewise.
16945 * system.h: And move to here.
16947 * prefix.c (update_path): Fix typo in variable name.
16949 2000-01-06 Richard Henderson <rth@cygnus.com>
16951 * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
16952 (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
16953 (count_reg_sets_1, count_reg_references): Likewise.
16954 (flow_loops_level_compute): Start counting actual loop depth at 1.
16955 (flow_loops_find): Likewise.
16956 * local-alloc.c (update_equiv_regs): Likewise.
16957 * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
16959 2000-01-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
16961 * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
16962 FIRST_PSEUDO_REGISTER
16963 * dwarf2out.c: Don't include frame.h
16964 * dwarfout.c: Likewise
16965 * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
16968 Thu Jan 6 13:44:59 CET 2000 Jan Hubicka <jh@suse.cz>
16970 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
16973 * i386.c (movsf splitter): Fix typo in my last checkin.
16975 2000-01-05 Nick Clifton <nickc@cygnus.com>
16977 * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
16978 own definition of this macro.
16979 (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
16980 flag_data_sections or UNIQUE_SECTION_P are true.
16982 * tm.texi (UNIQUE_SECTION): Document that it can be called for
16983 unitialised data decls.
16985 * config/i386/winnt.c (i386_pe_unique_section): Cope with
16986 being called for uninitialised data.
16988 * config/i386/interix.c (i386_pe_unique_section): Cope with
16989 being called for uninitialised data.
16991 * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
16992 for uninitialised data.
16994 * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
16995 for uninitialised data.
16997 * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
16998 for uninitialised data.
17000 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
17001 (UNIQUE_SECTION_P): Always generate a unique section if
17002 flag_data_sections is true.
17003 (UNIQUE_SECTION): Also generate unique sections for
17004 uninitialised data.
17005 (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
17006 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
17009 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17011 * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
17014 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17016 * config/c4x/c4x.md (udivqi3, divqi3): Delete.
17017 (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
17018 (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
17019 (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
17020 (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
17022 * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
17024 2000-01-05 11:25 -0800 Zack Weinberg <zack@rabi.columbia.edu>
17026 * c-decl.c (finish_enum): Simplify code to determine minimum and
17027 maximum values of the enum, and calculate the type. Remove check
17028 for FUNCTION_DECLs in the values list, which cannot happen. Replace
17029 the DECL_INITIAL of each enumeration constant with a copy converted
17030 to the enumeration type. When updating variant types, don't bother
17031 updating the type itself.
17033 * c-typeck.c (build_binary_op): Simplify conditional expressions
17034 when weeding out spurious signed-unsigned warnings. Add new
17035 spurious warning category: if the unsigned quantity is an enum
17036 and its maximum value fits in signed_type(result_type). Update
17038 (build_conditional_expr): Warn here if one alternative is signed
17039 and the other is unsigned.
17041 2000-01-05 Nick Clifton <nickc@cygnus.com>
17043 * config/fr30/fr30.h: Remove extraneous comments.
17045 2000-01-05 Bernd Schmidt <bernds@cygnus.co.uk>
17047 * reload1.c (choose_reload_regs): When disabling a reload, also
17048 set reload_spill_index to -1.
17050 2000-01-04 Joel Sherrill (joel@OARcorp.com>
17052 * configure.in (m68*-*-rtemscoff*): New target, formal name for
17054 (m68*-*-rtemself*): New target.
17055 (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
17056 (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
17057 (sparc*-*-rtemself*): New target.
17058 (sparc*-*-rtems*): Now elf not a.out.
17059 * config/i386/rtems.h: Include config/rtems.h.
17060 * config/i386/rtemself.h: Include config/rtems.h.
17061 * config/i960/rtems.h: Include config/rtems.h.
17062 * config/m68k/rtems.h: Include config/rtems.h.
17063 * config/m68k/rtemself.h: Include config/rtems.h.
17064 * config/mips/rtems64.h: Include config/rtems.h.
17065 * config/pa/rtems.h: Include config/rtems.h.
17066 * config/rs6000/rtems.h: Include config/rtems.h.
17067 * config/sh/rtems.h: Include config/rtems.h.
17068 * config/sh/rtemself.h: Include config/rtems.h.
17069 * config/sparc/rtems.h: Include config/rtems.h.
17070 * config/sparc/rtemself.h: Include config/rtems.h
17072 Tue Jan 4 23:59:26 2000 Denis Chertykov <denisc@overta.ru>
17074 * final.c (shorten_branches): Correctly compute length of
17075 asms without operands.
17077 Tue Jan 4 22:55:41 2000 Steve Chamberlain <sac@pobox.com>
17079 * configure.in: Add pj target.
17080 * configure: Regenerate.
17081 * config/pj: New directory.
17082 * config/pj/lib1funcs.S: New file.
17083 * config/pj/linux.h: New file.
17084 * config/pj/pj.c: New file.
17085 * config/pj/pj.md: New file.
17086 * config/pj/pjl.h: New file.
17087 * config/pj/t-pj: New file.
17088 * config/pj/xm-pj.h: New file
17090 Tue Jan 4 22:30:16 2000 Jeffrey A Law (law@cygnus.com)
17092 * toplev.c (rest_of_compilation): Run shorten-branches before
17095 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17097 * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
17098 macros so that they're consistent with their names.
17099 * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
17100 * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
17102 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17104 * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
17105 modified inadvertently.
17107 2000-01-04 Joel Sherrill <joel@OARcorp.com>
17109 * configure.in (v850*-*-rtems*): New target.
17110 * configure: Regenerate.
17111 * config/v850/rtems.h: New file.
17113 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
17115 * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
17116 (__gthread_key_create): Likewise.
17117 (__gthread_key_dtor): Likewise.
17118 (__gthread_once): Fix logic.
17119 (__gthread_key_delete): Cast away constness.
17121 * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
17122 * invoke.texi: Document.
17123 * i386/mingw32.h (CPP_SPEC): Use.
17124 (LIBGCC_SPEC): Likewise.
17125 * i386/crtdll.h (LIBGCC_SPEC): Likewise.
17127 2000-01-04 David Edelsohn <edelsohn@gnu.org>
17129 * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
17130 (HANDLE_PRAGMA_PACK): Undefine.
17131 (SLOW_UNALIGNED_ACCESS): Define.
17133 2000-01-04 David Edelsohn <edelsohn@gnu.org>
17135 * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
17136 to default definition.
17137 (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
17138 (store_fixed_bit_field): Call macro with word_mode and alignment.
17139 (extract_bit_field): Call macro with relevant mode and alignment.
17140 * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
17141 to default definition.
17142 (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
17144 (move_by_pieces_ninsns): Likewise.
17145 (clear_by_pieces): Likewise.
17146 (emit_push_insn): Likewise.
17147 (store_field): Call macro with relevant mode and alignment.
17148 (expand_expr): Likewise.
17149 (expand_expr_unaligned): Likewise.
17151 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
17152 (SLOW_UNALIGNED_ACCESS): Define.
17153 (CASE_VECTOR_MODE): Always use 32-bit offsets.
17154 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
17155 (EXTRA_SECTION_FUNCTIONS): Indent .csect pseudo-op.
17156 (toc_section): Likewise and .toc pseudo-op.
17157 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
17159 (TEXT_SECTION_ASM_OP): Likewise.
17160 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
17163 * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
17164 * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
17165 * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
17166 * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
17167 * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
17169 Tue Jan 4 11:44:13 2000 Jeffrey A Law (law@cygnus.com)
17171 * regclass.c: Revert my Jan 4 change to loop cost computation.
17173 Tue Jan 4 19:22:39 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
17175 * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
17178 2000-01-04 Stan Cox <scox@cygnus.com>
17180 * haifa-sched.c (build_control_flow): Change unreachable simple
17181 loop test to check if current block has only one predecessor.
17182 (find_rgns): Initialize degree. Use dest as degree index, not src.
17184 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17186 * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
17188 * calls.c (expand_call): Likewise for
17189 `old_stack_arg_under_construction'.
17191 * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
17193 * function.c (pad_to_arg_alignment): Likewise for `save_var' and
17196 * gcc.c (execute): Likewise for `ut' and `st'.
17198 * genattrtab.c (attr_rtx): Likewise for `rt_val'.
17200 * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
17202 * jump.c (jump_optimize_1): Likewise for `temp2'.
17204 * local-alloc.c (block_alloc): Likewise for `r1'.
17206 * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
17208 * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
17209 (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
17211 * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
17214 * reload.c (find_reloads): Likewise for `goal_alternative_number'
17215 and `goal_earlyclobber'.
17217 * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
17219 * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
17221 * stupid.c (stupid_life_analysis): Likewise for `chain'.
17223 * unroll.c (copy_loop_body): Likewise for `copy'.
17225 * varasm.c (output_constructor): Likewise for `byte'.
17227 Tue Jan 4 15:34:34 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
17229 * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
17230 all FP constants for constant->reg moves.
17231 (ix86_split_to_parts): Try to convert memory address into immediate
17232 when available in the constant pool.
17233 * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
17235 (LEGITIMATE_CONSTANT_P): Return 1.
17236 * i386.md (pushsf): New splitter to convert constant pool memory
17237 reference to immediate.
17238 (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
17241 2000-01-04 Bernd Schmidt <bernds@cygnus.co.uk>
17243 * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
17244 (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
17245 ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
17246 (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
17247 rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
17249 2000-01-04 Martin von Löwis <loewis@informatik.hu-berlin.de>
17251 * ginclude/stdbool.h: Support compilation as C++.
17253 Tue Jan 4 01:35:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
17255 * fold-const.c (make_range): Don't try to reverse an unbounded range.
17257 Tue Jan 4 00:18:46 2000 Jeffrey A Law (law@cygnus.com)
17259 * regclass.c (regclass): Properly compute loop_cost. Adjust
17262 * regclass.c: Fix minor whitespace problems.
17264 2000-01-03 Anthony Green <green@cygnus.com>
17266 * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
17267 Restore the pic register if required.
17269 2000-01-03 Ulrich Drepper <drepper@cygnus.com>
17271 * c-common.c (format_char_info): Update comment.
17272 (check_format_info): Recognize 'z' modifier in the same way 'Z'
17273 was recognized. Emit warning for formats new in ISO C99 only
17274 if flag_isoc9x is not set.
17276 Mon Jan 3 12:59:54 2000 Mark P. Mitchell <mark@codesourcery.com>
17278 * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
17280 Mon Jan 3 15:33:37 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
17282 * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
17283 SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
17284 (make_compound_operation): Choose cheaper alternative between
17285 ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
17287 * regclass.c (op_costs): Remove global variable.
17288 (record_reg_classes): New parameter "op_costs" and "reg_pref".
17289 (record_operand_costs): Break out from ...
17290 (scan_one_insn): ... here.
17291 (dump_regclass): Make dumps nicer.
17292 (regclass): Dump preferrences choosed and changes done during passes.
17294 2000-01-03 Jakub Jelinek <jakub@redhat.com>
17296 * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
17298 2000-01-03 Jakub Jelinek <jakub@redhat.com>
17300 * config/sparc/sparc.c (gen_df_reg): New function.
17301 * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
17302 * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
17303 movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
17304 movtf_cc_reg_sp64+1): Use it.
17306 2000-01-02 Mark Mitchell <mark@codesourcery.com>
17308 * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
17309 copied LABEL_DECLs.
17311 Mon Jan 3 02:54:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
17313 * config/i386/i386.c (ix86_expand_unary_operator): Function
17314 definition made void.
17315 (ix86_expand_binary_operator): Update outdated preceding comment.
17316 * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
17319 * config/i386/i386.c (override_options): Fix option-name typo.
17321 2000-01-02 Mark Mitchell <mark@codesourcery.com>
17323 * system.h (CEIL): Define.
17324 * builtins.c (CEIL): Remove.
17325 * expmed.c (CEIL): Likewise.
17326 * expr.c (CEIL): Likewise.
17327 * stor-layout.c (CEIL): Likewise.
17329 2000-01-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17331 * expr.c (store_constructor_field): Fix typo introduced with last
17334 2000-01-01 Mark Mitchell <mark@codesourcery.com>
17336 * tree.h (BINFO_N_BASETYPES): New macro.
17338 2000-01-01 Bernd Schmidt <bernds@cygnus.co.uk>
17340 * expmed.c (emit_store_flag): Prevent losing a pending stack
17341 adjust the same way we prevent losing queued increments.
17343 See ChangeLog.2 for earlier changes.