1 Sun Sep 2 18:37:54 CEST 2001 Jan Hubicka <jh@suse.cz>
3 * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
5 2001-09-01 Geoffrey Keating <geoffk@redhat.com>
7 * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
8 (emit_push_insn): Use specified padding direction when
9 STACK_PUSH_CODE is POST_INC.
11 * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
13 2001-09-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15 * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
17 2001-09-01 Neil Booth <neil@daikokuya.demon.co.uk>
19 * cppinit.c (cpp_start_read): Free the imacros list as we
20 traverse it. Don't free the chains before returning.
21 (_cpp_push_next_buffer): Only try pushing buffers if we've
22 completed -imacros handling.
24 2001-08-31 Eric Christopher <echristo@redhat.com>
26 * gcc.c (handle_braces): Add explaination for abort.
28 2001-08-30 Roman Zippel <zippel@linux-m68k.org>
30 * expmed.c (store_bit_field): Update to patch from 2001-08-27:
31 move adjustment of bitpos instead.
33 2001-08-31 Zack Weinberg <zack@codesourcery.com>
35 * function.c: Remove all_functions. Make outer_function_chain
37 (init_function_start): Don't add new function structure to
39 (find_function_data, push_function_context_to,
40 pop_function_context_from, put_var_into_stack,
41 trampoline_address): Update for changed structure element names.
42 (push_function_context_to): Disentangle.
43 (free_after_compilation): Also free F.
44 (expand_dummy_function_end): Don't free cfun here.
45 (put_var_into_stack): Comment why we can't use find_function_data here.
46 (fix_lexical_addr, trampoline_address, ): Use find_function_data.
47 (mark_function_chain): Split into maybe_mark_struct_function and
48 ggc_mark_struct_function. Export the latter.
49 (init_function_once): Mark from cfun and outer_function_chain;
52 * function.h (struct function): Kill next_global. Rename next
53 to outer. All users updated to match.
54 (all_functions, outer_function_chain): Don't declare.
56 * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
57 * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
58 don't touch f->inlinable, after calling rest_of_compilation.
60 * tree.h: Forward-declare struct function. Prototype
61 ggc_mark_struct_function.
63 2001-08-31 Kazu Hirata <kazu@hxi.com>
65 * config/h8300/h8300.md (*andorhi3): Fix typos.
67 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
69 * calls.c (emit_library_call_value): Don't use a fixed
70 argument after VA_CLOSE, i.e. out of scope in traditional C.
72 * emit-rtl.c (gen_rtvec): Likewise.
74 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
76 * Makefile.in (c-pragma.o): Depend on output.h.
77 (reorg.o): Depend on except.h.
79 * c-pragma.c: Include output.h.
81 * reorg.c: Include except.h.
83 * unwind-dw2.c: Call __builtin_alloca, not alloca.
85 2001-08-31 Richard Henderson <rth@redhat.com>
87 * sched-deps.c (add_dependence): Don't elide dependancy if the
88 conditional used by insn is modified in elem.
90 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
92 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
94 2001-08-31 Diego Novillo <dnovillo@redhat.com>
96 * c-decl.c (c_decode_option): Skip '-f' prefix before calling
99 2001-08-31 Geoffrey Keating <geoffk@redhat.com>
101 * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
103 (stormy16_asm_out_constructor): New function.
104 (TARGET_ASM_CONSTRUCTOR): Define.
105 (TARGET_ASM_DESTRUCTOR): Define.
107 2001-08-31 Andreas Jaeger <aj@suse.de>
109 * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
110 * loop.c (add_label_notes): Likewise.
111 * reload.c (find_reloads): Likewise.
112 * config/sh/sh.c (machine_dependent_reorg): Likewise.
114 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
116 * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
117 code here. Take _Unwind_{W,Sw}ord*.
118 (read_encoded_value_with_base): Use them.
119 * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
121 (extract_cie_info): Simplify read_?leb128 handling.
122 (execute_stack_op, execute_cfa_program): Likewise.
123 * unwind-dw2-fde.c (get_cie_encoding): Likewise.
125 2001-08-31 Geoffrey Keating <geoffk@redhat.com>
127 * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
128 the frame pointer to pop the stack if convenient.
130 * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
131 Don't use post-increment before combine.
132 * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
133 a call-saved register.
135 2001-08-31 Andreas Jaeger <aj@suse.de>
137 * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
140 2001-08-30 Geoffrey Keating <geoffk@redhat.com>
142 * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
143 not DIV/MOD, of course.
145 2001-08-30 Vladimir Makarov <vmakarov@redhat.com>
147 * rtl.def: Undo my patch commited 2001-08-27.
149 * genattrtab.c: Ditto.
153 * sched-int.h: Ditto.
155 * target-def.h: Ditto.
159 * haifa-sched.c: Ditto.
161 * sched-rgn.c: Ditto.
163 * sched-vis.c: Ditto.
165 * Makefile.in: Ditto.
167 * doc/md.texi: Ditto.
169 * doc/tm.texi: Ditto.
171 * doc/contrib.texi: Ditto.
173 * doc/gcc.texi: Ditto.
175 * genattrtab.h: Remove it.
177 * genautomata.c: Remove it.
179 * genattr.c: Undo my patch and Richard Henderson's patch commited
182 Thu Aug 30 19:22:15 2001 J"orn Rennecke <amylaar@redhat.com>
184 * config.gcc (h8300-*-elf*): New case.
185 * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
186 (SUBTARGET_CPP_SPEC): Define.
187 (EXTRA_SPECS): Define.
188 (SUBTARGET_EXTRA_SPECS): Define.
189 * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
190 * config/h8300/elf.h, config/h8300/t-elf: Likewise.
192 Thu Aug 30 18:50:37 2001 J"orn Rennecke <amylaar@redhat.com>
194 * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
195 (LIB2FUNCS_EXTRA): Define.
196 config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
197 config/h8300/fixunssfsi.c: New file.
199 2001-08-30 Kazu Hirata <kazu@hxi.com>
201 * config/h8300/h8300.md (zero_extendqihi2): Changes to
202 define_expand to accomodate target-specific attributes.
203 (anonymous zero_extendqihi2 patterns): New.
205 Thu Aug 30 18:10:56 2001 J"orn Rennecke <amylaar@redhat.com>
207 * h8300.md (*andorhi3): New pattern.
209 Thu Aug 30 16:00:31 2001 J"orn Rennecke <amylaar@redhat.com>
211 * h8300.c (dosize): Fix test for "sub".
213 Thu Aug 30 10:21:43 2001 J"orn Rennecke <amylaar@redhat.com>
215 * c-typeck.c (pointer_diff): Try to eliminate common term before
218 2001-08-30 Nick Clifton <nickc@cambridge.redhat.com>
220 * config/arm/arm.c (arm_compute_initial_elimination_offset):
221 Account for the saves of the FP registers.
223 * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
224 (TEXT_SECTION_ASM_OP): Define.
225 (INIT_SECTION_ASM_OP): Define.
226 (FINI_SECTION_ASM_OP): Define.
227 (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
228 (RDATA_SECTION_FUNCITON): Provide prototype.
230 2001-08-29 Geoffrey Keating <geoffk@redhat.com>
232 * reload1.c (move2add_note_store): Correct typo checking for
235 2001-08-29 Andrew MacLeod <amacleod@redhat.com>
237 * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
238 note should not be considered outside the libcall block.
240 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
242 * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
244 2001-08-29 Kazu Hirata <kazu@hxi.com>
246 * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
248 2001-08-29 Kazu Hirata <kazu@hxi.com>
250 * config/h8300/h8300-protos.h: Add a prototype for
252 * config/h8300/h8300.c (emit_logical_op): New.
253 * config/h8300/h8300.md (andhi3): Use emit_logical_op.
260 2001-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
262 * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
263 comparison with rtx INTVAL.
264 (pa_output_function_prologue): Don't mix signed and unsigned in `?'
266 * pa.h (FUNCTION_ARG_SIZE): Likewise.
268 2001-08-29 Kazu Hirata <kazu@hxi.com>
270 * config/h8300/lib1funcs.asm: Update the copyright. Fix
273 2001-08-29 Kazu Hirata <kazu@hxi.com>
275 * config/h8300/h8300.md (anonymous movhi pattern): Don't move
276 (reg n) to (mem (pre_dec (reg n))
277 (anonymous movsi pattern): Likewise.
279 2001-08-29 Kazu Hirata <kazu@hxi.com>
281 * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
283 2001-08-29 Kazu Hirata <kazu@hxi.com>
285 * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
286 several special constants.
288 2001-08-29 Kazu Hirata <kazu@hxi.com>
290 * config/h8300/lib1funcs.asm: Fix comment typos.
292 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
294 * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
295 Fix format specifier warnings.
297 * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
298 inet_makeaddr, semctl): Prototype.
300 * mips.c (compute_frame_size): Fix signed/unsigned warnings.
301 (save_restore_insns): Use base_offset, not gp_offset.
303 * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
304 (ASM_OUTPUT_BYTE): Fix format specifier warning.
306 2001-08-29 Richard Henderson <rth@redhat.com>
308 * bb-reorder.c (function_tail_eff_head): New.
309 (record_effective_endpoints): Set it.
310 (fixup_reorder_chain): Use it.
312 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
314 * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
316 2001-08-28 Dale Johannesen <dalej@apple.com>
318 * config/darwin.c (machopic_function_base_name): Add const
319 qualifier to a string.
320 (darwin_encode_section_info): Ditto.
322 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
324 * tree.c (default_valid_attribute_p): Don't use PARAMS on a
327 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
329 * df.h (struct df): Add rts_order variable.
331 * df.c (df_visit_next_rts): New function.
332 (df_visit_next): Renamed to df_visit_next_rc
333 (df_analyse_1): Allocate/compute/free rts_order as well.
334 (df_rd_global_compute): Use df_visit_next_rc instead of
336 (df_ru_global_compute): Use df_visit_next_rts instead of
339 * flow.c (flow_reverse_top_sort_order_compute): New function.
341 * basic-block.h: Add prototype.
343 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
345 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
346 blocks, the BB_REACHABLE is now set, rather than aux being
347 non-NULL. Update the test to reflect this.
349 2001-08-28 Eric Christopher <echristo@redhat.com>
351 * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
352 config/mips/crti.asm: Ditto.
354 2001-08-28 Eric Christopher <echristo@redhat.com>
355 Richard Henderson <rth@redhat.com>
357 * c-pragma.h (add_weak): Move prototype from here...
358 * output.h (add_weak): ... to here.
359 * varasm.c (add_weak): Fix typo.
360 * config/mips/crti.asm: New file.
361 * config/mips/crtn.asm: Ditto.
362 * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
363 (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
364 (INVOKE__main): Ditto.
365 (INIT_SECTION_ASM_OP): New.
366 (FINI_SECTION_ASM_OP): Ditto.
367 (STARTFILE_SPEC): Add crti.
368 (ENDFILE_SPEC): Add crtn.
369 * config/mips/elf64.h: Same.
370 * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
372 * config/mips/vxworks.h: Ditto.
373 * config/mips/t-elf: Support crti and crtn.
375 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
377 * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
380 2001-08-28 Richard Henderson <rth@redhat.com>
382 * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
383 (one_cmplbi2 splitter): Remove redundant test.
385 2001-08-28 Dale Johannesen <dalej@apple.com>
387 * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
389 2001-08-28 Danny Smith <dannysmith@users.sourceforge.net>
391 * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
393 2001-08-28 Stan Shebs <shebs@apple.com>
395 * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
396 (UNALIGNED_SHORT_ASM_OP): Define.
397 (UNALIGNED_INT_ASM_OP): Define.
399 2001-08-28 Will Cohen <wcohen@redhat.com>
401 * config/rs6000/rs6000.md (store_multiple): Correct RTL
402 generation for first set.
404 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
406 * flow.c (redirect_edge_succ_nodup): Return new edge.
407 (try_simplify_condjump): Use new edge.
408 * basic-block.h (redirect_edge_succ_nodup): Update prototype.
410 * cse.c (cse_basic_block): Skip note instructions.
412 2001-08-27 Richard Henderson <rth@redhat.com>
414 * combine.c (combine_simplify_rtx): Don't reverse condition
415 if there is no reverse for the condition.
416 (simplify_comparison): Don't simplify subregs from INT to FP.
418 * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
419 suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
420 sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
421 bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
422 bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
423 bunle_rev, bunlt_rev, bltgt_rev): New patterns.
425 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
427 * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
428 bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
430 (adddi_dilshr32, adddi_dishl32): Only data register can be
431 source for mem destination.
433 * expmed.c (store_bit_field): Ignore adjustment to bitpos
434 and use bitnum to decide about register move.
436 2001-08-27 Richard Henderson <rth@redhat.com>
438 * genattr.c (main): Emit state_t even when not doing scheduling.
440 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
441 Richard Henderson <rth@redhat.com>
443 * gcse.c (reg_first_set, reg_last_set): Replace with ...
444 (reg_avail_info, current_bb): ... these.
445 (oprs_unchanged_p, record_last_reg_set_info): Use them.
446 (compute_hash_table): Likewise.
448 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
450 * flow.c (verify_flow_info): Use checksums to verify edges.
452 2001-08-27 Richard Henderson <rth@redhat.com>
454 * genautomata.c (expand_automata): Always create a description.
456 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
458 * optabs.c (expand_binop): Correctly handle the carry in multiword
459 add/subtract operations.
461 2001-08-27 Fred Fish <fnf@be.com>
463 * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
466 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
468 * reload.c (find_reloads_toplev): Back out this change:
470 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
472 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
473 mem if the address is a mode_dependent_address_p.
475 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
477 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
478 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
479 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
482 * genattr.c (main): New variable num_insn_reservations. Increase
483 it if there is DEFINE_INSN_RESERVATION. Output automaton based
484 pipeline hazard recognizer interface.
486 * genattrtab.h: New file.
488 * genattrtab.c: Include genattrtab.h.
489 (attr_printf, check_attr_test, make_internal_attr,
490 make_numeric_value): Move protypes into genattrtab.h. Define them
492 (num_dfa_decls): New global variable.
493 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
494 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
495 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
496 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
498 * genautomata.c: New file.
500 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
502 * sched-int.h: (curr_state): Add the external definition for
503 automaton pipeline interface.
504 (haifa_insn_data): Add comments for members blockage and units.
506 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
507 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
508 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
509 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
510 TARGET_SCHED_DFA_POST_CYCLE_INSN,
511 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
512 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
514 (TARGET_SCHED): Use the new macros.
516 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
517 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
518 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
519 dfa_bubble): New members in gcc_target.sched.
521 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
522 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
523 (insn_queue): Redefine it as pointer to array.
524 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
526 (max_insn_queue_index_macro_value): New variable.
527 (curr_state, dfa_state_size, ready_try): New varaibles for
529 (ready_element, ready_remove, max_issue): New function prototypes
530 for automaton interface.
531 (choose_ready): New function prototype.
532 (insn_unit, blockage_range): Add comments.
533 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
534 FUNCTION_UNITS_SIZE == 0.
535 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
536 actual_hazard, potential_hazard): Add comments.
537 (insn_cost): Use cost -1 as undefined value. Remove
538 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
540 (ready_element, ready_remove): New functions for automaton
542 (schedule_insn): Add new code for automaton pipeline interface.
543 (queue_to_ready): Add new code for automaton pipeline interface.
544 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
545 (debug_ready_list): Print newline when the queue is empty.
546 (max_issue): New function for automaton pipeline interface.
547 (choose_ready): New function.
548 (schedule_block): Add new code for automaton pipeline interface.
549 Print ready list before scheduling each insn.
550 (sched_init): Add new code for automaton pipeline interface.
551 Initiate insn cost by -1.
552 (sched_finish): Free the current automaton state and finalize
553 automaton pipeline interface.
555 * sched-rgn.c: Include target.h.
556 (init_ready_list, new_ready, debug_dependencies): Add new code for
557 automaton pipeline interface.
559 * sched-vis.c: Include target.h.
560 (get_visual_tbl_length): Add code for automaton interface.
561 (target_units, print_block_visualization): Add comments.
563 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
564 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
565 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
566 (getruntime.o, genautomata.o): New entries.
567 (genattrtab.o): Add new dependency file genattrtab.h.
568 (genattrtab): Add new dependencies. Link it with `libm.a'.
569 (getruntime.o, hashtab.o): New entries for canadian cross.
571 * doc/md.texi: Description of automaton based model.
573 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
575 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
576 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
577 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
578 TARGET_SCHED_DFA_POST_CYCLE_INSN,
579 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
580 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
581 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
583 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
584 MAX_DFA_ISSUE_RATE): New macro descriptions.
586 * doc/contrib.texi: Add dfa based scheduler contribution.
588 * doc/gcc.texi: Add more information about genattrtab.
590 2001-08-27 Diego Novillo <dnovillo@redhat.com>
592 * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
595 2001-08-27 Richard Henderson <rth@redhat.com>
597 * function.c (expand_function_end): Don't init arg_pointer_save_area.
598 (get_arg_pointer_save_area): New. Create an init it here.
599 (fix_lexical_addr): Use it.
600 * function.h: Declare it.
601 * builtins.c (expand_builtin_setjmp_receiver): Use it.
602 * stmt.c (expand_nl_goto_receiver): Use it.
604 2001-08-27 Richard Henderson <rth@redhat.com>
606 * final.c (final_scan_insn): Don't enter APP_ON mode for
609 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
610 alignment for assemble_integer for DW_EH_PE_aligned.
611 * except.c (output_function_exception_table): Likewise.
613 2001-08-26 Andreas Jaeger <aj@suse.de>
615 * c-tree.h: Add prototyp for c_sizeof_nowarn.
617 2001-08-25 Dan Nicolaescu <dann@ics.uci.edu>
619 * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
621 2001-08-27 Alan Modra <amodra@bigpond.net.au>
623 * config/rs6000/rs6000.c (mask_operand): Rewrite without
625 (mask64_operand): Likewise.
626 (rldic_operand): Delete.
627 (includes_lshift64_p): Delete.
628 (includes_rldic_lshift_p): New function.
629 (includes_rldicr_lshift_p): New function.
630 (print_operand): Don't call rldic_operand in case 'W'.
631 * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
632 (includes_lshift64_p): Remove.
633 (includes_rldic_lshift_p): Declare.
634 (includes_rldicr_lshift_p): Declare.
635 * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
636 * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
637 Replace match_operand rldic_operand predicate with
638 const_int_operand. Replace includes_lshift64_p condition with
639 includes_rldic_lshift_p.
640 <ashldi3_internal 64 bit rldicr patterns>: New.
642 2001-08-27 Andreas Jaeger <aj@suse.de>
644 * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
645 * errors.c: Likewise.
647 * dwarf2asm.c: Likewise.
648 * doprint.c (checkit): Likewise.
649 * diagnostic.c: Likewise.
650 * collect2.c: Likewise.
652 * c-semantics.c (build_stmt): Likewise.
653 * c-format.c (status_warning): Likewise.
654 * c-errors.c (pedwarn_c99): Likewise.
655 * builtins.c (validate_arglist): Likewise.
656 * config/pj/pj.c (pj_printf): Likewise.
657 * fix-header.c: Likewise.
659 * gcov.c (fnotice): Likewise.
660 * gensupport.c (message_with_line): Likewise.
661 * mips-tfile.c: Likewise.
662 * protoize.c (notice): Likewise.
663 * read-rtl.c (fatal_with_file_and_line): Likewise.
664 * rtl-error.c: Likewise.
665 * tradcpp.c: Likewise.
667 * cp/tree.c (build_min_nt): Likewise.
668 (build_min): Likewise.
669 * cp/lex.c: Likewise.
670 * cp/errfn.c: Likewise.
671 * cp/rtti.c (create_pseudo_type_info): Likewise.
673 Sun Aug 26 20:25:44 2001 Denis Chertykov <denisc@overta.ru>
675 * df.c (df_uses_record): Return after recording all uses
678 2001-08-26 Daniel Berlin <dan@cgsoftware.com>
680 * df.c (df_insn_modify): Realloc the INSN table here, if
681 necessary, here, too.
683 2001-08-26 Aldy Hernandez <aldyh@redhat.com>
685 * config/mips/mips.c (mips_function_value): Handle complex return
688 2001-08-25 Hans-Peter Nilsson <hp@bitrange.com>
690 * reload1.c (reload): Make all entries in reg_equiv_memory_loc
692 * reload.c (make_memloc): Copy result if it is still
693 reg_equiv_memory_loc[regno] on return.
694 (subst_reloads) [ENABLE_CHECKING]: Check that none of
695 reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
696 reg_equiv_mem are modified by the substitutions.
698 Sat Aug 25 23:07:35 CEST 2001 Jan Hubicka <jh@suse.cz>
700 * predict.c (expensive_function_p): New.
701 * rtl.h (expensive_function_p): Declare.
702 * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
703 (use_fast_prologue_epilogue): New static variable.
704 (expand_prologue): Set it; emit short prologues if unset.
705 (expand_epilogue): Likewise.
707 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
709 * config.gcc: Add stormy16-*-elf case.
710 * config/stormy16/stormy-abi: New file.
711 * config/stormy16/stormy16-lib2.c: New file.
712 * config/stormy16/stormy16-protos.h: New file.
713 * config/stormy16/stormy16.c: New file.
714 * config/stormy16/stormy16.h: New file.
715 * config/stormy16/stormy16.md: New file.
716 * config/stormy16/t-stormy16: New file.
718 Sat Aug 25 15:46:51 CEST 2001 Jan Hubicka <jh@suse.cz>
720 * i386.h (no-accumulate-outgoing-args): Use proper mask.
722 2001-08-24 David Edelsohn <edelsohn@gnu.org>
724 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
725 descriptor members are pointer size, not constant 4.
726 * config/rs6000/rs6000.md (define_splits): Remove more unused
729 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
731 * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
733 2001-08-24 Andreas Jaeger <aj@suse.de>, rkl@connect.org.uk
735 * cp/rtti.c (VPARAMS): Fix parameter.
737 2001-08-24 Zack Weinberg <zackw@panix.com>
739 * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
741 (mode_for_extraction): No need for #ifdefs. Add default-case abort
743 (store_bit_field): Eliminate insv_bitsize variable. Put HAVE_insv
744 in if controlling use of insv.
745 (extract_bit_field): Likewise, for extv and extzv.
747 Fri Aug 24 17:27:46 CEST 2001 Jan Hubicka <jh@suse.cz>
749 * i386.md (movcc peep2): Fix load of 0.
751 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
753 * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
754 *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
756 2001-08-23 Jason Merrill <jason_merrill@redhat.com>
758 * c-pragma.h: Move weak_syms and weak_decls...
759 * varasm.c: ...here. Now static.
760 (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
761 depend on HANDLE_PRAGMA_WEAK.
763 * c-common.c (c_alignof, c_alignof_expr): Move here...
764 * c-typeck.c: ...from here.
765 * c-tree.h, c-common.h: Adjust.
767 2001-08-23 Bernd Schmidt <bernds@redhat.com>
769 * config/ia64/ia64.c (rws_update): If !pred, set write_count
770 instead of incrementing it.
772 * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
773 asm ready, don't try to move them all into the same array element.
775 Thu Aug 23 17:21:43 CEST 2001 Jan Hubicka <jh@suse.cz>
777 * function.c (thread_prologue_and_epilogue_insns): Avoid
778 fallthru flag on edge to exit.
780 * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
782 * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
785 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
787 * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
788 * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
789 * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
792 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
794 * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
795 replace "GNU CC" with "GCC".
797 2001-08-23 Richard Henderson <rth@redhat.com>
799 * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
800 Reorganize. Handle ADDL like GR, add GR_AND_BR. Handle TFmode.
801 (ia64_secondary_reload_class): Need GR between AR/BR and anything.
802 Need GR between FR and not GR_AND_FR.
803 * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
804 * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
805 AR regs before GR regs.
806 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
807 (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
808 (REGISTER_MOVE_COST): Update.
809 (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
811 2001-08-23 Richard Henderson <rth@redhat.com>
813 * regclass.c (init_reg_sets_1): Don't assume cost 2 within
816 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
818 * reload1.c (emit_reload_insns): Don't look for notes
819 on a NULL store_insn.
821 2001-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
823 * sparc.c (uns_small_int): Don't reference a constant >32-bit.
824 (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
825 (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
826 format specifier warnings.
827 (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
829 2001-08-22 David Billinghurst <David.Billinghurst@riotinto.com>
831 * config/i386/i386-protos.h: Correct declaration of
832 i386_pe_asm_named_section.
834 2001-08-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
836 * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
838 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
840 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
842 * cpperror.c (print_location): Don't show _Pragma.
843 * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
844 and file change callback generation here.
845 (stack_include_file): Update use of cpp_push_buffer.
846 * cpphash.h (_cpp_pop_file_buffer): Update prototype.
847 (struct cpp_buffer): Remove type, pfile members.
848 * cppinit.c (cpp_handle_option): Use free_chain.
849 * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
850 (skip_escaped_newlines, get_effective_char, lex_percent): Take
851 a cpp_reader rather than a cpp_buffer.
852 (skip_escaped_newlines, get_effective_char, skip_block_comment,
853 skip_line_comment, parse_string, lex_percent, lex_dot,
854 _cpp_lex_token): Update accordingly.
855 * cpplib.c (_cpp_pop_buffer): Don't do file change callback
857 (cpp_push_buffer): Update prototype.
858 (run_directive): Update use of cpp_push_buffer.
859 (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
860 handle_assertion): Update use of run_directive.
861 * cpplib.h (enum cpp_buffer_type): Remove.
862 (cpp_push_buffer): Update prototype.
863 * fix-header.c (read_scan_file): Update.
865 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
867 * gcc.c (struct prefix_list): Change prefix to const char *.
869 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
871 * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
873 2001-08-22 Jason Merrill <jason_merrill@redhat.com>
875 * explow.c (set_mem_attributes): Avoid returning a bogus alias set
878 * jump.c (squeeze_notes): Take parms by reference. Handle END being
881 * ifcvt.c (dead_or_predicable): Adjust.
882 * loop.c (find_and_verify_loops): Adjust.
883 * stmt.c (expand_end_case): Adjust.
884 * flow.c (merge_blocks_move_successor_nojumps): Adjust. Modify the
885 head and end insn pointers in the basic block, not just local copies.
886 (merge_blocks_move_predecessor_nojumps): Likewise.
888 2001-08-22 Lars Brinkhoff <lars@nocrew.org>
890 * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
891 bitmap.h, builtin-types.def, builtins.c, builtins.def,
892 c-aux-info.c, c-common.c, c-common.def, c-common.h,
893 c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
894 c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
895 c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
896 caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
897 conditions.h, config.gcc, configure.frag, configure.in,
898 conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
899 cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
900 dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
901 doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
902 dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
903 emit-rtl.c, errors.c, errors.h, except.c, except.h,
904 exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
905 fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
906 function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
907 gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
908 gencheck.c, gencodes.c, genconfig.c, genemit.c,
909 genextract.c, genflags.c, gengenrtl.c, genmultilib,
910 genopinit.c, genoutput.c, genpeep.c, genrecog.c,
911 gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
912 ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
913 graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
914 gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
915 gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
916 hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
917 integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
918 libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
919 machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
920 mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
921 mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
922 params.h, predict.c, predict.def, predict.h, prefix.c,
923 prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
924 read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
925 regclass.c, regmove.c, regrename.c, regs.h, reload.c,
926 reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
927 rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
928 sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
929 sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
930 ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
931 stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
932 tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
933 tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
934 unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
935 unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
936 xcoffout.h: replace "GNU CC" with "GCC".
938 2001-08-21 Richard Henderson <rth@redhat.com>
940 * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
941 (final_scan_insn): Consider jump tables data even if we have no
942 independant text section if !JUMP_TABLES_IN_TEXT_SECTION. Use
944 * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
945 (ASM_OUTPUT_CASE_END): Remove.
946 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
947 * config/ia64/ia64.md (tablejump): Decode pc-relative references.
948 * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
950 2001-08-21 Richard Henderson <rth@redhat.com>
952 * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
953 at barrier insns. Emit stop bits before barriers.
955 * flow.c (flow_find_cross_jump): Don't consider unconditional
956 return insns for commoning.
958 * final.c (compute_alignments): Fix typo.
960 * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
961 (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
962 (store_bit_field): Use mode_for_extraction more places.
963 (extract_bit_field): Likewise.
965 2001-08-21 Zack Weinberg <zackw@panix.com>
967 * caller-save.c: Don't include insn-codes.h.
968 (reg_save_code, reg_restore_code): Make arrays of int.
969 All uses updated to match.
970 (insert_save, insert_restore): No need to initialize "code"
971 variable upon declaration.
972 * Makefile.in: update dependencies; fix typo in clean rule.
974 2001-08-21 Richard Henderson <rth@redhat.com>
976 * ifcvt.c (find_if_block): Allow join_bb as EXIT.
977 (merge_if_block): Handle fallout from same.
979 2001-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
981 * builtins.c (type_to_class): Fix typo in last change.
983 2001-08-21 Richard Henderson <rth@redhat.com>
985 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
986 ia64_asm_output_label.
988 * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
989 copy of gp while the real gp register contains garbage.
991 2001-08-21 Zack Weinberg <zackw@panix.com>
993 * expmed.c (mode_for_extraction): New function.
994 (store_bit_field, extract_bit_field): Use it.
995 * expr.h: Prototype it and provide an enum for its first argument.
997 * combine.c, function.c, recog.c: Don't include insn-codes.h.
998 Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
999 and digging through the insn_data tables.
1000 * Makefile.in: Update dependencies.
1002 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
1004 * cppfiles.c (stack_include_file): line-map.c now handles include
1006 (handle_missing_handler): Similarly.
1007 (_cpp_execute_include): Similarly.
1008 (_cpp_pop_file_buffer): Similarly.
1009 * cpphash.h (struct cpp_reader): Remove system_include_depth,
1010 buffer_stack_depth and include_depth.
1011 * cpplib.c (do_include_common): line-map.c now handles include depth.
1012 (cpp_push_buffer): Similarly.
1013 (_cpp_pop_buffer): Similarly.
1014 * cppmacro.c (builtin_macro): Update.
1015 * line-map.c (init_line_maps): Set depth.
1016 (add_line_map): Increment "used" earlier. Update and use the
1018 (trace_include): Use the include depth.
1019 * line-map.h (struct line_maps): New member depth.
1021 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
1023 * cppfiles.c (stack_include_file): Don't handle -H here.
1024 * cppinit.c (cpp_start_read): Set include tracing after
1025 cpp_post_options and after stacking the main file.
1026 * line-map.c (trace_include): New.
1027 (init_line_maps, add_line_map): Update.
1028 * line-map.h (struct line_maps): New member trace_includes.
1030 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
1032 * cppfiles.c (stack_include_file): Harmonize system headerness tests.
1033 * cppfiles.c (stack_include_file): Only stack a file if there
1034 is something to do. Return a boolean indicating whether a
1035 buffer was stacked or not.
1036 (_cpp_execute_include): Similarly.
1037 (_cpp_read_file): Similarly.
1038 * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
1040 2001-08-21 Sam Steingold <sds@gnu.org>
1042 * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
1043 (RECACHE): keep obufp_before_macroname up to date
1045 2001-08-21 Zack Weinberg <zackw@panix.com>
1047 * stmt.c: Don't include insn-codes.h.
1048 (expand_end_case): Machine specific logic moved to expr.c.
1049 No need to worry about __builtin_classify_type.
1050 (check_for_full_enumeration_handling, emit_case_nodes):
1053 * builtins.o (expand_builtin_classify_type): Split up so code
1054 can be shared with fold_builtin_classify_type.
1055 (type_to_class, fold_builtin_classify_type): New functions.
1056 (fold_builtins): Handle __builtin_classify_type.
1058 * expr.c (do_tablejump): Now static.
1059 (case_values_threshold, try_casesi, try_tablejump): New;
1060 code mostly from stmt.c (expand_end_case).
1061 (expr.h): Update prototypes.
1063 * Makefile.in (stmt.o): Update dependencies.
1065 2001-08-21 Will Cohen <wcohen@redhat.com>
1067 * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
1068 declaration of variable i.
1069 * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
1070 declaration of variable i.
1072 2001-08-21 Richard Henderson <rth@redhat.com>
1074 * crtstuff.c: Fix thinko last change. Move list tails to start
1075 of CRT_END section. Tidy ifdefs.
1076 (__EH_FRAME_BEGIN__): Always static for ELF.
1077 (__do_global_ctors_1): Rename from __frame_dummy.
1078 * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
1079 name change; don't hide __EH_FRAME_BEGIN__.
1081 2001-08-21 Richard Henderson <rth@redhat.com>
1083 * gdbinit.in: Move break on exit after break on fancy_abort.
1085 * config/ia64/ia64.c (ia64_return_in_memory): True for variable
1088 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
1090 * cpphash.h (_cpp_push_next_buffer): New.
1091 * cppinit.c (do_includes): Remove.
1092 (push_include, free_chain, _cpp_push_next_buffer): New.
1093 (cpp_start_read): Use them to rework command line option handling.
1094 (cpp_handle_option): Combine handling of -include and -imacros.
1095 * cpplex.c (_cpp_lex_token): Push a new -include buffer if
1096 appropriate. Always insert missing \n at EOF.
1097 * cpplib.c (start_directive): Get the directive position right.
1098 * cppmain.c (cb_file_change): Always print the first line, unless
1101 2001-08-20 Andreas Jaeger <aj@suse.de>
1103 * profile.c (compute_branch_probabilities): Remove extra new-line
1105 * flow.c (verify_flow_info): Likewise.
1107 2001-08-20 Diego Novillo <dnovillo@redhat.com>
1109 * basic-block.h (basic_block): Add new field 'flags'.
1110 (BB_REACHABLE): Define.
1111 (expunge_block): Declare.
1112 * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
1113 (EXIT_BLOCK_PTR): Ditto.
1114 (expunge_block): Remove static declaration.
1115 (cleanup_cfg): Clear bb->aux on every basic block.
1116 (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
1117 computing reachability.
1118 (delete_unreachable_blocks): Delete block b if b->flags has
1121 2001-08-20 Diego Novillo <dnovillo@redhat.com>
1123 * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
1125 2001-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1127 * sparc.c (sparc_variable_issue): Fix typo in last change.
1129 2001-08-20 Richard Henderson <rth@redhat.com>
1131 * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
1133 2001-08-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
1135 * pa.h (RETURN_IN_MEMORY): Improve comment.
1137 2001-08-20 Janis Johnson <janis187@us.ibm.com>
1139 * doc/invoke.texi (Profiling options): Clarify the interactions
1140 between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
1142 2001-08-20 Jeffrey Oldham <oldham@codesourcery.com>
1144 * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
1147 2001-08-20 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1149 * gcc.c (make_relative_prefix): Allocate a sufficiently large
1152 2001-08-20 Richard Henderson <rth@redhat.com>
1154 * final.c (end_final): Fix typo last change.
1156 2001-08-20 Neil Booth <neil@daikokuya.demon.co.uk>
1158 * cppinit.c (init_standard_includes): The returned buffer
1159 is already malloc-ed.
1160 * gcc.c (add_prefix): Similarly.
1161 * prefix.c (translate_name): Update to support clear buffer
1163 (update_path): Similarly. Be sure to free any newly allocated
1164 key. UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
1166 * prefix.h (update_path): Update prototype and document.
1167 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
1168 up and update to new buffer ownership rules.
1169 * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
1171 Mon Aug 20 01:44:50 CEST 2001 Jan Hubicka <jh@suse.cz>
1173 * final.c (compute_alignments): New function.
1174 (init_insn_lengths): Do not care label_align.
1175 (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
1176 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
1177 (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
1178 (shorted_branches): Realloc label_align array; do
1179 not call init_insn_lengths; Do not care about loop alignments.
1180 * output.h (compute_alignments): Declare.
1181 * toplev.c (rest_of_compilation): Call compute_alignments.
1182 * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
1184 * predict.c (block_info_def): Add npredecesors, remove nvisited;
1185 change visited to tovisit.
1186 (propagate_freq): Use faster traversing algorithm.
1187 (estimate_loops_at_level, estimate_bb_frequencies): Change visited
1188 to tovisit; reverse meaning.
1190 * predict.c (struct block_info_def): Remove nvisited.
1191 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
1192 (estimate_bb_frequencies): Call mark_dfs_back_edges.
1194 2001-08-19 Geoffrey Keating <geoffk@redhat.com>
1196 * doc/invoke.texi (MIPS Options): Document -mfused-madd.
1197 * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
1198 (TARGET_FUSED_MADD): New.
1199 (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
1200 * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
1201 the multiply-add instructions.
1203 2001-08-19 Richard Henderson <rth@redhat.com>
1205 * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
1206 is aligned to pointer size.
1208 2001-08-19 Richard Henderson <rth@redhat.com>
1210 * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
1211 display markers during final schedule.
1213 2001-08-19 Richard Henderson <rth@redhat.com>
1215 * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
1217 2001-08-19 Richard Henderson <rth@redhat.com>
1219 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
1221 (ASM_NAME_TO_STRING): Remove.
1222 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
1223 in the same string. Remove support for expressions.
1225 2001-08-19 Richard Henderson <rth@redhat.com>
1227 * config/i386/i386.md (tablejump): Make an expander; handle
1228 pic relative addressing here.
1229 (tablejump_1): Rename from tablejump_pic.
1232 2001-08-19 Richard Henderson <rth@redhat.com>
1234 * regclass.c (fix_register): Fix typo.
1236 2001-08-18 Richard Henderson <rth@redhat.com>
1238 * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
1239 (struct _Unwind_Context): Expand br_loc to hold it.
1240 (uw_frame_state_for): Handle leaf functions better.
1241 (uw_update_reg_address): Update for br_loc change.
1243 2001-08-18 Richard Henderson <rth@redhat.com>
1245 * crtstuff.c: Move list heads before code that uses them.
1246 (__JCR_LIST__): Remove initial null.
1247 (frame_dummy, __frame_dummy): Do java registration here ...
1248 (__do_global_ctors_aux): ... not here.
1250 * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
1251 (__do_global_dtors_aux): Update to match.
1252 (__JCR_LIST__, __do_jv_register_classes): New.
1254 * config/ia64/crtend.asm (__JCR_END__): New.
1255 (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
1256 instead of an indirect LTOFF22 reloc.
1258 2001-08-18 Richard Henderson <rth@redhat.com>
1260 * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
1261 * regclass.c (init_reg_sets_1): Fix typo.
1262 * config/ia64/ia64.c (ar_pfs_reg_operand): New.
1263 (ia64_expand_call): Pass ar.pfs to sibcall expanders.
1264 (ia64_compute_frame_size): Make ar.unat live when in use.
1265 (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
1266 for ar.pfs; remove ar.unat handling.
1267 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
1269 (PREDICATE_CODES): Add ar_pfs_reg_operand.
1270 * config/ia64/ia64-protos.h: Update decls.
1271 * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
1272 (sibcall_pic): Likewise.
1274 2001-08-18 Richard Henderson <rth@redhat.com>
1276 * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
1277 pred_rel_mutex when searching for insn_group_barrier.
1278 * config/ia64/ia64.md (cycle_display): Combine the expander
1281 * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
1282 bit before asm as needed.
1284 2001-08-18 Richard Henderson <rth@redhat.com>
1286 * timevar.def (TV_MACH_DEP): New.
1287 * toplev.c (rest_of_compilation): Use it.
1288 * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
1290 2001-08-18 Zack Weinberg <zackw@panix.com>
1292 * unwind-dw2.c (execute_stack_op): Add default aborts to
1293 the inner switches to prevent warnings.
1295 2001-08-18 Richard Henderson <rth@redhat.com>
1297 * timevar.h (struct timevar_time_def): Change element type to float.
1298 (ticks_to_msec, clocks_to_msec): Likewise.
1299 (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
1300 (get_time): Likewise.
1301 (timevar_print): Adjust zero check and printing to match.
1303 2001-08-18 Zack Weinberg <zackw@panix.com>
1305 * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
1306 doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
1307 Eliminate overfull or underfull hboxes.
1309 2001-08-18 Zack Weinberg <zackw@panix.com>
1311 * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
1313 2001-08-18 Zack Weinberg <zackw@panix.com>
1315 * haifa-sched.c: Convert to target hooks. Macros replaced
1316 are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
1317 MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
1318 MD_SCHED_FINISH, and HAVE_cycle_display.
1319 * target-def.h (TARGET_SCHED_ADJUST_COST,
1320 TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
1321 TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
1322 TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
1323 TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
1324 New hook #defines to be overridden.
1325 (TARGET_SCHED): Bring them all together.
1326 (TARGET_INITIALIZER): Update.
1327 * target.h: Don't forward declare struct rtx_def. Use 'rtx'
1328 instead of 'struct rtx_def *' throughout.
1329 (struct sched): New set of hooks for the scheduler.
1330 * Makefile.in (haifa-sched.o): Depend on target.h.
1331 * doc/tm.texi: Document the new scheduler hooks, together in
1332 their own section, instead of scattered around.
1333 Fix a bunch of underfull/overfull hboxes.
1335 * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
1336 ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
1337 sparc.h: Don't define any of the old scheduler macros.
1339 * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
1340 ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
1341 sparc.c: Create hook functions from code extracted from
1342 corresponding target header, or make existing hooks static, as
1343 appropriate. Set the appropriate entries in targetm.
1345 * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
1346 i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
1347 rs6000-protos.h, s390-protos.h, sparc-protos.h:
1348 Remove prototypes for functions which are now static.
1350 * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
1351 related gunk; the Haifa scheduler is now the only choice.
1353 2001-08-18 Zack Weinberg <zackw@panix.com>
1355 * optabs.h (OTI_flodiv, flodiv_optab): Kill.
1356 * genopinit.c: Put floating point divide insns in sdiv_optab.
1357 * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
1358 * config/gofast.h, config/c4x/c4x.h,
1359 config/ia64/hpux_longdouble.h, config/mips/mips.h,
1360 config/pa/long_double.h, config/rs6000/sysv4.h,
1361 config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
1362 * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
1363 (init_optabs): Use init_optabv for overflow-trapping optabs.
1364 Don't init flodiv_optab. Give mov_optab, movstrict_optab, and
1365 cmp_optab RTX codes so have_insn_for can find them.
1367 * optabs.c (expand_simple_binop, expand_simple_unop,
1368 have_insn_for, gen_sub3_insn): New interfaces.
1369 * expr.h: Prototype new functions.
1370 (enum optab_methods): Move here from optabs.h.
1372 * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
1373 loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
1374 Use new functions instead of working directly with optabs.
1375 * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
1376 unroll.c: Don't include optabs.h.
1377 * caller-save.c, combine.c, function.c, stmt.c: Just include
1378 insn-codes.h, not optabs.h.
1379 * Makefile.in: Update dependencies.
1381 * combine.c (make_compound_operation, simplify_comparison):
1382 Fix typos testing for this or that instruction.
1384 2001-08-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1386 * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
1387 generating libgcc.a.
1389 2001-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1391 * except.c (TYPE_HASH): Delete.
1393 * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
1396 * tree.c (TYPE_HASH): Delete.
1398 * tree.h (TYPE_HASH): Define.
1400 2001-08-18 Graham Stott <grahams@redhat.com>
1402 * config/mips/mips.md (adddi3_internal_2+1): Remove contraints from
1404 (adddi3_internal_2+2): Likewise.
1405 (eh_set_lr_di+1): Likewise.
1407 2001-08-17 Richard Henderson <rth@redhat.com>
1409 * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
1410 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
1411 * dwarf2asm.c: ... here.
1412 * dwarfout.c: Remove them.
1414 * varasm.c (assemble_integer): Add align parameter.
1415 (assemble_real, output_constant, output_constructor): Likewise.
1416 * output.h: Update decls.
1417 * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
1418 config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
1419 config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
1420 config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
1421 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
1424 * final.c (end_final): Abort profile block generation if we
1425 havn't layed it out properly.
1426 * output.h (assemble_eh_integer): Remove stale decl.
1427 * varasm.c (assemble_zeros): Tidy; use assemble_integer.
1429 (assemble_integer): Handle unaligned data.
1430 (assemble_real): Abort on unaligned data.
1431 (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
1433 (default_dtor_section_asm_out_destructor): Use assemble_align.
1434 (default_named_section_asm_out_constructor): Likewise.
1435 (default_ctor_section_asm_out_constructor): Likewise.
1436 * config/darwin.c (machopic_asm_out_constructor): Likewise.
1437 (machopic_asm_out_destructor): Likewise.
1438 * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
1439 (nextstep_asm_out_destructor): Likewise.
1440 * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
1441 (vms_asm_out_destructor): Likewise.
1443 2001-08-17 Richard Henderson <rth@redhat.com>
1445 * config/mips/iris6.h (TARGET_IRIX6): New.
1446 (current_section_name, current_section_flags): New.
1447 (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
1448 (MAX_OFILE_ALIGNMENT): New.
1449 (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
1450 * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
1451 (copy_file_data): Split out from
1452 (mips_asm_file_end): ... here.
1453 (mips_asm_file_start): Remove extra .section directive. Use
1454 tmpfile instead of mips_make_temp_file.
1455 (mips_unique_section): Use const char * as needed for warnings.
1456 (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
1457 re-add align parameter.
1458 (iris6_asm_named_section): New.
1459 (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
1460 (iris6_asm_output_align, iris6_section_align_1): New.
1461 (iris6_asm_file_start, iris6_asm_file_end): New.
1462 * config/mips/mips-protos.h: Update decls.
1464 2001-08-17 Janis Johnson <janis187@us.ibm.com>
1466 * doc/install.texi (Install GCC): Add links to build status pages.
1468 (Final install): Ditto; request updates for specific info
1470 2001-08-17 Neil Booth <neil@daikokuya.demon.co.uk>
1472 * cpperror.c (print_location): Don't take a file name; use the
1474 (_cpp_begin_message): Similarly.
1475 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
1476 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
1477 (cpp_pedwarn_with_file_and_line): Remove.
1478 * cppfiles.c (stack_include_file): Update; set filename to stdin
1479 here when appropriate.
1480 * cpphash.h (struct cpp_buffer): Remove nominal_fname.
1481 (_cpp_begin_message): Don't take a file name.
1482 * cppinit.c: Add comment.
1483 * cpplex.c: Fix end-of-directive indicator.
1484 * cpplib.c: Don't include intl.h.
1485 (run_directive, do_diagnostic): Update.
1486 (do_line): Update to not use nominal_fname.
1487 (cpp_push_buffer): Don't take a filename.
1488 * cpplib.h (struct ht): Remove.
1489 (cpp_push_buffer): Don't take a filename.
1490 (cpp_pedwarn_with_file_and_line): Remove.
1491 * cppmacro.c (struct cpp_macro): Remove file.
1492 (builtin_macro): Update.
1493 (_cpp_create_definition): Update.
1494 * cppmain.c: Correct comment.
1495 * fix-header.c (read_scan_file): Update.
1497 2001-08-17 Kazu Hirata <kazu@hxi.com>
1499 * sbitmap.c: Fix comment formatting.
1500 * sched-deps.c: Likewise.
1501 * sibcall.c: Likewise.
1502 * simplify-rtx.c: Likewise.
1504 * ssa-ccp.c: Likewise.
1505 * stor-layout.c: Likewise.
1506 * timevar.c: Likewise.
1507 * toplev.c: Likewise.
1508 * unwind-dw2.c: Likewise.
1509 * unwind-dw2-fde.c: Likewise.
1510 * varasm.c: Likewise.
1512 2001-08-17 John David Anglin <dave@hiauly1.hia.nrc.ca>
1514 * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
1515 or larger than an integer in memory.
1517 2001-08-17 Zack Weinberg <zackw@panix.com>
1519 * system.h: Forward-declare struct rtx_def, struct rtvec_def,
1520 and union tree_node. Typedef rtx, rtvec, and tree. Fix comment.
1521 * rtl.h: Don't forward-declare union tree_node here. Don't
1522 typedef rtx or rtvec here. Change all uses of struct rtx_def *,
1523 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
1524 and tree respectively.
1525 * tree.h: Don't forward-declare struct rtx_def here. Don't
1526 typedef tree here. Change all uses of struct rtx_def *,
1527 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
1528 and tree respectively.
1530 2001-08-17 Richard Henderson <rth@redhat.com>
1532 * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
1533 config/mips/openbsd.h: Fix typos last change.
1535 2001-08-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1537 * doc/invoke.texi (Optimize Options): The default for
1538 -finline-limit is 600.
1540 2001-08-17 Richard Henderson <rth@redhat.com>
1542 * varasm.c (text_section): Allow TEXT_SECTION to override the
1543 printing of TEXT_SECTION_ASM_OP.
1544 * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
1545 (DATA_SECTION, BSS_SECTION): Remove.
1546 * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
1547 RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
1548 Rename from s/_NAME//.
1549 * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
1550 (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
1551 (TEXT_SECTION): ... here. New.
1552 * config/mips/elf.h (TEXT_SECTION): New; no file switching.
1553 * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
1554 * config/mips/openbsd.h: Likewise.
1555 * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
1556 (mips_asm_file_end): Likewise test.
1557 (mips_output_function_epilogue): Likewise. Switch back to data
1558 section after emitting the function.
1560 * doc/tm.texi (Sections): Document TEXT_SECTION.
1562 2001-08-17 Richard Henderson <rth@redhat.com>
1564 * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
1565 (dwarf2out_finish): Do it here. Emit .debug_loc before .debug_info.
1567 2001-08-17 Richard Henderson <rth@redhat.com>
1569 * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
1570 * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
1571 __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
1572 Add aligned attribute.
1574 2001-08-17 Andrew Haley <aph@cambridge.redhat.com>
1576 * config/sh/sh.md: Add modes to unspecs in first insn to match
1577 those in the second.
1579 * Makefile.in: Fix collect2 copy for Cygwin.
1581 Fri Aug 17 15:48:57 CEST 2001 Jan Hubicka <jh@suse.cz>
1583 Install the proper patch.
1584 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
1585 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
1586 (expand_function_start): Likewise.
1587 * stmt.c (expand_decl): Likewise.
1588 * varasm.c (make_decl_rtx): Likewise.
1590 Fri Aug 17 15:41:35 CEST 2001 Jan Hubicka <jh@suse.cz>
1592 * final.c: Undo my previous accidental checkin.
1593 * output.h: Likewise.
1594 * tm.texi: Likewise.
1596 2001-08-16 Richard Henderson <rth@redhat.com>
1598 * varasm.c (named_section_flags): Remove align parameter.
1599 * varasm.c, dwarf2out.c: Update all callers.
1600 * output.h: Update prototypes.
1602 * target.h (target.asm_out.named_section): Remove align parameter.
1603 * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
1604 config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
1605 config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
1606 config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
1607 config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
1609 * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
1610 (get_named_section_flags, set_named_section_flags): New.
1611 (named_section_flags): Use them.
1612 (named_section): Do decl vs section flags check here...
1613 (default_section_type_flags): ... not here.
1614 (init_varasm_once): Create in_named_htab.
1615 (resolve_unique_section): Mark reloc unused.
1617 2001-08-16 Richard Henderson <rth@redhat.com>
1619 * varasm.c (force_const_mem): Keep pool alignment in bits.
1620 (output_constant_pool): Use assemble_align.
1622 2001-08-16 Zack Weinberg <zackw@panix.com>
1624 * doc/tm.texi: Remove extra @table command.
1626 2001-08-16 Zack Weinberg <zackw@panix.com>
1628 * final.c (shorten_branches): Clear the end of the label_align
1629 array only if we made it larger. Break up messy expressions
1632 * diagnostic.c (internal_error): Check for error recursion
1633 before doing ICE suppression.
1635 * timevar.c: Timing variables now count in milliseconds.
1636 (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
1637 (get_time): Not here.
1638 (timevar_print): Don't print any timer whose user, cpu, and
1639 wall times are all zero as displayed.
1640 * timevar.h: Update comment aboout units. Make timevar
1643 Thu Aug 16 17:39:45 CEST 2001 Jan Hubicka <jh@suse.cz>
1645 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
1646 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
1647 (expand_function_start): Likewise.
1648 * stmt.c (expand_decl): Likewise.
1649 * varasm.c (make_decl_rtx): Likewise.
1651 2001-08-16 Jason Merrill <jason_merrill@redhat.com>
1653 * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
1654 (finalize_record_size): Don't set TYPE_USER_ALIGN.
1656 2001-08-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1658 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
1661 2001-08-16 Andreas Jaeger <aj@suse.de>
1663 * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
1666 Wed Aug 15 15:22:52 EDT 2001 John Wehle (john@feith.com)
1668 * rtl.h (only_sets_cc0_p): New prototype.
1669 * jump.c (sets_cc0_p): Handle INSN.
1670 (only_sets_cc0_p): New function.
1671 * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
1672 (tidy_fallthru_edge): Likewise.
1673 * integrate.c (copy_insn_list): Likewise.
1674 * unroll.c (unroll_loop): Likewise.
1675 (copy_loop_body): Likewise.
1677 2001-08-15 Jason Eckhardt <jle@redhat.com>
1679 * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
1681 Wed Aug 15 14:24:22 CEST 2001 Jan Hubicka <jh@suse.cz>
1683 * predict.c (struct block_info_def): Remove nvisited.
1684 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
1685 (estimate_bb_frequencies): Call mark_dfs_back_edges.
1687 * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
1688 (ix86_adjust_cost): Teach scheduler that latency to load operand can
1691 Wed Aug 15 12:41:32 CEST 2001 Jan Hubicka <jh@suse.cz>
1693 * predict.def: Update hitrates.
1695 2001-08-15 Richard Henderson <rth@redhat.com>
1697 * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
1699 Tue Aug 14 17:30:59 2001 Jeffrey A Law (law@cygnus.com)
1701 * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
1702 note from its associated jump.
1704 2001-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1706 * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
1707 also on 64-bit s390x targets.
1709 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
1711 * config/arm/arm.c (arm_compute_initial_elimination_offset): New
1713 (arm_expand_prologue): Handled nested functions which take a
1714 variable argument list.
1715 * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
1716 macro with an invocation of
1717 arm_compute_initial_elimination_offset.
1718 * config/arm/arm-protos.h: Prototype
1719 arm_compute_initial_elimination_offset.
1721 2001-08-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1723 * doc/install.texi (Specific, avr): Fix markup.
1724 (Specific, c4x): Ditto.
1726 2001-08-14 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1728 * predict.c (dump_prediction): Change `bool' parameter to `int'.
1730 2001-08-14 Gabriel Dos Reis <gdr@codesourcery.com>
1732 * Makefile.in (OBJS): Add rtl-error.o
1733 (rtl-error.o): New rule.
1734 (diagnostic.o): Adjust dependency.
1735 diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
1736 error_for_asm, _fatal_insn, _fatal_insn_not_found,
1737 warning_for_asm): Move to...
1738 rtl-error.c: ...here. New file.
1740 2001-08-14 Richard Henderson <rth@redhat.com>
1742 * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
1743 if USING_SJLJ_EXCEPTIONS.
1745 2001-08-14 Steve Ellcey <sje@cup.hp.com>
1747 * tlink.c (scan_linker_output): Check string for unsatisfied in
1748 addition to undefined and unresolved.
1750 2001-08-14 Graham Stott <grahams@redhat.com>
1752 * libgcc2.c (*): Replace EH_FRAME_SECTION with
1753 EH_FRAME_SECTION_NAME.
1755 Tue Aug 14 14:57:07 CEST 2001 Jan Hubicka <jh@suse.cz>
1757 * genattrtab.c (simplify_test_exp_in_temp): New function.
1758 (simplify_test_exp): Avoid explicit use of temporary obstack.
1759 (simplify_cond, insert_right_side, evaluate_eq_attr,
1760 simplify_and_tree, simplify_or_tree, eliminate_known_true):
1761 Use simplify_test_exp_in_temp.
1762 (optimize_attrs): Iterate until expression stabilizes.
1764 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>:
1766 * glimits.h: Remove the __LONG_MAX__ special case for s390x.
1767 * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
1769 2001-08-13 Richard Henderson <rth@redhat.com>
1771 * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
1772 (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
1773 * config/arm/conix-elf.h: Likewise.
1775 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
1777 * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
1779 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
1781 * gcse.c (hash_scan_set): Expressions that are set as part of
1782 jump instructions are not available.
1784 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>
1786 * config/s390/s390.c (print_operand, s390_function_prologue,
1787 s390_va_start): Fixed HOST_WIDE_INT type mismatch.
1789 2001-08-13 Richard Henderson <rth@redhat.com>
1791 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
1792 * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
1793 * doc/tm.texi (Exception Region Output): Document it.
1795 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
1797 * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
1798 DWARF2 instead of stabs by default.
1800 2001-08-13 David Edelsohn <edelsohn@gnu.org>
1802 * config/rs6000/rs6000.c: Include optabs.h.
1804 2001-08-13 David Edelsohn <edelsohn@gnu.org>
1806 * config/rs6000/eabi.asm: Define 64-bit versions of FPR
1807 save/restore routines.
1808 * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
1810 2001-08-13 Andreas Jaeger <aj@suse.de>
1812 * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
1813 the english is correct.
1815 2001-08-13 Zack Weinberg <zackw@panix.com>
1817 * expr.h: Split out optab- and libfunc-related code to...
1818 * optabs.h, libfuncs.h: ... these new headers.
1820 * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
1822 (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
1824 * mkconfig.sh: Don't include insn-codes.h from config.h.
1826 * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
1827 enum insn_code is available. Move reload_in_optab and
1828 reload_out_optab array declarations to optabs.h.
1829 * regmove.c (gen_add3_insn): Move to optabs.c, export from
1830 there, prototype in expr.h.
1831 * gencodes.c: Cleanup: zap global variables, don't use
1832 printf where puts will do, don't bother defining MAX_INSN_CODE
1833 which nothing uses, let CODE_FOR_nothing get its value implicitly.
1835 * genemit.c, genopinit.c: Include optabs.h in generated file.
1836 * genoutput.c: Include insn-codes.h in generated file.
1837 * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
1838 expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
1839 reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
1840 config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
1841 config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
1842 config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
1844 * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
1845 optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
1846 config/m88k/m88k.c, config/sparc/sparc.c:
1848 * reload.c: Include expr.h and optabs.h before reload.h.
1849 * config/alpha/alpha.c: Include tree.h before reload.h.
1850 * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
1851 and reload.h in that order.
1852 * config/sparc/sparc.c: Include debug.h.
1853 * recog.c: Include insn-codes.h.
1855 2001-08-13 Andreas Jaeger <aj@suse.de>
1857 * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
1860 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
1862 * dwarf2out.c (output_cfa_loc): Fix typo in comment.
1863 * gcc.c (init_spec): Fix typo in comment.
1864 * varasm.c (data_section): Fix typo in comment.
1866 Mon Aug 13 02:27:39 CEST 2001 Jan Hubicka <jh@suse.cz>
1868 * predict.c (dump_prediction): New argument "USED".
1869 (combine_predictions_for_insn): Determine the used heuristics,
1870 output the case no heuristic applied.
1871 * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
1873 2001-08-13 Andreas Jaeger <aj@suse.de>
1875 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
1878 2001-08-13 Kazu Hirata <kazu@hxi.com>
1880 * jump.c: Fix formatting.
1882 2001-08-13 Kazu Hirata <kazu@hxi.com>
1884 * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
1887 2001-08-12 Geoffrey Keating <geoffk@redhat.com>
1889 * loop.c (check_dbra_loop): Use condjump_label to compute
1892 * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
1893 to better document the files they're in.
1895 2001-08-12 Zack Weinberg <zackw@panix.com>
1897 * recog.h (struct insn_operand_data): Shrink 'mode' field
1900 2001-08-12 Kazu Hirata <kazu@hxi.com>
1902 * gcc.c: Fix comment formatting.
1903 * gccspec.c: Likewise.
1906 * genemit.c: Likewise.
1907 * gengenrtl.c: Likewise.
1908 * genrecog.c: Likewise.
1909 * gensupport.c: Likewise.
1910 * ggc-page.c: Likewise.
1911 * global.c: Likewise.
1912 * graph.c: Likewise.
1913 * ifcvt.c: Likewise.
1914 * integrate.c: Likewise.
1916 * libgcc2.c: Likewise.
1918 * mbchar.c: Likewise.
1919 * optabs.c: Likewise.
1920 * predict.c: Likewise.
1921 * prefix.c: Likewise.
1922 * profile.c: Likewise.
1923 * protoize.c: Likewise.
1925 * recog.c: Likewise.
1926 * regclass.c: Likewise.
1927 * regmove.c: Likewise.
1928 * reg-stack.c: Likewise.
1929 * reload1.c: Likewise.
1930 * resource.c: Likewise.
1931 * rtlanal.c: Likewise.
1934 2001-08-12 Kazu Hirata <kazu@hxi.com>
1936 * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
1937 a tree representing a constant is passed to the macro.
1939 2001-08-12 Richard Henderson <rth@redhat.com>
1941 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
1942 (rs6000_elf_asm_out_destructor): New.
1943 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
1944 (DTORS_SECTION_ASM_OP): Remove.
1945 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1946 (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
1948 2001-08-12 David Edelsohn <edelsohn@gnu.org>
1951 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1952 * gcc.c (set_collect_gcc_options): New function, split out from
1954 Ignore elided switches.
1955 (do_spec_1): Invoke before executing command.
1956 (set_input): Export.
1957 Move declaration ...
1958 * gcc.h (set_input): ... here.
1959 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
1962 2001-08-12 Richard Henderson <rth@redhat.com>
1964 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
1965 thinko wrt TARGET_RELOCATABLE.
1967 2001-08-12 Neil Booth <neil@daikokuya.demon.co.uk>
1969 * fix-header.c (cb_file_change): Update prototype.
1971 2001-08-11 Zack Weinberg <zackw@panix.com>
1973 * toplev.c (set_float_handler): Make static.
1974 * toplev.h: Don't prototype set_float_handler.
1976 * simplify-rtx.c: Don't include setjmp.h.
1977 (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
1979 (simplify_unary_operation, simplify_binary_operation): Use them,
1980 via do_float_handler.
1982 * fold-const.c: Don't include setjmp.h.
1983 (exact_real_inverse_1): New function.
1984 (exact_real_inverse): Use it, via do_float_handler.
1986 * varasm.c: Don't include setjmp.h.
1987 (assemble_real_1): New function.
1988 (assemble_real): Use it, via do_float_handler.
1989 Call internal_error if we get a trap here.
1991 * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
1992 config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
1994 2001-08-11 Zack Weinberg <zackw@panix.com>
1996 * defaults.h: Define PREFERRED_STACK_BOUNDARY to
1997 STACK_BOUNDARY if not already defined.
1999 * calls.c, function.c, reload1.c, explow.c: Don't default
2000 PREFERRED_STACK_BOUNDARY. Remove all #if/#ifdef on
2001 PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
2003 * explow.c (allocate_dynamic_stack_space): Change unsafe #if
2006 * doc/tm.texi: Document that STACK_BOUNDARY is required;
2007 clarify difference between it and PREFERRED_STACK_BOUNDARY.
2009 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
2011 * cppmacro.c (enter_macro_context): Push macro expansions even
2014 2001-08-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2016 * config/rs6000/rs6000.c: Include integrate.h to silence warning.
2017 (rs6000_elf_section_type_flags): Actually return a value.
2019 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
2021 * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
2022 Clean up code: add missing comments and prototypes, fix warnings,
2023 remove obsolete code, fix spacing to conform to coding style.
2025 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
2027 * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
2028 and TARGET_ASM_CLOSE_PAREN.
2029 (regclass_map): CC register belongs to class NO_REGS.
2030 (legitimize_pic_address): Don't generate unnecessary moves
2031 (to avoid confusing loop optimization).
2032 (check_and_change_labels): Replace jump_long by indirect_jump.
2033 (s390_final_chunkify): Don't start a new literal pool on section
2034 switch in 64-bit code.
2035 (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
2037 * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
2038 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
2039 (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
2041 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
2042 (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
2043 (CONST_COSTS): Fixed incorrect costs.
2045 * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
2046 Use emit_jump instead of emit_jump_insn (gen_jump).
2047 (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
2048 (to avoid confusing flow analysis).
2049 (tablejump, tablejump1, tablejump2): Removed. Replaced by casesi.
2050 (casesi, casesi_jump): New.
2051 (jump_long): Removed. Functionality merged into indirect_jump.
2052 (indirect_jump): Accept address_operand, not just register_operand.
2053 (cjump_long, icjump_long): Use same logic as indirect_jump.
2054 (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
2055 Fixed broken setjmp/longjmp handling.
2056 (do_builtin_setjmp_setup): Removed.
2058 * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
2059 broken GNU as versions that don't accept .quad with large
2060 negative values. Use hexadecimal output instead.
2061 (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
2062 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
2063 FUNCTION_EPILOGUE): Removed. Now in targetm.
2065 * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
2067 * config/s390/fixdfdi.h: Add missing copyright statement.
2068 Fix type conflicts on 64-bit. Add missing SFmode routines.
2070 * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
2073 2001-08-11 Richard Henderson <rth@redhat.com>
2075 * rtl.h (REG_EH_RETHROW): Remove.
2076 * rtl.c (reg_note_name): Update.
2077 * combine.c (distribute_notes): Don't check for it.
2079 2001-08-11 Richard Henderson <rth@redhat.com>
2081 * combine.c (distribute_notes): Place REG_SETJMP.
2083 2001-08-11 Richard Henderson <rth@redhat.com>
2085 * doc/extend.texi (Arrays and pointers implementation): Discourage
2086 relying on sign-extension of pointers.
2088 2001-08-11 H.J. Lu <hjl@gnu.org>
2090 * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
2092 (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
2093 RDATA_SECTION_ASM_OP.
2095 2001-08-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2097 * doc/install.texi (Specific, c4x): Fix cross-reference to the
2098 main manual to work both for info and HTML versions.
2100 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
2101 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2103 * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
2104 * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
2105 (struct cpp_pool): New member first.
2106 * cppinit.c (append_include_chain): Plug memory leaks.
2107 * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
2108 Allocate pragma structures from the (aligned) macro pool to
2109 avoid leaking memory.
2110 * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
2111 so we don't leak memory.
2112 * hashtable.c (ht_destroy): New.
2113 * hashtable.h (ht_destroy): New.
2115 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
2116 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2118 * c-lex.c (map): Make const.
2119 (cb_file_change): Update for callback passing a line map.
2120 Don't assume we have a previous map. Remove sanity check
2121 about popping too many files.
2122 * cpperror.c (print_location): Make map const.
2123 * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
2124 (cpp_make_system_header): Similarly.
2125 (search_from): Similarly.
2126 (_cpp_execute_include): Don't remember where we came from.
2127 * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
2128 (struct cpp_reader): Make map const.
2129 (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
2130 * cpplib.c (do_line): Update; line maps now hold sysp.
2131 (cpp_push_buffer): Similarly.
2132 (_cpp_do_file_change): Similarly; callback with map instead.
2133 (cpp_get_line_maps): Constify return value.
2134 (_cpp_pop_buffer): Update.
2135 * cpplib.h (struct cpp_file_change): Remove.
2136 (struct cpp_callbacks): Update.
2137 (cpp_get_line_maps): Constify return value.
2138 * cppmacro.c (_cpp_create_definition): Update.
2139 * cppmain.c (struct printer): Constify map.
2140 (maybe_print_line): Similarly.
2141 (print_line): Similarly. Deduce flags 1 and 2 here.
2142 (cb_file_change): Update.
2143 * line-map.c (free_line_maps): Warn regardless.
2144 (add_line_map): Return pointer to const. When passed NULL to_file
2145 with LC_LEAVE, use the obvious values for the return point so the
2146 caller doesn't have to figure them out.
2147 (lookup_line): Return pointer to const.
2148 (print_containing_files): Take pointer to const.
2149 * line-map.h (struct line_map): New members reason, sysp.
2150 (add_line_map): Return pointer to const.
2151 (lookup_line): Similarly.
2152 (print_containing_files): Take pointer to const.
2154 2001-08-10 Roman Zippel <zippel@linux-m68k.org>
2155 Richard Henderson <rth@redhat.com>
2157 * regmove.c (regmove_optimize): Avoid setting a register twice in
2160 2001-08-10 Richard Henderson <rth@redhat.com>
2162 * doc/extend.texi (Arrays and pointers implementation): Document
2163 behavior of pointer/integer conversion.
2165 2001-08-10 Ulrich Weigand <uweigand@de.ibm.com>
2167 * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
2169 2001-08-10 Richard Henderson <rth@redhat.com>
2171 * doc/extend.texi (C Implementation): New chapter.
2172 * doc/gcc.texi (Top): Link it in.
2174 2001-08-10 Andrew Cagney <ac131313@redhat.com>
2176 * doc/install.texi (Specific): Fix CVS merge botch.
2178 2001-08-10 Richard Henderson <rth@redhat.com>
2180 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
2181 ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
2183 2001-08-10 Zack Weinberg <zackw@stanford.edu>
2185 * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
2186 if not already defined. Remove all #ifdefs on STACK_BOUNDARY;
2187 this macro is now required.
2189 * cselib.c (cselib_process_insn), flow.c (propagate_block),
2190 loop.c (find_and_verify_loops), reload.c (reload): Check
2191 for rtx code of CALL_INSN, not CALL, when deciding if we
2192 need to check for REG_SETJMP note.
2194 * gcse.c (compute_hash_table, compute_store_table): Update
2195 the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
2198 * config/avr/avr.c: Fix typo.
2199 * config/convex/convex.c (expand_movstr): Use adjust_address.
2200 * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
2202 * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
2203 * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
2205 * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
2206 Do define STACK_BOUNDARY.
2207 * config/i370/i370.c: Include expr.h.
2208 * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
2209 config/pa/som.h, config/v850/v850.h: Take in_ctors and
2210 in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
2211 and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
2212 * config/m88k/m88k.c: Include c-tree.h after expr.h.
2213 * config/pdp11/pdp11.c: Include expr.h and toplev.h.
2214 * config/romp/romp.c: Include expr.h after tree.h.
2216 (output_fpop): Use xmalloc, not oballoc.
2217 * config/we32k/we32k.c: Include expr.h.
2219 2001-08-10 Kazu Hirata <kazu@hxi.com>
2221 * config/h8300/h8300.h: Fix formatting.
2223 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
2225 * c-common.h (RETURN_NULLIFIED_P): Lose.
2226 * c-semantics.c (genrtl_return_stmt): Don't check it.
2228 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
2230 * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
2231 (mips_annotate_frame_insn): New function.
2232 (mips_emit_frame_related_store): New function.
2233 (save_restore_insns): Don't mark instructions that set up the base
2234 registers as frame-related. Add REG_FRAME_RELATED_EXPR notes to
2235 the store instructions instead.
2236 (mips_expand_prologue): If the stack size is moved into a temporary
2237 register, do not mark that move as frame-related. Add a
2238 REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
2240 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
2242 * config/mips/mips.c (save_restore_insns): Don't mark the RA's
2243 stack slot as unchanging if current_function_calls_eh_return.
2245 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
2247 * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
2248 access the second half of the TFmode scratch operand.
2250 2001-08-10 Anthony Green <green@redhat.com>
2252 * java/class.c (emit_register_classes): Conditionalize code on
2255 2001-08-10 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2257 * doc/install.texi (Specific, avr): Fix cross-reference to the
2258 main manual to work both for info and HTML versions.
2260 2001-08-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
2262 * stmt.c (expand_null_return_1): Remove code to generate simple returns
2263 and "use_goto" argument.
2264 (expand_null_return, expand_value_return): Update all callers.
2265 * function.c (expand_function_end): Remove code to generate simple
2267 * config/vax/vax.md (epilogue): New expander for function return.
2268 * doc/md.texi (epilogue): Remove "if defined".
2270 2001-08-09 Zack Weinberg <zackw@stanford.edu>
2272 * Makefile.in: Partially revert my previous change:
2273 put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
2274 of the hashtab.o and safe-ctype.o rules.
2276 2001-08-09 Richard Henderson <rth@redhat.com>
2278 * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
2279 (USE_COLLECT2): Remove duplicate definition.
2280 * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
2281 (use_collect2): Remove dead code.
2282 * configure.in (use_collect2): Remove will_use_collect2 and
2283 maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
2284 * configure: Rebuild.
2286 * target.h (targetm.asm_out.constructor): New.
2287 (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
2288 * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
2289 (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
2290 * varasm.c (in_ctors, in_dtors): New.
2291 (assemble_constructor, assemble_destructor): Remove.
2292 (default_stabs_asm_out_destructor): New.
2293 (default_named_section_asm_out_destructor): New.
2294 (dtors_section, default_dtor_section_asm_out_destructor): New.
2295 (default_stabs_asm_out_constructor): New.
2296 (default_named_section_asm_out_constructor): New.
2297 (ctors_section, default_ctor_section_asm_out_constructor): New.
2298 * output.h: Update declarations.
2299 * c-decl.c (c_expand_body): Use target hooks instead of
2300 assemble_constructor and assemble_destructor.
2301 * profile.c (output_func_start_profiler): Likewise.
2302 * objc/objc-act.c (finish_objc): Likewise.
2303 (build_module_descriptor): Tidy. Set TREE_PUBLIC properly
2304 for the constructor.
2305 * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
2307 * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
2308 (DTORS_SECTION_ASM_OP): Likewise.
2309 (__CTOR_LIST__): Use attribute section when possible.
2310 (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
2312 * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
2313 ASM_OUTPUT_CONSTRUCTOR.
2315 * config/darwin.c (machopic_asm_out_constructor): New.
2316 (machopic_asm_out_destructor): New.
2317 * config/darwin-protos.h: Update declarations.
2318 * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2319 (ASM_OUTPUT_DESTRUCTOR): Remove.
2320 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2321 * config/nextstep.c (nextstep_asm_out_constructor): New.
2322 (nextstep_asm_out_destructor): New.
2323 * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2324 (ASM_OUTPUT_DESTRUCTOR): Remove.
2325 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2326 * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
2327 ASM_OUTPUT_*STRUCTOR.
2328 * config/i386/aix386ng.h: Likewise.
2330 * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
2331 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
2332 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
2333 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2334 * config/lynx.h: Likewise.
2335 * config/netware.h: Likewise.
2336 * config/psos.h: Likewise.
2337 * config/alpha/alpha-interix.h: Likewise.
2338 * config/alpha/elf.h: Likewise.
2339 * config/arc/arc.h: Likewise.
2340 * config/arm/aof.h: Likewise.
2341 * config/arm/coff.h: Likewise.
2342 * config/arm/elf.h: Likewise.
2343 * config/c4x/c4x.h: Likewise.
2344 * config/h8300/h8300.h: Likewise.
2345 * config/i386/cygwin.h: Likewise.
2346 * config/i386/djgpp.h: Likewise.
2347 * config/i386/i386-coff.h: Likewise.
2348 * config/i386/i386-interix.h: Likewise.
2349 * config/i386/sco5.h: Likewise.
2350 * config/i386/vsta.h: Likewise.
2351 * config/i386/win32.h: Likewise.
2352 * config/i960/i960-coff.h: Likewise.
2353 * config/ia64/sysv4.h: Likewise.
2354 * config/m68hc11/m68hc11.h: Likewise.
2355 * config/m68k/coff.h: Likewise.
2356 * config/m68k/mot3300.h: Likewise.
2357 * config/m88k/m88k.h: Likewise.
2358 * config/mcore/mcore-pe.h: Likewise.
2359 * config/mcore/mcore.h: Likewise.
2360 * config/mips/elf.h: Likewise.
2361 * config/mips/elf64.h: Likewise.
2362 * config/mips/iris6.h: Likewise.
2363 * config/pa/pa64-hpux.h: Likewise.
2364 * config/rs6000/sysv4.h: Likewise.
2365 * config/sh/sh.h: Likewise.
2366 * config/sparc/litecoff.h: Likewise.
2368 * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
2369 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
2370 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2371 * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2372 (ASM_OUTPUT_DESTRUCTOR): Remove.
2373 * config/a29k/a29k.c: Move include of tree.h.
2374 * config/a29k/udi.h: Delete file.
2375 * config/alpha/alpha.c (vms_asm_out_constructor): New.
2376 (vms_asm_out_destructor): New.
2377 * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
2378 (EXTRA_SECTION_FUNCTIONS): Likewise.
2379 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2380 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2381 * config/c4x/c4x.c: Move include of tree.h.
2382 * config/clipper/clipper.c (clix_asm_out_constructor): New.
2383 (clix_asm_out_destructor): New.
2384 * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2385 (ASM_OUTPUT_DESTRUCTOR): Remove.
2386 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2387 * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2388 (TARGET_ASM_CONSTRUCTOR): New.
2389 * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
2390 (sco_asm_out_constructor): New.
2391 * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
2392 * config/i386/svr3gas.h: Remove stack grows up code.
2393 Remove code duplicated from i386/sysv3.h.
2394 (TARGET_ASM_CONSTRUCTOR): New.
2395 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2396 (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
2397 * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2398 (TARGET_ASM_CONSTRUCTOR): New.
2399 * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
2400 (m68hc11_asm_out_destructor): New.
2401 * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
2402 (TARGET_ASM_DESTRUCTOR): New.
2403 * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
2404 * config/m68k/dpx2.h: Properly undef all the bits inherited from
2405 config/svr3.h pertaining to section manipulation.
2406 * config/m68k/dpx2g.h: Remove #if 0 code.
2407 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
2408 * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
2409 (ASM_OUTPUT_CONSTRUCTOR): Remove.
2410 (TARGET_ASM_CONSTRUCTOR): New.
2411 * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
2412 (m88k_svr3_asm_out_constructor): New.
2413 (m88k_svr3_asm_out_destructor): New.
2414 * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2415 (ASM_OUTPUT_DESTRUCTOR): Remove.
2416 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2417 * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
2418 * config/rs6000/aix.h: Likewise.
2419 * config/mips/rtems64.h: Don't undef removed constructor related bits.
2420 * config/mips/vxworks.h: Likewise.
2421 * config/rs6000/lynx.h: Likewise.
2422 * config/sh/elf.h: Likewise.
2423 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
2424 (DTORS_SECTION_ASM_OP): New.
2425 * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2426 (ASM_OUTPUT_DESTRUCTOR): Remove.
2427 * config/sparc/sol2-sld-64.h: Likewise.
2428 * config/vax/vax.c (vms_asm_out_constructor): New.
2429 (vms_asm_out_destructor): New.
2430 * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2431 (ASM_OUTPUT_DESTRUCTOR): Remove.
2432 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2434 * doc/tm.texi (@node Initialization): Update.
2436 2001-08-09 Richard Henderson <rth@redhat.com>
2438 * config/alpha/crtbegin.asm (__JCR_LIST__): New.
2439 (__do_global_dtors_aux): Use gp-relative static data to avoid
2440 one dynamic relocation.
2441 (__do_frame_setup): Register Java classes.
2442 * config/alpha/crtend.asm (__JCR_END__): New.
2444 2001-08-09 Zack Weinberg <zackw@stanford.edu>
2446 * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
2447 (CONFIG_H, TCONFIG_H, TM_P_H): Update.
2448 (GEN, STAGESTUFF): Add new files.
2449 (insn-constants.h, s-constants, tm-preds.h, s-preds,
2450 genconstants, genpreds, genconstants.o, genpreds.o): New rules.
2451 (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
2452 * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
2453 as well as insn-codes.h and insn-flags.h in config.h; and no
2454 extra headers in tconfig.h and hconfig.h.
2456 * gencodes.c: Eliminate code to generate predicate declarations
2457 or #defines for md-file constants.
2458 * genconstants.c, genpreds.c: New files.
2460 * i386.md: Re-order guard expressions such that TARGET_64BIT
2461 comes first, when this permits better optimization. Add
2462 TARGET_64BIT to more x86-64 patterns. Add comment explaining
2463 why this is desirable.
2465 2001-08-09 Jakub Jelinek <jakub@redhat.com>
2467 * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
2468 (find_fde_for_dso): Remove.
2469 (_Unwind_IteratePhdrCallback): New.
2470 (_Unwind_FindTableEntry): Use dl_iterate_phdr.
2471 * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
2473 Thu Aug 9 11:30:20 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2475 * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
2476 (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
2478 2001-08-09 Graham Stott <grahams@redhat.com>
2480 * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
2481 (vis_no_unit): Use it.
2482 (visualize_no_unit): Add the insn only if room exists.
2484 2001-08-09 Graham Stott <grahams@redhat.com>
2486 * predict.c (estimate_probability): Replace magic numbers with
2487 appropriate enumeration.
2489 2001-08-09 Graham Stott <grahams@redhat.com>
2491 * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
2493 (EXTRACT_FLAGS): Likewise.
2495 2001-08-09 Aldy Hernandez <aldyh@redhat.com>
2497 * config/mips/mips.c (mips_legitimate_address_p): Check for
2498 CONST_INT in last patch.
2500 2001-08-08 Anthony Green <green@redhat.com>
2502 * java/class.c (emit_register_classes): Use assemble_jcr if
2503 possible. Keep the original mechanism as a fallback.
2504 * defaults.h (JCR_SECTION_NAME): Define if we have named section
2505 and weak symbol support.
2506 * crtstuff.c (__JCR_LIST__): Define.
2507 (__JCR_END__): Define.
2508 (_Jv_RegiserClasses): Define weak symbol if possible.
2509 (__do_global_ctors_aux): Register classes for ELF targets with
2510 weak symbol support.
2512 2001-08-08 Kazu Hirata <kazu@hxi.com>
2514 * dbxout.c: Fix comment formatting.
2515 * dependence.c: Likewise.
2517 * diagnostic.c: Likewise.
2518 * dominance.c: Likewise.
2519 * doprint.c: Likewise.
2520 * dwarf2out.c: Likewise.
2521 * dwarfout.c: Likewise.
2522 * emit-rtl.c: Likewise.
2523 * except.c: Likewise.
2524 * explow.c: Likewise.
2525 * expmed.c: Likewise.
2528 * fold-const.c: Likewise.
2529 * function.c: Likewise.
2531 2001-08-08 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2533 * global.c (retry_global_alloc): Avoid shadowing allocno.
2535 2001-08-08 Mark Mitchell <mark@codesourcery.com>
2537 * except.c (remove_fixup_regions): Fix typo.
2539 2001-08-08 Jan van Male <jan.vanmale@fenk.wau.nl>
2541 * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
2542 unsigned HOST_WIDE_INT to avoid warning.
2543 * final.c (final): Cast INSN_UID to unsigned to avoid warning.
2544 * flow.c (set_block_for_new_insns): Likewise.
2546 Wed Aug 8 21:08:14 CEST 2001 Jan Hubicka <jh@suse.cz>
2548 * sibcall.c (return_value_pseudo): New static variable.
2549 (skip_copy_to_return_value): Handle return_value_pseudo.
2550 (call_ends_block_p): Ensure that return_value_pseudo is set.
2551 (optimize_sibling_and_tail_recursive_call): Discover the
2552 load of pseudo return value in alternate exit block.
2554 Wed Aug 8 21:06:43 CEST 2001 Jan Hubicka <jh@suse.cz>
2556 * calls.c (ECF_ALWAYS_RETURN): New constant.
2557 (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
2558 (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
2559 (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
2560 * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
2561 * rtl.c (reg_note_name): New name.
2562 * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
2564 2001-08-07 Aldy Hernandez <aldyh@redhat.com>
2566 * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
2568 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
2570 * alias.c (get_alias_set): Return a previously calculated
2571 alias set for a VAR_DECL.
2572 * function.c (gen_mem_addressof): Calculate the alias set before
2575 Wed Aug 8 18:44:37 CEST 2001 Jan Hubicka <jh@suse.cz>
2577 * predict.def: Set hitrates according our experimental run.
2579 Wed Aug 8 18:01:58 CEST 2001 Jan Hubicka <jh@suse.cz>
2581 * i386.h (HARD_REGNO_RENAME_OK): New macro.
2583 2001-08-08 H.J. Lu <hjl@gnu.org>
2585 * config/mips/mips.c (mips_unique_section): New. Copied from
2588 * config/mips/mips-protos.h (mips_unique_section): New
2591 * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
2593 * config/mips/little.h: New. Generic little endian mips
2594 targets. Only mips*-*-linux* is converted to use it so far.
2596 * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
2597 (WCHAR_TYPE): Defined
2598 (WCHAR_TYPE_SIZE): Likewise.
2599 (INIT_SUBTARGET_OPTABS): Likewise.
2600 (BSS_SECTION_ASM_OP): Likewise.
2601 (SBSS_SECTION_ASM_OP): Likewise.
2602 (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2603 (ASM_DECLARE_OBJECT_NAME): Likewise.
2604 (UNIQUE_SECTION): Likewise.
2605 (EXTRA_SECTIONS): Likewise.
2606 (ASM_OUTPUT_CONSTRUCTOR): Likewise.
2607 (ASM_OUTPUT_DESTRUCTOR): Likewise.
2608 (ASM_OUTPUT_DEF): Likewise.
2609 (HANDLE_SYSV_PRAGMA): Removed.
2610 (NO_IMPLICIT_EXTERN_C): Likewise.
2611 (TARGET_MEM_FUNCTIONS): Likewise.
2612 (STARTFILE_SPEC): Likewise.
2613 (ENDFILE_SPEC): Likewise.
2614 (LIB_SPEC): Likewise.
2615 (INVOKE__main): Likewise.
2616 (CTOR_LIST_BEGIN): Likewise.
2617 (CTOR_LIST_END): Likewise.
2618 (DTOR_LIST_BEGIN): Likewise.
2619 (DTOR_LIST_END): Likewise.
2620 (SET_ASM_OP): Likewise.
2621 (ASM_OUTPUT_SOURCE_LINE): Likewise.
2622 (ASM_OUTPUT_DEF): Likewise.
2623 (ASM_OUTPUT_IDENT): Likewise.
2625 * config/mips/mips.h (ASM_SPEC): Undefine before define.
2626 (CPLUSPLUS_CPP_SPEC): Likewise.
2627 (ASM_APP_ON) Redefine only if not defined.
2628 (ASM_APP_OFF): Likewise.
2629 (ASM_OUTPUT_SOURCE_LINE): Likewise.
2630 (ASM_OUTPUT_IDENT): Likewise.
2632 * config.gcc: Update tm_file for Linux/mips.
2634 2001-08-08 Bernd Schmidt <bernds@redhat.com>
2636 * cselib.c (cselib_record_sets): If insn is predicated, turn
2637 sources into IF_THEN_ELSEs.
2639 * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
2640 Turn into define_insn_and_split.
2642 * sched-deps.c: Include "cselib.h".
2643 (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
2644 Use cselib to turn memory addresses into VALUEs.
2645 (sched_analyze): Call cselib_init/cselib_finish if necessary.
2646 * sched-int.h (struct sched_info): New member USE_CSELIB.
2647 * sched-ebb.c (ebb_sched_info): Initialize it.
2648 * sched-rgn.c (rgn_sched_info): Likewise.
2649 * Makefile.in (sched-deps.o): Update dependencies.
2651 * cselib.h (cselib_subst_to_values): Declare.
2652 * cselib.c (cselib_subst_to_values): No longer static. Allow MEMs
2653 that have no value and autoincs to be handled by generating a new
2656 2001-08-08 Graham Stott <grahams@redhat.com>
2658 * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
2659 within fixed length SEQUENCE.
2661 2001-08-08 Graham Stott <grahams@redhat.com>
2663 * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
2664 (diagnostic_prefixing_rule): Likewise.
2665 (diagnostic_line_cutoff): Likewise.
2666 (diagnostic_kind_count): Likewise.
2668 2001-08-08 Graham Stott <grahams@redhat.com>
2670 * alias.c (find_base_decl): Delete redundent assignment.
2672 2001-08-08 Graham Stott <grahams@redhat.com>
2674 * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
2675 (abs): Uppercase and paranthesize macro parameter.
2676 (MEM_DEPENDENCY): Add whitespace.
2678 2001-08-08 Graham Stott <grahams@redhat.com>
2680 * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
2681 failure check for CONST_INT
2683 2001-08-08 Graham Stott <grahams@redhat.com>
2685 * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
2686 (libcall_dead_p): Likewise.
2688 (mark_used_regs): Constify fmt.
2689 (find_use_as_address): Likewise.
2691 2001-08-08 Graham Stott <grahams@redhat.com>
2693 * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
2696 2001-08-08 Graham Stott <grahams@redhat.com>
2698 * combine.c (combine_simplify_rtx): Update comment and
2699 remove erroneous test.
2701 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
2703 * cppinit.c (cpp_finish): Pop the final buffer without comment.
2704 * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
2705 take care to avoid multiple no-newline at EOF warnings in that
2708 Tue Aug 7 22:18:06 CEST 2001 Jan Hubicka <jh@suse.cz>
2710 * calls.c (expand_call): Do not emit INSN_SETJMP note.
2711 (emit_library_call_value_1): Likewise.
2712 (emit_call_1): Emit REG_SETJMP note.
2713 * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
2715 * cselib.c (cselib_process_insn): Likewise.
2716 * flow.c (propagate_block): Likewise.
2717 * loop.c (find_and_verify_loops): Likewise.
2718 * reload.c (find_equiv_regs): Likewise.
2719 * reload1.c (reload): Likewise.
2720 * resource.c (mark_referenced_resources,
2721 mark_set_resources): Likewise.
2722 * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
2723 * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
2724 * haifa-sched.c (unlink_other_notes): Likewise.
2725 (reemit_notes): Likewise.
2726 * sched-ebb.c (sched_ebb): Likewise.
2727 * sched-rgc.c (sched_region): Likewise.
2728 * rtl.c (note_insn_name): Likewise.
2729 (reg_note_name): Add REG_SETJMP
2730 * rtl.h (reg_note): Add REG_SETJMP.
2731 (insn_note): Remove NOTE_INSN_SETJMP.
2733 * profile.c (branch_prob): Add fake edges for setjmp.
2735 2001-08-07 Daniel Jacobowitz <drow@mvista.com>
2737 * config.gcc: Quote target_cpu_default2 correctly for
2738 powerpc*-*-* targets.
2740 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
2742 * cpplib.h, line-map.h: Update comments.
2743 * cppmain.c (printer_init): Move inline.
2744 (maybe_print_line, print_line): Take a map pointer.
2745 (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
2746 (cb_file_change): Don't use prior value of print.map.
2748 2001-08-07 David Edelsohn <edelsohn@gnu.org>
2750 * doc/install.texi: Document fine-grained multilib configuration.
2752 Tue Aug 7 16:52:54 CEST 2001 Jan Hubicka <jh@suse.cz>
2754 * rtlanal.c (find_first_parameter_load): Call note_stores
2755 only on the instructions.
2757 Tue Aug 7 14:56:16 CEST 2001 Jan Hubicka <jh@suse.cz>
2759 * alias.c (nonlocal_mentioned_p):
2760 Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
2761 * calls.c (emit_call_1): Likewise.
2762 * cse.c (cse_insn, invalidate_skipped_block): Likewise.
2763 * cselib.c (cselib_process_insn): Likewise.
2764 * df.c (df_insns_modify): Likewise.
2765 * flow.c (need_fake_edge_p): Likewise.
2766 (propagate_one_insn): Likewise.
2767 * haifa-sched.c (reemit_notes): Likewise.
2768 * integrate.c (copy_insn_list): Likewise.
2769 * jump.c (delete_prior_computation): Likewise.
2770 * local-alloc.c (validate_equiv_mem): Likewise.
2771 * loop.c (scan_loop): Likewise.
2772 * predict.c (estimate_probability): Likewise.
2773 * reload.c (reload): Likewise.
2774 * sched-deps (sched_analyze): Likewise.
2775 * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
2776 * gcse.c (compute_hash_table): Likewise.
2777 (mark_call): Likewise.
2778 (store_killed_in_insn): Likewise.
2780 2001-08-07 Jason Merrill <jason_merrill@redhat.com>
2782 * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
2784 2001-08-06 Richard Henderson <rth@redhat.com>
2786 * varasm.c (assemble_gc_entry): Remove.
2787 * output.h: Likewise.
2789 2001-08-06 Richard Henderson <rth@redhat.com>
2791 * varasm.c (assemble_constructor): Take a symbol_ref and a
2792 priority instead of a bare string. Move priority handling
2793 here from cp/decl2.c.
2794 * output.h: Update decls.
2796 * c-decl.c (c_expand_body): Update calls to assemble_constructor
2797 and assemble_destructor.
2798 * profile.c (output_func_start_profiler): Likewise.
2799 * objc/objc-act.c (finish_objc): Likewise.
2800 (build_module_descriptor): Return the symbol not the symbol name.
2802 2001-08-06 David Edelsohn <edelsohn@gnu.org>
2804 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
2805 * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
2806 ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
2807 * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
2808 * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
2809 * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
2811 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
2813 * cpperror.c (print_containing_files): Moved to line-map.c.
2814 (print_location): line-map.c handles re-listing or otherwise.
2815 * cpphash.h (struct lexer_state): Remove next_bol.
2816 (struct cpp_buffer): Remove include_stack_listed.
2817 * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
2818 Remove faked buffer handling.
2819 (_cpp_do_file_change): Tweak.
2820 * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
2821 * cppmain.c (struct printer): Remove filename.
2822 (print_line, cb_file_change): Update accordingly.
2823 * line-map.c: Include intl.h.
2824 (init_line_maps): Initialize last_listed.
2825 (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
2826 (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
2827 (print_containing_files): New.
2828 * line-map.h (struct line_maps): New member last_listed.
2829 (print_containing_files, INCLUDED_FROM): New.
2830 * Makefile.in: Update.
2831 * po/POTFILES.in: Add line-map.c.
2833 2001-08-06 Richard Henderson <rth@redhat.com>
2835 * except.c (convert_from_eh_region_ranges_1): Never mark
2836 USE or CLOBBER insns as throwing.
2838 * expr.c (store_constructor): Don't clobber memory targets.
2840 2001-08-06 Andreas Jaeger <aj@suse.de>
2842 * profile.c (branch_prob): Remove unused variable insn.
2844 * Makefile.in (local-alloc.o): Add dependency on except.h.
2846 * local-alloc.c: Include except.h for can_throw_internal prototype.
2848 2001-08-06 Richard Henderson <rth@redhat.com>
2850 * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
2851 * function.c (expand_main_function): Implement it.
2852 * doc/tm.texi: Document it.
2854 2001-08-06 Stan Shebs <shebs@apple.com>
2856 * doc/install.texi: Document powerpc-*-darwin* details.
2858 2001-08-06 Daniel Berlin <dan@cgsoftware.com>
2860 * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
2861 (ASM_CPU_SPEC): Move back to rs6000.h
2862 #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
2864 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
2866 * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
2869 * config/rs6000/linux64.h: Ditto.
2871 * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
2872 to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
2875 Remove accidently readded definitions of FUNCTION_PROLOGUE,
2876 FUNCTION_EPILOGUE, ASM_OPEN_PAREN, ASM_CLOSE_PAREN
2878 * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
2881 2001-08-05 Richard Henderson <rth@redhat.com>
2883 * local-alloc.c (update_equiv_regs): Do not move insns that
2886 2001-08-05 Jan Hubicka <jh@suse.cz>
2888 * Makefile.in (reload1.o): Add dedendancy on except.h
2889 * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
2891 * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
2892 indicating wehther edges has been cleaned up.
2893 * reload1.c: Inlucde except.h
2894 (fixup_abnormal_edges): Accept deleted insns.
2895 * toplev.c (rest_of_compilation): Purge dead edges unconditionally
2898 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
2900 * cpplib.c (do_line): Correct line number after pop_buffer.
2902 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
2904 PR preprocessor/3824
2905 * line-map.c: Update comments.
2906 * line-map.h: Update comments.
2907 * tradcif.y: Don't consider large numbers unsigned.
2909 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
2911 PR preprocessor/3081
2912 * c-lex.c (map): New.
2913 (cb_file_change): Update map and use it.
2914 (cb_def_pragma, cb_define, cb_undef): Use map and line.
2915 (c_lex): Update to use map.
2916 * cpperror.c (print_location): Move to using logical line numbers.
2917 * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
2918 (cpp_make_system_header): Similarly.
2919 (_cpp_execute_include): Stop line numbering hacks. Store the
2920 line we will return to.
2921 * cpphash.h (CPP_BUF_LINE): Remove.
2922 (struct cpp_buffer): Remove lineno and pseudo_newlines.
2923 Add map and return_to_line.
2924 (_cpp_do_file_change): Update.
2925 * cppinit.c (cpp_start_read): Update line kludge.
2926 * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
2927 (trigraph_ok): Use logical line numbers for diagnostics.
2928 (skip_block_comment): Likewise.
2929 (skip_whitespace): Likewise.
2930 (skip_line_comment): Use pfile->line instead.
2931 (_cpp_lex_token): Update to use logical line numbering exclusively.
2932 Handle BOL locally. Accept new lines in directives, but keep
2933 pfile->line decremented. Diagnostics use logical lines. Update
2935 * cpplib.c (SEEN_EOL): New.
2936 (skip_rest_of_line, check_eol): Use it.
2937 (end_directive): Increase line number when accepting the newline
2938 at the end of a directive.
2939 (run_directive): Simplify.
2940 (do_line): Bad LC_LEAVEs become LC_RENAMEs. Update.
2941 (_cpp_do_file_change): Update to take buffer line number as an
2942 argument, and store the current map in the cpp_reader. Remove
2943 line number kludges.
2944 (_cpp_do__Pragma): Restore output position after a _Pragma.
2945 (cpp_push_buffer): Don't set output line or lineno.
2946 (_cpp_pop_buffer): Transfer more info from a faked buffer.
2947 Remove line kludge. Set output_line.
2948 * cppmacro.c (builtin_macro): Update handling of __LINE__.
2949 (parse_arg): Use logical lines.
2950 (save_lookahead_token): Save EOFs too now.
2951 * cppmain.c (struct printer): Fix comments.
2952 (printer_init): Simplify, let caller do errors.
2953 (scan_translation_unit, check_multiline_token, dump_macro): Update.
2954 (maybe_print_line): Simplify.
2955 (print_line): Don't print a linemarker if -P.
2956 (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
2957 (cb_file_change): Simplify.
2958 * line-map.h (LAST_SOURCE_LINE): Fix.
2959 (CURRENT_LINE_MAP): New.
2961 2001-08-05 Bernd Schmidt <bernds@redhat.com>
2963 * doloop.c (doloop_modify_runtime): Properly compute number of
2964 iterations if loop was unrolled.
2966 * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
2967 if their CSELIB_VAL_PTRs are.
2969 * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
2970 (setup_spill_pointers): Initialize it.
2971 (spill_restore_mem): Set it.
2972 (do_spill, do_restore): Use it to add REG_INC note.
2973 * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
2975 * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
2976 asms if other insns are available.
2978 * config/ia64/ia64.c (condop_operator): New predicate.
2979 * config/ia64/ia64.h (PREDICATE_CODES): Add it.
2980 * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
2983 * expr.c (expand_expr, case COND_EXPR): Prefer working with a
2984 temporary register than directly using a MEM.
2986 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
2988 * config/sh/sh.c (sh_asm_named_section): Fix typo in align
2989 parameter in last change.
2991 2001-08-04 Zack Weinberg <zackw@panix.com>
2993 * sparc.md: Don't use #if inside C test expression.
2995 2001-08-04 Richard Henderson <rth@redhat.com>
2997 * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
2999 2001-08-04 Neil Booth <neil@daikokuya.demon.co.uk>
3001 * cpphash.h (struct cpp_reader): New member directive_line.
3002 * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
3003 * cpplib.c (do_define, do_undef, do_ident, do_include_common,
3004 do_pragma): Pass line to callbacks.
3005 (start_directive): Record line of directive.
3006 * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
3007 cb_include): Similarly.
3008 * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
3011 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
3013 * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
3016 Sat Aug 4 13:51:36 CEST 2001 Jan Hubicka <jh@suse.cz>
3018 * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
3020 * reload1.c (fixup_abnormal_edges): New static function.
3023 * flow.c (need_fake_edge_p): New function.
3024 (flow_call_edges_add): Fix handling of noreturn and sibbling calls;
3025 avoid call insn to be very last insn in the insn stream.
3027 * profile.c (branch_prob): Call flow_call_edges_add instead of
3028 doing that by hand; cleanup cfg to re-merge basic blocks once
3031 2001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3033 * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
3034 are also on line-map.h.
3035 * cppfiles.c (stack_include_file): Update.
3036 * cpphash.h (struct cpp_buffer): New member return_at_eof.
3037 (_cpp_pop_buffer): New.
3038 * cppinit.c (cpp_destroy, cpp_finish): Update.
3039 (do_includes): Mark each buffer to return at EOF.
3040 * cpplex.c (_cpp_lex_token): Pop buffers at EOF. Continue or
3041 return as requested.
3042 * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
3043 (cpp_pop_buffer): Rename _cpp_pop_buffer. Stop skipping.
3044 * cpplib.h (cpp_pop_buffer): Remove.
3045 (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
3046 * cppmacro.c (cpp_scan_buffer_nooutput): Similarly. No need to pop
3048 * cppmain.c (scan_buffer): Rename scan_translation_unit. No need
3050 (do_preprocessing): Update.
3051 * fix-header.c (read_scan_file): Update. No need to pop buffers.
3052 * c-parse.in (_yylex): Similarly.
3053 * scan-decls.c (scan_decls): Similarly.
3054 * line-map.h: Update comments.
3056 * objc/Make-lang.in (objc-act.o): Update dependencies.
3058 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3060 * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
3061 and soft register for operand 0.
3062 ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
3064 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3066 * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
3067 register for operand 0.
3068 ("bitcmpqi_z_used"): Allow memory for operand 0.
3069 (split "bitcmpqi"): New split to handle address reg as operand 1.
3071 2001-08-04 Andreas Jaeger <aj@suse.de>
3073 * gcse.c: Revert Daniel's last patch.
3075 2001-08-03 Zack Weinberg <zackw@stanford.edu>
3077 * sparc-protos.h: Add prototypes for fp_zero_operand and
3079 * sh-protos.h: Add prototype for fpul_operand.
3081 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
3083 * doc/extend.texi (Other Builtins): Fix typo in last change.
3085 2001-08-03 Richard Henderson <rth@redhat.com>
3087 * target.h (gcc_target): Add asm_out.named_section,
3088 section_type_flags, have_named_sections.
3089 * target-def.h (TARGET_ASM_NAMED_SECTION): New.
3090 (TARGET_HAVE_NAMED_SECTIONS): New.
3091 (TARGET_SECTION_TYPE_FLAGS): New.
3093 * Makefile.in (toplev.o): Depend on TARGET_H.
3094 (varasm.o, dbxout.o): Likewise.
3095 * c-common.c (decl_attributes): Check targetm.have_named_sections
3096 instead of ifdef ASM_OUTPUT_SECTION_NAME.
3097 * dbxout.c (dbxout_function_decl): Likewise.
3098 (dbxout_function_end): Likewise.
3099 * toplev.c (compile_file): Likewise.
3100 * varasm.c (exception_section): Likewise.
3101 * cp/decl2.c (finish_objects): Likewise.
3103 * defaults.h (EH_FRAME_SECTION): Remove.
3104 (EH_FRAME_SECTION_ASM_OP): Remove.
3105 (EH_FRAME_SECTION_NAME): New.
3106 (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
3107 (UNIQUE_SECTION_P): Remove.
3108 * dwarf2out.c (SECTION_FORMAT): Remove.
3109 (ASM_OUTPUT_SECTION): Remove.
3110 (output_call_frame_info): Use named_section_flags.
3111 (output_comp_unit, dwarf2out_start_source_file): Likewise.
3112 (dwarf2out_end_source_file, dwarf2out_define): Likewise.
3113 (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
3114 * varasm.c (in_eh_frame, eh_frame_section): Remove.
3115 (named_section_flags): New.
3116 (named_section): Use it and targetm.section_type_flags.
3117 (resolve_unique_section): New.
3118 (assemble_start_function): Use it.
3119 (asm_emit_uninitialised, assemble_variable): Likewise.
3120 (default_section_type_flags): New.
3121 (default_no_named_section, default_elf_asm_named_section): New.
3122 (default_coff_asm_named_section, default_pe_asm_named_section): New.
3123 * output.h: Update varasm.c decls.
3124 (SECTION_*): New flags.
3126 * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
3127 (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
3129 * config/elfos.h (UNIQUE_SECTION_P): Remove.
3130 * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
3131 * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
3132 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
3133 * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
3134 * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
3135 * config/mips/elf.h, config/mips/elf64.h: Likewise.
3136 * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
3137 * config/pa/pa64-hpux.h,
3139 * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
3140 (TARGET_ASM_NAMED_SECTION): New.
3141 * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
3142 * config/alpha/vms.h, config/arm/coff.h: Likewise.
3143 * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
3144 * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
3145 * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
3146 * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
3147 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
3148 * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
3149 * config/i386/sco5.h, config/i386/win32.h: Likewise.
3150 * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
3151 * config/mcore/mcore.h, config/mips/elf.h: Likewise.
3152 * config/mips/elf64.h, config/mips/iris6.h: Likewise.
3153 * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
3154 * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
3155 * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
3156 * config/sparc/sysv4.h: Likewise.
3158 * config/nextstep.h: Error until named sections implemented.
3160 * config/a29k/a29k.c (a29k_asm_named_section): New.
3161 * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
3162 (vms_section_type_flags, vms_asm_named_section): New.
3163 * config/arm/arm.c (arm_elf_asm_named_section): New.
3164 * config/avr/avr.c (asm_output_section_name): Remove.
3165 * config/avr/avr-protos.h: Update.
3166 * config/c4x/c4x.c (c4x_asm_named_section): New.
3167 * config/h8300/h8300.c (h8300_asm_named_section): New.
3168 * config/i386/i386.c (sco_asm_named_section): New.
3169 * config/i386/winnt.c (SECTION_PE_SHARED): New.
3170 (i386_pe_section_type_flags): New.
3171 (i386_pe_asm_named_section): New.
3172 * config/i386/i386-protos.h: Update.
3173 * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
3174 * config/mcore/mcore.c (mcore_asm_named_section): New.
3175 * config/mips/mips.c (iris6_asm_named_section): New.
3176 * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
3177 instead of UNIQUE_SECTION_P.
3178 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
3179 (xcoff_asm_named_section): New.
3180 * config/sh/sh.c (sh_asm_named_section): New.
3181 * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
3183 * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
3184 * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
3185 (EH_FRAME_SECTION_NAME): New.
3186 (EXCEPTION_SECTION): New.
3187 * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
3188 (DEBUG_*_SECTION): Remove.
3189 * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
3190 * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
3191 (EH_FRAME_SECTION_ASM_OP): Remove.
3193 * doc/tm.texi (UNIQUE_SECTION_P): Remove.
3194 (ASM_OUTPUT_SECTION_NAME): Remove.
3195 (TARGET_ASM_NAMED_SECTION): New.
3196 (TARGET_HAVE_NAMED_SECTIONS): New.
3197 (TARGET_SECTION_TYPE_FLAGS): New.
3198 (EH_FRAME_SECTION_ASM_OP): Remove.
3199 (EH_FRAME_SECTION_NAME): New.
3201 2001-08-03 Zack Weinberg <zackw@stanford.edu>
3203 * builtins.c (fold_builtin_constant_p): Return integer_zero_node
3204 for complex expressions when cfun == 0.
3205 * doc/extend.texi: Document that __builtin_constant_p can be
3206 used in data initializers as well as functions.
3208 2001-08-03 Alexandre Oliva <aoliva@redhat.com>
3210 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
3211 variable I locally, instead of expecting a declaration in the
3214 2001-08-03 Richard Henderson <rth@redhat.com>
3216 * except.c (collect_one_action_chain): Add an explicit cleanup
3217 action if regions surrounding a catch were encoded entirely
3218 within the call-site entry.
3220 2001-08-03 Richard Henderson <rth@redhat.com>
3222 * dbxout.c (dbxout_symbol_location): Flatten subregs first;
3223 don't take REGNO of a non-register.
3225 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
3227 * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
3228 __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
3229 (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
3230 (__gthread_mutex_init_function): New function for mutex initialization.
3232 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
3234 * Makefile.in: Revert screwed up commit.
3236 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3238 * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
3239 * config/m68hc11/larith.asm (_exit): Split in several sub-sections
3240 merged by linker script to get a final _exit().
3241 (__do_global_dtors): New for destructor handling in specific exit
3243 (__do_global_ctors): New for constructors in specific install section.
3244 (__map_data_section): Map data sections before running constructors.
3245 * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
3246 (CTORS_SECTION_ASM_OP): Define to put in readonly section.
3247 (DTORS_SECTION_ASM_OP): Likewise.
3248 (CTORS_SECTION_FUNCTION): Define to force a reference to
3250 (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
3252 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
3254 * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
3256 * Makefile.in: Add df.h to gcse.c dependencies.
3258 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
3260 * varasm.c (output_constant_def_contents): Use for the length of a
3261 string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
3262 depending on which is larger.
3264 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
3266 * gcse.c: Include df.h for use as a dataflow analyzer.
3268 Declaration of reg_set_info: gone.
3269 New df_analyzer variable used by store motion.
3270 (reg_set_info): Deleted.
3271 (mark_mem_regs): New function, analyze regs used by a mem.
3272 (store_ops_ok): Use dataflow analyzer results to determine if
3273 necessary regs are changed in the block.
3274 (find_moveable_store): Remove check for symbol ref, we can handle
3275 much more complex expressions now.
3276 (compute_store_table): Remove most of the code, it's unnecessary
3277 now that the dataflow analyzer records the info for us.
3278 (store_killed_after): Add parameter to say whether to do the
3279 store_ops_okay test, used to speed up testing when we already know
3280 the answer, and just want to know if the store itself was killed.
3281 (build_store_vector): Largely rewritten to calculate the various
3282 vectors properly, and somewhat optimized.
3283 (store_motion): Init the df_analyzer, get REG_DEF chains.
3284 Also handle trapping expressions (since mems almost always trap)
3285 (simple_mem): Redefine what a simple mem is.
3287 2001-08-03 DJ Delorie <dj@redhat.com>
3289 * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
3290 set from a constant part of the condition.
3292 2001-08-01 Andrew Cagney <ac131313@redhat.com>
3294 * mkdeps.c (deps_add_default_target): Make local variable
3295 ``start'' a const char pointer.
3296 * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
3298 2001-08-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3300 * doc/install.texi (Configuration): Fix markup.
3301 (Specific, i?86-*-udk): Likewise.
3302 (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
3304 Document --enable-threads and --enable-libgcj status.
3305 (Specific, mips-sgi-irix*): Canonicalize triples.
3306 (Specific, mips-sgi-irix5): Warn about problems with this config.
3307 Mention required GNU as patch.
3308 Native assembler problems are fixed.
3309 (Specific, mips-sgi-irix6): Update O32 ABI support status.
3310 Document --enable-threads and --enable-libgcj status.
3312 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
3314 * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
3317 2001-08-03 Richard Henderson <rth@redhat.com>
3319 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
3322 2001-08-03 Richard Henderson <rth@redhat.com>
3324 * rtlanal.c (find_first_parameter_load): Stop if we
3325 reach a CODE_LABEL at BOUNDARY.
3327 2001-08-03 Richard Henderson <rth@redhat.com>
3329 * config/alpha/alpha.md (force_movdi): New insn.
3330 * config/alpha/alpha.c (alpha_expand_prologue): Use it.
3331 Tweek FRP marking of VMS prologue insns.
3332 * config/alpha/vms.h (EPILOGUE_USES): New.
3334 2001-08-02 Richard Henderson <rth@redhat.com>
3336 * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
3338 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
3340 * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
3341 simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
3342 config/convex/convex.h, config/d30v/d30v.c,
3343 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3344 config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
3345 config/mips/mips.h, config/mn10200/mn10200.h,
3346 config/mn10300/mn10300.h, config/pdp11/pdp11.md,
3347 config/v850/v850.h, config/vax/openbsd.h,
3348 config/vax/openbsd1.h, config/vax/ultrix.h,
3349 config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
3350 config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
3351 cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
3352 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
3353 doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
3354 in comments and documentation.
3356 2001-08-03 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3360 * Makefile.in (line-map.o): New.
3361 (LIBCPP_OBJS, LIBCPP_DEPS): Update.
3362 * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
3363 * cpperror.c (print_containing_files): Similarly.
3364 (print_location): Update. Don't output a space before _Pragma.
3365 * cppfiles.c (stack_include_file): Set to line 1 immediately.
3366 (stack_include_filee, cpp_make_system_header): Update.
3367 (_cpp_execute_include): Get logical line number right for calling
3368 as-yet-unterminated #include.
3369 * cpphash.h (struct cpp_reader): Add line_maps.
3370 (_cpp_do_file_change): Update.
3371 * cppinit.c (cpp_create_reader): Initialize line maps.
3372 (cpp_destroy): Destroy line maps.
3373 (cpp_start_read): Get logical line number right.
3374 * cpplex.c (parse_string): Only warn once for multi-line strings.
3375 Use boolean variable for null warning.
3376 * cpplib.c (_cpp_handle_directive): End the directive if it isn't
3378 (do_include_common): End the directive early.
3379 (do_line): Don't warn about out-of-range lines in preprocessed
3380 source. Update. Remove unused variables.
3381 (_cpp_do_file_change): Update for new line mapping.
3382 (pragma_cb): New typedef.
3383 (cpp_register_pragma): Stop looking ahead before calling the
3385 (do_pragma_system_header): End directive early.
3386 (cpp_get_line_maps): New.
3387 (cpp_pop_buffer): Fudge logical line. Update.
3388 * cpplib.h: Include line-map.h
3389 (enum cpp_fc_reason): Remove.
3390 (struct cpp_file_change): Update.
3391 (cpp_get_line_maps): New.
3392 * cppmain.c (struct_printer): New member map.
3393 (cb_file_change): Update for new mappings.
3394 * fix-header.c (cb_file_change): Similarly.
3396 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
3398 * Makefile.in (libgcc.mk): Define mkinstalldirs.
3399 * mklibgcc.in: Use mkinstalldirs instead of mkdir.
3401 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
3403 * config/vax/vax.c: include expr.h.
3405 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
3407 * Makefile.in ($(srcdir)/configure): Only rebuild in
3409 ($(srcdir)/config.in): Only define in maintainer mode.
3410 ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
3412 2001-08-02 David Edelsohn <edelsohn@gnu.org>
3414 * doc/install.texi (Install GCC: Binaries): Update Bull info.
3416 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3418 * gcc.c (set_collect_gcc_options): New function, split out from
3420 Ignore elided switches.
3421 (do_spec_1): Invoke before executing command.
3422 (set_input): Export.
3423 Move declaration ...
3424 * gcc.h (set_input): ... here.
3425 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
3428 2001-08-02 Nathan Sidwell <nathan@codesourcery.com>
3431 * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
3433 * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
3435 2001-08-02 Richard Sandiford <rsandifo@redhat.com>
3437 * mips.md (movdicc): Make conditional on TARGET_64BIT. Likewise
3438 for the unnamed instructions it expands to.
3440 2001-08-02 Richard Henderson <rth@redhat.com>
3442 * regclass.c (call_really_used_regs): Conditionally define.
3443 (init_reg_sets_1): Don't use it if not defined.
3444 (fix_register): Similarly, don't set it.
3446 2001-08-01 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3448 * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
3449 Correct comment that had been missed in the previous change.
3451 2001-08-01 Stan Shebs <shebs@apple.com>
3453 * config/darwin.c (machopic_stub_name): Try matching by name.
3454 (update_stubs): New function.
3455 (darwin_encode_section_info): Call it and update_non_lazy_ptrs
3458 2001-08-01 Richard Henderson <rth@redhat.com>
3460 * except.c (output_function_exception_table): Use assemble_align.
3461 * varasm.c (assemble_eh_label): Remove.
3462 (assemble_eh_align, assemble_eh_integer): Remove.
3464 2001-08-01 Robert Lipe <robertl@caldera.com>
3466 * dwarfout.c: Remove reference to README.DWARF.
3468 2001-08-01 Andrew MacLeod <amacleod@redhat.com>
3470 * regclass.c (call_really_used_regs): New array for registers which
3471 are actually used by a call.
3472 (init_reg_sets_1): Initialize regs_invalidated_by_call with the
3474 (fix_register): Set call_really_used too.
3475 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
3476 * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
3478 2001-08-01 Richard Henderson <rth@redhat.com>
3480 * read-rtl.c (read_name): Consider \r whitespace.
3482 2001-07-11 Andrew Cagney <ac131313@redhat.com>
3484 * config.gcc: Recognize powerpc-*-netbsd*.
3486 * doc/install.texi (Host/target specific installation notes for
3487 GCC): Mention powerpc-*-netbsd*.
3489 * config/rs6000/netbsd.h: New file.
3490 (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
3491 (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
3492 (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
3493 (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
3494 (TARGET_VERSION): Redefine.
3496 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
3497 mcall-netbsd as a match for mcall-sysv.
3498 (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
3499 (ncrti.S, ncrtn.S): New targets.
3500 ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
3502 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
3503 "netbsd' as a V4 ABI.
3504 (ASM_SPEC): Check for -mcall-netbsd.
3505 (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
3506 (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
3507 (LIB_SPEC, ENDFILE_SPEC): Ditto.
3508 (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
3509 (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
3510 (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
3511 (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
3513 * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
3514 (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
3516 2001-08-01 Mark Kettenis <kettenis@gnu.org>
3518 * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
3519 only if NO_BASE_OF_ENCODED_VALUE isn't defined.
3520 * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
3521 including "unwind-pe.h".
3523 Wed Aug 1 20:01:42 CEST 2001 Jan Hubicka <jh@suse.cz>
3525 * rs6000.md (define_splits): Kill unused constraints.
3527 Wed Aug 1 20:02:12 CEST 2001 Graham Stott <grahams@redhat.com>
3528 Jan Hubicka <jh@suse.cz>
3530 * function.c (thread_prologue_and_epilogue_insns): Kill code
3531 dealing with non-existent CFG.
3533 2001-08-01 Kazu Hirata <kazu@hxi.com>
3535 * alias.c: Fix comment formatting.
3536 * bitmap.c: Likewise.
3537 * builtins.c: Likewise.
3538 * calls.c: Likewise.
3539 * c-common.c: Likewise.
3540 * c-decl.c: Likewise.
3541 * c-dump.c: Likewise.
3542 * c-lex.c: Likewise.
3543 * collect2.c: Likewise.
3544 * combine.c: Likewise.
3545 * conflict.c: Likewise.
3546 * cppfiles.c: Likewise.
3547 * cppinit.c: Likewise.
3548 * cpplex.c: Likewise.
3549 * cpplib.c: Likewise.
3550 * cppmacro.c: Likewise.
3551 * cppspec.c: Likewise.
3552 * c-pragma.c: Likewise.
3553 * crtstuff.c: Likewise.
3555 * cselib.c: Likewise.
3556 * c-semantics.c: Likewise.
3557 * c-typeck.c: Likewise.
3559 2001-08-01 H.J. Lu <hjl@gnu.org>
3561 * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
3563 2001-08-01 H.J. Lu <hjl@gnu.org>
3565 * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
3567 2001-08-01 Ziemowit Laski <zlaski@apple.com>
3569 * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
3570 contextualizing Objective-C class name lookup by the lexer.
3571 (typespec_reserved_nonattr): Disable ObjC class name lookup after
3573 (protocoldef): Add support for forward @protocol declarations.
3574 (yylexname): Suppress ObjC class name lookup in certain contexts;
3575 re-enable after lookup is complete.
3576 (_yylex): Re-enable ObjC class name lookup when certain
3577 punctuation marks are seen.
3579 * objc/objc-act.c (check_protocol_recursively): New function used
3580 for finding circular dependencies in protocols.
3581 (objc_declare_protocols): New function for handling forward
3582 @protocol declarations.
3583 (receiver_is_class_object): Detect the case when 'self' is used
3584 inside of a class method.
3585 (build_message_expr): Issue a warning if class method is desired
3586 but instance method is found instead.
3587 (conforms_to_protocol): Streamline.
3588 (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
3589 protocol Foo, even if 'Bar foo' does not.
3590 (check_protocols): Streamline.
3591 (start_protocol): Add checks for circular and duplicate protocol
3593 (encode_aggregate_within): For typedefs of structs, encode the
3595 * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
3596 (objc_declare_protocols): New prototype.
3598 2001-08-01 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3600 * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
3601 * cpplex.c (handle_newline): Update prototype. Maintain logical
3603 (skip_escaped_newlines, skip_block_comment, parse_string):
3605 (_cpp_lex_token): Update, and store token position within the token.
3606 * cpplib.h (struct cpp_token): Add line and column entries.
3607 * cppmacro.c (replace_args): Position stringified tokens correctly.
3609 2001-08-01 Andreas Jaeger <aj@suse.de>
3611 * basic-block.h: Add prototype for last_loop_beg_note.
3613 2001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
3615 * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
3616 RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
3618 (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
3619 while handling WITH_CLEANUP_EXPR node. Use second operand calling
3620 expand_decl_cleanup.
3621 * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
3623 (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
3624 operand while calling simple_cst_equal.
3625 * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
3626 operand is the cleanup expression, the third is the RTL_EXPR.
3627 * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
3629 2001-07-31 Jeff Sturm <jsturm@one-point.com>
3631 * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
3633 2001-07-31 matthew green <mrg@eterna.com.au>
3635 * config.gcc (i386-*-netbsdelf): New description.
3636 * config/i386/netbsd-elf.h: New file.
3638 2001-07-30 Geoffrey Keating <geoffk@redhat.com>
3640 * loop.c (check_dbra_loop): Use single_set to compute
3643 2001-07-31 Daniel Berlin <dan@cgsoftware.com>
3645 PowerPC reorg and support for powerpc64-*-linux*.
3647 Also fixes emitting of constants on 32 bit and 64 bit
3650 * config.gcc: powerpc64-*-linux* is a new target.
3651 Things that needed aix.h now also include xcoff.h
3653 * config/rs6000/rs6000.h: Split XCOFF specific stuff into
3655 Move AIX specific stuff into aix.h.
3656 (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
3657 with more than just XCOFF now.
3658 (SET_ASM_OP): Remove, now defined where needed.
3659 (FUNCTION_PROLOGUE): New macro definition.
3660 (FUNCTION_EPILOGUE): New macro definition.
3661 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
3663 * config/rs6000/xcoff.h: New file.
3665 * config/rs6000/linux64.h: New file.
3667 * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
3669 2001-07-31 Alan Modra <amodra@bigpond.net.au>
3671 * rs6000.c (print_operand_address): Handle ELF syntax.
3672 (output_toc): Simplify. Use DOUBLE_INT_ASM_OP.
3673 * rs6000.md (load_toc_aix_di): Handle ELF syntax.
3674 * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
3676 2001-07-31 David Edelsohn <edelsohn@gnu.org>
3678 * rs6000.c (rs6000_override_options): Only disable
3679 flag_function_sections for XCOFF.
3680 (exact_log2_cint_operand): New predicate.
3681 (reg_or_{add,sub}_cint64_operand): New predicates.
3682 (add_operand): Compare CONST_INT with fewer function calls.
3683 (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
3684 (print_operand, case 'p'): Ensure positive operand.
3685 (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
3686 * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
3687 (PREDICATE_CODES): Add new predicates.
3688 * rs6000.md (addsi3): Split 32-bit constants more correctly.
3689 (divsi3, modsi3): Ensure positive power-of-2.
3690 (adddi3): Use new predicate. Split 32-bit constants more
3691 correctly. Re-arrange splitter to handle any constant.
3692 (subdi3): Use new predicate.
3693 (divdi3, moddi3): Ensure positive power-of-2.
3694 (movdi): Use rs6000_emit_set_const.
3695 (load_toc_v4_pic_di): Delete.
3697 2001-07-31 Graham Stott <grahams@redhat.com>
3699 * function.c (pad_below): Revert 2001-07-26 patch.
3701 Tue Jul 31 15:37:35 CEST 2001 Jan Hubicka <jh@suse.cz>
3703 * reg-stack (convert_regs_1): Fix best edge condition.
3705 Tue Jul 31 15:33:27 CEST 2001 Jan Hubicka <jh@suse.cz>
3707 * jump.c (duplicate_loop_exit_test): Better test for jumps
3708 entering the loop; create loop pre_header.
3710 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
3712 * doc/install.texi: Add s390 and s390x as new targets.
3713 * doc/invoke.texi: Add documantation of S/390 and zSeries
3715 * doc/md.texi: Add documantation of S/390 and zSeries constraints.
3717 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
3719 * config/m68k/m68k.md: Replace all general_operand with
3720 nonimmediate_operand for all destinations.
3721 * config/m68k/m68k.c (not_sp_operand): Likewise.
3723 Mon Jul 30 23:20:34 EDT 2001 John Wehle (john@feith.com)
3725 * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
3727 2001-07-30 Richard Henderson <rth@redhat.com>
3729 * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
3730 * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
3732 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
3734 * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
3735 Add missing doc strings
3736 * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
3737 * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
3739 Mon Jul 30 22:16:08 CEST 2001 Jan Hubicka <jh@suse.cz>
3741 * i386.c (ix86_output_main_function_alignment_hack): New function.
3742 (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
3744 * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
3745 edges by EDGE_DFS_BACK flag.
3746 (dump_edge_info): Add dfs_back flag.
3747 * basic-block.h (EDGE_DFS_BACK): New constant.
3748 (mark_dfs_back_edges): Declare.
3749 * alias.c (loop_p): Remove.
3750 (mark_constant_function): Use mark_dfs_back_edges.
3752 * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
3753 (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
3754 (compensate_edge): Break out from ...
3755 (convert_regs_1): ... here; do smart choosing of stack_out to copy.
3756 (convert_regs_2): Set block_done once block is really done;
3757 Do updating of the predecesors counts.
3759 * toplev.c (rest_of_compilation): Recompute block_for_insn
3760 before post-reload cfg_cleanup.
3761 * function.c (thread_prologue_epilogue_insns):
3762 Call set_block_for_new_insns when emitting prologue directly.
3764 2001-07-30 Andreas Jaeger <aj@suse.de>
3766 * jump.c: Add prototype for mark_modified_reg.
3768 * cse.c (set_live_p): Add unused attribute.
3770 * gcov.c (calculate_branch_probs): Use gcov_type to avoid
3772 (scan_for_source_files): Use long for count to avoid overflow.
3773 (output_data): Likewise.
3774 (output_data): Don't use string concatatenation to silence gcc
3777 * predict.c: Fix typos and grammar.
3779 * gcse.c (insert_insn_end_bb): Remove unused variables.
3781 Mon Jul 30 21:54:53 CEST 2001 Jan Hubicka <jh@suse.cz>
3783 * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
3784 (attempt_auto_inc): LIkewise.
3785 (mark_used_reg): Likewise.
3786 (try_pre_increment_1): Likewise.
3787 * regclass.c (regclass): Likewise.
3788 * global.c (allocno_compare): Update comment; change scaling factor.
3789 * local-alloc.c (QTY_CMP_PRI): Likewise.
3790 * regs.h (REG_FREQ_FROM_BB): New.
3791 (REG_FREQ_MAX): Likewise.
3793 2001-07-30 H.J. Lu <hjl@gnu.org>
3795 * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
3798 2001-07-30 H.J. Lu (hjl@gnu.org)
3800 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
3801 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
3802 (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
3804 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3806 * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
3807 as -mthumb-interwork when -mcpu=arm7 is specified.
3809 Mon Jul 30 17:44:43 CEST 2001 Jan Hubicka <jh@suse.cz>
3811 * predict.def (noreturn, loop branch, loop exit): Mark as first
3814 Mon Jul 30 12:52:11 CEST 2001 Jan Hubicka <jh@suse.cz>
3816 * combine.c (try_combine): Avoid barrier after noop jumps.
3818 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3820 * cpphash.h (struct cpp_reader): Remove import_warning.
3821 * cpplib.c (skip_rest_of_line): Don't bother turning off
3823 (parse_include): Move include handling to...
3824 (do_include_common): ... here. Move import warning from...
3825 (do_import): ... here.
3826 (do_pragma_poison): Don't do a callback for poison identifiers.
3827 * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
3828 * cppmain.c (setup_callbacks): Similarly.
3830 Sun Jul 29 23:26:50 CEST 2001 Jan Hubicka <jh@suse.cz>
3832 * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
3833 handle multiple sets.
3834 * except.c (sjlj_mark_call_sites): .... here.
3835 * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
3837 Sun Jul 29 21:38:45 CEST 2001 Jan Hubicka <jh@suse.cz>
3839 Suggested by Richard Henderson and Richard Kenner:
3840 * combine.c (recog_for_combine): Use the fake recog
3841 only if instruction does not match.
3842 * rtl.h (NOOP_MOVE_INSN_CODE): New.
3843 * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
3845 * combine.c (try_combine): Discover noop jump as direct jump.
3847 2001-07-29 Daniel Berlin <dan@cgsoftware.com>
3849 * df.c (df_rd_global_compute): Add successors to worklist, not
3851 (df_ru_global_compute): Ditto.
3853 2001-07-27 Daniel Berlin <dan@cgsoftware.com>
3855 * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
3856 increment REG_N_SETS.
3858 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
3860 * sbitmap.h: New prototype for sbitmap_a_xor_b.
3862 * sbitmap.c (sbitmap_a_xor_b): New function.
3863 ifdef the basic block stuff on IN_GCC.
3865 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3867 * cppexp.c (parse_defined): Always record the macro name.
3868 (lex): Don't worry about identifiers, or special-case
3870 (_cpp_parse_expr): Figure out at the end of the routine
3871 whether we saw a valid !defined() expression.
3872 * cppfiles.c (stack_include_file): Update for mi_valid.
3873 (_cpp_pop_file_buffer): Similarly.
3874 * cpplex.c (_cpp_lex_token): Similarly.
3875 * cpphash.h (enum mi_state, enum mi_ind, mi_state,
3876 mi_if_not_defined, mi_lexed): Remove.
3878 * cpplib.c (do_if): Simplify.
3879 (do_endif, push_conditional, _cpp_handle_directive): Update
3880 for renaming of mi_state to mi_valid.
3882 * cpp.texi: Add index entries for digraphs, and add comment
3883 that C++ refers to them as alternative tokens.
3885 Sun Jul 29 18:59:13 CEST 2001 Jan Hubicka <jh@suse.cz>
3887 * basic-block.h (CLEANUP_PRE_LOOP): New.
3888 * except.c (finish_eh_generation): Update call of cleanup_cfg.
3889 * sibcall.c (optimize_sibling_calls): Likewise.
3890 * toplev.c (rest_of_compilation): Likewise.
3891 * flow.c (try_forward_edges): Take argument MODE;
3892 do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
3893 (try_optimize_cfg): Update call of try_forward_edges.
3895 Sun Jul 29 18:59:56 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
3896 Jan Hubicka <jh@suse.cz>
3898 * (validate_replace_rtx_1): Fix simplification of MINUS.
3900 2001-07-29 Neil Booth <neil@daikokuya.demon.co.uk>
3902 PR preprocessor/3669
3903 * cppinit.c (init_dependency_output): Turn off dump requests
3904 if sending dependencies to stdout.
3906 2001-07-28 Richard Henderson <rth@redhat.com>
3908 * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
3911 2001-07-28 Golubev I. N. <gin@mo.msk.ru>
3913 * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
3915 2001-07-28 Kazu Hirata <kazu@hxi.com>
3917 * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
3918 is VAR_DECL first to prevent an ICE.
3920 2001-07-28 Richard Henderson <rth@redhat.com>
3922 * varasm.c (immed_real_const_1): Don't elide special cases for
3924 (clear_const_double_mem): Clear const_tiny_rtx too.
3926 2001-07-28 Richard Henderson <rth@redhat.com>
3928 * dwarf2out.c (dw_val_class_offset): New.
3929 (struct dw_ranges_struct, dw_ranges_ref): New.
3930 (ranges_table, ranges_table_allocated): New.
3931 (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
3932 (add_AT_offset, add_ranges, output_ranges): New.
3933 (print_die, output_die): Handle dw_val_class_offset.
3934 (attr_checksum, size_of_die, value_format): Likewise.
3935 (gen_lexical_block_die): Handle non-contiguous blocks.
3936 (gen_block_die): Likewise.
3937 (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
3938 if needed. Dump the ranges table.
3939 * final.c (final_start_function): Remove unnecessary notes and
3940 rebuild the block tree before numbering the blocks.
3941 * function.c (reorder_blocks_0): Walk the existing block tree
3942 to unmark all blocks.
3943 (reorder_blocks_1): Create block fragments when duplicate block
3945 (reorder_fix_fragments): New.
3946 (reorder_blocks): Call it.
3947 * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
3949 2001-07-28 Richard Henderson <rth@redhat.com>
3951 * emit-rtl.c (adjust_address): Make a copy of the memory address.
3953 2001-07-28 Richard Henderson <rth@redhat.com>
3955 * flow.c (add_to_mem_set_list): New function.
3956 (init_propagate_block_info): Use it.
3957 (mark_set_1): Likewise.
3958 (insn_dead_p): Canonicalize memory address for dead store
3959 comparison. Allow wider mode stores to kill narrower mode stores.
3960 (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
3961 (invalidate_mems_from_set): Don't handle MEMs.
3963 2001-07-28 Kazu Hirata <kazu@hxi.com>
3965 * config/h8300/h8300.h: Fix formatting.
3967 Sat Jul 28 23:35:22 CEST 2001 Jan Hubicka <jh@suse.cz>
3969 * basic-block.h (EDGE_FREQUENCY): New macro.
3970 * bb-reorder (fixup_reorder_chain): Set counts and frequencies
3972 * flow.c (find_sub_basic_blocks): Likewise.
3973 (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
3974 (redirect_edge_and_branch): Use EDGE_FREQUENCY.
3976 * predict.c (DEF_PREDICTOR): New argument FLAGS.
3977 (HITRATE): New macro.
3978 (PRED_FLAG_FIRST_MATCH): New constant.
3979 (predictor_info): New field flgags.
3980 (combine_predictions_for_insn): Use DS theory to combine
3981 probabilities; set the edge probabilities when finished.
3982 (estimate_probability): Avoid duplicated matches
3983 of LOOP_BRANCH heuristics for nested loops; update comment.
3984 * predict.def: Add flags for each prediction, set probabilities
3985 according to B&L paper.
3986 * predict.h (DEF_PREDICTOR): New argument FLAGS.
3988 * profile.c (compute_branch_probabilities): Cleanup way the edge
3989 probabilities are computed and REG_BR_PROB notes are dropped; if
3990 values does not match, emit error.
3991 (init_branch_prob): Do error instead of warning when profile driven
3992 feedback is missing or corrupt.
3994 2001-07-27 DJ Delorie <dj@redhat.com>
3996 * ifcvt.c (noce_get_alt_condition): If the condition is a compare
3997 against a constant, try to adjust the compare to have the desired
3998 constant in it so that min/max optimizations happen more often.
4000 Fri Jul 27 17:53:00 CEST 2001 Jan Hubicka <jh@suse.cz>
4002 * flow.c (last_loop_beg_note): New function.
4003 (redirect_edge_and_branch): Use it.
4004 (split_edge): Likewise.
4006 * alias.c (loop_p): Avoid uninitialized memory access.
4008 * flow.c (try_forward_edges): Avoid accessing freed memory.
4010 * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
4013 2001-07-26 Andrew Haley <aph@redhat.com>
4014 Joern Rennecke <amylaar@redhat.com>
4016 * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
4017 (SUBTARGET_CPP_ENDIAN_SPEC): New.
4018 (SUBTARGET_CPP_SPEC): New.
4020 * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
4021 (SUBTARGET_CPP_PTR_SPEC): New.
4022 (CPP_DEFAULT_CPU_SPEC): New.
4023 (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
4024 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
4025 (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
4026 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
4027 (SUBTARGET_CPP_SPEC): Define as an empty string.
4029 2001-07-27 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4031 * doc/install.texi (Configuration): Properly link the host
4032 specific instructions also when generating HTML.
4034 Fri Jul 27 00:33:35 EDT 2001 John Wehle (john@feith.com)
4036 * flow.c (redirect_edge_and_branch_force): Test
4037 target->global_live_at_start.
4039 2001-07-26 Richard Henderson <rth@redhat.com>
4041 * simplify-rtx.c (avoid_constant_pool_reference): Export.
4042 * rtl.h (avoid_constant_pool_reference): Declare it.
4043 * dwarf2out.c (add_location_or_const_value_attribute): Use it.
4044 (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
4046 Thu Jul 26 22:30:22 CEST 2001 Jan Hubicka <jh@suse.cz>
4048 * rtl.h (cleanup_barriers): Declare.
4049 * jump.c (cleanup_barriers): New function.
4050 * toplev.c (rest_of_compilation): Call cleanup_barriers
4051 before loop optimizer and after bb_reorder.
4053 * flow.c (back_edge_of_syntactic_loop_p): New.
4054 (split_edge): Use it.
4056 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4058 * glimits.h (_MACH_MACHLIMITS_H_): Delete.
4060 Thu Jul 26 22:22:21 2001 Denis Chertykov <denisc@overta.ru>
4062 * cse.c (cse_process_notes): Replace any registers if the address
4065 Thu Jul 26 14:04:03 EDT 2001 John Wehle (john@feith.com)
4067 * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
4068 (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
4069 (propagate_block): Update prototype.
4070 * flow.c (update_life_info): Simplify the CFG and
4071 recalculate the global regs which are alive when
4072 removing dead code during a global update.
4073 (propagate_block): Return non-zero if an INSN is
4076 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4078 * Makefile.in (LIBICONV): Define.
4080 2001-07-26 Catherine Moore <clm@redhat.com>
4082 * config/v850/v850.h (ENCODE_SECTION_INFO): Change order
4083 of conditional to avoid tree checking errors.
4085 2001-07-26 Kazu Hirata <kazu@hxi.com>
4087 * regmove.c (regmove_optimize): Don't replace a reg with
4088 another reg of a different mode.
4090 2001-07-26 Andrew MacLeod <amacleod@redhat.com>
4092 * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
4093 limit length of dependancy flush list.
4094 * params.h (MAX_PENDING_LIST_LENGTH): Define.
4095 * sched-int.h (struct deps): Add pending_flush_length field.
4096 * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
4097 has 1 element in it.
4098 (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
4099 (sched_analyze): After a jump, if the pending memory flush list is too
4100 large, flush the pending lists.
4101 (init_deps): Initialize pending_flush_length to 0.
4102 * doc/invoke.texi (max_pending_list_length): Document parameter.
4104 2001-07-26 Neil Booth <neil@daikokuya.demon.co.uk>
4106 * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
4107 * dbxout.c (dbxout_global_decl): Move outside #ifdef.
4108 * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
4110 2001-07-26 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4112 * cpphash.h (struct_lexer_state): Delete was_skipping.
4113 Move skipping here from struct cpp_reader.
4114 * cpplex.c (parse_identifier): Update.
4115 (_cpp_lex_token): Don't skip tokens in a directive.
4116 * cpplib.c (struct if_stack): Update.
4117 (start_directive, end_directive): Don't change skipping state.
4118 (_cpp_handle_directive): Update.
4119 (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
4120 (do_else, do_endif): Update; only check for excess tokens if not
4121 in a skipped conditional block.
4122 (push_conditional): Update for new struct if_stack.
4124 2001-07-26 Graham Stott <grahams@redhat.com>
4126 * function.c (locate_and_pad_parm): Also pad initial offset
4127 so that the total argument size also includes the padding.
4129 2001-07-26 Graham Stott <grahams@redhat.com>
4131 * gensupport.c (alter_output_for_insn): Correct enable checking failure
4132 change XSTR to XTMPL.
4134 (process_one_cond_exec): Likewise
4136 2001-07-25 Richard Henderson <rth@redhat.com>
4138 * varasm.c (assemble_variable): Create DECL_RTL before setting
4141 Thu Jul 26 00:19:30 CEST 2001 Jan Hubicka <jh@suse.cz>
4143 * predict.c (estimate_probability): Avoid duplicated predictions.
4145 * loop.c (find_and_verify_loops): Grok multiple barriers.
4147 Wed Jul 25 18:00:05 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4149 * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
4151 * dbxout.c: Consistently use putc instead of fputc.
4152 (print_wide_int): New function; call instead of direct fprintf.
4153 (dbxout_type_index): Adjust calls of CHARS to be more accurate.
4154 (dbxout_type_fields, dbxout_type_method_1): Likewise.
4155 (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
4156 (print_int_cst_octal): Likewise.
4157 (print_octal): Show we wrote characters.
4158 (dbxout_type): Set have_used_extensions in more places.
4160 2001-07-25 Catherine Moore <clm@redhat.com>
4162 * config/v850/v850.c (v850_va_arg): Use addr
4163 instead of valist to build incr.
4165 Wed Jul 25 22:48:59 CEST 2001 Jan Hubicka <jh@suse.cz>
4167 * flow.c (delete_dead_jumptables): New function.
4168 (life_analyzis): Call it.
4169 * bb-reorder.c (skip_insns_after_block): Handle contradictory
4172 2001-07-25 Richard Henderson <rth@redhat.com>
4174 * except.c (reachable_handlers): Handle a region being removed
4175 out from under a RESX.
4177 2001-07-25 Richard Henderson <rth@redhat.com>
4179 * config/alpha/alpha.c (alpha_emit_conditional_move): Always
4180 swap GE/GT if it is an fp comparison.
4182 2001-07-25 Andrew Haley <aph@cambridge.redhat.com>
4184 * alias.c (rtx_equal_for_memref_p): Allow strings as types in
4187 Wed Jul 25 08:25:01 2001 Jeffrey A Law (law@cygnus.com)
4189 * ssa.c (rename_insn_1): Do not wrap an assignment to a
4190 paradoxical SUBREG inside a SEQUENCE. Fix minor formatting
4193 * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
4195 (visit_expression): When attempting to simplify an expression,
4196 retrieve any modes for arguments before they are simplified
4199 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
4200 Janis Johnson <janis@us.ibm.com>
4202 * stmt.c (expand_goto): A nonlocal goto can be a call too.
4203 * builtins.c (expand_builtin_longjmp): Reverse label and static chain
4204 pointer parameters to match documented usage of nonlocal_goto.
4205 * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
4206 parameters to their correct order.
4207 * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
4208 parameters to their correct order.
4210 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
4212 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
4214 2001-07-25 Jan Hubicka <jh@suse.cz>
4215 Richard Henderson <rth@redhat.com>
4217 * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
4219 (make_edges): New argument update_p; populate the edge cache if set.
4220 (find_basic_blocks): Update make_edges invocation.
4222 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4224 * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
4226 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4228 * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
4229 -Acpu and -Amachine.h.
4230 * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
4231 Corrected header to say ELF not a.out.
4232 * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
4233 when given -msoft-float.
4235 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4237 * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
4238 extra multilib parts like arm-elf.
4239 (i960-*-coff*, i960-*-rtems): Should not use collect2.
4240 (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
4241 crtfini.o as extra multilib parts.
4243 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4245 * configure.in: Add rtems as a supported thread model.
4246 * gthr-rtems.h: Add missing entry point __gthread_active_p.
4247 * configure: Rebuilt.
4249 2001-07-24 Lars Brinkhoff <lars@nocrew.org>
4251 * stor-layout.c (get_mode_alignment): make it work when
4252 BITS_PER_UNIT is not a power of two.
4253 * builtins.c (get_pointer_alignment): Likewise.
4255 2001-07-24 Richard Henderson <rth@redhat.com>
4257 * simplify-rtx.c (avoid_constant_pool_reference): Coerce
4258 the retrieved constant into the expected mode.
4260 Wed Jul 25 01:41:27 CEST 2001 Jan Hubicka <jh@suse.cz>
4262 * flow.c (try_simplify_condjump): Avoid duplicated edges.
4263 (verify_flow_info): Check for duplicated edges; clarify
4266 * flow.c (block_label): Update basic_block_for_insn.
4267 (commit_edge_insertions): Call compute_bb_for_insn.
4269 * flow.c (purge_dead_edges): Handle conditional jumps and conditional
4272 * flow.c (redirect_edge_and_branch,
4273 try_optimize_cfg): Use redirect_edge_succ_nodup
4274 (redirect_edge_succ_nodup): New.
4275 * basic_block.h (redirect_edge_succ_nodup): Declare.
4277 * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
4280 Wed Jul 25 00:32:49 CEST 2001 Jan Hubicka <jh@suse.cz>
4282 * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
4283 (try_crossjump_to_edge): Update commetns.
4284 (try_crossjump_bb): Likewise.
4286 2001-07-24 Richard Henderson <rth@redhat.com>
4288 * combine.c (distribute_notes): Move set of need_refresh
4289 for noop_move_p down to catch all cases.
4291 Tue Jul 24 20:32:44 CEST 2001 Jan Hubicka <jh@suse.cz>
4293 * recog.c (split_all_insns_noflow): New.
4294 * rtl.h (split_all_insns_noflow): Declare.
4295 * ia64.c (ia64_reorg): Use split_all_insns_noflow.
4296 * m68hc11.c (m68hc11_reorg): Likewise.
4297 * sh.c (machine_dependent_reorg): Likewise.
4298 * toplev.c (rest_of_compilation): Likewise for last split_all_insns
4301 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
4303 * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
4304 (ashlsi3_n splitter): Likewise.
4305 (lshrsi3_n splitter): Likewise.
4307 (GOTaddr2picreg): Make const SImode.
4308 (sym_label2reg): Likewise.
4309 (symGOT2reg): Likewise.
4310 (symGOTOFF2reg) Likewise.
4312 (casesi_worker_0): Make unspec SImode.
4314 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
4316 * config/sh/sh.c (barrier_align): Check that an operand really is
4317 an insn before extracting its INSN_CODE.
4319 2001-07-24 Andrew Haley <aph@cambridge.redhat.com>
4321 * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
4324 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
4325 for SImode to prevent overflow.
4327 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4329 * config/mips/irix6-libc-compat.c: New file.
4330 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
4331 * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
4334 2001-07-24 lars brinkhoff <lars@nocrew.org>
4336 * rtl.texi (REG_POINTER): Document.
4337 (Machine Modes): Document BImode, OImode, PQImode, PHImode,
4338 QFmode, HFmode, TQFmode, QCmode, and HCmode.
4340 Tue Jul 24 10:49:40 CEST 2001 Jan Hubicka <jh@suse.cz>
4342 * flow.c (delete_noop_moves): Do not confuse libcall regions.
4344 2001-07-23 Richard Henderson <rth@redhat.com>
4346 * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
4348 2001-07-23 Kazu Hirata <kazu@hxi.com>
4350 * config/h8300/h8300-protos.h: Add a prototype for
4351 general_operand_dst_push.
4352 * config/h8300/h8300.c (general_operand_dst_push): New.
4353 * config/h8300/h8300.h (OK_FOR_T): New.
4354 (EXTRA_CONSTRAINT): Use it.
4355 * config/h8300/h8300.md (movqi_push): Remove and integrate into
4356 the existing movqi pattern.
4357 (movhi_push): Likewise.
4359 * reload.c: Fix comment typos.
4361 Mon Jul 23 23:34:07 CEST 2001 Jan Hubicka <jh@suse.cz>
4363 * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
4365 2001-07-23 H.J. Lu (hjl@gnu.org)
4367 * doc/extend.texi: Update __builtin_return_address and
4368 __builtin_frame_address.
4370 2001-07-23 Richard Henderson <rth@redhat.com>
4372 * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
4374 * config/i386/i386.md: New setcc+movzbl peephole2.
4376 2001-07-23 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4378 * objc/Make-lang.in (objc-act.o): Depend on debug.h.
4379 * objc/objc-act.c: Include debug.h.
4380 (synth_module_prologue): Save and restore debug hooks too.
4382 2001-07-23 lars brinkhoff <lars@nocrew.org>
4384 * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
4385 and C4X_FLOAT_FORMAT.
4386 (BOOL_TYPE_SIZE): Document.
4388 Mon Jul 23 11:54:23 2001 Clinton Popetz <cpopetz@cpopetz.com>
4390 * unroll.c (loop_iterations): Fix miscalculation of initial
4393 2001-07-13 Andrew Haley <aph@redhat.com>
4395 * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
4396 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
4397 * config/sh/sh.c (sh_can_redirect_branch): New function.
4398 * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
4399 * reorg.c (steal_delay_list_from_target): Use
4400 MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
4402 Mon Jul 23 17:20:18 CEST 2001 Jan Hubicka <jh@suse.cz>
4404 * flow.c (try_simplify_condjump): Unlink insn chain on
4405 fallthru edge; use can_fallthru.
4407 Mon Jul 23 16:03:19 CEST 2001 Jan Hubicka <jh@suse.cz>
4409 * basic-block.h (find_sub_basic_block): Declare.
4410 * flow.c (make_edges): New arguments MIN and MAX;
4411 (find_sub_basic_blocks): Revamp to use make_edges
4412 and purge_dead_edges.
4413 (find_basic_blocks): Update call of find_sub_basic_block.
4415 * recog.c (split_all_insns): Always expect CFG to be consistent;
4416 call find_sub_basic_blocks in case something has changed.
4417 * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
4420 * basic-block.h (delete_noop_moves): Declare.
4421 * combine.c (combine_instructions): Call it.
4422 (recog_for_combine): Tolerate noop moves
4423 (distribute_notes): Force refresh when register dies at noop move.
4424 * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
4426 (life_analysis): Update delete_noop_moves call.
4427 (set_noop_p): Move too ...
4428 * rtlanal.c (noop_move_p): ... here.
4429 * rtl.h (noop_move_p): Declare.
4431 * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
4432 * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
4434 * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
4435 (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
4437 2001-07-23 Hans-Peter Nilsson <hp@bitrange.com>
4439 * reload.c (push_reload): Fix typo in comment.
4440 (find_reloads_address): Ditto.
4441 (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
4443 2001-07-22 Richard Henderson <rth@redhat.com>
4445 * flow.c: Grammar check and clarify a lot of comments.
4446 (try_simplify_condjump): Rename variables to be clearer.
4447 (try_forward_edges): Skip complex and fallthru edges.
4448 Rearrange tests to avoid duplicate checks.
4449 (flow_find_cross_jump): Likewise.
4450 (outgoing_edges_match): Allow match if neither branch has
4451 probability data. Loosen probability match to 5%.
4452 (try_crossjump_to_edge): Hoist repeated indirection into
4454 (try_crossjump_bb): Don't check complex edges. Eliminate
4455 redundant crossjump tests.
4456 (try_optimize_cfg): Fix use of bool. Reorganize cheaper
4457 checks before more expensive checks.
4459 2001-07-22 Richard Henderson <rth@redhat.com>
4461 * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
4462 INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
4465 2001-07-22 Richard Henderson <rth@redhat.com>
4467 * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
4468 (const_sint32_operand): Likewise.
4469 * m68k.md (anon mulsi pattern): Use const_int_operand not
4470 const_sint32_operand.
4471 (umulsi3_highpart): Zero extend a constant input.
4472 (smulsi3_highpart): Don't bother checking SImode constant.
4473 (const_umulsi3_highpart): Give op3 DImode.
4474 (const_smulsi3_highpart): Likewise.
4476 2001-07-22 Richard Henderson <rth@redhat.com>
4478 * flow.c (split_block): Make sure bb_note is included in the
4479 new block when splitting before a label.
4481 Sun Jul 22 23:28:56 CEST 2001 Jan Hubicka <jh@suse.cz>
4483 * basic-block.h (redirect_edge_and_branch_force,
4484 redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
4485 * flow.c (redirect_edge_and_branch_force,
4486 redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
4487 (redirect_edge_and_branch_force): Fix copying of lifeness information.
4488 (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
4489 * ifcvt.c (dead_or_predictable): Take BB as an new destionation
4490 instead of label; update CFG after transformation.
4491 (find_if_case_1): Update call, use redirect_edge_and_branch_force
4492 for finishing the transformation; handle even case where ELSE
4493 does not follow THEN.
4494 (find_if_case_2): Update call of dead_or_predictable; simplify
4497 * emit-rtl.c (split_branch_probability): New global variable.
4498 (try_split): Take care to set split_branch_probability and
4499 create REG_BR_PROB note for new jump insns.
4500 * md.texi (define_split): Document new feature.
4502 * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
4504 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
4506 * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
4507 (asm_out_file): Remove redundant declaration.
4508 (assemble_asm): Remove old #if 0 block.
4509 (assemble_variable): Remove end of function; debug output is
4510 now handled with global_decl. Remove old #if 0 block. Update.
4511 Remove saved_in_section and associated no-op code.
4512 * Makefile.in (varasm.o): Correct dependencies.
4514 Sun Jul 22 17:55:11 2001 Alexandre Oliva <aoliva@redhat.com>
4516 * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
4517 the definition in defaults.h.
4519 Sun Jul 22 21:31:04 CEST 2001 Jan Hubicka <jh@suse.cz>
4521 * jump.c: Update comments.
4522 (delete_barrier_successors, delete_unreferenced_labels,
4523 delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
4524 delete_labelref_insn, redirect_tablejump, jump_optimize_1,
4525 jump_optimize, jump_optimize_minimal): Kill.
4526 (rebuild_jump_labels): Move code from jump_optimize_1.
4527 (purge_line_number_notes): Likewise.
4528 (copy_loop_headers): Likewise.
4529 * reg-stack.c: Update comment.
4531 * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
4532 JUMP_AFTER_REGSCAN): Kill.
4533 * toplev.c (rest_of_compilation): Use cleanup_cfg, call
4534 purge_line_number_notes and copy_loop_headers.
4536 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
4537 Richard Henderson <rth@redhat.com>
4539 * dbxout.c (dbxout_global_decl): New.
4540 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
4541 * sdbout.c (sdbout_finish): New.
4542 (sdbout_debug_hooks): Use it, add comments.
4543 (sdbout_global_decl): Defer initialised public vars to
4545 * varasm.c (assemble_variable): Don't output debug information
4546 for file-scope variables.
4548 2001-07-22 Richard Henderson <rth@redhat.com>
4550 * config/alpha/alpha.c (get_trap_mode_suffix): New.
4551 (get_round_mode_suffix): New.
4552 (print_operand): Use them for [/]. Remove support for [&'`()+].
4553 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
4554 * config/alpha/alpha.md (attr round_suffix): New.
4555 (attr trap_suffix): New.
4556 (all insns): Set them appropriately. Use %/ instead of the
4559 2001-07-22 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4561 * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
4563 2001-07-22 Richard Henderson <rth@redhat.com>
4565 * regrename.c (regrename_optimize): Compute nregs for each
4566 potential target register.
4568 2001-07-21 Neil Booth <neil@daikokuya.demon.co.uk>
4569 Richard Henderson <rth@redhat.com>
4571 * dbxout.c (dbxout_global_decl): New.
4572 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
4573 * sdbout.c (sdbout_finish): New.
4574 (sdbout_debug_hooks): Use it, add comments.
4575 (sdbout_global_decl): Defer initialised public vars to
4577 * varasm.c (assemble_variable): Don't output debug information
4578 for file-scope variables.
4580 2001-07-21 H.J. Lu (hjl@gnu.org)
4582 * config/mips/mips.c (mips_cpu): Moved into ...
4583 (override_options): Here.
4585 * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
4587 (mips_cpu): Removed.
4589 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4591 * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
4592 ("iorqi3"): Likewise.
4593 ("xorqi3"): Likewise.
4594 ("*addhi3"): Fix constraint to avoid reloading in a soft register.
4595 ("*subhi3_sp): Likewise.
4596 ("*subhi3"): Likewise.
4597 ("extendhisi2"): Accept D, X and Y as source operand to avoid
4600 2001-07-21 Nathan Sidwell <nathan@codesourcery.com>
4602 * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
4603 * config/freebsd.h: Likewise.
4604 * config/linux.h: Likewise.
4605 * config/openbsd.h: Likewise.
4606 * config/alpha/linux-elf.h: Likewise.
4607 * config/arm/linux-elf.h: Likewise.
4608 * config/d30v/d30v.h: Likewise.
4609 * config/fr30/fr30.h: Likewise.
4610 * config/ia64/aix.h: Likewise.
4611 * config/ia64/ia64.h: Likewise.
4612 * config/mips/linux.h: Likewise.
4613 * config/pj/pj.h: Likewise.
4614 * config/rs6000/linux.h: Likewise.
4615 * config/sparc/linux.h: Likewise.
4616 * config/sparc/linux64.h: Likewise.
4618 2001-07-20 Bruce Korb <bkorb@gnu.org>
4620 * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
4621 because getc() and char* may disagree on signedness.
4623 2001-07-20 Richard Henderson <rth@redhat.com>
4625 * doc/rtl.texi (REG_DEAD): Update for current semantics.
4627 * flow.c (try_redirect_by_replacing_jump): Correctly compute which
4628 insns to delete in the presence of cc0 in a jump insn.
4630 Fri Jul 20 22:14:49 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
4631 Jan Hubicka <jh@suse.cz>
4633 * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
4634 of doing the change by hand.
4636 Fri Jul 20 21:59:42 CEST 2001 Jan Hubicka <jh@suse.cz>
4638 * rtlanal.c (set_noop_p): Return true for noop jumps.
4640 * expr.c (emit_single_push_insn): Add call to push expander.
4641 * expr.h (optab_index): Add OTI_push
4642 (push_optab): New constant.
4643 * genopinit.c (optabs): Add push_optab.
4644 * optabs.c (init_optab): Init push optab.
4645 * md.texi (push??1): Document
4647 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4649 * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
4650 expand to emit the pattern; put a REG_INC note for push/pop
4652 ("movdf", "movdf_internal"): Likewise.
4653 ("movsi", "movsi_internal"): Likewise.
4654 ("movsf", "movsf_internal"): Likewise.
4655 ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
4657 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4659 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
4662 2001-07-20 Daniel Berlin <dan@cgsoftware.com>
4664 * params.def: Change default max inline insns to 100.
4666 2001-07-20 Diego Novillo <dnovillo@redhat.com>
4668 * combine.c (combine_simplify_rtx): Generate a new shift operation
4669 when simplifying the first operand of a (neg (ashift)) expression.
4671 2001-07-20 Roman Lechtchinsky <rl@cs.tu-berlin.de>
4673 * regclass.c (N_REG_INTS): Use only 32 bits per element.
4675 2001-07-20 Kelley Cook <kelley.cook@home.com>
4677 * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
4678 information. Move rest into ...
4679 (*-*-solaris): ... here. Eliminate redundant information and
4680 reword necessary packages section. Delete 4.x assembler bug info.
4681 (sparc-sun-*): Merge into ...
4682 (sparc-sun-sunos*): here.
4684 2001-07-20 Catherine Moore <clm@redhat.com>
4686 * config/v850/v850.md (casesi): Generate LABEL_REF
4689 Fri Jul 20 14:12:57 CEST 2001 Jan Hubicka <jh@suse.cz>
4691 * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
4692 * i386.c (ix86_zero_extend_to_Pmode): Make global.
4693 * i386.md (strclrsi expander): Use it.
4695 Fri Jul 20 13:24:16 CEST 2001 Jan Hubicka <jh@suse.cz>
4697 * integrate.c (copy_insn_list): handle
4698 NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
4699 (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
4700 identically as to CODE_LABEL.
4702 * fold-const (fold): Convert A/B/C to A/(B*C) and
4705 * except.c (connect_post_landing_pads): Delete the RESX insns.
4707 2001-07-20 Aldy Hernandez <aldyh@redhat.com>
4709 * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
4711 * config/mips/mips.md (nmadd/nmsub): Use macro.
4713 2001-07-20 Nathan Sidwell <nathan@codesourcery.com>
4715 * cppinit.c (remove_dup_dir): Make static.
4716 (remove_dup_dirs): Make static. Only warn about preempting a
4717 system directory with a non-system directory.
4719 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
4721 * ifcvt.c (noce_try_store_flag_constants): Correct order
4722 of parameters to trunc_int_for_mode.
4724 2001-07-19 Mark Mitchell <mark@codesourcery.com>
4726 * reorg.c (fill_simple_delay_slots): If an instruction might throw
4727 an exception that will be caught within this function, do not fill
4728 its delay slot with any subsequent instruction.
4730 2001-07-19 Steve Ellcey <sje@cup.hp.com>
4732 * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
4733 * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
4734 pointer extension instruction.
4735 * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
4736 * simplify-rtx.c (simplify_unary_operation) Likewise.
4737 * explow.c (convert_memory_address) Check value of
4738 POINTERS_EXTEND_UNSIGNED to avoid some conversions when
4740 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
4741 MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
4742 * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
4743 Add Multilib Support.
4744 (POINTERS_EXTEND_UNSIGNED) Define for ILP32 support.
4745 * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
4746 Add Multilib Support.
4747 (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
4749 * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
4750 * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
4751 a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
4753 2001-07-19 Alexandre Oliva <aoliva@redhat.com>
4755 * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
4756 old and new operands in `<', `3' and `b'.
4758 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
4760 * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
4761 (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
4762 (toplev.o): Don't depend on xcoffout.h.
4763 * c-decl.c: Include debug.h
4764 (duplicate_decls): Use debug hook.
4765 * dbxout.c (dbxout_source_file, dbxout_args): Make static.
4766 (dbx_debug_hooks, xcoff_debug_hooks): Update.
4767 (dbxout_types): Remove.
4768 * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
4769 * debug.c (do_nothing_debug_hooks): Update.
4770 (debug_true_tree, debug_nothing_rtx): New.
4771 * debug.h (struct rtx_def): New.
4772 (struct gcc_debug_hooks): New hooks ignore_block,
4773 outlining_inline_function and label.
4774 (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
4775 dwarf2out_frame_finish): New.
4776 * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
4777 Make static, update prototype.
4778 (dwarf2_debug_hooks): Update.
4779 * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
4780 dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
4781 * dwarfout.c (dwarf_debug_hooks): Update.
4782 * emit-rtl.c: Include debug.h.
4783 (remove_unnecessary_notes): Use debug hook.
4784 * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
4785 (final_scan_insn): Use debug hook.
4786 * integrate.c (output_inline_function): Use debug hook.
4787 * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
4788 (sdb_debug_hooks): Update.
4789 * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
4790 * toplev.c: Don't include xcoffout.h.
4791 (note_outlining_of_inline_function, debug_ignore_block): Remove.
4792 * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
4794 * tree.h (dwarf2out_do_frame): Remove.
4796 2001-07-19 Catherine Moore <clm@cygnus.com>
4798 * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
4800 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
4802 * reload1.c (eliminate_regs_in_insn): When updating a set
4803 to the frame pointer to the hardware frame pointer, perform
4804 the update always not just when REPLACE is set.
4806 * reload1.c (choose_reload_regs): Don't inherit a reload
4807 that crosses multiple registers if registers past the first
4808 don't fit in the desired class.
4810 * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
4811 when negating constants.
4813 2001-07-19 Toon Moene <toon@moene.indiv.nluug.nl>
4815 * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
4816 * doc/tree.texi: Ditto.
4818 2001-07-19 Mark Kettenis <kettenis@wins.uva.nl>
4819 Jakub Jelinek <jakub@redhat.com>
4821 * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
4822 (extract_cie_info): Handle "eh" augmentation properly,
4824 (struct frame_state, __frame_state_for): New.
4826 2001-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4828 * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
4829 HANDLE_SYSV_PRAGMA): Define.
4830 * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
4832 (copy_object): Caller changed.
4834 2001-07-19 Andreas Schwab <schwab@suse.de>
4836 * configure.in (assembler dwarf2 debug_line support): Define nop
4838 * configure: Regenerated.
4840 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
4842 * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
4844 * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
4845 to conditionally compiled block.
4846 (dbx_debug_hooks, xcoff_debug_hooks): Update.
4847 * dbxout.h (dbxout_function): Remove.
4848 * debug.c (do_nothing_debug_hooks): Update.
4849 * debug.h (struct gcc_debug_hooks): New hooks function_decl,
4850 global_decl, deferred_inline_function.
4851 * dwarf2out.c (dwarf2_debug_hooks): Update.
4852 (dwarf2out_global_decl): New.
4853 * dwarfout.c: Don't include dwarfout.h.
4854 (dwarfout_global_decl, dwarfout_function_decl,
4855 dwarfout_deferred_inline_function): New.
4856 (dwarf_debug_hooks): Update.
4857 * dwarfout.h: Remove.
4858 * final.c: Don't include dwarfout.h.
4859 * sdbout.c (sdbout_global_decl): New.
4860 (sdbout_debug_hooks): Update.
4861 * toplev.c: Don't include dwarfout.h.
4862 (check_global_declarations, rest_of_compilation): Use new debug hooks.
4863 (note_deferral_of_defined_inline_function): Remove.
4864 * toplev.h (note_deferral_of_defined_inline_function): Remove.
4865 * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
4866 * ch/lex.c: Don't include dwarfout.h.
4867 * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
4868 (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
4869 * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
4870 * cp/optimize.c: Include debug.h.
4871 (maybe_clone_body): Use debug hook.
4872 * cp/semantics.c: Include debug.h.
4873 (expand_body): Use debug hook.
4874 * po/POTFILES.in: Remove dwarfout.h.
4876 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
4878 * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
4879 * c-parse.in (yyerror, _yylex): Similarly.
4880 * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
4881 Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
4883 * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
4884 * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
4886 2001-07-18 Jeff Sturm <jsturm@one-point.com>
4888 * dwarf2out.c (dwarf2out_abstract_function): Don't emit
4889 in-class declaration at -g1. Fixes c++/2814.
4891 2001-07-18 Richard Henderson <rth@redhat.com>
4893 * doc/md.texi (reload_in/out): Document restrictions in predicates
4894 and constraints for these patterns. Document empty string matching
4897 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4899 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
4901 Wed Jul 18 20:47:36 CEST 2001 Jan Hubicka <jh@suse.cz>
4903 * cse.c: Undo my previous patch.
4905 2001-07-18 Tom Tromey <tromey@redhat.com>
4908 * configure: Rebuilt.
4909 * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
4911 * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
4913 Wed Jul 18 18:46:30 CEST 2001 Richard Henderson <rth@cygnus.com>
4914 Jan Hubicka <jh@suse.cz>
4916 * flow.c (redirect_edge_and_branch): Bail out on complex edges.
4917 (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
4918 * jump.c (mark_jump_label): Do not forward branches.
4920 Wed Jul 18 18:35:01 CEST 2001 Jan Hubicka <jh@suse.cz>
4922 * cse.c (delete_trivially_dead_insns): Delete the libcall block
4923 when return value is unused.
4925 Wed Jul 18 18:28:16 CEST 2001 Jan Hubicka <jh@suse.cz>
4927 * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
4929 Wed Jul 18 12:05:29 2001 Nicola Pero <n.pero@mi.flashnet.it>
4931 * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
4932 on error. We can't blindly return the result of
4933 pthread_mutex_trylock because it returns a positive number on
4934 error, while we must return -1 on error.
4935 (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
4937 Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
4939 2001-07-18 Andreas Jaeger <aj@suse.de>
4941 * integrate.c (output_inline_function): Correct type of debug_hooks.
4943 2001-07-18 Toon Moene <toon@moene.indiv.nluug.nl>
4945 * combine.c (combine_simplify_rtx): DIV can be treated
4946 associatively for floats if unsafe math optimisations are enabled.
4948 2001-07-17 Richard Henderson <rth@redhat.com>
4950 * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
4952 2001-07-17 Richard Henderson <rth@redhat.com>
4954 * calls.c (prepare_call_address): New parameter SIBCALLP. If true,
4955 don't force the function address into a register.
4956 (expand_call, emit_library_call_value_1): Update callers.
4957 * builtins.c (expand_builtin_apply): Likewise.
4958 * expr.h (prepare_call_address): Update decl.
4960 2001-07-17 Chandrakala Chavva <cchavva@redhat.com>
4962 * config.gcc: For *-*-chorusos triplet, get chorus.h file from
4964 * config/i386/chorus.h: Move up.
4965 * config/sparc/chorus.h: Likewise.
4966 * config/rs6000/chorus.h: Likewise.
4967 * config/chorus.h: Moved here.
4969 2001-07-17 Andreas Schwab <schwab@suse.de>
4971 * configure.in (assembler eh_frame optimization): Handle big
4973 * configure: Regenerated.
4975 Tue Jul 17 23:43:31 CEST 2001 Jan Hubicka <jh@suse.cz>
4977 * expr.c (epxand_expr): Convert divisions into multiplications by
4978 reciprocals if -ffast-math.
4980 2001-07-17 Neil Booth <neil@daikokuya.demon.co.uk>
4982 * dbxout.c (dbxout_really_begin_function): Rename to
4983 dbxout_begin_function.
4984 (dbx_debug_hooks, xcoff_debug_hooks): Update.
4985 (dbxout_begin_function): Remove.
4986 (dbxout_function): Update.
4987 (dbxout_source_line): Update prototype.
4988 * dbxout.h (dbxout_begin_function): Remove.
4989 * debug.c (do_nothing_debug_hooks): Update.
4990 (debug_nothing_tree): Update.
4991 (debug_nothing_charstar_rtx): Remove.
4992 * debug.h (union tree_node): Declare.
4993 (struct rtx_def): Remove.
4994 (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
4995 begin_function. Change source_line prototype.
4996 (debug_nothing_tree): New.
4997 (debug_nothing_charstar_rtx): Delete.
4998 (dwarf2out_begin_prologue): Moved from ...
5000 * dwarf2out.c (dwarf2_debug_hooks): Update.
5001 (dwarf2out_begin_prologue): Update prototype. If genuine dwarf2
5002 debug info, call dwarf2out_source_line.
5003 (dwarf2out_souce_line): Update prototype.
5004 * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
5005 Change prototype, make static.
5006 (dwarfout_source_line): Update prototype.
5007 (dwarf_debug_hooks): Update.
5008 * dwarfout.h (dwarfout_begin_function): Remove.
5009 * final.c (final_start_function, final_scan_insn): Use appropriate
5010 debug hooks, update to use notice_source_line.
5011 (output_source_line): Rename notice_source_line. Don't call the
5012 source_line debug hook.
5013 * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
5014 make static, update prototype.
5015 (sdbout_mark_begin_function): Rename sdbout_begin_function, update
5017 (sdbout_end_prologue): New.
5018 (sdbout_source_line): Update prototype.
5019 (sdbout_debug_hooks): Update.
5020 (sdbout_symbol): Remove unused var.
5021 * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
5023 * varasm.c: Include debug.h.
5024 (assemble_start_function): Use begin_function debug_hook.
5025 * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
5026 update with prototype.
5027 (xcoffout_source_line): Update prototype.
5028 * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
5030 (xcoffout_source_line): Update prototype.
5032 2001-07-17 Richard Henderson <rth@redhat.com>
5034 * c-typeck.c (build_binary_op): Do not shorten unsigned
5035 right shift after sign extension.
5037 Tue Jul 17 16:56:05 CEST 2001 Jan Hubicka <jh@suse.cz>
5039 * combine.c (combine_simplify_rtx): Attempt to simplify
5040 a*(b/c) as (a*b)/c for floats in unsafe_math mode.
5042 * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
5043 (simplify_binary_operation, simplify_unary_operation,
5044 simplify_relational_operation): Use it.
5046 * combine.c (combine_simplify_rtx): Don't do associative law
5047 on divisions; allow associative law on floats.
5049 2001-07-17 H.J. Lu <hjl@gnu.org>
5050 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5052 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
5053 ASM_OUTPUT_WEAK_ALIAS are defined.
5054 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
5055 * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
5057 * config/mips/iris5.h: ... here.
5058 (HANDLE_SYSV_PRAGMA): Defined as 1.
5059 * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
5060 * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
5063 2001-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
5065 * c-parse.in (all_prefix_attributes): New variable.
5066 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
5067 (maybe_resetattrs): New production.
5068 (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
5069 maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
5070 notype_initdcl, nested_function, notype_nested_function,
5071 component_decl, components, components_notype,
5072 component_declarator, component_notype_declarator,
5073 absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
5074 ivars, mydecl, myparm): Update. Avoid prefix attributes just
5075 after a comma being applied to more than one declarator.
5076 * doc/extend.texi (Attribute Syntax): Update. Remove
5077 documentation of bugs that are no longer present.
5079 2001-07-13 Eric Christopher <echristo@redhat.com>
5081 * config/mips/mips.h: Change TUNE_MIPS* options to use
5083 (EXTRA_SPECS): Add cc1_cpu_spec.
5084 * config/mips/mips.md (muldf3): Fix typo.
5086 2001-07-16 Richard Henderson <rth@redhat.com>
5088 * config/m68k/m68k.c: Include expr.h and reload.h.
5089 (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
5090 [general int]: Use HOST_WIDE_INT_PRINT_DEC.
5092 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
5093 Richard Henderson <rth@redhat.com>
5095 * cse.c (set_live_p): Take INSN argument for cc0; update callers.
5096 (insn_live_p): Fix fall off end of function.
5097 (dead_libcall_p): Remove COUNTS argument; update callers.
5098 (delete_trivially_dead_insns): Remove unused variables.
5100 2001-07-17 Andreas Jaeger <aj@suse.de>
5102 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
5105 * lcm.c (optimize_mode_switching): Avoid warning for unused
5106 variable if !NORMAL_MODE.
5108 * flow.c (try_crossjump_to_edge): Remove unused variable.
5110 2001-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
5112 * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
5113 atexit declaration in stdlib.h.
5115 2001-07-16 Richard Begg <Richard.Begg@colesmyer.com.au>
5117 * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
5119 Mon Jul 16 22:48:00 CEST 2001 Jan Hubicka <jh@suse.cz>
5121 * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
5122 * except.c (finish_eh_generation): Update call of cleanup_cfg;
5123 do rebuild_jump_labels instead of jump_optimize
5124 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
5125 * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
5126 * flow.c (try_optimize_cfg): Remove unneeded code_labels.
5128 * flow.c: Include timevar.h
5129 (find_basic_block): Push/pop timevar;
5130 (cleanup_cfg): Likewise.
5131 * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
5132 * Makefile: Add dependencies on timevar.h
5134 * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
5135 (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
5137 * rtl.h (delete_trivially_dead_insns): Add new parameter.
5138 * toplev.c (rest_of_compilation): Update calls.
5139 * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
5140 (delete_trivially_dead_insns): ... here; accept new argument
5141 preserve_basic_blocks; preserve basic blocks if set.
5143 * reg-stack.c (stack_regs_mentioned): Return 0 if
5144 stack_regs_mentioned_data is not initialized.
5145 (reg_to_stack): Make stack_regs_mentioned survive after the
5146 reg-stack is completted; do not call cleanup_cfg.
5147 * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
5148 make cleanup_cfg after bb-reorder to output to debug file.
5150 2001-07-16 Richard Henderson <rth@redhat.com>
5152 * regclass.c (init_reg_sets): Use only 32 bits per initializer
5153 from int_reg_class_contents.
5155 2001-07-16 Richard Henderson <rth@redhat.com>
5157 * hard-reg-set.h (regs_invalidated_by_call): Declare.
5158 * regclass.c (regs_invalidated_by_call): Move from cse.c.
5159 (init_reg_sets_1): Move initialization from cse_main.
5160 * cse.c (regs_invalidated_by_call): Move to regclass.c.
5161 (cse_main): Move its initialization also.
5162 * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
5163 * flow.c (propagate_one_insn): Likewise.
5164 * gcse.c (compute_hash_table): Likewise.
5165 (compute_kill_rd, compute_store_table): Likewise.
5166 * sched-deps.c (sched_analyze_1): Likewise.
5168 Mon Jul 16 18:07:07 2001 J"orn Rennecke <amylaar@redhat.com>
5170 * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
5173 2001-07-16 Steve Ellcey <sje@cup.hp.com>
5175 * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
5176 in if statement so we don't access undefined memory.
5178 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
5180 * gcse.c: Update comment at top.
5181 Update comment on mem handling.
5182 mem_last_set, mem_first_set, mem_set_in_block: gone.
5183 Declaration of reg_set_info: gone.
5184 (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
5185 pointless with load_killed_in_block_p (they are *more*
5186 conservative then it, not less, and less accurate).
5187 (oprs_not_set_p): Ditto.
5188 (alloc_gcse_mem): Don't allocate mem_set_in_block
5189 (free_gcse_mem): Don't free it, either.
5190 (record_last_mem_set_info): Update comment in front, remove
5191 mem_*set_* stuff. Note the reason we don't handle stores directly
5193 (compute_hash_table): Update comments to reflect reality. Remove
5194 mem_*set_* references.
5195 (reset_opr_set_tables): Remove mem_*set_* references.
5197 (mark_set): Ditto. Also remove double sets of bitmaps for REG's.
5198 (mark_clobber): Ditto (on both parts, we double set here too).
5199 (expr_killed_p): Remove mem_set_in_block test.
5200 (compute_transp): Remove mem_set_in_block test.
5202 * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
5203 of edge, and removal of phi alternative to dump file.
5204 (ssa_ccp_substitute_constants): Add note about register now being
5205 constant, and which uses were replaced in what insns to dump file.
5207 2001-07-16 Andreas Jaeger <aj@suse.de>
5209 * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
5210 variables of type HOST_WIDEST_INT.
5212 * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
5213 (__bb_exit_func): Correct type of count_max to avoid overflow.
5214 (num_digits): Handle long long argument.
5216 * combine.c (gen_lowpart_for_combine): Remove unused variable.
5218 2001-07-16 Neil Booth <neil@cat.daikokuya.demon.co.uk>
5220 * output.h (sdb_begin_function_line): Restore as an extern
5222 * sdbout.c (sdb_begin_function_line): Make extern.
5224 2001-07-15 Richard Henderson <rth@redhat.com>
5226 * machmode.def (Pmode): Redefine if GENERATOR_FILE.
5227 * genrecog.c (maybe_both_true_mode): New.
5228 (maybe_both_true_2): Use it.
5229 (write_switch): Don't put Pmode in a switch.
5230 * rtl.c (mode arrays): Don't explicitly size them.
5232 Sun Jul 15 14:07:36 CEST 2001 Jan Hubicka <jh@suse.cz>
5234 * toplev.c (rest_of_compilation): Fix register_life_up_to_date
5235 handling; move unconditional splitting before mode switching.
5237 * i386.md (type): Add fistp type.
5238 (i387, length_attr, scheduling definitions): Handle this type.
5239 (fix_trunc?f?i2): Revamp to use mode switching.
5240 (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
5241 * i386.h (fp_cw_mode): New enum
5242 (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
5243 MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
5245 Sun Jul 15 12:53:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5247 * Makefile.in (integrate.o): Add debug.h.
5248 * integrate.c (debug.h): Add.
5249 (output_inline_function): Save, reset, and restore debug_hooks.
5251 2001-07-15 Richard Henderson <rth@redhat.com>
5253 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
5254 instead of COMPARE for the EQUIV expression.
5256 2001-07-15 Richard Henderson <rth@redhat.com>
5258 * flow.c (redirect_edge_and_branch_force): Initialize
5259 global_live_at_start and global_live_at_end.
5260 (allocate_bb_life_data): Export.
5261 * basic-block.h (allocate_bb_life_data): Declare.
5262 * toplev.c (rest_of_compilation): Call it.
5264 2001-07-15 Richard Henderson <rth@redhat.com>
5266 * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
5267 (alpha_tablejump_best_label): New.
5268 * config/alpha/alpha-protos.h: Declare them.
5269 * config/alpha/alpha.md: Use braced strings for code blocks.
5270 (tablejump_osf): Break out add with r29.
5271 (tablejump_osf_internal): Remove.
5272 (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
5273 use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
5275 Sun Jul 15 00:53:35 CEST 2001 Jan Hubicka <jh@suse.cz>
5277 * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
5280 * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
5282 * i386-protos.h (ix86_split_fp_branch): Update prototype.
5283 (ix86_fp_jump_nontrivial_p): New.
5284 * i386.md (fp_jcc_?): Update call of split_fp_branch;
5285 use ix86_fp_jump_nontrivial_p.
5286 * i386.c (ix86_fp_jump_nontrivial_p): New.
5287 (ix86_split_fp_branch): Accept code instead of rtx.
5288 (ix86_expand_compare): Expand comparison early in case
5289 doing so is resonably cheap.
5291 2001-07-15 Nick Clifton <nickc@cambridge.redhat.com>
5293 * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
5295 (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
5296 (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
5298 2001-07-15 Neil Booth <neil@daikokuya.demon.co.uk>
5300 * dbxout.c (dbxout_source_line): Make static, update prototype.
5301 (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
5302 (dbxout_init, dbxout_finish, dbxout_source_line,
5303 dbxout_begin_block, dbxout_end_block): Update for new prototypes.
5304 * dbxout.h (dbxout_source_line): Delete.
5305 * debug.c (debug_nothing_file, debug_nothing_file_int,
5306 debug_nothing_file_charstar_rtx): New.
5307 (do_nothing_debug_hooks): Update.
5308 (debug_nothing_void, debug_nothing_charstar_rtx,
5309 dwarf2out_end_epilogue): New.
5310 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
5311 * debug.h (struct rtx_def): Declare.
5312 (gcc_debug_hooks): New hooks source_line, end_epilogue
5314 (debug_nothing_void, debug_nothing_charstar_rtx,
5315 dwarf2out_end_epilogue): New.
5316 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
5317 * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
5318 (dwarf2_debug_hooks): Update.
5319 (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
5320 dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
5321 * dwarf2out.h (dwarf2out_source_line): Remove.
5322 * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
5323 Make static, update prototype.
5324 (dwarfout_init, dwarfout_finish, dwarfout_source_line,
5325 dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
5326 (dwarf_debug_hooks): Update.
5327 * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
5328 dwarfout_end_function): Remove.
5329 * final.c (profile_function): Use debug hooks for ending functions
5331 (output_source_line, final_end_function): Update prototype,
5333 (final_start_function, final_scan_insn): Update.
5334 * output.h (sdb_begin_function_line): Remove.
5335 (final_end_function): Update prototype.
5336 * sdbout.c (sdb_begin_function_line): Make static.
5337 (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
5338 (sdbout_source_line): New.
5339 (sdbout_end_epilogue, sdbout_end_function): Make static, update
5341 (sdb_debug_hooks): Update.
5342 (sdbout_init, sdbout_source_line,
5343 sdbout_begin_block, sdbout_end_block): Update for new prototypes.
5344 * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
5345 * toplev.c (compile_file, rest_of_compilation): Update.
5346 * tree.h (dwarf2out_end_epilogue): Move to debug.h.
5347 * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
5348 xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
5349 Update for prototype changes.
5350 * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
5351 xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
5353 2001-07-15 Richard Henderson <rth@redhat.com>
5355 * config/alpha/alpha.h (TARGET_ABI_OSF): New.
5356 (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
5357 * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
5358 * config/alpha/alpha.c: Likewise.
5359 * config/alpha/alpha.md: Likewise.
5360 * config/alpha/alpha32.h: Likewise.
5361 * config/alpha/vms.h: Likewise.
5364 2001-07-14 Richard Henderson <rth@redhat.com>
5366 * config/alpha/alpha.md: Use define_constants for unspec values.
5367 Substitute throughout.
5369 2001-07-14 Tim Josling <tej@melbpc.org.au>
5371 * tree.def (EXPON_EXPR) remove. Never supported anyway.
5373 2001-07-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
5375 * pa.md: Remove unused constraints from define_split's.
5377 2001-04-14 Richard Henderson <rth@redhat.com>
5379 * ifcvt.c (find_cond_trap): Test for exit block.
5381 Sun Jul 15 00:50:20 CEST 2001 Jan Hubicka <jh@suse.cz>
5383 Re-install recently reverted patch.
5384 * emit-rtl.c (try_split): Update mark_jump_label call.
5385 * flow.c (find_sub_basic_blocks): Likewise.
5386 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
5388 (mark_all_labels): Kill second parameter.
5389 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
5390 (rebuild_jump_labels, jump_optimize_minimal): Update call
5392 (jump_optimize_1): Kill crossjumping code.
5393 (mark_jump_label): Kill cross_jump parameter.
5394 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
5395 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
5396 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
5398 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
5400 (dump_file_info): Likewise.
5401 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
5402 reorganize passes to do reg-stack first, bb-reorder second.
5403 * invoke.texi (-d letters doc): Remove the jump2 pass.
5405 2001-07-14 Richard Henderson <rth@redhat.com>
5407 * ifcvt.c (find_cond_trap): New.
5408 (find_if_header): Call it.
5409 (merge_if_block): Relax existing jump sanity check.
5410 * jump.c (jump_optimize_1): Remove conditional trap handling.
5412 2001-07-14 Alan Modra <amodra@bigpond.net.au>
5414 * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
5416 (insn_refs_are_delayed): Correct comment.
5417 * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
5418 * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
5419 instead of r31. Make associated insn !TARGET_64BIT, and
5420 provide an additional 64-bit insn that clobbers r2.
5422 (udivsi3): Likewise.
5424 (umodsi3): Likewise.
5426 Sat Jul 14 02:58:38 CEST 2001 Jan Hubicka <jh@suse.cz>
5428 * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
5430 * flow.c (redirect_edge_and_branch_force, split_edge,
5431 try_crossjump_to_edge): Use set_block_for_new_insns.
5432 * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
5434 2001-07-13 H.J. Lu (hjl@gnu.org)
5436 * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
5439 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
5441 Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
5443 2001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
5445 * c-common.c (decl_attributes): Take a pointer to the node to
5446 which attributes are to be attached, and a flags argument.
5447 * c-common.h (enum attribute_flags): New.
5448 (decl_attributes): Update prototype.
5449 * c-decl.c (start_decl, push_parm_decl, finish_struct,
5450 finish_enum, start_function): Update calls to decl_attributes.
5451 * c-parse.in (component_declarator, component_notype_declarator,
5452 label): Update calls to decl_attributes.
5454 Fri Jul 13 23:04:00 2001 Denis Chertykov <denisc@overta.ru>
5456 * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
5457 * config/avr/avr.c (legitimate_address_p): Return value changed
5458 from letter to register classes. For better debugging.
5460 2001-07-13 Kazu Hirata <kazu@hxi.com>
5462 * jump.c (reversed_comparison_code_parts): Fix comment typos.
5464 2001-07-13 H.J. Lu (hjl@gnu.org)
5466 * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
5468 2001-07-13 Marc Espie <espie@cvs.openbsd.org>
5470 * config.gcc (*-*-openbsd*): Add fragment to compile libgcc
5471 correctly for shared configurations.
5472 * config/t-libgcc-pic: New.
5473 * config/{i386,m68k,sparc}/t-openbsd: New.
5474 * config/openbsd.h: Include cpu_spec in cpp_spec where needed.
5475 Support -shared. Support debugging libraries with -g.
5476 * config/i386/openbsd.h: Correct ASM_COMMENT_START. Ensure dwarf2
5477 frame information does not emit pointer diffs.
5478 * config/sparc/openbsd.h: Ensure dwarf2 frame information does not
5481 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
5483 Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
5485 2001-07-13 David Edelsohn <edelsohn@gnu.org>
5487 * combine.c (try_combine): Ensure const_int pow2 is positive.
5489 2001-07-13 Hartmut Penner <hpenner@de.ibm.com>
5491 * config.gcc: Add configuration for s/390.
5492 * config/s390/s390.c: New. Subroutines for code generation.
5493 * config/s390/s390.h: New. Definitions for s/390.
5494 * config/s390/s390-protos.h: New. Prototypes.
5495 * config/s390/linux.h: New. Definitions for linux for s/390.
5496 * config/s390/linux64.h: New. Definitions for linux for zSeries.
5497 * config/s390/t-linux: New. Makefile fragment.
5498 * config/s390/s390.md: New. Machine description for s/390 and zSeries.
5499 * config/s390/fixdfdi.h: New. Fix L_fix*di.
5501 Fri Jul 13 14:46:21 CEST 2001 Jan Hubicka <jh@suse.cz>
5503 * emit-rtl.c (try_split): Update mark_jump_label call.
5504 * flow.c (find_sub_basic_blocks): Likewise.
5505 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
5507 (mark_all_labels): Kill second parameter.
5508 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
5509 (rebuild_jump_labels, jump_optimize_minimal): Update call
5511 (jump_optimize_1): Kill crossjumping code.
5512 (mark_jump_label): Kill cross_jump parameter.
5513 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
5514 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
5515 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
5517 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
5519 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
5520 reorganize passes to do reg-stack first, bb-reorder second.
5521 * invoke.texi (-d letters doc): Remove the jump2 pass.
5523 2001-07-12 Steve Ellcey <sje@cup.hp.com>
5525 * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
5527 Thu Jul 12 17:57:16 CEST 2001 Jan Hubicka <jh@suse.cz>
5529 * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
5531 (verify_flow_info): Make diagnostics prettier.
5533 Thu Jul 12 16:48:54 CEST 2001 Jan Hubicka <jh@suse.cz>
5535 * flow.c (find_basic_blocks_1): Do not emit NOP after call.
5537 * flow.c (outgoing_edges_match): Return early if condition reversal
5540 2001-07-06 Richard Sandiford <rsandifo@redhat.com>
5542 * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
5543 (mips_move_2words): When splitting a move into two instructions,
5544 prefix the second address operand with '%D'.
5546 2001-07-12 Neil Booth <neil@daikokuya.demon.co.uk>
5548 * Makefile.in (final.o): Depend on debug.h.
5549 * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
5550 (dbx_debug_hooks): Add new hooks.
5551 (xcoff_debug_hooks): New.
5552 * debug.c (debug_nothing_file_int_int): New.
5553 (do_nothing_debug_hooks): Update.
5554 * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
5555 (debug_nothing_file_int_int): New.
5556 * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
5557 static, update prototype.
5558 (dwarf2_debug_hooks): Update.
5559 * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
5560 * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
5561 static, update prototype.
5562 (dwarf_debug_hooks): Update.
5563 * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
5564 * final.c: Include debug.h.
5565 (final_scan_insn): Use debug hooks when beginning and ending blocks.
5566 * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
5567 static, update prototype.
5568 (sdb_debug_hooks): Update.
5569 * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
5570 * toplev.c: Distinguish between xcoff and dbx.
5572 * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
5573 Call all debug hooks, not just dwarf ones.
5575 2001-07-11 Timothy Wall <twall@redhat.com>
5577 * config.gcc: Add configuration for AIX5/IA64.
5578 * config/ia64/aix.h: New. AIX5/IA64-specific configuration.
5579 * config/ia64/crt[in].asm: New. Generic static ctor/dtor
5580 support prefix/suffix code.
5581 * config/ia64/t-aix: New. Makefile fragment.
5582 * config/ia64/unwind-aix.c: New. Unwind table entry lookup.
5584 2001-07-11 Kazu Hirata <kazu@hxi.com>
5586 * recog.c (validate_change): Fix a comment typo.
5588 2001-07-11 Neil Booth <neil@daikokuya.demon.co.uk>
5590 * Makefile.in (c-lex.o): Wrap long lines. Depend on debug.h.
5591 * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
5593 * dbxout.c (dbx_debug_hooks): Add new hooks.
5594 (dbxout_start_new_source_file): Rename dbxout_start_source_file,
5596 (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
5598 * dbxout.h (dbxout_start_new_source_file,
5599 dbxout_resume_previous_source_file): Delete.
5600 * debug.c (do_nothing_debug_hooks): Add new hooks.
5601 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
5602 (debug_nothing_int_charstar, debug_nothing_int): New.
5603 * debug.h (gcc_debug_hooks): New hooks define, undef,
5604 start_source_file and end_source_file.
5605 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
5606 (debug_nothing_int_charstar, debug_nothing_int): New.
5607 * dwarf2out.c (dwarf2_debug_hooks): Add new hooks. Move into
5608 the conditionally compiled section.
5609 (dwarf2out_start_source_file, dwarf2out_end_source_file,
5610 dwarf2out_define, dwarf2out_undef): Make static.
5611 * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
5612 dwarf2out_define, dwarf2out_undef): Remove.
5613 * dwarfout.c (dwarf_debug_hooks): Add new hooks.
5614 (dwarfout_start_source_file, dwarfout_end_source_file,
5615 dwarfout_define, dwarfout_undef): Make static.
5616 (dwarfout_start_source_file_check,
5617 dwarfout_end_source_file_check): New.
5618 (dwarfout_define, dwarfout_finish): Update.
5619 * dwarfout.h (dwarfout_start_new_source_file,
5620 dwarfout_resume_previous_source_file, dwarfout_define,
5621 dwarfout_undef): Remove.
5622 * sdbout.c (sdb_debug_hooks): Add new hooks.
5623 (sdbout_start_new_source_file): Rename sdbout_start_source_file,
5625 (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
5626 make static, take an arg.
5627 * sdbout.h (sdbout_start_new_source_file,
5628 sdbout_resume_previous_source_file): Delete.
5629 * toplev.c (debug_start_source_file, debug_end_source_file,
5630 debug_define, debug_undef): Delete.
5631 * toplev.h (debug_start_source_file, debug_end_source_file,
5632 debug_define, debug_undef): Delete.
5634 * java/jcf-parse.c: Include debug.h.
5635 (parse_class_file): Update to use debug hooks directly.
5636 * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
5638 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5640 * alias.c (set_mem_alias_set): New function.
5641 * rtl.h (set_mem_alias_set): Declare it.
5642 * builtins.c (expand_builtin_return_addr): Call it instead of
5643 using MEM_ALIAS_SET accessor.
5644 (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
5645 (get_memory_rtx, expand_builtin_va_arg): Likewise.
5646 (expand_builtin_va_copy):Likewise.
5647 * caller-save.c (setup_save_areas): Likewise.
5648 * calls.c (compute_argument_addresses): Likewise.
5649 * explow.c (set_mem_attributes): Likewise.
5650 * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
5651 (expand_assignment, store_constructor_field, store_field): Likewise.
5652 (expand_expr_unaligned): Likewise.
5653 * function.c (assign_stack_temp_for_type): Likewise.
5654 (put_reg_into_stack, gen_mem_addressof): Likewise.
5655 * ifcvt.c (noce_try_cmove_arith): Likewise.
5656 * reload1.c (reload, alter_reg): Likewise.
5657 * config/alpha/alpha.c (get_aligned_mem): Likewise.
5658 (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
5659 (alpha_expand_unaligned_store): Likewise
5660 (alpha_expand_unaligned_load_words): Likewise.
5661 (alpha_expand_unaligned_store_words): Likewise.
5662 (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
5663 (alpha_expand_epilogue): Likewise.
5664 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
5665 * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
5666 * config/i386/i386.c (legitimize_pic_address): Likewise.
5667 * config/i960/i960.c (setup_incoming_varargs): Likewise.
5668 * config/ia64/ia64.c (spill_restore_mem): Likewise.
5669 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
5670 * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
5671 * config/mips/mips.c (mips_va_arg): Likewise.
5672 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
5673 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
5674 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5675 (setup_incoming_varargs, rs6000_va_arg): Likewise.
5676 (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
5677 (rs6000_emit_epilogue): Likewise.
5678 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
5679 * config/sparc/sparc.c (sparc_va_arg): Likewise.
5680 * config/v850/v850.c (v850_va_arg): Likewise.
5682 Wed Jul 11 21:27:25 CEST 2001 Jan Hubicka <jh@suse.cz>
5684 * flow.c (merge_blocks_move_successor_nojumps): Do not crash
5685 when fallthru edge is present.
5686 (mege_blocks): Handle case where creation of jump insn
5689 * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
5690 CLEANUP_POST_REGSTACK): New constants.
5691 * except.c (finish_eh_generation): Update call of cleanup_cfg,
5692 * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
5693 * output.h (cleanup_cfg): Update prototype.
5694 * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
5695 * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
5696 cleanup_cfg call; kill missleading comment.
5697 * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
5698 * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
5699 parameter; control optimizations performed using it.
5700 (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
5701 try_crossjump_bb): New functions.
5703 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5705 * pa.c (pa_output_function_prologue): Delete prototype. Make function
5707 * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
5708 pa_output_function_prologue.
5709 * pa-protos.h (pa_output_function_prologue): New prototype.
5711 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5713 * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
5714 and low to get correct sign extension in low+high test.
5716 2001-07-11 Janis Johnson <janis@us.ibm.com>
5718 * gcov.c (arcdata): Use gcov_type to fix branch percentage
5719 for large hit count.
5721 * profile.c (branch_prob): Fix .bbg info for computed gotos
5724 2001-07-11 Mark Mitchell <mark@codesourcery.com>
5726 * stmt.c (parse_output_constraint): New function, split out
5728 (expand_asm_operands): ... here. Use parse_output_constraint.
5729 * tree.h (parse_output_constraint): Declare it.
5731 2001-07-11 Richard Henderson <rth@redhat.com>
5733 * bitmap.c: Comment some functions; fiddle whitespace.
5734 (bitmap_free): Don't export.
5735 (bitmap_element_allocate): Use memset.
5736 * bitmap.h (bitmap_free): Don't declare.
5738 2001-07-11 Daniel Berlin <dan@cgsoftware.com>
5740 * gcse.c, lcm.c, sched-deps.c:
5741 s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
5743 * flow.c (flow_loops_find): Free dom if we found no loops, since
5744 we aren't going to save it.
5746 * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
5749 Wed Jul 11 09:00:48 2001 Jeffrey A Law (law@cygnus.com)
5751 * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
5753 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5755 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
5756 #ifndef DWARF2_DEBUGGING_INFO.
5758 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
5760 * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
5762 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
5764 * config/mips/mips.c (gen_int_relational): Tell the caller not to
5765 reverse a branch if a NE comparison is implemented with GTU.
5767 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
5768 H.J. Lu <hjl@gnu.org>
5770 * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
5772 (call_internal2): Likewise.
5773 (call_value_internal1): Likewise.
5774 (call_value_internal2): Likewise.
5775 (call_value_multiple_internal1): Likewise.
5776 (call_value_multiple_internal2): Likewise.
5778 2001-07-10 Kazu Hirata <kazu@hxi.com>
5780 * calls.c (emit_library_call_value_1): Fix a comment typo.
5781 * dwarf2out.c (mem_loc_descriptor): Likewise.
5782 * config/i386/i386.c (ix86_expand_aligntest): Likewise.
5784 2001-07-11 David Billinghurst <David.Billinghurst@riotinto.com>
5786 * simplify-rtx.c (simplify_subreg): Fix typo in comment
5788 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5790 * recog.c (offsettable_address_p): Handle LO_SUM case.
5791 * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
5792 instead of plus_constant.
5794 2001-07-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5796 * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
5797 fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
5799 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5801 * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
5802 adjust_address_nv instead of plus_constant.
5804 2001-07-10 Neil Booth <neil@daikokuya.demon.co.uk>
5806 * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
5807 dwarf2out.o): Depend on debug.h, wrap long lines.
5808 * dbxout.c: Include debug.h.
5809 (dbx_debug_hooks): New.
5810 (dbxout_init): Make static, take just 2 args.
5811 (dbxout_finish): Make static.
5812 * dbxout.h (dbxout_init, dbxout_finish): Delete.
5813 * debug.c: New file.
5814 * debug.h: New file.
5815 * dwarf2out.c: Include debug.h.
5816 (dwarf2_debug_hooks): New.
5817 (dwarf2out_init): Make static.
5818 (dwarf2out_finish): Make static, take 2 args.
5819 * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
5820 * dwarfout.c: Include debug.h.
5821 (dwarf_debug_hooks): New.
5822 (dwarfout_init): Make static.
5823 (dwarfout_finish): Make static, take 2 args.
5824 * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
5825 * sdbout.c: Include debug.h.
5826 (sdb_debug_hooks): New.
5827 (sdbout_init): Make static, take 2 args.
5828 * sdbout.h (sdbout_init): Delete.
5829 * toplev.c: Include debug.h.
5831 (compile_file): Set deubg_hooks based on command line options.
5832 Use the hooks unconditionally rather than conditional compilation.
5834 Tue Jul 10 09:04:45 2001 Jeffrey A Law (law@cygnus.com)
5836 * ssa-ccp.c (first_phi_node): Remove. Replace uses with calls to
5837 first_insn_after_basic_block_note instead.
5839 * df.c (df_bb_refs_unlink): #if 0 out for now.
5841 2001-07-10 David Billinghurst <David.Billinghurst@riotinto.com
5843 * ssa.h: Add prototype for ssa_const_prop
5844 * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
5845 (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
5846 (ssa_fast_dce): Remove unused variable
5848 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
5850 * diagnostic.c (finish_diagnostic): Rename to
5851 diagnostic_finish. Make it take an 'output_buffer *'. Adjust
5854 2001-07-10 Jason Merrill <jason_merrill@redhat.com>
5856 * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
5859 * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
5860 (dump_file): Only pad the demangled name with spaces if the
5861 mangled name was padded with spaces.
5863 2001-07-10 Bernd Schmidt <bernds@redhat.com>
5865 * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
5868 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5870 * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
5871 extraction if no direct load if either EXPAND_CONST_ADDRESS or
5874 * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
5875 whether can put offset inside LO_SUM to check mode alignment, not size.
5877 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
5879 * doc/tm.texi (Misc): Fix thinko.
5881 2001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
5883 * regmove.c (replace_in_call_usage): Fix warnings.
5884 * sched-deps.c (add_dependence): Fix warnings.
5885 * simplify-rtx.c (simplify_subreg): Likewise.
5886 Return NULL_RTX instead of NULL.
5888 * reg-stack.c (emit_swap_insn): Eliminate warnings.
5889 (subst_asm_stack_regs): Likewise.
5891 * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
5894 * dwarf2out.c (output_call_frame_info): Declare i as int.
5895 (build_abbrev_table): Declare n_alloc as int.
5896 (dwarf2out_finish): Initialize die.
5897 * except.c: Declare sjlj_funcdef_number as unsigned.
5898 (connect_post_landing_pads): Declare j as unsigned.
5899 (convert_to_eh_region_ranges): Initialize call_site.
5900 (output_function_exception_table): Initialize tt_format_size.
5901 * expr.c (move_by_pieces_1): Initialize to1.
5902 (store_constructor): Initialize minelt and maxelt.
5903 * flow.c (mark_regs_live_at_end): Declare i as unsigned.
5904 * function.c (instantiate_decls): Avoid signed/unsigned warning.
5906 * c-decl.c (combine_parm_decls): Unused, remove.
5907 * c-tree.h: Remove prototype for combine_parm_decls.
5909 * reload.c (push_reload): Fix warning.
5910 (regno_clobbered_p): Likewise.
5911 * reload1.c (replace_pseudos_in_call_usage): Likewise.
5912 (reload_combine): Likewise.
5914 * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
5915 * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
5917 * bitmap.c (bitmap_operation): Change user.
5918 * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
5920 2001-07-10 Eric Christopher <echristo@redhat.com>
5922 * config/mips/mips.c (override_options): Fix typo.
5924 2001-07-09 Stan Shebs <shebs@apple.com>
5926 * target.h (struct gcc_target): New fields init_builtins and
5928 * target-def.h (TARGET_INIT_BUILTINS): New macro.
5929 (TARGET_EXPAND_BUILTIN): New macro.
5930 (TARGET_INITIALIZER): Add them.
5931 * builtins.c: Include target.h.
5932 (expand_builtin): Use targetm.expand_builtin.
5933 (default_init_builtins): New function.
5934 (default_expand_builtin): New function.
5935 * expr.h (default_init_builtins): Declare.
5936 (default_expand_builtin): Declare.
5937 * c-common.c (c_common_nodes_and_builtins): Use
5938 targetm.init_builtins.
5939 * defaults.h (MD_INIT_BUILTINS): Remove.
5940 * Makefile.in (builtins.o): Depend on target.h.
5942 * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
5943 (TARGET_EXPAND_BUILTIN): Define.
5944 * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
5945 (MD_EXPAND_BUILTIN): Remove.
5947 * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
5948 (TARGET_EXPAND_BUILTIN): Define.
5949 (c4x_init_builtins): Make endlink arg a local.
5950 (c4x_print_operand): Fix typos in adjust_address usages.
5951 * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
5952 * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
5953 (MD_EXPAND_BUILTIN): Remove.
5955 * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
5956 (TARGET_EXPAND_BUILTIN): Define.
5957 (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
5958 (ix86_init_builtins): Call new function only if TARGET_MMX.
5959 * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
5960 * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
5961 (MD_EXPAND_BUILTIN): Remove.
5963 * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
5964 (TARGET_EXPAND_BUILTIN): Define.
5965 * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
5966 (MD_EXPAND_BUILTIN): Remove.
5968 * doc/tm.texi: Document these changes.
5970 2001-07-09 Diego Novillo <dnovillo@redhat.com>
5972 * basic-block.h (tree_node): Forward declare if needed.
5973 (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
5974 (BLOCK_HEAD_TREE): Define.
5975 (BLOCK_END_TREE): Define.
5976 (struct loops): Rename field 'tree' to 'tree_root'.
5977 * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
5979 (flow_loops_tree_build): Rename reference to field 'tree' to
5981 (flow_loops_level_compute): Ditto.
5982 * predict.c (estimate_bb_frequencies): Ditto.
5983 * tree.h (struct tree_common): Add field 'aux'.
5985 2001-07-09 Stan Shebs <shebs@apple.com>
5987 * config/darwin.c (darwin_encode_section_info): Don't mark any
5988 DECL_EXTERNAL node as defined.
5990 2001-07-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
5992 * pa.c (pa_init_machine_status, pa_mark_machine_status,
5993 pa_free_machine_status, hppa_init_pic_save): Delete.
5994 (hppa_pic_save_rtx): New. Use get_hard_reg_initial_val.
5995 (hppa_profile_hook): Use hppa_pic_save_rtx.
5996 * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
5997 hppa_init_pic_save): Delete.
5998 (hppa_pic_save_rtx): Declare.
5999 * pa.md (call, call_value, sibcall, sibcall_value,
6000 builtin_setjmp_receiver): Use hppa_pic_save_rtx.
6002 2001-07-09 Kazu Hirata <kazu@hxi.com>
6004 * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
6005 * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
6007 2001-07-09 Andreas Jaeger <aj@suse.de>
6009 * output.h: Add declaration of final_forward_branch_p.
6011 * config/i386/i386.c (output_fix_trunc): Remove unused variable.
6013 * varray.c: Include errors.h for internal_error and trim_filename
6016 * Makefile.in (varray.o): Add errors.h.
6018 2001-07-09 Toon Moene <toon@moene.indiv.nluug.nl>
6020 * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
6021 * optabs.c (have_add2_insn): Check whether the add insn chosen
6022 really accepts the operands. (have_sub2_insn): Ditto for sub insn.
6023 * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
6025 Mon Jul 9 13:26:40 2001 Jeffrey A Law (law@cygnus.com)
6027 * Makefile.in (OBJS): Add ssa-ccp.o
6028 (ssa-ccp.o): Add dependencies.
6029 * toplev.c (DFI_ssa_ccp): New dump file enum.
6030 (dump_file): Add entry for dumping after SSA CCP.
6031 (flag_ssa_ccp): New flag variable.
6032 (f_options): Add -fssa-ccp.
6033 (rest_of_compilation): Run SSA CCP if requested.
6034 * timevar.def (TV_SSA_CCP): New timevar.
6035 * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
6036 * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
6037 Fix minor typo in SSA DCE documentation.
6038 * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
6039 Add documentation for new dump option. Renumber dump files
6042 Mon Jul 9 21:36:00 CEST 2001 Jan Hubicka <jh@suse.cz>
6044 * emit-rtl.c (gen_highpart_mode): New.
6045 * rtl.h (gen_highpart_mode): Declare.
6046 * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
6047 operand can be VOIDmode constant.
6049 Mon Jul 9 17:23:10 CEST 2001 Jan Hubicka <jh@suse.cz>
6051 * flow.c (redirect_edge_and_branch_force): New.
6052 (can_fallthru): Ensure that basic blocks are succeeding.
6053 (try_optimize_cfg): Do not delete basic block if it is the last one.
6055 * flow.c (try_redirect_by_replacing_jump): Do not remove
6056 jumps with side effects, unlink chain on fallthru edge;
6057 set block for new jump instruction; avoid basic block to
6058 over by line number note.
6060 * flow.c (try_simplify_condjump): Verify that the condjump
6061 is not always falling trought.
6064 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
6066 * flow.c (forwarder_block_p): Fix for fallthru blocks.
6067 (try_redirect_by_replacing_jump): Update properly the count
6068 and frequency information.
6070 Mon Jul 9 06:41:07 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6072 * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
6073 address that is a LO_SUM specially.
6074 * explow.c (plus_constant_wide, case LO_SUM): Deleted.
6076 * c-lang.c (start_cdtor): Remove extra parameter from start_function.
6078 * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
6079 (operand_subword): Use them.
6080 (change_address_1): Renamed from change_address; new arg VALIDATE.
6081 * expr.h: Reflect above changes; change_address now macro.
6082 * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
6084 * cselib.c (add_mem_for_addr): Likewise.
6085 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
6086 * regmove.c (try_apply_stack_adjustment): Likewise.
6087 * reload.c (push_reload, make_memloc): Likewise.
6088 * reload1.c (eliminate_regs): Likewise.
6089 * simplify-rtx.c (simplify_replace_rtx): Likewise.
6090 * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
6092 * combine.c (make_extraction, simplify_shift_const): Likewise.
6093 (gen_lowpart_for_combine): Likewise.
6094 * cse.c (gen_lowpart_if_possible): Likewise.
6095 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
6096 * expr.c (expand_expr, case COMPONENT_REF): Likewise.
6097 * optabs.c (gen_move_insn): Likewise.
6098 * reload1.c (alter_reg): Likewise.
6099 * simplify-rtx.c (simplify_subreg): Likewise.
6100 * stmt.c (expand_anon_union_decl): Likewise.
6101 * recog.c (validate_replace_rtx_1): Likewise.
6103 * Makefile.in (recog.o): Add $(EXPR_H).
6104 * explow.c (stabilize): Call replace_equiv_address.
6105 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
6106 * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
6108 2001-07-03 Andrew Haley <aph@redhat.com>
6110 * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
6111 the mode of the memory location.
6113 2001-07-09 Bo Thorsen <bo@suse.co.uk>
6115 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
6117 2001-07-09 Neil Booth <neil@daikokuya.demon.co.uk>
6119 * final.c (output_addr_const): Use target opening and
6120 closing parentheses.
6121 * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
6122 defaults, add to TARGET_ASM_OUT.
6123 * target.h (struct gcc_target): Add open_paren and close_paren.
6124 * doc/md.texi: Update.
6125 * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
6126 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
6127 TARGET_ASM_CLOSE_PAREN.
6128 * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
6130 * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
6132 * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
6133 * config/a29k/a29k.h: Similarly.
6134 * config/alpha/alpha.h: Similarly.
6135 * config/arc/arc.h: Similarly.
6136 * config/arm/aof.h: Similarly.
6137 * config/arm/aout.h: Similarly.
6138 * config/avr/avr.h: Similarly.
6139 * config/c4x/c4x.h: Similarly.
6140 * config/clipper/clipper.h: Similarly.
6141 * config/convex/convex.h: Similarly.
6142 * config/d30v/d30v.h: Similarly.
6143 * config/dsp16xx/dsp16xx.h: Similarly.
6144 * config/elxsi/elxsi.h: Similarly.
6145 * config/fr30/fr30.h: Similarly.
6146 * config/h8300/h8300.h: Similarly.
6147 * config/i370/i370.h: Similarly.
6148 * config/i386/i386.h: Similarly.
6149 * config/i860/i860.h: Similarly.
6150 * config/i960/i960.h: Similarly.
6151 * config/ia64/ia64.h: Similarly.
6152 * config/m32r/m32r.h: Similarly.
6153 * config/m68hc11/m68hc11.h: Similarly.
6154 * config/m68k/m68k.h: Similarly.
6155 * config/m88k/m88k.h: Similarly.
6156 * config/mcore/mcore.h: Similarly.
6157 * config/mips/mips.h: Similarly.
6158 * config/mn10200/mn10200.h: Similarly.
6159 * config/mn10300/mn10300.h: Similarly.
6160 * config/ns32k/ns32k.h: Similarly.
6161 * config/pa/pa.h: Similarly.
6162 * config/pdp11/pdp11.h: Similarly.
6163 * config/pj/pj.h: Similarly.
6164 * config/romp/romp.h: Similarly.
6165 * config/rs6000/rs6000.h: Similarly.
6166 * config/sh/sh.h: Similarly.
6167 * config/sparc/sparc.h: Similarly.
6168 * config/v850/v850.h: Similarly.
6169 * config/vax/vax.h: Similarly.
6170 * config/we32k/we32k.h: Similarly.
6172 2001-07-09 Joseph S. Myers <jsm28@cam.ac.uk>
6174 * doc/c-tree.texi: Document representation of attributes.
6176 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
6178 * doc/tm.texi: Update some places for the rename of target to
6181 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
6183 * target.h (struct gcc_target): Add insert_attributes.
6184 * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
6185 (TARGET_INITIALIZER): Update.
6186 * tree.c, tree.h (default_insert_attributes): New function.
6187 Update comments on other default functions to refer to targetm,
6189 * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
6190 TARGET_INSERT_ATTRIBUTES.
6191 (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
6192 * c-common.c (decl_attributes): Use targetm.insert_attributes.
6193 Don't use PRAGMA_INSERT_ATTRIBUTES.
6194 * Makefile.in (c-common.o): Depend on $(TARGET_H).
6195 * c-decl.c (start_decl, start_function): Don't call
6196 SET_DEFAULT_DECL_ATTRIBUTES.
6197 * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
6198 * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
6200 * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
6201 (c4x_check_attribute): Avoid modifying attribute list itself.
6202 (c4x_set_default_attributes): Rename to c4x_insert_attributes.
6204 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
6205 * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
6207 * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
6208 (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
6210 * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
6211 * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
6213 * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
6214 (v850_set_default_decl_attr): Rename to v850_insert_attributes.
6215 Adjust parameters. Make static.
6217 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
6219 * c-common.c (decl_attributes): Only take a single attributes
6221 * c-common.h (decl_attributes): Update prototype.
6222 * c-decl.c (start_decl, start_function): Only take a single
6223 attributes parameter. Update calls to decl_attributes.
6224 (finish_struct, finish_enum): Update calls to decl_attributes.
6225 (push_parm_decl): Expect unified list of attributes. Update call
6227 * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
6228 notype_nested_function, component_declarator,
6229 component_notype_declarator, label): Update calls to
6231 (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
6232 lists that are passed to push_parm_decl.
6233 * c-tree.h (start_function, start_decl): Update prototypes.
6234 * config/sh/sh-protos.h, config/sh/sh.c
6235 (sh_pragma_insert_attributes): Only take a single attributes
6237 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
6238 * doc/tm.texi (INSERT_ATTRIBUTES): Update.
6239 * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
6240 build_module_descriptor, generate_static_references,
6241 generate_strings, build_selector_translation_table,
6242 generate_descriptor_table, generate_protocols,
6243 generate_ivars_list, generate_dispatch_table,
6244 generate_protocol_list, generate_category,
6245 generate_shared_structures, really_start_method, add_objc_decls,
6246 generate_classref_translation_entry): Update calls to start_decl
6248 (build_tmp_function_decl, start_method_def): Unify attribute lists
6249 that are passed to push_parm_decl.
6251 2001-07-08 Neil Booth <neil@daikokuya.demon.co.uk>
6253 * final.c (no_asm_to_stream): New.
6254 (final_scan_insn): Use target structures for prologue ends
6255 and epilogue starts.
6256 * output.h (no_asm_to_stream): New.
6257 * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
6258 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
6259 (TARGET_ASM_OUT): Update.
6260 * target.h (struct gcc_target): New members function_end_prologue
6261 and function_begin_epilogue.
6262 * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
6263 * config/alpha/alpha-protos.h (output_end_prologue): Delete.
6264 * config/alpha/alpha.c (output_end_prologue): Rename to
6265 alpha_output_function_end_prologue. Use in target struct
6267 * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
6268 * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
6269 * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
6270 ia64_output_function_end_prologue. Use in target struct
6272 (ia64_function_prologue, ia64_funciton_epilogue): Rename
6273 mistyped prototypes.
6274 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
6275 * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
6277 * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
6278 an use in target struct, make static.
6279 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
6282 2001-07-08 Richard Henderson <rth@redhat.com>
6284 * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
6286 2001-07-08 Richard Henderson <rth@redhat.com>
6288 * config/i386/i386.md: Remove constraints strings from define_split
6289 and define_peephole2 patterns.
6290 (eh_return_si, eh_return_di): Split eh_return_1 for modes.
6291 (eh_return): Use them.
6293 2001-07-08 Richard Henderson <rth@redhat.com>
6295 * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
6296 Document MD_FALLBACK_FRAME_STATE_FOR.
6298 2001-07-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6300 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
6301 Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
6303 * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
6305 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
6307 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
6308 of the label inside NAME as opposed to just the end of NAME.
6310 2001-07-07 Neil Booth <neil@daikokuya.demon.co.uk>
6312 * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
6313 * config/alpha/alpha.c (alpha_init_machine_status,
6314 alpha_mark_machine_status, alpha_free_machine_status): Delete.
6315 (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
6316 (vms_valid_decl_attribute_p): Make static, conditionally compile.
6317 * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
6319 2001-07-06 Stan Shebs <shebs@apple.com>
6321 * target.h (targetm): Rename global from "target", so as not to
6322 conflict with local variables.
6324 * c-typeck.c: Ditto.
6328 * cp/decl2.c: Ditto.
6329 * cp/typeck.c: Ditto.
6330 * 1750a/1750a.c: Ditto.
6331 * a29k/a29k.c: Ditto.
6335 * clipper/clipper.c: Ditto.
6336 * convex/convex.c: Ditto.
6337 * d30v/d30v.c: Ditto.
6338 * dsp16xx/dsp16xx.c: Ditto.
6339 * elxsi/elxsi.c: Ditto.
6340 * fr30/fr30.c: Ditto.
6341 * h8300/h8300.c: Ditto.
6342 * i370/i370.c: Ditto.
6343 * i386/i386.c: Ditto.
6344 * i860/i860.c: Ditto.
6345 * i960/i960.c: Ditto.
6346 * ia64/ia64.c: Ditto.
6347 * m32r/m32r.c: Ditto.
6348 * m68hc11/m68hc11.c: Ditto.
6349 * m68k/m68k.c: Ditto.
6350 * m88k/m88k.c: Ditto.
6351 * mips/mips.c: Ditto.
6352 * ns32k/ns32k.c: Ditto.
6354 * pdp11/pdp11.c: Ditto.
6355 * romp/romp.c: Ditto.
6356 * rs6000/rs6000.c: Ditto.
6358 * sparc/sparc.c: Ditto.
6360 * we32k/we32k.c: Ditto.
6361 * doc/tm.texi: Update the manual to match.
6363 2001-07-06 Richard Henderson <rth@redhat.com>
6365 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
6366 DWARF2_UNWIND_INFO not just whether it is defined.
6368 2001-07-06 Diego Novillo <dnovillo@redhat.com>
6370 * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
6371 call to simplify_binary_operation returns a new pattern.
6373 2001-07-06 Roman Lechtchinsky <rl@cs.tu-berlin.de>
6375 * glimits.h (__SHRT_MAX__): New.
6376 (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
6377 (SHRT_MAX): Define in terms of __SHRT_MAX__.
6379 2001-07-06 Jan van Male <jan.vanmale@fenk.wau.nl>
6381 * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
6384 2001-07-06 Richard Henderson <rth@redhat.com>
6386 * bitmap.c (bitmap_release_memory): Move adjacent to the
6387 allocation functions.
6388 (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
6389 the implementation. Binary search for the set bit.
6390 (bitmap_union_of_diff): Allocate the temporary on the stack
6391 instead of using xmalloc.
6393 2001-07-06 Richard Henderson <rth@redhat.com>
6395 * genrecog.c (validate_pattern): Warn for constraints in
6396 define_{expand,split,peephole2}. Remove strict_low_part
6397 before looking up match_dup.
6399 2001-07-06 DJ Delorie <dj@redhat.com>
6401 * doc/gcc.texi (Makefile): Rename to be a more general purpose
6402 chapter about various build hints and history. Add section
6403 talking about the various types of native and cross builds.
6405 2001-07-06 Neil Booth <neil@daikokuya.demon.co.uk>
6407 * Makefile.in (final.o): Depend on target.h.
6408 * final.c: Include target.h.
6409 (default_function_pro_epilogue): New.
6410 (final_start_function): Use target structure for function prologues.
6411 (final_end_function): Use target structure for function epilogues.
6412 * fold-const.c (real_hex_to_f): Constify s and p.
6413 * output.h (default_function_pro_epilogue): New.
6414 * real.h (real_hex_to_f): Update prototype.
6415 * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
6416 TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
6417 (TARGET_INITIALIZER): Update.
6418 * target.h (gcc_target): Add struct asm_out.
6419 * doc/tm.texi: Update.
6422 Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
6423 TARGET_ASM_FUNCTION_EPILOGUE. Move macro code to functions
6424 in cpu/cpu.c, or rename old functions consistently. Take
6425 a HOST_WIDE INT not an int as the SIZE parameter. Remove now
6426 redundant macros and prototypes. Make new functions static.
6428 * 1750a/1750a.c: Similarly.
6429 * 1750a/1750a.h: Similarly.
6430 * a29k/a29k-protos.h: Similarly.
6431 * a29k/a29k.c: Similarly.
6432 * a29k/a29k.h: Similarly.
6433 * arc/arc-protos.h: Similarly.
6434 * arc/arc.c: Similarly.
6435 * arc/arc.h: Similarly.
6436 * arm/arm-protos.h: Similarly.
6437 * arm/arm.c: Similarly.
6438 * arm/arm.h: Similarly.
6439 * avr/avr-protos.h: Similarly.
6440 * avr/avr.c: Similarly.
6441 * avr/avr.h: Similarly.
6442 * clipper/clipper-protos.h: Similarly.
6443 * clipper/clipper.c: Similarly.
6444 * clipper/clipper.h: Similarly.
6445 * convex/convex.c: Similarly.
6446 * convex/convex.h: Similarly.
6447 * d30v/d30v-protos.h: Similarly.
6448 * d30v/d30v.c: Similarly.
6449 * d30v/d30v.h: Similarly.
6450 * d30v/d30v.md: Similarly.
6451 * dsp16xx/dsp16xx-protos.h: Similarly.
6452 * dsp16xx/dsp16xx.c: Similarly.
6453 * dsp16xx/dsp16xx.h: Similarly.
6454 * elxsi/elxsi.c: Similarly.
6455 * elxsi/elxsi.h: Similarly.
6456 * fr30/fr30.c: Similarly.
6457 * fr30/fr30.md: Similarly.
6458 * h8300/h8300-protos.h: Similarly.
6459 * h8300/h8300.c: Similarly.
6460 * h8300/h8300.h: Similarly.
6461 * i370/i370-protos.h: Similarly.
6462 * i370/i370.c: Similarly.
6463 * i370/i370.h: Similarly.
6464 * i386/i386.c: Similarly.
6465 * i386/osf1elf.h: Similarly.
6466 * i386/osfrose.h: Similarly.
6467 * i860/i860-protos.h: Similarly.
6468 * i860/i860.c: Similarly.
6469 * i860/i860.h: Similarly.
6470 * i960/i960-protos.h: Similarly.
6471 * i960/i960.c: Similarly.
6472 * i960/i960.h: Similarly.
6473 * ia64/ia64-protos.h: Similarly.
6474 * ia64/ia64.c: Similarly.
6475 * ia64/ia64.h: Similarly.
6476 * m32r/m32r-protos.h: Similarly.
6477 * m32r/m32r.c: Similarly.
6478 * m32r/m32r.h: Similarly.
6479 * m68hc11/m68hc11-protos.h: Similarly.
6480 * m68hc11/m68hc11.c: Similarly.
6481 * m68hc11/m68hc11.h: Similarly.
6482 * m68k/crds.h: Similarly.
6483 * m68k/dpx2.h: Similarly.
6484 * m68k/m68k-protos.h: Similarly.
6485 * m68k/m68k.c: Similarly.
6486 * m68k/m68k.h: Similarly.
6487 * m68k/news.h: Similarly.
6488 * m88k/m88k-protos.h: Similarly.
6489 * m88k/m88k.c: Similarly.
6490 * m88k/m88k.h: Similarly.
6491 * mips/mips-protos.h: Similarly.
6492 * mips/mips.c: Similarly.
6493 * mips/mips.h: Similarly.
6494 * ns32k/merlin.h: Similarly.
6495 * ns32k/ns32k.c: Similarly.
6496 * ns32k/ns32k.h: Similarly.
6497 * ns32k/tek6000.h: Similarly.
6498 * pa/pa-protos.h: Similarly.
6499 * pa/pa.c: Similarly.
6500 * pa/pa.h: Similarly.
6501 * pdp11/2bsd.h: Similarly.
6502 * pdp11/pdp11-protos.h: Similarly.
6503 * pdp11/pdp11.c: Similarly.
6504 * pdp11/pdp11.h: Similarly.
6505 * romp/romp-protos.h: Similarly.
6506 * romp/romp.c: Similarly.
6507 * romp/romp.h: Similarly.
6508 * rs6000/rs6000-protos.h: Similarly.
6509 * rs6000/rs6000.c: Similarly.
6510 * rs6000/rs6000.h: Similarly.
6511 * rs6000/sysv4.h: Similarly.
6512 * sh/sh-protos.h: Similarly.
6513 * sh/sh.c: Similarly.
6514 * sh/sh.h: Similarly.
6515 * sparc/sparc-protos.h: Similarly.
6516 * sparc/sparc.c: Similarly.
6517 * sparc/sparc.h: Similarly.
6518 * vax/vax.c: Similarly.
6519 * vax/vax.h: Similarly.
6520 * vax/vms.h: Similarly.
6521 * we32k/we32k.c: Similarly.
6522 * we32k/we32k.h: Similarly.
6524 Fri Jul 6 11:47:59 2001 Jeffrey A Law (law@cygnus.com)
6526 * basic-block.h (first_insn_after_basic_block_note): Declare.
6527 * flow.c (first_insn_after_basic_block_note): Define. Moved
6529 * ssa.c (first_insn_after_basic_block_note): Remove.
6530 * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
6532 (ssa_eliminate_dead_code): Properly update the CFG and PHI
6533 nodes when we find a dead conditional branch. Insert BARRIERs
6534 after any blocks with no successors, but which do not have
6537 2001-07-06 Zack Weinberg <zackw@stanford.edu>
6539 * varray.c (varray_check_failed): Use internal_error.
6541 2001-07-05 Andrew Haley <aph@redhat.com>
6543 * Makefile.in (LIB2_DIVMOD_FUNCS): New.
6544 (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
6545 * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
6547 2001-07-02 Jason Merrill <jason_merrill@redhat.com>
6549 * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
6550 reference if the target constant is also a SYMBOL_REF.
6552 2001-07-05 Eric Christopher <echristo@redhat.com>
6554 * config/mips/mips.h (MASK_MIPS3900): Remove.
6555 (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
6556 MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
6557 (TARGET_MIPS3900): Change to use mips_arch.
6558 (TARGET_MIPS4000): New.
6559 (TARGET_MIPS4100): New.
6560 (TARGET_MIPS4300): New.
6561 (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
6562 (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
6564 (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
6565 (ISA_HAS_BRANCHLIKELY): To here.
6566 (CC1_CPU_SPEC): New.
6567 (CC1_SPEC): Use here. Remove 4650 and 3900 options.
6568 (mips_arch_string): Declare.
6569 (mips_arch): Declare.
6570 (TARGET_OPTIONS): Add -march and -mtune.
6572 * config/mips/mips.c (mips_arch_string): New.
6574 (override_options): Handle -march for codegen and -mtune
6575 for scheduling. Use mips_arch. Move tx39 target default here.
6576 (mips_parse_cpu): Move error message to override_options.
6578 * config/mips/r3900.h (TARGET_DEFAULT): Remove.
6580 * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
6582 * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
6583 (MIPS Options): Ditto. Change mcpu entry to historical text.
6585 2001-07-05 H.J. Lu (hjl@gnu.org)
6587 * config/mips/mips.c (mips_parse_cpu): New function to parse
6590 2001-07-05 Jim Wilson <wilson@redhat.com>
6592 * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
6593 * config/ia64/t-ia64: Likewise.
6594 (LIB1ASMFUNCS): Update comment.
6596 2001-07-05 David Edelsohn <edelsohn@gnu.org>
6598 * doc/install.texi (Install GCC: Binaries): Fix typo.
6600 2001-07-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6602 * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
6603 reference using the stack pointer, adjust it since we push Y
6605 ("*ashrsi3"): Likewise.
6606 ("*lshrsi3"): Likewise.
6608 2001-07-05 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6610 * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
6611 when -fomit-frame-pointer is used.
6613 2001-07-05 Jeffrey Oldham <oldham@codesourcery.com>
6615 * flow.c: Reverse Jan Hubicka's patch of 02July2001.
6616 (try_redirect_by_replacing_jump): Reverse updating properly the
6617 count and frequency information. Reverse removing cc0 setter.
6618 (forwarder_block_p): Reverse fixing for fallthru blocks.
6620 2001-07-05 DJ Delorie <dj@redhat.com>
6622 * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
6623 (translate_options): If the above is defined, use it to map
6624 given options to new options.
6625 * doc/tm.texi: Document it.
6627 2001-07-05 Brad Lucier <lucier@math.purdue.edu>
6628 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6630 * doc/invoke.texi (Optimize Options): Document that -fgcse may
6631 cause programs using computed gotos to run more slowly.
6633 2001-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6635 * doc/install.texi (Specific): Markup, spelling and typo fixes.
6637 Consistently require binutils 2.11.2, not prereleases.
6638 (Specific, decstation-*): Canonicalize as mips-dec-*.
6639 (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
6641 (Specific, m68k-altos): Removed reference to README.altos, deleted.
6642 (Specific, mips-*): Reword MIPS C compiler requirements.
6643 (Specific, powerpc*-*-*): New, mention --with-cpu once.
6644 (Specific, sunv5): Removed, obsolete.
6646 2001-07-05 Nathan Sidwell <nathan@codesourcery.com>
6648 * dwarf2out.c (output_loc_list): Use an all ones mask for
6649 .text asm output and don't rely on long long
6650 literals. Reformat some long lines.
6652 2001-07-05 Andreas Jaeger <aj@suse.de>
6654 * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
6657 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
6659 * dwarf2out.c (dwarf2out_define): Update comment.
6660 (dwarf2out_undef): Ditto.
6661 (dwarf2out_start_source_file): Ditto.
6662 (dwarf2out_end_source_file): Ditto.
6663 (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
6664 since we never call the start/end debug hook for the primary file.
6666 2001-07-04 Kazu Hirata <kazu@hxi.com>
6668 * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
6671 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
6673 * cppinit.c (remove_dup_dirs): Inform if a system include
6674 directory is being reordered.
6675 * doc/invoke.texi (Directory Options): GCC warns if you hide a
6677 * doc/cpp.texi (Search Paths): Likewise.
6678 * doc/gcc.texi (Interoperation): Remove information about
6681 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
6683 * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
6684 (VARRAY_TOP_CHAR_PTR): Likewise.
6686 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6688 * gcc.c (process_command): Don't assign elements of a const char*.
6690 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6692 * emit-rtl.c (change_address): Don't abort if invalid address while
6693 reload is in progress.
6695 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
6697 * c-lex.c (cb_file_change): Pass line number to
6698 debug_start_source_file.
6699 (cb_undefine): Pass correct line number to debug_undef.
6701 * toplev.c (debug_start_source_file): Add line number to
6702 parameters. Pass it along to dwarf2out_start_source_file.
6703 (decode_g_option): Stop resetting debug level back to normal when
6704 we change debug formats, unless the current level is
6705 none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
6708 * toplev.h (debug_start_source_file): Add line number to
6711 * dwarf2out.h (dwarf2out_start_source_file): Add line number to
6714 * dwarf2out.c (dwarf2out_start_source_file): Add line number to
6716 Output debug_macinfo data for starting file if requested.
6717 (dwarf2out_end_source_file): Output debug_macinfo data for ending
6719 (dwarf2out_define): Output debug_macinfo data for defining a macro
6721 (dwarf2out_undef): Output debug_macinfo data for undefining a
6723 (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
6724 (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
6725 (macinfo_section_label): New. DWARF2 macro info section label.
6726 (dwarf2out_init): If we want macro info, output the start label
6728 (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
6729 attribute to the compilation unit die pointing to the macro info.
6731 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
6733 * dwarf2out.c (new_loc_list): Move to inside #ifdef
6734 DWARF2_DEBUGGING_INFO.
6735 (add_loc_descr_to_loc_list): Ditto.
6736 (output_loc_list): Ditto.
6737 Also, fix thinko in curr not being initialized.
6738 (gen_internal_sym): Ditto.
6740 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6742 * emit-rtl.c (replace_equiv_address): New function.
6743 * expr.h (replace_equiv_address): New declaration.
6744 * explow.c (validize_mem): Call it instead of change_address and
6745 also call if -fforce-addr and address is constant.
6746 * expr.c: Replace more calls to change_address with adjust_address
6747 and/or replace_equiv_address or to validize_mem.
6748 * function.c, regmove.c, config/alpha/alpha.c: Likewise.
6749 * config/arm/arm.md, config/clipper/clipper.md: Likewise.
6750 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
6751 * config/i370/i370.md, config/i860/i860.md: Likewise.
6752 * config/i960/i960.md, config/mips/mips.c: Likewise.
6753 * config/mips/mips.md, config/pa/pa.md: Likewise.
6754 * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
6755 * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
6757 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6759 * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
6761 * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
6764 2001-07-04 Joseph S. Myers <jsm28@cam.ac.uk>
6766 * doc/include: New directory.
6767 * doc/fdl.texi: Move to doc/include/fdl.texi.
6768 * doc/texinfo.tex: Move to doc/include/texinfo.tex.
6769 * doc/include/funding.texi, doc/include/gpl.texi: New files.
6770 * doc/gcc.texi: Use funding.texi and gpl.texi.
6771 * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
6772 $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
6773 Update dependencies and use -I $(docdir)/include.
6775 2001-07-04 Anthony Green <green@redhat.com>
6777 * config/v850/t-v850 (v850-c.o): Add missing dependencies.
6779 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6781 * doc/install.texi (sparc64-*-*): Remove garbage.
6783 Wed Jul 4 09:07:44 2001 Jan van Male <jan.vanmale@fenk.wau.nl>
6785 * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
6786 Fix typo in last change to use adjust_address.
6788 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6790 * doc/install.texi (Specific): Update information for *-*-solaris*.
6792 Tue Jul 3 22:33:15 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6794 * explow.c (plus_constant_wide): Reinitialize Y for restart.
6796 2001-07-03 Stan Shebs <shebs@apple.com>
6798 * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
6799 case for flag_no_mach_text_sections.
6800 (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
6801 * config/darwin.c (flag_no_mach_text_sections): Remove.
6802 * config/darwin-protos.h (darwin_init_pragma): Remove decl.
6804 Tue Jul 3 15:35:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6806 * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
6807 and avoid checking for constant as first operand.
6808 * recog.c (find_constant_term_loc): No longer static.
6809 (adj_offettable_operand): Delete.
6810 * rtl.h (adj_offsettable_operand): Delete declaration.
6811 (find_constant_term): Add declaration.
6812 * caller-save.c: Replace calls to adj_offsettable_operand with calls
6814 * config/arm/arm.c, config/c4x/c4x.c: Likewise.
6815 * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
6816 * config/i386/i386.c, config/i386/i386.md: Likewise.
6817 * config/i860/i860.c, config/i960/i960.c: Likewise.
6818 * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
6819 * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
6820 * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
6821 * config/mips/mips.c, config/mips/mips.md: Likewise.
6822 * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
6823 * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
6824 * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
6825 * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
6826 * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
6827 * config/ns32k/ns32k.md: Likewise.
6829 2001-07-03 Zack Weinberg <zackw@stanford.edu>
6831 * rtl.c (copy_rtx): Handle 'T' format letter.
6832 * gensupport.c (collect_insn_data): Likewise.
6833 * print-rtl.c (print_rtx): Print 'T' slots like 's'.
6835 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
6837 * doc/invoke.texi (Directory Options): Specifiy range for <N> in
6838 -B option. Use 'dir' not 'foo' as example directory name.
6840 2001-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6842 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6843 Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
6845 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
6847 * doc/cppinternals.texi: Improve formatting and logical markup.
6849 2001-07-03 Andreas Jaeger <aj@suse.de>
6851 * Makefile.in (insn-recog.o): Add dependency on reload.h.
6853 * genrecog.c (write_header): Include reload.h for prototypes in
6856 2001-07-03 Neil Booth <neil@daikokuya.demon.co.uk>
6859 * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
6860 VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
6861 * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
6862 i386_pe_valid_type_attribute_p): Add.
6863 * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
6864 * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
6866 Mon Jul 2 21:52:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6868 * explow.c (plus_constant_wide, case LO_SUM): New case.
6869 (plus_constant_for_output_wide): Delete.
6870 * rtl.h (plus_constant_for_output): Delete.
6871 * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
6872 instead of plus_constant_for_output.
6873 * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
6874 * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
6875 * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
6876 * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
6877 * config/sparc/sparc.md: Likewise.
6878 Convert some change_address calls to adjust_address.
6880 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
6882 * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
6883 doc/rtl.texi, doc/tm.texi: Improve formatting. Improve
6884 documentation of -std and -Wwrite-strings.
6886 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
6888 * cse.c (canon_hash): Don't register registers in very small
6889 register classes, as extending their lifetime might cause
6892 Mon Jul 2 23:14:00 CEST 2001 Jan Hubicka <jh@suse.cz>
6894 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
6896 * flow.c (forwarder_block_p): Fix for fallthru blocks.
6897 (try_redirect_by_replacing_jump): Update properly the count
6898 and frequency information.
6900 Mon Jul 2 14:20:13 2001 Jeffrey A Law (law@cygnus.com)
6902 * toplev.c (dump_file_index): Move SSA dumps just after first
6904 (dump_file): Corresponding changes.
6905 (rest_of_compilation): Move SSA path to just after the first
6907 * doc/gcc.texi (Passes): Update due to movement of SSA path.
6908 * doc/invoke.texi: Update dump file #s as they were completely
6909 out of date with reality.
6911 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
6913 * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
6915 * expr.c (emit_move_insn_1): Deal with non-default
6918 * expr.c (emit_single_push_insn): Fix warning.
6920 2001-07-02 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6922 * expr.c (emit_move_insn_1): Avoid modifying
6923 cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
6925 Mon Jul 2 15:33:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6927 * emit-rtl.c (adjust_address): New function.
6928 * expr.h (adjust_address): Add declaration.
6929 * builtins.c: Replace some calls to change_address with calls to it
6931 * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
6932 * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
6933 * config/arm/arm.c, config/convex/convex.c: Likewise.
6934 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
6935 * config/i386/i386.c, config/i386/i386.md: Likewise.
6936 * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
6937 * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
6938 * config/m88k/m88k.c, config/mips/mips.md: Likewise.
6939 * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
6940 * config/sh/sh.c, config/sparc/sparc.md: Likewise.
6942 2001-07-02 Jim Wilson <wilson@redhat.com>
6944 * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
6946 2001-07-02 Steve Ellcey <sje@cup.hp.com>
6948 * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
6949 * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
6951 2001-07-02 Zack Weinberg <zackw@stanford.edu>
6953 * cppinit.c (lang_defaults): New table.
6954 (set_lang): Just read from lang_defaults into the live options
6957 2001-07-02 Zack Weinberg <zackw@stanford.edu>
6959 * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
6960 * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
6961 * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
6963 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6965 * doc/install.texi: Various spelling and markup fixes.
6966 (Installing GCC): Component specific installation instructions are
6969 Warn about removing old install dir in the presence of shared libs.
6970 (Configuration): Invoke with options target to match configure
6972 Consistently refer to gas, gld pathnames.
6973 Invert --enable-multilib documentation.
6974 Remove references to old compiler versions.
6976 Mon Jul 2 12:50:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6978 * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
6980 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6982 * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
6984 (Specific, mips*-sgi-irix5): Note IDO download.
6985 Reworded MIPS C hints.
6986 Use GNU as instead of GAS.
6988 Removed SGI Freeware reference, IRIX 6 only.
6989 (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
6990 Note N64 library requirement/workaround.
6992 Complete list of structure passing bug victims.
6994 2001-07-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6996 * doc/install.texi: Remove CVS Id.
6998 2001-07-02 Andreas Jaeger <aj@suse.de>
7000 * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
7001 (find_inherently_necessary): Remove unused variable.
7003 2001-07-02 Nathan Sidwell <nathan@codesourcery.com>
7005 * c-common.h (TDI_inlined): New ast dump phase.
7006 (dump_flag_name): New function.
7007 * c-dump.c (dump_files): Add inlined phase.
7008 (dump_flag_name): Define.
7009 * doc/invoke.texi (-fdump-ast-inlined): Document.
7011 Mon Jul 2 06:29:36 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7013 * stor-layout.c (layout_decl): Revert change to handling of alignment
7016 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7018 * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
7021 2001-07-01 Geoffrey Keating <geoffk@redhat.com>
7023 * doc/tm.texi (FUNCTION_ARG): Document that the last call
7026 2001-07-01 Nathan Sidwell <nathan@codesourcery.com>
7028 * tlink.c (recompile_files): Remove COMPILER_PATH and
7029 LIBRARY_PATH from the environment.
7031 2001-07-01 Zack Weinberg <zackw@stanford.edu>
7033 * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
7034 RID_LAST_PQ. Move RID_FIRST_PQ down with the other FIRST/LAST
7036 (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
7038 * c-parse.in (OBJC_STRING): Kill.
7039 (objc_string): Decompose to [objc_string] '@' STRING.
7040 (reswords): Take the leading '@' off all the Objective C keywords.
7041 (objc_rid_sans_at): Kill.
7042 (init_reswords): Don't initialize it.
7043 (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
7044 (_yylex): Kill reconsider label. Look ahead one token after
7045 an '@'; if we get an identifier, check whether it's an
7046 Objective C @-keyword. If so, return the keyword. Otherwise,
7047 put back the token and return the '@' as a terminal.
7049 * cpplib.c (lex_macro_node): Remove unnecessary check for
7050 leading '@' on identifier. Clarify control flow and commentary.
7052 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7054 * cse.c (new_label_ref): Variable deleted.
7055 (insert): Remove set of new_label_ref.
7056 (check_for_label_ref): New function.
7057 (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
7059 See ChangeLog.5 for earlier changes.