1 Thu Aug 30 16:22:41 2001 J"orn Rennecke <amylaar@redhat.com>
3 * config.gcc (h8300-*-elf*): New case.
4 * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
5 (SUBTARGET_CPP_SPEC): Define.
7 (SUBTARGET_EXTRA_SPECS): Define.
8 * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
9 * config/h8300/elf.h, config/h8300/t-elf: Likewise.
11 Thu Aug 30 18:50:37 2001 J"orn Rennecke <amylaar@redhat.com>
13 * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
14 (LIB2FUNCS_EXTRA): Define.
15 config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
16 config/h8300/fixunssfsi.c: New file.
18 2001-08-30 Kazu Hirata <kazu@hxi.com>
20 * config/h8300/h8300.md (zero_extendqihi2): Changes to
21 define_expand to accomodate target-specific attributes.
22 (anonymous zero_extendqihi2 patterns): New.
24 Thu Aug 30 18:10:56 2001 J"orn Rennecke <amylaar@redhat.com>
26 * h8300.md (*andorhi3): New pattern.
28 Thu Aug 30 16:00:31 2001 J"orn Rennecke <amylaar@redhat.com>
30 * h8300.c (dosize): Fix test for "sub".
32 Thu Aug 30 10:21:43 2001 J"orn Rennecke <amylaar@redhat.com>
34 * c-typeck.c (pointer_diff): Try to eliminate common term before
37 2001-08-29 Geoffrey Keating <geoffk@redhat.com>
39 * reload1.c (move2add_note_store): Correct typo checking for
42 2001-08-29 Andrew MacLeod <amacleod@redhat.com>
44 * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
45 note should not be considered outside the libcall block.
47 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
49 * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
51 2001-08-29 Kazu Hirata <kazu@hxi.com>
53 * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
55 2001-08-29 Kazu Hirata <kazu@hxi.com>
57 * config/h8300/h8300-protos.h: Add a prototype for
59 * config/h8300/h8300.c (emit_logical_op): New.
60 * config/h8300/h8300.md (andhi3): Use emit_logical_op.
67 2001-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
69 * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
70 comparison with rtx INTVAL.
71 (pa_output_function_prologue): Don't mix signed and unsigned in `?'
73 * pa.h (FUNCTION_ARG_SIZE): Likewise.
75 2001-08-29 Kazu Hirata <kazu@hxi.com>
77 * config/h8300/lib1funcs.asm: Update the copyright. Fix
80 2001-08-29 Kazu Hirata <kazu@hxi.com>
82 * config/h8300/h8300.md (anonymous movhi pattern): Don't move
83 (reg n) to (mem (pre_dec (reg n))
84 (anonymous movsi pattern): Likewise.
86 2001-08-29 Kazu Hirata <kazu@hxi.com>
88 * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
90 2001-08-29 Kazu Hirata <kazu@hxi.com>
92 * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
93 several special constants.
95 2001-08-29 Kazu Hirata <kazu@hxi.com>
97 * config/h8300/lib1funcs.asm: Fix comment typos.
99 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
101 * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
102 Fix format specifier warnings.
104 * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
105 inet_makeaddr, semctl): Prototype.
107 * mips.c (compute_frame_size): Fix signed/unsigned warnings.
108 (save_restore_insns): Use base_offset, not gp_offset.
110 * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
111 (ASM_OUTPUT_BYTE): Fix format specifier warning.
113 2001-08-29 Richard Henderson <rth@redhat.com>
115 * bb-reorder.c (function_tail_eff_head): New.
116 (record_effective_endpoints): Set it.
117 (fixup_reorder_chain): Use it.
119 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
121 * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
123 2001-08-28 Dale Johannesen <dalej@apple.com>
125 * config/darwin.c (machopic_function_base_name): Add const
126 qualifier to a string.
127 (darwin_encode_section_info): Ditto.
129 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
131 * tree.c (default_valid_attribute_p): Don't use PARAMS on a
134 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
136 * df.h (struct df): Add rts_order variable.
138 * df.c (df_visit_next_rts): New function.
139 (df_visit_next): Renamed to df_visit_next_rc
140 (df_analyse_1): Allocate/compute/free rts_order as well.
141 (df_rd_global_compute): Use df_visit_next_rc instead of
143 (df_ru_global_compute): Use df_visit_next_rts instead of
146 * flow.c (flow_reverse_top_sort_order_compute): New function.
148 * basic-block.h: Add prototype.
150 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
152 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
153 blocks, the BB_REACHABLE is now set, rather than aux being
154 non-NULL. Update the test to reflect this.
156 2001-08-28 Eric Christopher <echristo@redhat.com>
158 * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
159 config/mips/crti.asm: Ditto.
161 2001-08-28 Eric Christopher <echristo@redhat.com>
162 Richard Henderson <rth@redhat.com>
164 * c-pragma.h (add_weak): Move prototype from here...
165 * output.h (add_weak): ... to here.
166 * varasm.c (add_weak): Fix typo.
167 * config/mips/crti.asm: New file.
168 * config/mips/crtn.asm: Ditto.
169 * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
170 (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
171 (INVOKE__main): Ditto.
172 (INIT_SECTION_ASM_OP): New.
173 (FINI_SECTION_ASM_OP): Ditto.
174 (STARTFILE_SPEC): Add crti.
175 (ENDFILE_SPEC): Add crtn.
176 * config/mips/elf64.h: Same.
177 * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
179 * config/mips/vxworks.h: Ditto.
180 * config/mips/t-elf: Support crti and crtn.
182 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
184 * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
187 2001-08-28 Richard Henderson <rth@redhat.com>
189 * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
190 (one_cmplbi2 splitter): Remove redundant test.
192 2001-08-28 Dale Johannesen <dalej@apple.com>
194 * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
196 2001-08-28 Danny Smith <dannysmith@users.sourceforge.net>
198 * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
200 2001-08-28 Stan Shebs <shebs@apple.com>
202 * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
203 (UNALIGNED_SHORT_ASM_OP): Define.
204 (UNALIGNED_INT_ASM_OP): Define.
206 2001-08-28 Will Cohen <wcohen@redhat.com>
208 * config/rs6000/rs6000.md (store_multiple): Correct RTL
209 generation for first set.
211 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
213 * flow.c (redirect_edge_succ_nodup): Return new edge.
214 (try_simplify_condjump): Use new edge.
215 * basic-block.h (redirect_edge_succ_nodup): Update prototype.
217 * cse.c (cse_basic_block): Skip note instructions.
219 2001-08-27 Richard Henderson <rth@redhat.com>
221 * combine.c (combine_simplify_rtx): Don't reverse condition
222 if there is no reverse for the condition.
223 (simplify_comparison): Don't simplify subregs from INT to FP.
225 * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
226 suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
227 sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
228 bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
229 bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
230 bunle_rev, bunlt_rev, bltgt_rev): New patterns.
232 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
234 * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
235 bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
237 (adddi_dilshr32, adddi_dishl32): Only data register can be
238 source for mem destination.
240 * expmed.c (store_bit_field): Ignore adjustment to bitpos
241 and use bitnum to decide about register move.
243 2001-08-27 Richard Henderson <rth@redhat.com>
245 * genattr.c (main): Emit state_t even when not doing scheduling.
247 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
248 Richard Henderson <rth@redhat.com>
250 * gcse.c (reg_first_set, reg_last_set): Replace with ...
251 (reg_avail_info, current_bb): ... these.
252 (oprs_unchanged_p, record_last_reg_set_info): Use them.
253 (compute_hash_table): Likewise.
255 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
257 * flow.c (verify_flow_info): Use checksums to verify edges.
259 2001-08-27 Richard Henderson <rth@redhat.com>
261 * genautomata.c (expand_automata): Always create a description.
263 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
265 * optabs.c (expand_binop): Correctly handle the carry in multiword
266 add/subtract operations.
268 2001-08-27 Fred Fish <fnf@be.com>
270 * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
273 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
275 * reload.c (find_reloads_toplev): Back out this change:
277 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
279 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
280 mem if the address is a mode_dependent_address_p.
282 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
284 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
285 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
286 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
289 * genattr.c (main): New variable num_insn_reservations. Increase
290 it if there is DEFINE_INSN_RESERVATION. Output automaton based
291 pipeline hazard recognizer interface.
293 * genattrtab.h: New file.
295 * genattrtab.c: Include genattrtab.h.
296 (attr_printf, check_attr_test, make_internal_attr,
297 make_numeric_value): Move protypes into genattrtab.h. Define them
299 (num_dfa_decls): New global variable.
300 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
301 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
302 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
303 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
305 * genautomata.c: New file.
307 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
309 * sched-int.h: (curr_state): Add the external definition for
310 automaton pipeline interface.
311 (haifa_insn_data): Add comments for members blockage and units.
313 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
314 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
315 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
316 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
317 TARGET_SCHED_DFA_POST_CYCLE_INSN,
318 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
319 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
321 (TARGET_SCHED): Use the new macros.
323 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
324 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
325 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
326 dfa_bubble): New members in gcc_target.sched.
328 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
329 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
330 (insn_queue): Redefine it as pointer to array.
331 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
333 (max_insn_queue_index_macro_value): New variable.
334 (curr_state, dfa_state_size, ready_try): New varaibles for
336 (ready_element, ready_remove, max_issue): New function prototypes
337 for automaton interface.
338 (choose_ready): New function prototype.
339 (insn_unit, blockage_range): Add comments.
340 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
341 FUNCTION_UNITS_SIZE == 0.
342 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
343 actual_hazard, potential_hazard): Add comments.
344 (insn_cost): Use cost -1 as undefined value. Remove
345 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
347 (ready_element, ready_remove): New functions for automaton
349 (schedule_insn): Add new code for automaton pipeline interface.
350 (queue_to_ready): Add new code for automaton pipeline interface.
351 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
352 (debug_ready_list): Print newline when the queue is empty.
353 (max_issue): New function for automaton pipeline interface.
354 (choose_ready): New function.
355 (schedule_block): Add new code for automaton pipeline interface.
356 Print ready list before scheduling each insn.
357 (sched_init): Add new code for automaton pipeline interface.
358 Initiate insn cost by -1.
359 (sched_finish): Free the current automaton state and finalize
360 automaton pipeline interface.
362 * sched-rgn.c: Include target.h.
363 (init_ready_list, new_ready, debug_dependencies): Add new code for
364 automaton pipeline interface.
366 * sched-vis.c: Include target.h.
367 (get_visual_tbl_length): Add code for automaton interface.
368 (target_units, print_block_visualization): Add comments.
370 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
371 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
372 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
373 (getruntime.o, genautomata.o): New entries.
374 (genattrtab.o): Add new dependency file genattrtab.h.
375 (genattrtab): Add new dependencies. Link it with `libm.a'.
376 (getruntime.o, hashtab.o): New entries for canadian cross.
378 * doc/md.texi: Description of automaton based model.
380 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
382 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
383 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
384 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
385 TARGET_SCHED_DFA_POST_CYCLE_INSN,
386 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
387 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
388 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
390 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
391 MAX_DFA_ISSUE_RATE): New macro descriptions.
393 * doc/contrib.texi: Add dfa based scheduler contribution.
395 * doc/gcc.texi: Add more information about genattrtab.
397 2001-08-27 Diego Novillo <dnovillo@redhat.com>
399 * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
402 2001-08-27 Richard Henderson <rth@redhat.com>
404 * function.c (expand_function_end): Don't init arg_pointer_save_area.
405 (get_arg_pointer_save_area): New. Create an init it here.
406 (fix_lexical_addr): Use it.
407 * function.h: Declare it.
408 * builtins.c (expand_builtin_setjmp_receiver): Use it.
409 * stmt.c (expand_nl_goto_receiver): Use it.
411 2001-08-27 Richard Henderson <rth@redhat.com>
413 * final.c (final_scan_insn): Don't enter APP_ON mode for
416 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
417 alignment for assemble_integer for DW_EH_PE_aligned.
418 * except.c (output_function_exception_table): Likewise.
420 2001-08-26 Andreas Jaeger <aj@suse.de>
422 * c-tree.h: Add prototyp for c_sizeof_nowarn.
424 2001-08-25 Dan Nicolaescu <dann@ics.uci.edu>
426 * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
428 2001-08-27 Alan Modra <amodra@bigpond.net.au>
430 * config/rs6000/rs6000.c (mask_operand): Rewrite without
432 (mask64_operand): Likewise.
433 (rldic_operand): Delete.
434 (includes_lshift64_p): Delete.
435 (includes_rldic_lshift_p): New function.
436 (includes_rldicr_lshift_p): New function.
437 (print_operand): Don't call rldic_operand in case 'W'.
438 * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
439 (includes_lshift64_p): Remove.
440 (includes_rldic_lshift_p): Declare.
441 (includes_rldicr_lshift_p): Declare.
442 * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
443 * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
444 Replace match_operand rldic_operand predicate with
445 const_int_operand. Replace includes_lshift64_p condition with
446 includes_rldic_lshift_p.
447 <ashldi3_internal 64 bit rldicr patterns>: New.
449 2001-08-27 Andreas Jaeger <aj@suse.de>
451 * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
452 * errors.c: Likewise.
454 * dwarf2asm.c: Likewise.
455 * doprint.c (checkit): Likewise.
456 * diagnostic.c: Likewise.
457 * collect2.c: Likewise.
459 * c-semantics.c (build_stmt): Likewise.
460 * c-format.c (status_warning): Likewise.
461 * c-errors.c (pedwarn_c99): Likewise.
462 * builtins.c (validate_arglist): Likewise.
463 * config/pj/pj.c (pj_printf): Likewise.
464 * fix-header.c: Likewise.
466 * gcov.c (fnotice): Likewise.
467 * gensupport.c (message_with_line): Likewise.
468 * mips-tfile.c: Likewise.
469 * protoize.c (notice): Likewise.
470 * read-rtl.c (fatal_with_file_and_line): Likewise.
471 * rtl-error.c: Likewise.
472 * tradcpp.c: Likewise.
474 * cp/tree.c (build_min_nt): Likewise.
475 (build_min): Likewise.
476 * cp/lex.c: Likewise.
477 * cp/errfn.c: Likewise.
478 * cp/rtti.c (create_pseudo_type_info): Likewise.
480 Sun Aug 26 20:25:44 2001 Denis Chertykov <denisc@overta.ru>
482 * df.c (df_uses_record): Return after recording all uses
485 2001-08-26 Daniel Berlin <dan@cgsoftware.com>
487 * df.c (df_insn_modify): Realloc the INSN table here, if
488 necessary, here, too.
490 2001-08-26 Aldy Hernandez <aldyh@redhat.com>
492 * config/mips/mips.c (mips_function_value): Handle complex return
495 2001-08-25 Hans-Peter Nilsson <hp@bitrange.com>
497 * reload1.c (reload): Make all entries in reg_equiv_memory_loc
499 * reload.c (make_memloc): Copy result if it is still
500 reg_equiv_memory_loc[regno] on return.
501 (subst_reloads) [ENABLE_CHECKING]: Check that none of
502 reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
503 reg_equiv_mem are modified by the substitutions.
505 Sat Aug 25 23:07:35 CEST 2001 Jan Hubicka <jh@suse.cz>
507 * predict.c (expensive_function_p): New.
508 * rtl.h (expensive_function_p): Declare.
509 * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
510 (use_fast_prologue_epilogue): New static variable.
511 (expand_prologue): Set it; emit short prologues if unset.
512 (expand_epilogue): Likewise.
514 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
516 * config.gcc: Add stormy16-*-elf case.
517 * config/stormy16/stormy-abi: New file.
518 * config/stormy16/stormy16-lib2.c: New file.
519 * config/stormy16/stormy16-protos.h: New file.
520 * config/stormy16/stormy16.c: New file.
521 * config/stormy16/stormy16.h: New file.
522 * config/stormy16/stormy16.md: New file.
523 * config/stormy16/t-stormy16: New file.
525 Sat Aug 25 15:46:51 CEST 2001 Jan Hubicka <jh@suse.cz>
527 * i386.h (no-accumulate-outgoing-args): Use proper mask.
529 2001-08-24 David Edelsohn <edelsohn@gnu.org>
531 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
532 descriptor members are pointer size, not constant 4.
533 * config/rs6000/rs6000.md (define_splits): Remove more unused
536 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
538 * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
540 2001-08-24 Andreas Jaeger <aj@suse.de>, rkl@connect.org.uk
542 * cp/rtti.c (VPARAMS): Fix parameter.
544 2001-08-24 Zack Weinberg <zackw@panix.com>
546 * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
548 (mode_for_extraction): No need for #ifdefs. Add default-case abort
550 (store_bit_field): Eliminate insv_bitsize variable. Put HAVE_insv
551 in if controlling use of insv.
552 (extract_bit_field): Likewise, for extv and extzv.
554 Fri Aug 24 17:27:46 CEST 2001 Jan Hubicka <jh@suse.cz>
556 * i386.md (movcc peep2): Fix load of 0.
558 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
560 * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
561 *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
563 2001-08-23 Jason Merrill <jason_merrill@redhat.com>
565 * c-pragma.h: Move weak_syms and weak_decls...
566 * varasm.c: ...here. Now static.
567 (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
568 depend on HANDLE_PRAGMA_WEAK.
570 * c-common.c (c_alignof, c_alignof_expr): Move here...
571 * c-typeck.c: ...from here.
572 * c-tree.h, c-common.h: Adjust.
574 2001-08-23 Bernd Schmidt <bernds@redhat.com>
576 * config/ia64/ia64.c (rws_update): If !pred, set write_count
577 instead of incrementing it.
579 * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
580 asm ready, don't try to move them all into the same array element.
582 Thu Aug 23 17:21:43 CEST 2001 Jan Hubicka <jh@suse.cz>
584 * function.c (thread_prologue_and_epilogue_insns): Avoid
585 fallthru flag on edge to exit.
587 * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
589 * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
592 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
594 * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
595 * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
596 * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
599 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
601 * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
602 replace "GNU CC" with "GCC".
604 2001-08-23 Richard Henderson <rth@redhat.com>
606 * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
607 Reorganize. Handle ADDL like GR, add GR_AND_BR. Handle TFmode.
608 (ia64_secondary_reload_class): Need GR between AR/BR and anything.
609 Need GR between FR and not GR_AND_FR.
610 * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
611 * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
612 AR regs before GR regs.
613 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
614 (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
615 (REGISTER_MOVE_COST): Update.
616 (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
618 2001-08-23 Richard Henderson <rth@redhat.com>
620 * regclass.c (init_reg_sets_1): Don't assume cost 2 within
623 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
625 * reload1.c (emit_reload_insns): Don't look for notes
626 on a NULL store_insn.
628 2001-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
630 * sparc.c (uns_small_int): Don't reference a constant >32-bit.
631 (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
632 (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
633 format specifier warnings.
634 (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
636 2001-08-22 David Billinghurst <David.Billinghurst@riotinto.com>
638 * config/i386/i386-protos.h: Correct declaration of
639 i386_pe_asm_named_section.
641 2001-08-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
643 * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
645 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
647 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
649 * cpperror.c (print_location): Don't show _Pragma.
650 * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
651 and file change callback generation here.
652 (stack_include_file): Update use of cpp_push_buffer.
653 * cpphash.h (_cpp_pop_file_buffer): Update prototype.
654 (struct cpp_buffer): Remove type, pfile members.
655 * cppinit.c (cpp_handle_option): Use free_chain.
656 * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
657 (skip_escaped_newlines, get_effective_char, lex_percent): Take
658 a cpp_reader rather than a cpp_buffer.
659 (skip_escaped_newlines, get_effective_char, skip_block_comment,
660 skip_line_comment, parse_string, lex_percent, lex_dot,
661 _cpp_lex_token): Update accordingly.
662 * cpplib.c (_cpp_pop_buffer): Don't do file change callback
664 (cpp_push_buffer): Update prototype.
665 (run_directive): Update use of cpp_push_buffer.
666 (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
667 handle_assertion): Update use of run_directive.
668 * cpplib.h (enum cpp_buffer_type): Remove.
669 (cpp_push_buffer): Update prototype.
670 * fix-header.c (read_scan_file): Update.
672 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
674 * gcc.c (struct prefix_list): Change prefix to const char *.
676 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
678 * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
680 2001-08-22 Jason Merrill <jason_merrill@redhat.com>
682 * explow.c (set_mem_attributes): Avoid returning a bogus alias set
685 * jump.c (squeeze_notes): Take parms by reference. Handle END being
688 * ifcvt.c (dead_or_predicable): Adjust.
689 * loop.c (find_and_verify_loops): Adjust.
690 * stmt.c (expand_end_case): Adjust.
691 * flow.c (merge_blocks_move_successor_nojumps): Adjust. Modify the
692 head and end insn pointers in the basic block, not just local copies.
693 (merge_blocks_move_predecessor_nojumps): Likewise.
695 2001-08-22 Lars Brinkhoff <lars@nocrew.org>
697 * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
698 bitmap.h, builtin-types.def, builtins.c, builtins.def,
699 c-aux-info.c, c-common.c, c-common.def, c-common.h,
700 c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
701 c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
702 c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
703 caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
704 conditions.h, config.gcc, configure.frag, configure.in,
705 conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
706 cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
707 dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
708 doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
709 dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
710 emit-rtl.c, errors.c, errors.h, except.c, except.h,
711 exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
712 fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
713 function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
714 gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
715 gencheck.c, gencodes.c, genconfig.c, genemit.c,
716 genextract.c, genflags.c, gengenrtl.c, genmultilib,
717 genopinit.c, genoutput.c, genpeep.c, genrecog.c,
718 gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
719 ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
720 graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
721 gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
722 gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
723 hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
724 integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
725 libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
726 machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
727 mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
728 mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
729 params.h, predict.c, predict.def, predict.h, prefix.c,
730 prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
731 read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
732 regclass.c, regmove.c, regrename.c, regs.h, reload.c,
733 reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
734 rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
735 sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
736 sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
737 ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
738 stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
739 tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
740 tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
741 unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
742 unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
743 xcoffout.h: replace "GNU CC" with "GCC".
745 2001-08-21 Richard Henderson <rth@redhat.com>
747 * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
748 (final_scan_insn): Consider jump tables data even if we have no
749 independant text section if !JUMP_TABLES_IN_TEXT_SECTION. Use
751 * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
752 (ASM_OUTPUT_CASE_END): Remove.
753 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
754 * config/ia64/ia64.md (tablejump): Decode pc-relative references.
755 * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
757 2001-08-21 Richard Henderson <rth@redhat.com>
759 * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
760 at barrier insns. Emit stop bits before barriers.
762 * flow.c (flow_find_cross_jump): Don't consider unconditional
763 return insns for commoning.
765 * final.c (compute_alignments): Fix typo.
767 * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
768 (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
769 (store_bit_field): Use mode_for_extraction more places.
770 (extract_bit_field): Likewise.
772 2001-08-21 Zack Weinberg <zackw@panix.com>
774 * caller-save.c: Don't include insn-codes.h.
775 (reg_save_code, reg_restore_code): Make arrays of int.
776 All uses updated to match.
777 (insert_save, insert_restore): No need to initialize "code"
778 variable upon declaration.
779 * Makefile.in: update dependencies; fix typo in clean rule.
781 2001-08-21 Richard Henderson <rth@redhat.com>
783 * ifcvt.c (find_if_block): Allow join_bb as EXIT.
784 (merge_if_block): Handle fallout from same.
786 2001-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
788 * builtins.c (type_to_class): Fix typo in last change.
790 2001-08-21 Richard Henderson <rth@redhat.com>
792 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
793 ia64_asm_output_label.
795 * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
796 copy of gp while the real gp register contains garbage.
798 2001-08-21 Zack Weinberg <zackw@panix.com>
800 * expmed.c (mode_for_extraction): New function.
801 (store_bit_field, extract_bit_field): Use it.
802 * expr.h: Prototype it and provide an enum for its first argument.
804 * combine.c, function.c, recog.c: Don't include insn-codes.h.
805 Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
806 and digging through the insn_data tables.
807 * Makefile.in: Update dependencies.
809 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
811 * cppfiles.c (stack_include_file): line-map.c now handles include
813 (handle_missing_handler): Similarly.
814 (_cpp_execute_include): Similarly.
815 (_cpp_pop_file_buffer): Similarly.
816 * cpphash.h (struct cpp_reader): Remove system_include_depth,
817 buffer_stack_depth and include_depth.
818 * cpplib.c (do_include_common): line-map.c now handles include depth.
819 (cpp_push_buffer): Similarly.
820 (_cpp_pop_buffer): Similarly.
821 * cppmacro.c (builtin_macro): Update.
822 * line-map.c (init_line_maps): Set depth.
823 (add_line_map): Increment "used" earlier. Update and use the
825 (trace_include): Use the include depth.
826 * line-map.h (struct line_maps): New member depth.
828 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
830 * cppfiles.c (stack_include_file): Don't handle -H here.
831 * cppinit.c (cpp_start_read): Set include tracing after
832 cpp_post_options and after stacking the main file.
833 * line-map.c (trace_include): New.
834 (init_line_maps, add_line_map): Update.
835 * line-map.h (struct line_maps): New member trace_includes.
837 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
839 * cppfiles.c (stack_include_file): Harmonize system headerness tests.
840 * cppfiles.c (stack_include_file): Only stack a file if there
841 is something to do. Return a boolean indicating whether a
842 buffer was stacked or not.
843 (_cpp_execute_include): Similarly.
844 (_cpp_read_file): Similarly.
845 * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
847 2001-08-21 Sam Steingold <sds@gnu.org>
849 * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
850 (RECACHE): keep obufp_before_macroname up to date
852 2001-08-21 Zack Weinberg <zackw@panix.com>
854 * stmt.c: Don't include insn-codes.h.
855 (expand_end_case): Machine specific logic moved to expr.c.
856 No need to worry about __builtin_classify_type.
857 (check_for_full_enumeration_handling, emit_case_nodes):
860 * builtins.o (expand_builtin_classify_type): Split up so code
861 can be shared with fold_builtin_classify_type.
862 (type_to_class, fold_builtin_classify_type): New functions.
863 (fold_builtins): Handle __builtin_classify_type.
865 * expr.c (do_tablejump): Now static.
866 (case_values_threshold, try_casesi, try_tablejump): New;
867 code mostly from stmt.c (expand_end_case).
868 (expr.h): Update prototypes.
870 * Makefile.in (stmt.o): Update dependencies.
872 2001-08-21 Will Cohen <wcohen@redhat.com>
874 * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
875 declaration of variable i.
876 * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
877 declaration of variable i.
879 2001-08-21 Richard Henderson <rth@redhat.com>
881 * crtstuff.c: Fix thinko last change. Move list tails to start
882 of CRT_END section. Tidy ifdefs.
883 (__EH_FRAME_BEGIN__): Always static for ELF.
884 (__do_global_ctors_1): Rename from __frame_dummy.
885 * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
886 name change; don't hide __EH_FRAME_BEGIN__.
888 2001-08-21 Richard Henderson <rth@redhat.com>
890 * gdbinit.in: Move break on exit after break on fancy_abort.
892 * config/ia64/ia64.c (ia64_return_in_memory): True for variable
895 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
897 * cpphash.h (_cpp_push_next_buffer): New.
898 * cppinit.c (do_includes): Remove.
899 (push_include, free_chain, _cpp_push_next_buffer): New.
900 (cpp_start_read): Use them to rework command line option handling.
901 (cpp_handle_option): Combine handling of -include and -imacros.
902 * cpplex.c (_cpp_lex_token): Push a new -include buffer if
903 appropriate. Always insert missing \n at EOF.
904 * cpplib.c (start_directive): Get the directive position right.
905 * cppmain.c (cb_file_change): Always print the first line, unless
908 2001-08-20 Andreas Jaeger <aj@suse.de>
910 * profile.c (compute_branch_probabilities): Remove extra new-line
912 * flow.c (verify_flow_info): Likewise.
914 2001-08-20 Diego Novillo <dnovillo@redhat.com>
916 * basic-block.h (basic_block): Add new field 'flags'.
917 (BB_REACHABLE): Define.
918 (expunge_block): Declare.
919 * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
920 (EXIT_BLOCK_PTR): Ditto.
921 (expunge_block): Remove static declaration.
922 (cleanup_cfg): Clear bb->aux on every basic block.
923 (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
924 computing reachability.
925 (delete_unreachable_blocks): Delete block b if b->flags has
928 2001-08-20 Diego Novillo <dnovillo@redhat.com>
930 * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
932 2001-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
934 * sparc.c (sparc_variable_issue): Fix typo in last change.
936 2001-08-20 Richard Henderson <rth@redhat.com>
938 * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
940 2001-08-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
942 * pa.h (RETURN_IN_MEMORY): Improve comment.
944 2001-08-20 Janis Johnson <janis187@us.ibm.com>
946 * doc/invoke.texi (Profiling options): Clarify the interactions
947 between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
949 2001-08-20 Jeffrey Oldham <oldham@codesourcery.com>
951 * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
954 2001-08-20 Matt Kraai <kraai@alumni.carnegiemellon.edu>
956 * gcc.c (make_relative_prefix): Allocate a sufficiently large
959 2001-08-20 Richard Henderson <rth@redhat.com>
961 * final.c (end_final): Fix typo last change.
963 2001-08-20 Neil Booth <neil@daikokuya.demon.co.uk>
965 * cppinit.c (init_standard_includes): The returned buffer
966 is already malloc-ed.
967 * gcc.c (add_prefix): Similarly.
968 * prefix.c (translate_name): Update to support clear buffer
970 (update_path): Similarly. Be sure to free any newly allocated
971 key. UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
973 * prefix.h (update_path): Update prototype and document.
974 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
975 up and update to new buffer ownership rules.
976 * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
978 Mon Aug 20 01:44:50 CEST 2001 Jan Hubicka <jh@suse.cz>
980 * final.c (compute_alignments): New function.
981 (init_insn_lengths): Do not care label_align.
982 (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
983 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
984 (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
985 (shorted_branches): Realloc label_align array; do
986 not call init_insn_lengths; Do not care about loop alignments.
987 * output.h (compute_alignments): Declare.
988 * toplev.c (rest_of_compilation): Call compute_alignments.
989 * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
991 * predict.c (block_info_def): Add npredecesors, remove nvisited;
992 change visited to tovisit.
993 (propagate_freq): Use faster traversing algorithm.
994 (estimate_loops_at_level, estimate_bb_frequencies): Change visited
995 to tovisit; reverse meaning.
997 * predict.c (struct block_info_def): Remove nvisited.
998 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
999 (estimate_bb_frequencies): Call mark_dfs_back_edges.
1001 2001-08-19 Geoffrey Keating <geoffk@redhat.com>
1003 * doc/invoke.texi (MIPS Options): Document -mfused-madd.
1004 * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
1005 (TARGET_FUSED_MADD): New.
1006 (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
1007 * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
1008 the multiply-add instructions.
1010 2001-08-19 Richard Henderson <rth@redhat.com>
1012 * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
1013 is aligned to pointer size.
1015 2001-08-19 Richard Henderson <rth@redhat.com>
1017 * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
1018 display markers during final schedule.
1020 2001-08-19 Richard Henderson <rth@redhat.com>
1022 * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
1024 2001-08-19 Richard Henderson <rth@redhat.com>
1026 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
1028 (ASM_NAME_TO_STRING): Remove.
1029 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
1030 in the same string. Remove support for expressions.
1032 2001-08-19 Richard Henderson <rth@redhat.com>
1034 * config/i386/i386.md (tablejump): Make an expander; handle
1035 pic relative addressing here.
1036 (tablejump_1): Rename from tablejump_pic.
1039 2001-08-19 Richard Henderson <rth@redhat.com>
1041 * regclass.c (fix_register): Fix typo.
1043 2001-08-18 Richard Henderson <rth@redhat.com>
1045 * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
1046 (struct _Unwind_Context): Expand br_loc to hold it.
1047 (uw_frame_state_for): Handle leaf functions better.
1048 (uw_update_reg_address): Update for br_loc change.
1050 2001-08-18 Richard Henderson <rth@redhat.com>
1052 * crtstuff.c: Move list heads before code that uses them.
1053 (__JCR_LIST__): Remove initial null.
1054 (frame_dummy, __frame_dummy): Do java registration here ...
1055 (__do_global_ctors_aux): ... not here.
1057 * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
1058 (__do_global_dtors_aux): Update to match.
1059 (__JCR_LIST__, __do_jv_register_classes): New.
1061 * config/ia64/crtend.asm (__JCR_END__): New.
1062 (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
1063 instead of an indirect LTOFF22 reloc.
1065 2001-08-18 Richard Henderson <rth@redhat.com>
1067 * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
1068 * regclass.c (init_reg_sets_1): Fix typo.
1069 * config/ia64/ia64.c (ar_pfs_reg_operand): New.
1070 (ia64_expand_call): Pass ar.pfs to sibcall expanders.
1071 (ia64_compute_frame_size): Make ar.unat live when in use.
1072 (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
1073 for ar.pfs; remove ar.unat handling.
1074 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
1076 (PREDICATE_CODES): Add ar_pfs_reg_operand.
1077 * config/ia64/ia64-protos.h: Update decls.
1078 * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
1079 (sibcall_pic): Likewise.
1081 2001-08-18 Richard Henderson <rth@redhat.com>
1083 * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
1084 pred_rel_mutex when searching for insn_group_barrier.
1085 * config/ia64/ia64.md (cycle_display): Combine the expander
1088 * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
1089 bit before asm as needed.
1091 2001-08-18 Richard Henderson <rth@redhat.com>
1093 * timevar.def (TV_MACH_DEP): New.
1094 * toplev.c (rest_of_compilation): Use it.
1095 * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
1097 2001-08-18 Zack Weinberg <zackw@panix.com>
1099 * unwind-dw2.c (execute_stack_op): Add default aborts to
1100 the inner switches to prevent warnings.
1102 2001-08-18 Richard Henderson <rth@redhat.com>
1104 * timevar.h (struct timevar_time_def): Change element type to float.
1105 (ticks_to_msec, clocks_to_msec): Likewise.
1106 (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
1107 (get_time): Likewise.
1108 (timevar_print): Adjust zero check and printing to match.
1110 2001-08-18 Zack Weinberg <zackw@panix.com>
1112 * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
1113 doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
1114 Eliminate overfull or underfull hboxes.
1116 2001-08-18 Zack Weinberg <zackw@panix.com>
1118 * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
1120 2001-08-18 Zack Weinberg <zackw@panix.com>
1122 * haifa-sched.c: Convert to target hooks. Macros replaced
1123 are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
1124 MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
1125 MD_SCHED_FINISH, and HAVE_cycle_display.
1126 * target-def.h (TARGET_SCHED_ADJUST_COST,
1127 TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
1128 TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
1129 TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
1130 TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
1131 New hook #defines to be overridden.
1132 (TARGET_SCHED): Bring them all together.
1133 (TARGET_INITIALIZER): Update.
1134 * target.h: Don't forward declare struct rtx_def. Use 'rtx'
1135 instead of 'struct rtx_def *' throughout.
1136 (struct sched): New set of hooks for the scheduler.
1137 * Makefile.in (haifa-sched.o): Depend on target.h.
1138 * doc/tm.texi: Document the new scheduler hooks, together in
1139 their own section, instead of scattered around.
1140 Fix a bunch of underfull/overfull hboxes.
1142 * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
1143 ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
1144 sparc.h: Don't define any of the old scheduler macros.
1146 * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
1147 ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
1148 sparc.c: Create hook functions from code extracted from
1149 corresponding target header, or make existing hooks static, as
1150 appropriate. Set the appropriate entries in targetm.
1152 * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
1153 i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
1154 rs6000-protos.h, s390-protos.h, sparc-protos.h:
1155 Remove prototypes for functions which are now static.
1157 * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
1158 related gunk; the Haifa scheduler is now the only choice.
1160 2001-08-18 Zack Weinberg <zackw@panix.com>
1162 * optabs.h (OTI_flodiv, flodiv_optab): Kill.
1163 * genopinit.c: Put floating point divide insns in sdiv_optab.
1164 * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
1165 * config/gofast.h, config/c4x/c4x.h,
1166 config/ia64/hpux_longdouble.h, config/mips/mips.h,
1167 config/pa/long_double.h, config/rs6000/sysv4.h,
1168 config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
1169 * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
1170 (init_optabs): Use init_optabv for overflow-trapping optabs.
1171 Don't init flodiv_optab. Give mov_optab, movstrict_optab, and
1172 cmp_optab RTX codes so have_insn_for can find them.
1174 * optabs.c (expand_simple_binop, expand_simple_unop,
1175 have_insn_for, gen_sub3_insn): New interfaces.
1176 * expr.h: Prototype new functions.
1177 (enum optab_methods): Move here from optabs.h.
1179 * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
1180 loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
1181 Use new functions instead of working directly with optabs.
1182 * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
1183 unroll.c: Don't include optabs.h.
1184 * caller-save.c, combine.c, function.c, stmt.c: Just include
1185 insn-codes.h, not optabs.h.
1186 * Makefile.in: Update dependencies.
1188 * combine.c (make_compound_operation, simplify_comparison):
1189 Fix typos testing for this or that instruction.
1191 2001-08-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1193 * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
1194 generating libgcc.a.
1196 2001-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1198 * except.c (TYPE_HASH): Delete.
1200 * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
1203 * tree.c (TYPE_HASH): Delete.
1205 * tree.h (TYPE_HASH): Define.
1207 2001-08-18 Graham Stott <grahams@redhat.com>
1209 * config/mips/mips.md (adddi3_internal_2+1): Remove contraints from
1211 (adddi3_internal_2+2): Likewise.
1212 (eh_set_lr_di+1): Likewise.
1214 2001-08-17 Richard Henderson <rth@redhat.com>
1216 * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
1217 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
1218 * dwarf2asm.c: ... here.
1219 * dwarfout.c: Remove them.
1221 * varasm.c (assemble_integer): Add align parameter.
1222 (assemble_real, output_constant, output_constructor): Likewise.
1223 * output.h: Update decls.
1224 * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
1225 config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
1226 config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
1227 config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
1228 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
1231 * final.c (end_final): Abort profile block generation if we
1232 havn't layed it out properly.
1233 * output.h (assemble_eh_integer): Remove stale decl.
1234 * varasm.c (assemble_zeros): Tidy; use assemble_integer.
1236 (assemble_integer): Handle unaligned data.
1237 (assemble_real): Abort on unaligned data.
1238 (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
1240 (default_dtor_section_asm_out_destructor): Use assemble_align.
1241 (default_named_section_asm_out_constructor): Likewise.
1242 (default_ctor_section_asm_out_constructor): Likewise.
1243 * config/darwin.c (machopic_asm_out_constructor): Likewise.
1244 (machopic_asm_out_destructor): Likewise.
1245 * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
1246 (nextstep_asm_out_destructor): Likewise.
1247 * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
1248 (vms_asm_out_destructor): Likewise.
1250 2001-08-17 Richard Henderson <rth@redhat.com>
1252 * config/mips/iris6.h (TARGET_IRIX6): New.
1253 (current_section_name, current_section_flags): New.
1254 (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
1255 (MAX_OFILE_ALIGNMENT): New.
1256 (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
1257 * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
1258 (copy_file_data): Split out from
1259 (mips_asm_file_end): ... here.
1260 (mips_asm_file_start): Remove extra .section directive. Use
1261 tmpfile instead of mips_make_temp_file.
1262 (mips_unique_section): Use const char * as needed for warnings.
1263 (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
1264 re-add align parameter.
1265 (iris6_asm_named_section): New.
1266 (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
1267 (iris6_asm_output_align, iris6_section_align_1): New.
1268 (iris6_asm_file_start, iris6_asm_file_end): New.
1269 * config/mips/mips-protos.h: Update decls.
1271 2001-08-17 Janis Johnson <janis187@us.ibm.com>
1273 * doc/install.texi (Install GCC): Add links to build status pages.
1275 (Final install): Ditto; request updates for specific info
1277 2001-08-17 Neil Booth <neil@daikokuya.demon.co.uk>
1279 * cpperror.c (print_location): Don't take a file name; use the
1281 (_cpp_begin_message): Similarly.
1282 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
1283 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
1284 (cpp_pedwarn_with_file_and_line): Remove.
1285 * cppfiles.c (stack_include_file): Update; set filename to stdin
1286 here when appropriate.
1287 * cpphash.h (struct cpp_buffer): Remove nominal_fname.
1288 (_cpp_begin_message): Don't take a file name.
1289 * cppinit.c: Add comment.
1290 * cpplex.c: Fix end-of-directive indicator.
1291 * cpplib.c: Don't include intl.h.
1292 (run_directive, do_diagnostic): Update.
1293 (do_line): Update to not use nominal_fname.
1294 (cpp_push_buffer): Don't take a filename.
1295 * cpplib.h (struct ht): Remove.
1296 (cpp_push_buffer): Don't take a filename.
1297 (cpp_pedwarn_with_file_and_line): Remove.
1298 * cppmacro.c (struct cpp_macro): Remove file.
1299 (builtin_macro): Update.
1300 (_cpp_create_definition): Update.
1301 * cppmain.c: Correct comment.
1302 * fix-header.c (read_scan_file): Update.
1304 2001-08-17 Kazu Hirata <kazu@hxi.com>
1306 * sbitmap.c: Fix comment formatting.
1307 * sched-deps.c: Likewise.
1308 * sibcall.c: Likewise.
1309 * simplify-rtx.c: Likewise.
1311 * ssa-ccp.c: Likewise.
1312 * stor-layout.c: Likewise.
1313 * timevar.c: Likewise.
1314 * toplev.c: Likewise.
1315 * unwind-dw2.c: Likewise.
1316 * unwind-dw2-fde.c: Likewise.
1317 * varasm.c: Likewise.
1319 2001-08-17 John David Anglin <dave@hiauly1.hia.nrc.ca>
1321 * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
1322 or larger than an integer in memory.
1324 2001-08-17 Zack Weinberg <zackw@panix.com>
1326 * system.h: Forward-declare struct rtx_def, struct rtvec_def,
1327 and union tree_node. Typedef rtx, rtvec, and tree. Fix comment.
1328 * rtl.h: Don't forward-declare union tree_node here. Don't
1329 typedef rtx or rtvec here. Change all uses of struct rtx_def *,
1330 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
1331 and tree respectively.
1332 * tree.h: Don't forward-declare struct rtx_def here. Don't
1333 typedef tree here. Change all uses of struct rtx_def *,
1334 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
1335 and tree respectively.
1337 2001-08-17 Richard Henderson <rth@redhat.com>
1339 * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
1340 config/mips/openbsd.h: Fix typos last change.
1342 2001-08-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1344 * doc/invoke.texi (Optimize Options): The default for
1345 -finline-limit is 600.
1347 2001-08-17 Richard Henderson <rth@redhat.com>
1349 * varasm.c (text_section): Allow TEXT_SECTION to override the
1350 printing of TEXT_SECTION_ASM_OP.
1351 * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
1352 (DATA_SECTION, BSS_SECTION): Remove.
1353 * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
1354 RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
1355 Rename from s/_NAME//.
1356 * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
1357 (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
1358 (TEXT_SECTION): ... here. New.
1359 * config/mips/elf.h (TEXT_SECTION): New; no file switching.
1360 * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
1361 * config/mips/openbsd.h: Likewise.
1362 * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
1363 (mips_asm_file_end): Likewise test.
1364 (mips_output_function_epilogue): Likewise. Switch back to data
1365 section after emitting the function.
1367 * doc/tm.texi (Sections): Document TEXT_SECTION.
1369 2001-08-17 Richard Henderson <rth@redhat.com>
1371 * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
1372 (dwarf2out_finish): Do it here. Emit .debug_loc before .debug_info.
1374 2001-08-17 Richard Henderson <rth@redhat.com>
1376 * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
1377 * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
1378 __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
1379 Add aligned attribute.
1381 2001-08-17 Andrew Haley <aph@cambridge.redhat.com>
1383 * config/sh/sh.md: Add modes to unspecs in first insn to match
1384 those in the second.
1386 * Makefile.in: Fix collect2 copy for Cygwin.
1388 Fri Aug 17 15:48:57 CEST 2001 Jan Hubicka <jh@suse.cz>
1390 Install the proper patch.
1391 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
1392 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
1393 (expand_function_start): Likewise.
1394 * stmt.c (expand_decl): Likewise.
1395 * varasm.c (make_decl_rtx): Likewise.
1397 Fri Aug 17 15:41:35 CEST 2001 Jan Hubicka <jh@suse.cz>
1399 * final.c: Undo my previous accidental checkin.
1400 * output.h: Likewise.
1401 * tm.texi: Likewise.
1403 2001-08-16 Richard Henderson <rth@redhat.com>
1405 * varasm.c (named_section_flags): Remove align parameter.
1406 * varasm.c, dwarf2out.c: Update all callers.
1407 * output.h: Update prototypes.
1409 * target.h (target.asm_out.named_section): Remove align parameter.
1410 * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
1411 config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
1412 config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
1413 config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
1414 config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
1416 * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
1417 (get_named_section_flags, set_named_section_flags): New.
1418 (named_section_flags): Use them.
1419 (named_section): Do decl vs section flags check here...
1420 (default_section_type_flags): ... not here.
1421 (init_varasm_once): Create in_named_htab.
1422 (resolve_unique_section): Mark reloc unused.
1424 2001-08-16 Richard Henderson <rth@redhat.com>
1426 * varasm.c (force_const_mem): Keep pool alignment in bits.
1427 (output_constant_pool): Use assemble_align.
1429 2001-08-16 Zack Weinberg <zackw@panix.com>
1431 * doc/tm.texi: Remove extra @table command.
1433 2001-08-16 Zack Weinberg <zackw@panix.com>
1435 * final.c (shorten_branches): Clear the end of the label_align
1436 array only if we made it larger. Break up messy expressions
1439 * diagnostic.c (internal_error): Check for error recursion
1440 before doing ICE suppression.
1442 * timevar.c: Timing variables now count in milliseconds.
1443 (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
1444 (get_time): Not here.
1445 (timevar_print): Don't print any timer whose user, cpu, and
1446 wall times are all zero as displayed.
1447 * timevar.h: Update comment aboout units. Make timevar
1450 Thu Aug 16 17:39:45 CEST 2001 Jan Hubicka <jh@suse.cz>
1452 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
1453 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
1454 (expand_function_start): Likewise.
1455 * stmt.c (expand_decl): Likewise.
1456 * varasm.c (make_decl_rtx): Likewise.
1458 2001-08-16 Jason Merrill <jason_merrill@redhat.com>
1460 * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
1461 (finalize_record_size): Don't set TYPE_USER_ALIGN.
1463 2001-08-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1465 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
1468 2001-08-16 Andreas Jaeger <aj@suse.de>
1470 * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
1473 Wed Aug 15 15:22:52 EDT 2001 John Wehle (john@feith.com)
1475 * rtl.h (only_sets_cc0_p): New prototype.
1476 * jump.c (sets_cc0_p): Handle INSN.
1477 (only_sets_cc0_p): New function.
1478 * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
1479 (tidy_fallthru_edge): Likewise.
1480 * integrate.c (copy_insn_list): Likewise.
1481 * unroll.c (unroll_loop): Likewise.
1482 (copy_loop_body): Likewise.
1484 2001-08-15 Jason Eckhardt <jle@redhat.com>
1486 * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
1488 Wed Aug 15 14:24:22 CEST 2001 Jan Hubicka <jh@suse.cz>
1490 * predict.c (struct block_info_def): Remove nvisited.
1491 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
1492 (estimate_bb_frequencies): Call mark_dfs_back_edges.
1494 * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
1495 (ix86_adjust_cost): Teach scheduler that latency to load operand can
1498 Wed Aug 15 12:41:32 CEST 2001 Jan Hubicka <jh@suse.cz>
1500 * predict.def: Update hitrates.
1502 2001-08-15 Richard Henderson <rth@redhat.com>
1504 * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
1506 Tue Aug 14 17:30:59 2001 Jeffrey A Law (law@cygnus.com)
1508 * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
1509 note from its associated jump.
1511 2001-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1513 * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
1514 also on 64-bit s390x targets.
1516 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
1518 * config/arm/arm.c (arm_compute_initial_elimination_offset): New
1520 (arm_expand_prologue): Handled nested functions which take a
1521 variable argument list.
1522 * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
1523 macro with an invocation of
1524 arm_compute_initial_elimination_offset.
1525 * config/arm/arm-protos.h: Prototype
1526 arm_compute_initial_elimination_offset.
1528 2001-08-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1530 * doc/install.texi (Specific, avr): Fix markup.
1531 (Specific, c4x): Ditto.
1533 2001-08-14 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1535 * predict.c (dump_prediction): Change `bool' parameter to `int'.
1537 2001-08-14 Gabriel Dos Reis <gdr@codesourcery.com>
1539 * Makefile.in (OBJS): Add rtl-error.o
1540 (rtl-error.o): New rule.
1541 (diagnostic.o): Adjust dependency.
1542 diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
1543 error_for_asm, _fatal_insn, _fatal_insn_not_found,
1544 warning_for_asm): Move to...
1545 rtl-error.c: ...here. New file.
1547 2001-08-14 Richard Henderson <rth@redhat.com>
1549 * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
1550 if USING_SJLJ_EXCEPTIONS.
1552 2001-08-14 Steve Ellcey <sje@cup.hp.com>
1554 * tlink.c (scan_linker_output): Check string for unsatisfied in
1555 addition to undefined and unresolved.
1557 2001-08-14 Graham Stott <grahams@redhat.com>
1559 * libgcc2.c (*): Replace EH_FRAME_SECTION with
1560 EH_FRAME_SECTION_NAME.
1562 Tue Aug 14 14:57:07 CEST 2001 Jan Hubicka <jh@suse.cz>
1564 * genattrtab.c (simplify_test_exp_in_temp): New function.
1565 (simplify_test_exp): Avoid explicit use of temporary obstack.
1566 (simplify_cond, insert_right_side, evaluate_eq_attr,
1567 simplify_and_tree, simplify_or_tree, eliminate_known_true):
1568 Use simplify_test_exp_in_temp.
1569 (optimize_attrs): Iterate until expression stabilizes.
1571 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>:
1573 * glimits.h: Remove the __LONG_MAX__ special case for s390x.
1574 * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
1576 2001-08-13 Richard Henderson <rth@redhat.com>
1578 * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
1579 (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
1580 * config/arm/conix-elf.h: Likewise.
1582 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
1584 * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
1586 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
1588 * gcse.c (hash_scan_set): Expressions that are set as part of
1589 jump instructions are not available.
1591 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>
1593 * config/s390/s390.c (print_operand, s390_function_prologue,
1594 s390_va_start): Fixed HOST_WIDE_INT type mismatch.
1596 2001-08-13 Richard Henderson <rth@redhat.com>
1598 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
1599 * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
1600 * doc/tm.texi (Exception Region Output): Document it.
1602 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
1604 * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
1605 DWARF2 instead of stabs by default.
1607 2001-08-13 David Edelsohn <edelsohn@gnu.org>
1609 * config/rs6000/rs6000.c: Include optabs.h.
1611 2001-08-13 David Edelsohn <edelsohn@gnu.org>
1613 * config/rs6000/eabi.asm: Define 64-bit versions of FPR
1614 save/restore routines.
1615 * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
1617 2001-08-13 Andreas Jaeger <aj@suse.de>
1619 * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
1620 the english is correct.
1622 2001-08-13 Zack Weinberg <zackw@panix.com>
1624 * expr.h: Split out optab- and libfunc-related code to...
1625 * optabs.h, libfuncs.h: ... these new headers.
1627 * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
1629 (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
1631 * mkconfig.sh: Don't include insn-codes.h from config.h.
1633 * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
1634 enum insn_code is available. Move reload_in_optab and
1635 reload_out_optab array declarations to optabs.h.
1636 * regmove.c (gen_add3_insn): Move to optabs.c, export from
1637 there, prototype in expr.h.
1638 * gencodes.c: Cleanup: zap global variables, don't use
1639 printf where puts will do, don't bother defining MAX_INSN_CODE
1640 which nothing uses, let CODE_FOR_nothing get its value implicitly.
1642 * genemit.c, genopinit.c: Include optabs.h in generated file.
1643 * genoutput.c: Include insn-codes.h in generated file.
1644 * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
1645 expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
1646 reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
1647 config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
1648 config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
1649 config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
1651 * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
1652 optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
1653 config/m88k/m88k.c, config/sparc/sparc.c:
1655 * reload.c: Include expr.h and optabs.h before reload.h.
1656 * config/alpha/alpha.c: Include tree.h before reload.h.
1657 * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
1658 and reload.h in that order.
1659 * config/sparc/sparc.c: Include debug.h.
1660 * recog.c: Include insn-codes.h.
1662 2001-08-13 Andreas Jaeger <aj@suse.de>
1664 * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
1667 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
1669 * dwarf2out.c (output_cfa_loc): Fix typo in comment.
1670 * gcc.c (init_spec): Fix typo in comment.
1671 * varasm.c (data_section): Fix typo in comment.
1673 Mon Aug 13 02:27:39 CEST 2001 Jan Hubicka <jh@suse.cz>
1675 * predict.c (dump_prediction): New argument "USED".
1676 (combine_predictions_for_insn): Determine the used heuristics,
1677 output the case no heuristic applied.
1678 * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
1680 2001-08-13 Andreas Jaeger <aj@suse.de>
1682 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
1685 2001-08-13 Kazu Hirata <kazu@hxi.com>
1687 * jump.c: Fix formatting.
1689 2001-08-13 Kazu Hirata <kazu@hxi.com>
1691 * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
1694 2001-08-12 Geoffrey Keating <geoffk@redhat.com>
1696 * loop.c (check_dbra_loop): Use condjump_label to compute
1699 * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
1700 to better document the files they're in.
1702 2001-08-12 Zack Weinberg <zackw@panix.com>
1704 * recog.h (struct insn_operand_data): Shrink 'mode' field
1707 2001-08-12 Kazu Hirata <kazu@hxi.com>
1709 * gcc.c: Fix comment formatting.
1710 * gccspec.c: Likewise.
1713 * genemit.c: Likewise.
1714 * gengenrtl.c: Likewise.
1715 * genrecog.c: Likewise.
1716 * gensupport.c: Likewise.
1717 * ggc-page.c: Likewise.
1718 * global.c: Likewise.
1719 * graph.c: Likewise.
1720 * ifcvt.c: Likewise.
1721 * integrate.c: Likewise.
1723 * libgcc2.c: Likewise.
1725 * mbchar.c: Likewise.
1726 * optabs.c: Likewise.
1727 * predict.c: Likewise.
1728 * prefix.c: Likewise.
1729 * profile.c: Likewise.
1730 * protoize.c: Likewise.
1732 * recog.c: Likewise.
1733 * regclass.c: Likewise.
1734 * regmove.c: Likewise.
1735 * reg-stack.c: Likewise.
1736 * reload1.c: Likewise.
1737 * resource.c: Likewise.
1738 * rtlanal.c: Likewise.
1741 2001-08-12 Kazu Hirata <kazu@hxi.com>
1743 * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
1744 a tree representing a constant is passed to the macro.
1746 2001-08-12 Richard Henderson <rth@redhat.com>
1748 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
1749 (rs6000_elf_asm_out_destructor): New.
1750 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
1751 (DTORS_SECTION_ASM_OP): Remove.
1752 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1753 (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
1755 2001-08-12 David Edelsohn <edelsohn@gnu.org>
1758 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1759 * gcc.c (set_collect_gcc_options): New function, split out from
1761 Ignore elided switches.
1762 (do_spec_1): Invoke before executing command.
1763 (set_input): Export.
1764 Move declaration ...
1765 * gcc.h (set_input): ... here.
1766 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
1769 2001-08-12 Richard Henderson <rth@redhat.com>
1771 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
1772 thinko wrt TARGET_RELOCATABLE.
1774 2001-08-12 Neil Booth <neil@daikokuya.demon.co.uk>
1776 * fix-header.c (cb_file_change): Update prototype.
1778 2001-08-11 Zack Weinberg <zackw@panix.com>
1780 * toplev.c (set_float_handler): Make static.
1781 * toplev.h: Don't prototype set_float_handler.
1783 * simplify-rtx.c: Don't include setjmp.h.
1784 (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
1786 (simplify_unary_operation, simplify_binary_operation): Use them,
1787 via do_float_handler.
1789 * fold-const.c: Don't include setjmp.h.
1790 (exact_real_inverse_1): New function.
1791 (exact_real_inverse): Use it, via do_float_handler.
1793 * varasm.c: Don't include setjmp.h.
1794 (assemble_real_1): New function.
1795 (assemble_real): Use it, via do_float_handler.
1796 Call internal_error if we get a trap here.
1798 * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
1799 config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
1801 2001-08-11 Zack Weinberg <zackw@panix.com>
1803 * defaults.h: Define PREFERRED_STACK_BOUNDARY to
1804 STACK_BOUNDARY if not already defined.
1806 * calls.c, function.c, reload1.c, explow.c: Don't default
1807 PREFERRED_STACK_BOUNDARY. Remove all #if/#ifdef on
1808 PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
1810 * explow.c (allocate_dynamic_stack_space): Change unsafe #if
1813 * doc/tm.texi: Document that STACK_BOUNDARY is required;
1814 clarify difference between it and PREFERRED_STACK_BOUNDARY.
1816 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
1818 * cppmacro.c (enter_macro_context): Push macro expansions even
1821 2001-08-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1823 * config/rs6000/rs6000.c: Include integrate.h to silence warning.
1824 (rs6000_elf_section_type_flags): Actually return a value.
1826 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
1828 * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
1829 Clean up code: add missing comments and prototypes, fix warnings,
1830 remove obsolete code, fix spacing to conform to coding style.
1832 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
1834 * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
1835 and TARGET_ASM_CLOSE_PAREN.
1836 (regclass_map): CC register belongs to class NO_REGS.
1837 (legitimize_pic_address): Don't generate unnecessary moves
1838 (to avoid confusing loop optimization).
1839 (check_and_change_labels): Replace jump_long by indirect_jump.
1840 (s390_final_chunkify): Don't start a new literal pool on section
1841 switch in 64-bit code.
1842 (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
1844 * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
1845 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
1846 (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
1848 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
1849 (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
1850 (CONST_COSTS): Fixed incorrect costs.
1852 * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
1853 Use emit_jump instead of emit_jump_insn (gen_jump).
1854 (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
1855 (to avoid confusing flow analysis).
1856 (tablejump, tablejump1, tablejump2): Removed. Replaced by casesi.
1857 (casesi, casesi_jump): New.
1858 (jump_long): Removed. Functionality merged into indirect_jump.
1859 (indirect_jump): Accept address_operand, not just register_operand.
1860 (cjump_long, icjump_long): Use same logic as indirect_jump.
1861 (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
1862 Fixed broken setjmp/longjmp handling.
1863 (do_builtin_setjmp_setup): Removed.
1865 * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
1866 broken GNU as versions that don't accept .quad with large
1867 negative values. Use hexadecimal output instead.
1868 (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
1869 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
1870 FUNCTION_EPILOGUE): Removed. Now in targetm.
1872 * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
1874 * config/s390/fixdfdi.h: Add missing copyright statement.
1875 Fix type conflicts on 64-bit. Add missing SFmode routines.
1877 * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
1880 2001-08-11 Richard Henderson <rth@redhat.com>
1882 * rtl.h (REG_EH_RETHROW): Remove.
1883 * rtl.c (reg_note_name): Update.
1884 * combine.c (distribute_notes): Don't check for it.
1886 2001-08-11 Richard Henderson <rth@redhat.com>
1888 * combine.c (distribute_notes): Place REG_SETJMP.
1890 2001-08-11 Richard Henderson <rth@redhat.com>
1892 * doc/extend.texi (Arrays and pointers implementation): Discourage
1893 relying on sign-extension of pointers.
1895 2001-08-11 H.J. Lu <hjl@gnu.org>
1897 * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
1899 (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
1900 RDATA_SECTION_ASM_OP.
1902 2001-08-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1904 * doc/install.texi (Specific, c4x): Fix cross-reference to the
1905 main manual to work both for info and HTML versions.
1907 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
1908 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1910 * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
1911 * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
1912 (struct cpp_pool): New member first.
1913 * cppinit.c (append_include_chain): Plug memory leaks.
1914 * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
1915 Allocate pragma structures from the (aligned) macro pool to
1916 avoid leaking memory.
1917 * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
1918 so we don't leak memory.
1919 * hashtable.c (ht_destroy): New.
1920 * hashtable.h (ht_destroy): New.
1922 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
1923 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1925 * c-lex.c (map): Make const.
1926 (cb_file_change): Update for callback passing a line map.
1927 Don't assume we have a previous map. Remove sanity check
1928 about popping too many files.
1929 * cpperror.c (print_location): Make map const.
1930 * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
1931 (cpp_make_system_header): Similarly.
1932 (search_from): Similarly.
1933 (_cpp_execute_include): Don't remember where we came from.
1934 * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
1935 (struct cpp_reader): Make map const.
1936 (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
1937 * cpplib.c (do_line): Update; line maps now hold sysp.
1938 (cpp_push_buffer): Similarly.
1939 (_cpp_do_file_change): Similarly; callback with map instead.
1940 (cpp_get_line_maps): Constify return value.
1941 (_cpp_pop_buffer): Update.
1942 * cpplib.h (struct cpp_file_change): Remove.
1943 (struct cpp_callbacks): Update.
1944 (cpp_get_line_maps): Constify return value.
1945 * cppmacro.c (_cpp_create_definition): Update.
1946 * cppmain.c (struct printer): Constify map.
1947 (maybe_print_line): Similarly.
1948 (print_line): Similarly. Deduce flags 1 and 2 here.
1949 (cb_file_change): Update.
1950 * line-map.c (free_line_maps): Warn regardless.
1951 (add_line_map): Return pointer to const. When passed NULL to_file
1952 with LC_LEAVE, use the obvious values for the return point so the
1953 caller doesn't have to figure them out.
1954 (lookup_line): Return pointer to const.
1955 (print_containing_files): Take pointer to const.
1956 * line-map.h (struct line_map): New members reason, sysp.
1957 (add_line_map): Return pointer to const.
1958 (lookup_line): Similarly.
1959 (print_containing_files): Take pointer to const.
1961 2001-08-10 Roman Zippel <zippel@linux-m68k.org>
1962 Richard Henderson <rth@redhat.com>
1964 * regmove.c (regmove_optimize): Avoid setting a register twice in
1967 2001-08-10 Richard Henderson <rth@redhat.com>
1969 * doc/extend.texi (Arrays and pointers implementation): Document
1970 behavior of pointer/integer conversion.
1972 2001-08-10 Ulrich Weigand <uweigand@de.ibm.com>
1974 * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
1976 2001-08-10 Richard Henderson <rth@redhat.com>
1978 * doc/extend.texi (C Implementation): New chapter.
1979 * doc/gcc.texi (Top): Link it in.
1981 2001-08-10 Andrew Cagney <ac131313@redhat.com>
1983 * doc/install.texi (Specific): Fix CVS merge botch.
1985 2001-08-10 Richard Henderson <rth@redhat.com>
1987 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
1988 ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
1990 2001-08-10 Zack Weinberg <zackw@stanford.edu>
1992 * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
1993 if not already defined. Remove all #ifdefs on STACK_BOUNDARY;
1994 this macro is now required.
1996 * cselib.c (cselib_process_insn), flow.c (propagate_block),
1997 loop.c (find_and_verify_loops), reload.c (reload): Check
1998 for rtx code of CALL_INSN, not CALL, when deciding if we
1999 need to check for REG_SETJMP note.
2001 * gcse.c (compute_hash_table, compute_store_table): Update
2002 the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
2005 * config/avr/avr.c: Fix typo.
2006 * config/convex/convex.c (expand_movstr): Use adjust_address.
2007 * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
2009 * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
2010 * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
2012 * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
2013 Do define STACK_BOUNDARY.
2014 * config/i370/i370.c: Include expr.h.
2015 * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
2016 config/pa/som.h, config/v850/v850.h: Take in_ctors and
2017 in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
2018 and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
2019 * config/m88k/m88k.c: Include c-tree.h after expr.h.
2020 * config/pdp11/pdp11.c: Include expr.h and toplev.h.
2021 * config/romp/romp.c: Include expr.h after tree.h.
2023 (output_fpop): Use xmalloc, not oballoc.
2024 * config/we32k/we32k.c: Include expr.h.
2026 2001-08-10 Kazu Hirata <kazu@hxi.com>
2028 * config/h8300/h8300.h: Fix formatting.
2030 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
2032 * c-common.h (RETURN_NULLIFIED_P): Lose.
2033 * c-semantics.c (genrtl_return_stmt): Don't check it.
2035 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
2037 * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
2038 (mips_annotate_frame_insn): New function.
2039 (mips_emit_frame_related_store): New function.
2040 (save_restore_insns): Don't mark instructions that set up the base
2041 registers as frame-related. Add REG_FRAME_RELATED_EXPR notes to
2042 the store instructions instead.
2043 (mips_expand_prologue): If the stack size is moved into a temporary
2044 register, do not mark that move as frame-related. Add a
2045 REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
2047 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
2049 * config/mips/mips.c (save_restore_insns): Don't mark the RA's
2050 stack slot as unchanging if current_function_calls_eh_return.
2052 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
2054 * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
2055 access the second half of the TFmode scratch operand.
2057 2001-08-10 Anthony Green <green@redhat.com>
2059 * java/class.c (emit_register_classes): Conditionalize code on
2062 2001-08-10 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2064 * doc/install.texi (Specific, avr): Fix cross-reference to the
2065 main manual to work both for info and HTML versions.
2067 2001-08-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
2069 * stmt.c (expand_null_return_1): Remove code to generate simple returns
2070 and "use_goto" argument.
2071 (expand_null_return, expand_value_return): Update all callers.
2072 * function.c (expand_function_end): Remove code to generate simple
2074 * config/vax/vax.md (epilogue): New expander for function return.
2075 * doc/md.texi (epilogue): Remove "if defined".
2077 2001-08-09 Zack Weinberg <zackw@stanford.edu>
2079 * Makefile.in: Partially revert my previous change:
2080 put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
2081 of the hashtab.o and safe-ctype.o rules.
2083 2001-08-09 Richard Henderson <rth@redhat.com>
2085 * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
2086 (USE_COLLECT2): Remove duplicate definition.
2087 * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
2088 (use_collect2): Remove dead code.
2089 * configure.in (use_collect2): Remove will_use_collect2 and
2090 maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
2091 * configure: Rebuild.
2093 * target.h (targetm.asm_out.constructor): New.
2094 (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
2095 * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
2096 (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
2097 * varasm.c (in_ctors, in_dtors): New.
2098 (assemble_constructor, assemble_destructor): Remove.
2099 (default_stabs_asm_out_destructor): New.
2100 (default_named_section_asm_out_destructor): New.
2101 (dtors_section, default_dtor_section_asm_out_destructor): New.
2102 (default_stabs_asm_out_constructor): New.
2103 (default_named_section_asm_out_constructor): New.
2104 (ctors_section, default_ctor_section_asm_out_constructor): New.
2105 * output.h: Update declarations.
2106 * c-decl.c (c_expand_body): Use target hooks instead of
2107 assemble_constructor and assemble_destructor.
2108 * profile.c (output_func_start_profiler): Likewise.
2109 * objc/objc-act.c (finish_objc): Likewise.
2110 (build_module_descriptor): Tidy. Set TREE_PUBLIC properly
2111 for the constructor.
2112 * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
2114 * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
2115 (DTORS_SECTION_ASM_OP): Likewise.
2116 (__CTOR_LIST__): Use attribute section when possible.
2117 (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
2119 * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
2120 ASM_OUTPUT_CONSTRUCTOR.
2122 * config/darwin.c (machopic_asm_out_constructor): New.
2123 (machopic_asm_out_destructor): New.
2124 * config/darwin-protos.h: Update declarations.
2125 * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2126 (ASM_OUTPUT_DESTRUCTOR): Remove.
2127 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2128 * config/nextstep.c (nextstep_asm_out_constructor): New.
2129 (nextstep_asm_out_destructor): New.
2130 * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2131 (ASM_OUTPUT_DESTRUCTOR): Remove.
2132 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2133 * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
2134 ASM_OUTPUT_*STRUCTOR.
2135 * config/i386/aix386ng.h: Likewise.
2137 * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
2138 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
2139 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
2140 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2141 * config/lynx.h: Likewise.
2142 * config/netware.h: Likewise.
2143 * config/psos.h: Likewise.
2144 * config/alpha/alpha-interix.h: Likewise.
2145 * config/alpha/elf.h: Likewise.
2146 * config/arc/arc.h: Likewise.
2147 * config/arm/aof.h: Likewise.
2148 * config/arm/coff.h: Likewise.
2149 * config/arm/elf.h: Likewise.
2150 * config/c4x/c4x.h: Likewise.
2151 * config/h8300/h8300.h: Likewise.
2152 * config/i386/cygwin.h: Likewise.
2153 * config/i386/djgpp.h: Likewise.
2154 * config/i386/i386-coff.h: Likewise.
2155 * config/i386/i386-interix.h: Likewise.
2156 * config/i386/sco5.h: Likewise.
2157 * config/i386/vsta.h: Likewise.
2158 * config/i386/win32.h: Likewise.
2159 * config/i960/i960-coff.h: Likewise.
2160 * config/ia64/sysv4.h: Likewise.
2161 * config/m68hc11/m68hc11.h: Likewise.
2162 * config/m68k/coff.h: Likewise.
2163 * config/m68k/mot3300.h: Likewise.
2164 * config/m88k/m88k.h: Likewise.
2165 * config/mcore/mcore-pe.h: Likewise.
2166 * config/mcore/mcore.h: Likewise.
2167 * config/mips/elf.h: Likewise.
2168 * config/mips/elf64.h: Likewise.
2169 * config/mips/iris6.h: Likewise.
2170 * config/pa/pa64-hpux.h: Likewise.
2171 * config/rs6000/sysv4.h: Likewise.
2172 * config/sh/sh.h: Likewise.
2173 * config/sparc/litecoff.h: Likewise.
2175 * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
2176 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
2177 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2178 * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2179 (ASM_OUTPUT_DESTRUCTOR): Remove.
2180 * config/a29k/a29k.c: Move include of tree.h.
2181 * config/a29k/udi.h: Delete file.
2182 * config/alpha/alpha.c (vms_asm_out_constructor): New.
2183 (vms_asm_out_destructor): New.
2184 * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
2185 (EXTRA_SECTION_FUNCTIONS): Likewise.
2186 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2187 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2188 * config/c4x/c4x.c: Move include of tree.h.
2189 * config/clipper/clipper.c (clix_asm_out_constructor): New.
2190 (clix_asm_out_destructor): New.
2191 * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2192 (ASM_OUTPUT_DESTRUCTOR): Remove.
2193 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2194 * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2195 (TARGET_ASM_CONSTRUCTOR): New.
2196 * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
2197 (sco_asm_out_constructor): New.
2198 * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
2199 * config/i386/svr3gas.h: Remove stack grows up code.
2200 Remove code duplicated from i386/sysv3.h.
2201 (TARGET_ASM_CONSTRUCTOR): New.
2202 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2203 (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
2204 * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2205 (TARGET_ASM_CONSTRUCTOR): New.
2206 * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
2207 (m68hc11_asm_out_destructor): New.
2208 * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
2209 (TARGET_ASM_DESTRUCTOR): New.
2210 * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
2211 * config/m68k/dpx2.h: Properly undef all the bits inherited from
2212 config/svr3.h pertaining to section manipulation.
2213 * config/m68k/dpx2g.h: Remove #if 0 code.
2214 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
2215 * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
2216 (ASM_OUTPUT_CONSTRUCTOR): Remove.
2217 (TARGET_ASM_CONSTRUCTOR): New.
2218 * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
2219 (m88k_svr3_asm_out_constructor): New.
2220 (m88k_svr3_asm_out_destructor): New.
2221 * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2222 (ASM_OUTPUT_DESTRUCTOR): Remove.
2223 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2224 * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
2225 * config/rs6000/aix.h: Likewise.
2226 * config/mips/rtems64.h: Don't undef removed constructor related bits.
2227 * config/mips/vxworks.h: Likewise.
2228 * config/rs6000/lynx.h: Likewise.
2229 * config/sh/elf.h: Likewise.
2230 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
2231 (DTORS_SECTION_ASM_OP): New.
2232 * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2233 (ASM_OUTPUT_DESTRUCTOR): Remove.
2234 * config/sparc/sol2-sld-64.h: Likewise.
2235 * config/vax/vax.c (vms_asm_out_constructor): New.
2236 (vms_asm_out_destructor): New.
2237 * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2238 (ASM_OUTPUT_DESTRUCTOR): Remove.
2239 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2241 * doc/tm.texi (@node Initialization): Update.
2243 2001-08-09 Richard Henderson <rth@redhat.com>
2245 * config/alpha/crtbegin.asm (__JCR_LIST__): New.
2246 (__do_global_dtors_aux): Use gp-relative static data to avoid
2247 one dynamic relocation.
2248 (__do_frame_setup): Register Java classes.
2249 * config/alpha/crtend.asm (__JCR_END__): New.
2251 2001-08-09 Zack Weinberg <zackw@stanford.edu>
2253 * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
2254 (CONFIG_H, TCONFIG_H, TM_P_H): Update.
2255 (GEN, STAGESTUFF): Add new files.
2256 (insn-constants.h, s-constants, tm-preds.h, s-preds,
2257 genconstants, genpreds, genconstants.o, genpreds.o): New rules.
2258 (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
2259 * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
2260 as well as insn-codes.h and insn-flags.h in config.h; and no
2261 extra headers in tconfig.h and hconfig.h.
2263 * gencodes.c: Eliminate code to generate predicate declarations
2264 or #defines for md-file constants.
2265 * genconstants.c, genpreds.c: New files.
2267 * i386.md: Re-order guard expressions such that TARGET_64BIT
2268 comes first, when this permits better optimization. Add
2269 TARGET_64BIT to more x86-64 patterns. Add comment explaining
2270 why this is desirable.
2272 2001-08-09 Jakub Jelinek <jakub@redhat.com>
2274 * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
2275 (find_fde_for_dso): Remove.
2276 (_Unwind_IteratePhdrCallback): New.
2277 (_Unwind_FindTableEntry): Use dl_iterate_phdr.
2278 * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
2280 Thu Aug 9 11:30:20 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2282 * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
2283 (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
2285 2001-08-09 Graham Stott <grahams@redhat.com>
2287 * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
2288 (vis_no_unit): Use it.
2289 (visualize_no_unit): Add the insn only if room exists.
2291 2001-08-09 Graham Stott <grahams@redhat.com>
2293 * predict.c (estimate_probability): Replace magic numbers with
2294 appropriate enumeration.
2296 2001-08-09 Graham Stott <grahams@redhat.com>
2298 * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
2300 (EXTRACT_FLAGS): Likewise.
2302 2001-08-09 Aldy Hernandez <aldyh@redhat.com>
2304 * config/mips/mips.c (mips_legitimate_address_p): Check for
2305 CONST_INT in last patch.
2307 2001-08-08 Anthony Green <green@redhat.com>
2309 * java/class.c (emit_register_classes): Use assemble_jcr if
2310 possible. Keep the original mechanism as a fallback.
2311 * defaults.h (JCR_SECTION_NAME): Define if we have named section
2312 and weak symbol support.
2313 * crtstuff.c (__JCR_LIST__): Define.
2314 (__JCR_END__): Define.
2315 (_Jv_RegiserClasses): Define weak symbol if possible.
2316 (__do_global_ctors_aux): Register classes for ELF targets with
2317 weak symbol support.
2319 2001-08-08 Kazu Hirata <kazu@hxi.com>
2321 * dbxout.c: Fix comment formatting.
2322 * dependence.c: Likewise.
2324 * diagnostic.c: Likewise.
2325 * dominance.c: Likewise.
2326 * doprint.c: Likewise.
2327 * dwarf2out.c: Likewise.
2328 * dwarfout.c: Likewise.
2329 * emit-rtl.c: Likewise.
2330 * except.c: Likewise.
2331 * explow.c: Likewise.
2332 * expmed.c: Likewise.
2335 * fold-const.c: Likewise.
2336 * function.c: Likewise.
2338 2001-08-08 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2340 * global.c (retry_global_alloc): Avoid shadowing allocno.
2342 2001-08-08 Mark Mitchell <mark@codesourcery.com>
2344 * except.c (remove_fixup_regions): Fix typo.
2346 2001-08-08 Jan van Male <jan.vanmale@fenk.wau.nl>
2348 * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
2349 unsigned HOST_WIDE_INT to avoid warning.
2350 * final.c (final): Cast INSN_UID to unsigned to avoid warning.
2351 * flow.c (set_block_for_new_insns): Likewise.
2353 Wed Aug 8 21:08:14 CEST 2001 Jan Hubicka <jh@suse.cz>
2355 * sibcall.c (return_value_pseudo): New static variable.
2356 (skip_copy_to_return_value): Handle return_value_pseudo.
2357 (call_ends_block_p): Ensure that return_value_pseudo is set.
2358 (optimize_sibling_and_tail_recursive_call): Discover the
2359 load of pseudo return value in alternate exit block.
2361 Wed Aug 8 21:06:43 CEST 2001 Jan Hubicka <jh@suse.cz>
2363 * calls.c (ECF_ALWAYS_RETURN): New constant.
2364 (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
2365 (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
2366 (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
2367 * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
2368 * rtl.c (reg_note_name): New name.
2369 * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
2371 2001-08-07 Aldy Hernandez <aldyh@redhat.com>
2373 * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
2375 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
2377 * alias.c (get_alias_set): Return a previously calculated
2378 alias set for a VAR_DECL.
2379 * function.c (gen_mem_addressof): Calculate the alias set before
2382 Wed Aug 8 18:44:37 CEST 2001 Jan Hubicka <jh@suse.cz>
2384 * predict.def: Set hitrates according our experimental run.
2386 Wed Aug 8 18:01:58 CEST 2001 Jan Hubicka <jh@suse.cz>
2388 * i386.h (HARD_REGNO_RENAME_OK): New macro.
2390 2001-08-08 H.J. Lu <hjl@gnu.org>
2392 * config/mips/mips.c (mips_unique_section): New. Copied from
2395 * config/mips/mips-protos.h (mips_unique_section): New
2398 * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
2400 * config/mips/little.h: New. Generic little endian mips
2401 targets. Only mips*-*-linux* is converted to use it so far.
2403 * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
2404 (WCHAR_TYPE): Defined
2405 (WCHAR_TYPE_SIZE): Likewise.
2406 (INIT_SUBTARGET_OPTABS): Likewise.
2407 (BSS_SECTION_ASM_OP): Likewise.
2408 (SBSS_SECTION_ASM_OP): Likewise.
2409 (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2410 (ASM_DECLARE_OBJECT_NAME): Likewise.
2411 (UNIQUE_SECTION): Likewise.
2412 (EXTRA_SECTIONS): Likewise.
2413 (ASM_OUTPUT_CONSTRUCTOR): Likewise.
2414 (ASM_OUTPUT_DESTRUCTOR): Likewise.
2415 (ASM_OUTPUT_DEF): Likewise.
2416 (HANDLE_SYSV_PRAGMA): Removed.
2417 (NO_IMPLICIT_EXTERN_C): Likewise.
2418 (TARGET_MEM_FUNCTIONS): Likewise.
2419 (STARTFILE_SPEC): Likewise.
2420 (ENDFILE_SPEC): Likewise.
2421 (LIB_SPEC): Likewise.
2422 (INVOKE__main): Likewise.
2423 (CTOR_LIST_BEGIN): Likewise.
2424 (CTOR_LIST_END): Likewise.
2425 (DTOR_LIST_BEGIN): Likewise.
2426 (DTOR_LIST_END): Likewise.
2427 (SET_ASM_OP): Likewise.
2428 (ASM_OUTPUT_SOURCE_LINE): Likewise.
2429 (ASM_OUTPUT_DEF): Likewise.
2430 (ASM_OUTPUT_IDENT): Likewise.
2432 * config/mips/mips.h (ASM_SPEC): Undefine before define.
2433 (CPLUSPLUS_CPP_SPEC): Likewise.
2434 (ASM_APP_ON) Redefine only if not defined.
2435 (ASM_APP_OFF): Likewise.
2436 (ASM_OUTPUT_SOURCE_LINE): Likewise.
2437 (ASM_OUTPUT_IDENT): Likewise.
2439 * config.gcc: Update tm_file for Linux/mips.
2441 2001-08-08 Bernd Schmidt <bernds@redhat.com>
2443 * cselib.c (cselib_record_sets): If insn is predicated, turn
2444 sources into IF_THEN_ELSEs.
2446 * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
2447 Turn into define_insn_and_split.
2449 * sched-deps.c: Include "cselib.h".
2450 (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
2451 Use cselib to turn memory addresses into VALUEs.
2452 (sched_analyze): Call cselib_init/cselib_finish if necessary.
2453 * sched-int.h (struct sched_info): New member USE_CSELIB.
2454 * sched-ebb.c (ebb_sched_info): Initialize it.
2455 * sched-rgn.c (rgn_sched_info): Likewise.
2456 * Makefile.in (sched-deps.o): Update dependencies.
2458 * cselib.h (cselib_subst_to_values): Declare.
2459 * cselib.c (cselib_subst_to_values): No longer static. Allow MEMs
2460 that have no value and autoincs to be handled by generating a new
2463 2001-08-08 Graham Stott <grahams@redhat.com>
2465 * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
2466 within fixed length SEQUENCE.
2468 2001-08-08 Graham Stott <grahams@redhat.com>
2470 * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
2471 (diagnostic_prefixing_rule): Likewise.
2472 (diagnostic_line_cutoff): Likewise.
2473 (diagnostic_kind_count): Likewise.
2475 2001-08-08 Graham Stott <grahams@redhat.com>
2477 * alias.c (find_base_decl): Delete redundent assignment.
2479 2001-08-08 Graham Stott <grahams@redhat.com>
2481 * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
2482 (abs): Uppercase and paranthesize macro parameter.
2483 (MEM_DEPENDENCY): Add whitespace.
2485 2001-08-08 Graham Stott <grahams@redhat.com>
2487 * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
2488 failure check for CONST_INT
2490 2001-08-08 Graham Stott <grahams@redhat.com>
2492 * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
2493 (libcall_dead_p): Likewise.
2495 (mark_used_regs): Constify fmt.
2496 (find_use_as_address): Likewise.
2498 2001-08-08 Graham Stott <grahams@redhat.com>
2500 * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
2503 2001-08-08 Graham Stott <grahams@redhat.com>
2505 * combine.c (combine_simplify_rtx): Update comment and
2506 remove erroneous test.
2508 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
2510 * cppinit.c (cpp_finish): Pop the final buffer without comment.
2511 * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
2512 take care to avoid multiple no-newline at EOF warnings in that
2515 Tue Aug 7 22:18:06 CEST 2001 Jan Hubicka <jh@suse.cz>
2517 * calls.c (expand_call): Do not emit INSN_SETJMP note.
2518 (emit_library_call_value_1): Likewise.
2519 (emit_call_1): Emit REG_SETJMP note.
2520 * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
2522 * cselib.c (cselib_process_insn): Likewise.
2523 * flow.c (propagate_block): Likewise.
2524 * loop.c (find_and_verify_loops): Likewise.
2525 * reload.c (find_equiv_regs): Likewise.
2526 * reload1.c (reload): Likewise.
2527 * resource.c (mark_referenced_resources,
2528 mark_set_resources): Likewise.
2529 * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
2530 * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
2531 * haifa-sched.c (unlink_other_notes): Likewise.
2532 (reemit_notes): Likewise.
2533 * sched-ebb.c (sched_ebb): Likewise.
2534 * sched-rgc.c (sched_region): Likewise.
2535 * rtl.c (note_insn_name): Likewise.
2536 (reg_note_name): Add REG_SETJMP
2537 * rtl.h (reg_note): Add REG_SETJMP.
2538 (insn_note): Remove NOTE_INSN_SETJMP.
2540 * profile.c (branch_prob): Add fake edges for setjmp.
2542 2001-08-07 Daniel Jacobowitz <drow@mvista.com>
2544 * config.gcc: Quote target_cpu_default2 correctly for
2545 powerpc*-*-* targets.
2547 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
2549 * cpplib.h, line-map.h: Update comments.
2550 * cppmain.c (printer_init): Move inline.
2551 (maybe_print_line, print_line): Take a map pointer.
2552 (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
2553 (cb_file_change): Don't use prior value of print.map.
2555 2001-08-07 David Edelsohn <edelsohn@gnu.org>
2557 * doc/install.texi: Document fine-grained multilib configuration.
2559 Tue Aug 7 16:52:54 CEST 2001 Jan Hubicka <jh@suse.cz>
2561 * rtlanal.c (find_first_parameter_load): Call note_stores
2562 only on the instructions.
2564 Tue Aug 7 14:56:16 CEST 2001 Jan Hubicka <jh@suse.cz>
2566 * alias.c (nonlocal_mentioned_p):
2567 Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
2568 * calls.c (emit_call_1): Likewise.
2569 * cse.c (cse_insn, invalidate_skipped_block): Likewise.
2570 * cselib.c (cselib_process_insn): Likewise.
2571 * df.c (df_insns_modify): Likewise.
2572 * flow.c (need_fake_edge_p): Likewise.
2573 (propagate_one_insn): Likewise.
2574 * haifa-sched.c (reemit_notes): Likewise.
2575 * integrate.c (copy_insn_list): Likewise.
2576 * jump.c (delete_prior_computation): Likewise.
2577 * local-alloc.c (validate_equiv_mem): Likewise.
2578 * loop.c (scan_loop): Likewise.
2579 * predict.c (estimate_probability): Likewise.
2580 * reload.c (reload): Likewise.
2581 * sched-deps (sched_analyze): Likewise.
2582 * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
2583 * gcse.c (compute_hash_table): Likewise.
2584 (mark_call): Likewise.
2585 (store_killed_in_insn): Likewise.
2587 2001-08-07 Jason Merrill <jason_merrill@redhat.com>
2589 * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
2591 2001-08-06 Richard Henderson <rth@redhat.com>
2593 * varasm.c (assemble_gc_entry): Remove.
2594 * output.h: Likewise.
2596 2001-08-06 Richard Henderson <rth@redhat.com>
2598 * varasm.c (assemble_constructor): Take a symbol_ref and a
2599 priority instead of a bare string. Move priority handling
2600 here from cp/decl2.c.
2601 * output.h: Update decls.
2603 * c-decl.c (c_expand_body): Update calls to assemble_constructor
2604 and assemble_destructor.
2605 * profile.c (output_func_start_profiler): Likewise.
2606 * objc/objc-act.c (finish_objc): Likewise.
2607 (build_module_descriptor): Return the symbol not the symbol name.
2609 2001-08-06 David Edelsohn <edelsohn@gnu.org>
2611 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
2612 * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
2613 ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
2614 * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
2615 * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
2616 * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
2618 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
2620 * cpperror.c (print_containing_files): Moved to line-map.c.
2621 (print_location): line-map.c handles re-listing or otherwise.
2622 * cpphash.h (struct lexer_state): Remove next_bol.
2623 (struct cpp_buffer): Remove include_stack_listed.
2624 * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
2625 Remove faked buffer handling.
2626 (_cpp_do_file_change): Tweak.
2627 * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
2628 * cppmain.c (struct printer): Remove filename.
2629 (print_line, cb_file_change): Update accordingly.
2630 * line-map.c: Include intl.h.
2631 (init_line_maps): Initialize last_listed.
2632 (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
2633 (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
2634 (print_containing_files): New.
2635 * line-map.h (struct line_maps): New member last_listed.
2636 (print_containing_files, INCLUDED_FROM): New.
2637 * Makefile.in: Update.
2638 * po/POTFILES.in: Add line-map.c.
2640 2001-08-06 Richard Henderson <rth@redhat.com>
2642 * except.c (convert_from_eh_region_ranges_1): Never mark
2643 USE or CLOBBER insns as throwing.
2645 * expr.c (store_constructor): Don't clobber memory targets.
2647 2001-08-06 Andreas Jaeger <aj@suse.de>
2649 * profile.c (branch_prob): Remove unused variable insn.
2651 * Makefile.in (local-alloc.o): Add dependency on except.h.
2653 * local-alloc.c: Include except.h for can_throw_internal prototype.
2655 2001-08-06 Richard Henderson <rth@redhat.com>
2657 * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
2658 * function.c (expand_main_function): Implement it.
2659 * doc/tm.texi: Document it.
2661 2001-08-06 Stan Shebs <shebs@apple.com>
2663 * doc/install.texi: Document powerpc-*-darwin* details.
2665 2001-08-06 Daniel Berlin <dan@cgsoftware.com>
2667 * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
2668 (ASM_CPU_SPEC): Move back to rs6000.h
2669 #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
2671 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
2673 * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
2676 * config/rs6000/linux64.h: Ditto.
2678 * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
2679 to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
2682 Remove accidently readded definitions of FUNCTION_PROLOGUE,
2683 FUNCTION_EPILOGUE, ASM_OPEN_PAREN, ASM_CLOSE_PAREN
2685 * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
2688 2001-08-05 Richard Henderson <rth@redhat.com>
2690 * local-alloc.c (update_equiv_regs): Do not move insns that
2693 2001-08-05 Jan Hubicka <jh@suse.cz>
2695 * Makefile.in (reload1.o): Add dedendancy on except.h
2696 * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
2698 * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
2699 indicating wehther edges has been cleaned up.
2700 * reload1.c: Inlucde except.h
2701 (fixup_abnormal_edges): Accept deleted insns.
2702 * toplev.c (rest_of_compilation): Purge dead edges unconditionally
2705 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
2707 * cpplib.c (do_line): Correct line number after pop_buffer.
2709 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
2711 PR preprocessor/3824
2712 * line-map.c: Update comments.
2713 * line-map.h: Update comments.
2714 * tradcif.y: Don't consider large numbers unsigned.
2716 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
2718 PR preprocessor/3081
2719 * c-lex.c (map): New.
2720 (cb_file_change): Update map and use it.
2721 (cb_def_pragma, cb_define, cb_undef): Use map and line.
2722 (c_lex): Update to use map.
2723 * cpperror.c (print_location): Move to using logical line numbers.
2724 * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
2725 (cpp_make_system_header): Similarly.
2726 (_cpp_execute_include): Stop line numbering hacks. Store the
2727 line we will return to.
2728 * cpphash.h (CPP_BUF_LINE): Remove.
2729 (struct cpp_buffer): Remove lineno and pseudo_newlines.
2730 Add map and return_to_line.
2731 (_cpp_do_file_change): Update.
2732 * cppinit.c (cpp_start_read): Update line kludge.
2733 * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
2734 (trigraph_ok): Use logical line numbers for diagnostics.
2735 (skip_block_comment): Likewise.
2736 (skip_whitespace): Likewise.
2737 (skip_line_comment): Use pfile->line instead.
2738 (_cpp_lex_token): Update to use logical line numbering exclusively.
2739 Handle BOL locally. Accept new lines in directives, but keep
2740 pfile->line decremented. Diagnostics use logical lines. Update
2742 * cpplib.c (SEEN_EOL): New.
2743 (skip_rest_of_line, check_eol): Use it.
2744 (end_directive): Increase line number when accepting the newline
2745 at the end of a directive.
2746 (run_directive): Simplify.
2747 (do_line): Bad LC_LEAVEs become LC_RENAMEs. Update.
2748 (_cpp_do_file_change): Update to take buffer line number as an
2749 argument, and store the current map in the cpp_reader. Remove
2750 line number kludges.
2751 (_cpp_do__Pragma): Restore output position after a _Pragma.
2752 (cpp_push_buffer): Don't set output line or lineno.
2753 (_cpp_pop_buffer): Transfer more info from a faked buffer.
2754 Remove line kludge. Set output_line.
2755 * cppmacro.c (builtin_macro): Update handling of __LINE__.
2756 (parse_arg): Use logical lines.
2757 (save_lookahead_token): Save EOFs too now.
2758 * cppmain.c (struct printer): Fix comments.
2759 (printer_init): Simplify, let caller do errors.
2760 (scan_translation_unit, check_multiline_token, dump_macro): Update.
2761 (maybe_print_line): Simplify.
2762 (print_line): Don't print a linemarker if -P.
2763 (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
2764 (cb_file_change): Simplify.
2765 * line-map.h (LAST_SOURCE_LINE): Fix.
2766 (CURRENT_LINE_MAP): New.
2768 2001-08-05 Bernd Schmidt <bernds@redhat.com>
2770 * doloop.c (doloop_modify_runtime): Properly compute number of
2771 iterations if loop was unrolled.
2773 * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
2774 if their CSELIB_VAL_PTRs are.
2776 * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
2777 (setup_spill_pointers): Initialize it.
2778 (spill_restore_mem): Set it.
2779 (do_spill, do_restore): Use it to add REG_INC note.
2780 * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
2782 * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
2783 asms if other insns are available.
2785 * config/ia64/ia64.c (condop_operator): New predicate.
2786 * config/ia64/ia64.h (PREDICATE_CODES): Add it.
2787 * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
2790 * expr.c (expand_expr, case COND_EXPR): Prefer working with a
2791 temporary register than directly using a MEM.
2793 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
2795 * config/sh/sh.c (sh_asm_named_section): Fix typo in align
2796 parameter in last change.
2798 2001-08-04 Zack Weinberg <zackw@panix.com>
2800 * sparc.md: Don't use #if inside C test expression.
2802 2001-08-04 Richard Henderson <rth@redhat.com>
2804 * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
2806 2001-08-04 Neil Booth <neil@daikokuya.demon.co.uk>
2808 * cpphash.h (struct cpp_reader): New member directive_line.
2809 * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
2810 * cpplib.c (do_define, do_undef, do_ident, do_include_common,
2811 do_pragma): Pass line to callbacks.
2812 (start_directive): Record line of directive.
2813 * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
2814 cb_include): Similarly.
2815 * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
2818 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
2820 * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
2823 Sat Aug 4 13:51:36 CEST 2001 Jan Hubicka <jh@suse.cz>
2825 * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
2827 * reload1.c (fixup_abnormal_edges): New static function.
2830 * flow.c (need_fake_edge_p): New function.
2831 (flow_call_edges_add): Fix handling of noreturn and sibbling calls;
2832 avoid call insn to be very last insn in the insn stream.
2834 * profile.c (branch_prob): Call flow_call_edges_add instead of
2835 doing that by hand; cleanup cfg to re-merge basic blocks once
2838 2001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2840 * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
2841 are also on line-map.h.
2842 * cppfiles.c (stack_include_file): Update.
2843 * cpphash.h (struct cpp_buffer): New member return_at_eof.
2844 (_cpp_pop_buffer): New.
2845 * cppinit.c (cpp_destroy, cpp_finish): Update.
2846 (do_includes): Mark each buffer to return at EOF.
2847 * cpplex.c (_cpp_lex_token): Pop buffers at EOF. Continue or
2848 return as requested.
2849 * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
2850 (cpp_pop_buffer): Rename _cpp_pop_buffer. Stop skipping.
2851 * cpplib.h (cpp_pop_buffer): Remove.
2852 (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
2853 * cppmacro.c (cpp_scan_buffer_nooutput): Similarly. No need to pop
2855 * cppmain.c (scan_buffer): Rename scan_translation_unit. No need
2857 (do_preprocessing): Update.
2858 * fix-header.c (read_scan_file): Update. No need to pop buffers.
2859 * c-parse.in (_yylex): Similarly.
2860 * scan-decls.c (scan_decls): Similarly.
2861 * line-map.h: Update comments.
2863 * objc/Make-lang.in (objc-act.o): Update dependencies.
2865 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2867 * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
2868 and soft register for operand 0.
2869 ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
2871 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2873 * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
2874 register for operand 0.
2875 ("bitcmpqi_z_used"): Allow memory for operand 0.
2876 (split "bitcmpqi"): New split to handle address reg as operand 1.
2878 2001-08-04 Andreas Jaeger <aj@suse.de>
2880 * gcse.c: Revert Daniel's last patch.
2882 2001-08-03 Zack Weinberg <zackw@stanford.edu>
2884 * sparc-protos.h: Add prototypes for fp_zero_operand and
2886 * sh-protos.h: Add prototype for fpul_operand.
2888 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
2890 * doc/extend.texi (Other Builtins): Fix typo in last change.
2892 2001-08-03 Richard Henderson <rth@redhat.com>
2894 * target.h (gcc_target): Add asm_out.named_section,
2895 section_type_flags, have_named_sections.
2896 * target-def.h (TARGET_ASM_NAMED_SECTION): New.
2897 (TARGET_HAVE_NAMED_SECTIONS): New.
2898 (TARGET_SECTION_TYPE_FLAGS): New.
2900 * Makefile.in (toplev.o): Depend on TARGET_H.
2901 (varasm.o, dbxout.o): Likewise.
2902 * c-common.c (decl_attributes): Check targetm.have_named_sections
2903 instead of ifdef ASM_OUTPUT_SECTION_NAME.
2904 * dbxout.c (dbxout_function_decl): Likewise.
2905 (dbxout_function_end): Likewise.
2906 * toplev.c (compile_file): Likewise.
2907 * varasm.c (exception_section): Likewise.
2908 * cp/decl2.c (finish_objects): Likewise.
2910 * defaults.h (EH_FRAME_SECTION): Remove.
2911 (EH_FRAME_SECTION_ASM_OP): Remove.
2912 (EH_FRAME_SECTION_NAME): New.
2913 (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
2914 (UNIQUE_SECTION_P): Remove.
2915 * dwarf2out.c (SECTION_FORMAT): Remove.
2916 (ASM_OUTPUT_SECTION): Remove.
2917 (output_call_frame_info): Use named_section_flags.
2918 (output_comp_unit, dwarf2out_start_source_file): Likewise.
2919 (dwarf2out_end_source_file, dwarf2out_define): Likewise.
2920 (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
2921 * varasm.c (in_eh_frame, eh_frame_section): Remove.
2922 (named_section_flags): New.
2923 (named_section): Use it and targetm.section_type_flags.
2924 (resolve_unique_section): New.
2925 (assemble_start_function): Use it.
2926 (asm_emit_uninitialised, assemble_variable): Likewise.
2927 (default_section_type_flags): New.
2928 (default_no_named_section, default_elf_asm_named_section): New.
2929 (default_coff_asm_named_section, default_pe_asm_named_section): New.
2930 * output.h: Update varasm.c decls.
2931 (SECTION_*): New flags.
2933 * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
2934 (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
2936 * config/elfos.h (UNIQUE_SECTION_P): Remove.
2937 * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
2938 * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
2939 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
2940 * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
2941 * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
2942 * config/mips/elf.h, config/mips/elf64.h: Likewise.
2943 * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
2944 * config/pa/pa64-hpux.h,
2946 * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
2947 (TARGET_ASM_NAMED_SECTION): New.
2948 * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
2949 * config/alpha/vms.h, config/arm/coff.h: Likewise.
2950 * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
2951 * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
2952 * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
2953 * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
2954 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
2955 * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
2956 * config/i386/sco5.h, config/i386/win32.h: Likewise.
2957 * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
2958 * config/mcore/mcore.h, config/mips/elf.h: Likewise.
2959 * config/mips/elf64.h, config/mips/iris6.h: Likewise.
2960 * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
2961 * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
2962 * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
2963 * config/sparc/sysv4.h: Likewise.
2965 * config/nextstep.h: Error until named sections implemented.
2967 * config/a29k/a29k.c (a29k_asm_named_section): New.
2968 * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
2969 (vms_section_type_flags, vms_asm_named_section): New.
2970 * config/arm/arm.c (arm_elf_asm_named_section): New.
2971 * config/avr/avr.c (asm_output_section_name): Remove.
2972 * config/avr/avr-protos.h: Update.
2973 * config/c4x/c4x.c (c4x_asm_named_section): New.
2974 * config/h8300/h8300.c (h8300_asm_named_section): New.
2975 * config/i386/i386.c (sco_asm_named_section): New.
2976 * config/i386/winnt.c (SECTION_PE_SHARED): New.
2977 (i386_pe_section_type_flags): New.
2978 (i386_pe_asm_named_section): New.
2979 * config/i386/i386-protos.h: Update.
2980 * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
2981 * config/mcore/mcore.c (mcore_asm_named_section): New.
2982 * config/mips/mips.c (iris6_asm_named_section): New.
2983 * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
2984 instead of UNIQUE_SECTION_P.
2985 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
2986 (xcoff_asm_named_section): New.
2987 * config/sh/sh.c (sh_asm_named_section): New.
2988 * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
2990 * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
2991 * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
2992 (EH_FRAME_SECTION_NAME): New.
2993 (EXCEPTION_SECTION): New.
2994 * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
2995 (DEBUG_*_SECTION): Remove.
2996 * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
2997 * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
2998 (EH_FRAME_SECTION_ASM_OP): Remove.
3000 * doc/tm.texi (UNIQUE_SECTION_P): Remove.
3001 (ASM_OUTPUT_SECTION_NAME): Remove.
3002 (TARGET_ASM_NAMED_SECTION): New.
3003 (TARGET_HAVE_NAMED_SECTIONS): New.
3004 (TARGET_SECTION_TYPE_FLAGS): New.
3005 (EH_FRAME_SECTION_ASM_OP): Remove.
3006 (EH_FRAME_SECTION_NAME): New.
3008 2001-08-03 Zack Weinberg <zackw@stanford.edu>
3010 * builtins.c (fold_builtin_constant_p): Return integer_zero_node
3011 for complex expressions when cfun == 0.
3012 * doc/extend.texi: Document that __builtin_constant_p can be
3013 used in data initializers as well as functions.
3015 2001-08-03 Alexandre Oliva <aoliva@redhat.com>
3017 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
3018 variable I locally, instead of expecting a declaration in the
3021 2001-08-03 Richard Henderson <rth@redhat.com>
3023 * except.c (collect_one_action_chain): Add an explicit cleanup
3024 action if regions surrounding a catch were encoded entirely
3025 within the call-site entry.
3027 2001-08-03 Richard Henderson <rth@redhat.com>
3029 * dbxout.c (dbxout_symbol_location): Flatten subregs first;
3030 don't take REGNO of a non-register.
3032 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
3034 * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
3035 __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
3036 (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
3037 (__gthread_mutex_init_function): New function for mutex initialization.
3039 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
3041 * Makefile.in: Revert screwed up commit.
3043 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3045 * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
3046 * config/m68hc11/larith.asm (_exit): Split in several sub-sections
3047 merged by linker script to get a final _exit().
3048 (__do_global_dtors): New for destructor handling in specific exit
3050 (__do_global_ctors): New for constructors in specific install section.
3051 (__map_data_section): Map data sections before running constructors.
3052 * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
3053 (CTORS_SECTION_ASM_OP): Define to put in readonly section.
3054 (DTORS_SECTION_ASM_OP): Likewise.
3055 (CTORS_SECTION_FUNCTION): Define to force a reference to
3057 (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
3059 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
3061 * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
3063 * Makefile.in: Add df.h to gcse.c dependencies.
3065 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
3067 * varasm.c (output_constant_def_contents): Use for the length of a
3068 string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
3069 depending on which is larger.
3071 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
3073 * gcse.c: Include df.h for use as a dataflow analyzer.
3075 Declaration of reg_set_info: gone.
3076 New df_analyzer variable used by store motion.
3077 (reg_set_info): Deleted.
3078 (mark_mem_regs): New function, analyze regs used by a mem.
3079 (store_ops_ok): Use dataflow analyzer results to determine if
3080 necessary regs are changed in the block.
3081 (find_moveable_store): Remove check for symbol ref, we can handle
3082 much more complex expressions now.
3083 (compute_store_table): Remove most of the code, it's unnecessary
3084 now that the dataflow analyzer records the info for us.
3085 (store_killed_after): Add parameter to say whether to do the
3086 store_ops_okay test, used to speed up testing when we already know
3087 the answer, and just want to know if the store itself was killed.
3088 (build_store_vector): Largely rewritten to calculate the various
3089 vectors properly, and somewhat optimized.
3090 (store_motion): Init the df_analyzer, get REG_DEF chains.
3091 Also handle trapping expressions (since mems almost always trap)
3092 (simple_mem): Redefine what a simple mem is.
3094 2001-08-03 DJ Delorie <dj@redhat.com>
3096 * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
3097 set from a constant part of the condition.
3099 2001-08-01 Andrew Cagney <ac131313@redhat.com>
3101 * mkdeps.c (deps_add_default_target): Make local variable
3102 ``start'' a const char pointer.
3103 * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
3105 2001-08-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3107 * doc/install.texi (Configuration): Fix markup.
3108 (Specific, i?86-*-udk): Likewise.
3109 (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
3111 Document --enable-threads and --enable-libgcj status.
3112 (Specific, mips-sgi-irix*): Canonicalize triples.
3113 (Specific, mips-sgi-irix5): Warn about problems with this config.
3114 Mention required GNU as patch.
3115 Native assembler problems are fixed.
3116 (Specific, mips-sgi-irix6): Update O32 ABI support status.
3117 Document --enable-threads and --enable-libgcj status.
3119 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
3121 * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
3124 2001-08-03 Richard Henderson <rth@redhat.com>
3126 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
3129 2001-08-03 Richard Henderson <rth@redhat.com>
3131 * rtlanal.c (find_first_parameter_load): Stop if we
3132 reach a CODE_LABEL at BOUNDARY.
3134 2001-08-03 Richard Henderson <rth@redhat.com>
3136 * config/alpha/alpha.md (force_movdi): New insn.
3137 * config/alpha/alpha.c (alpha_expand_prologue): Use it.
3138 Tweek FRP marking of VMS prologue insns.
3139 * config/alpha/vms.h (EPILOGUE_USES): New.
3141 2001-08-02 Richard Henderson <rth@redhat.com>
3143 * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
3145 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
3147 * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
3148 simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
3149 config/convex/convex.h, config/d30v/d30v.c,
3150 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3151 config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
3152 config/mips/mips.h, config/mn10200/mn10200.h,
3153 config/mn10300/mn10300.h, config/pdp11/pdp11.md,
3154 config/v850/v850.h, config/vax/openbsd.h,
3155 config/vax/openbsd1.h, config/vax/ultrix.h,
3156 config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
3157 config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
3158 cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
3159 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
3160 doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
3161 in comments and documentation.
3163 2001-08-03 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3167 * Makefile.in (line-map.o): New.
3168 (LIBCPP_OBJS, LIBCPP_DEPS): Update.
3169 * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
3170 * cpperror.c (print_containing_files): Similarly.
3171 (print_location): Update. Don't output a space before _Pragma.
3172 * cppfiles.c (stack_include_file): Set to line 1 immediately.
3173 (stack_include_filee, cpp_make_system_header): Update.
3174 (_cpp_execute_include): Get logical line number right for calling
3175 as-yet-unterminated #include.
3176 * cpphash.h (struct cpp_reader): Add line_maps.
3177 (_cpp_do_file_change): Update.
3178 * cppinit.c (cpp_create_reader): Initialize line maps.
3179 (cpp_destroy): Destroy line maps.
3180 (cpp_start_read): Get logical line number right.
3181 * cpplex.c (parse_string): Only warn once for multi-line strings.
3182 Use boolean variable for null warning.
3183 * cpplib.c (_cpp_handle_directive): End the directive if it isn't
3185 (do_include_common): End the directive early.
3186 (do_line): Don't warn about out-of-range lines in preprocessed
3187 source. Update. Remove unused variables.
3188 (_cpp_do_file_change): Update for new line mapping.
3189 (pragma_cb): New typedef.
3190 (cpp_register_pragma): Stop looking ahead before calling the
3192 (do_pragma_system_header): End directive early.
3193 (cpp_get_line_maps): New.
3194 (cpp_pop_buffer): Fudge logical line. Update.
3195 * cpplib.h: Include line-map.h
3196 (enum cpp_fc_reason): Remove.
3197 (struct cpp_file_change): Update.
3198 (cpp_get_line_maps): New.
3199 * cppmain.c (struct_printer): New member map.
3200 (cb_file_change): Update for new mappings.
3201 * fix-header.c (cb_file_change): Similarly.
3203 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
3205 * Makefile.in (libgcc.mk): Define mkinstalldirs.
3206 * mklibgcc.in: Use mkinstalldirs instead of mkdir.
3208 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
3210 * config/vax/vax.c: include expr.h.
3212 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
3214 * Makefile.in ($(srcdir)/configure): Only rebuild in
3216 ($(srcdir)/config.in): Only define in maintainer mode.
3217 ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
3219 2001-08-02 David Edelsohn <edelsohn@gnu.org>
3221 * doc/install.texi (Install GCC: Binaries): Update Bull info.
3223 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3225 * gcc.c (set_collect_gcc_options): New function, split out from
3227 Ignore elided switches.
3228 (do_spec_1): Invoke before executing command.
3229 (set_input): Export.
3230 Move declaration ...
3231 * gcc.h (set_input): ... here.
3232 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
3235 2001-08-02 Nathan Sidwell <nathan@codesourcery.com>
3238 * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
3240 * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
3242 2001-08-02 Richard Sandiford <rsandifo@redhat.com>
3244 * mips.md (movdicc): Make conditional on TARGET_64BIT. Likewise
3245 for the unnamed instructions it expands to.
3247 2001-08-02 Richard Henderson <rth@redhat.com>
3249 * regclass.c (call_really_used_regs): Conditionally define.
3250 (init_reg_sets_1): Don't use it if not defined.
3251 (fix_register): Similarly, don't set it.
3253 2001-08-01 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3255 * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
3256 Correct comment that had been missed in the previous change.
3258 2001-08-01 Stan Shebs <shebs@apple.com>
3260 * config/darwin.c (machopic_stub_name): Try matching by name.
3261 (update_stubs): New function.
3262 (darwin_encode_section_info): Call it and update_non_lazy_ptrs
3265 2001-08-01 Richard Henderson <rth@redhat.com>
3267 * except.c (output_function_exception_table): Use assemble_align.
3268 * varasm.c (assemble_eh_label): Remove.
3269 (assemble_eh_align, assemble_eh_integer): Remove.
3271 2001-08-01 Robert Lipe <robertl@caldera.com>
3273 * dwarfout.c: Remove reference to README.DWARF.
3275 2001-08-01 Andrew MacLeod <amacleod@redhat.com>
3277 * regclass.c (call_really_used_regs): New array for registers which
3278 are actually used by a call.
3279 (init_reg_sets_1): Initialize regs_invalidated_by_call with the
3281 (fix_register): Set call_really_used too.
3282 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
3283 * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
3285 2001-08-01 Richard Henderson <rth@redhat.com>
3287 * read-rtl.c (read_name): Consider \r whitespace.
3289 2001-07-11 Andrew Cagney <ac131313@redhat.com>
3291 * config.gcc: Recognize powerpc-*-netbsd*.
3293 * doc/install.texi (Host/target specific installation notes for
3294 GCC): Mention powerpc-*-netbsd*.
3296 * config/rs6000/netbsd.h: New file.
3297 (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
3298 (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
3299 (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
3300 (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
3301 (TARGET_VERSION): Redefine.
3303 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
3304 mcall-netbsd as a match for mcall-sysv.
3305 (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
3306 (ncrti.S, ncrtn.S): New targets.
3307 ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
3309 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
3310 "netbsd' as a V4 ABI.
3311 (ASM_SPEC): Check for -mcall-netbsd.
3312 (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
3313 (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
3314 (LIB_SPEC, ENDFILE_SPEC): Ditto.
3315 (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
3316 (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
3317 (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
3318 (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
3320 * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
3321 (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
3323 2001-08-01 Mark Kettenis <kettenis@gnu.org>
3325 * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
3326 only if NO_BASE_OF_ENCODED_VALUE isn't defined.
3327 * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
3328 including "unwind-pe.h".
3330 Wed Aug 1 20:01:42 CEST 2001 Jan Hubicka <jh@suse.cz>
3332 * rs6000.md (define_splits): Kill unused constraints.
3334 Wed Aug 1 20:02:12 CEST 2001 Graham Stott <grahams@redhat.com>
3335 Jan Hubicka <jh@suse.cz>
3337 * function.c (thread_prologue_and_epilogue_insns): Kill code
3338 dealing with non-existent CFG.
3340 2001-08-01 Kazu Hirata <kazu@hxi.com>
3342 * alias.c: Fix comment formatting.
3343 * bitmap.c: Likewise.
3344 * builtins.c: Likewise.
3345 * calls.c: Likewise.
3346 * c-common.c: Likewise.
3347 * c-decl.c: Likewise.
3348 * c-dump.c: Likewise.
3349 * c-lex.c: Likewise.
3350 * collect2.c: Likewise.
3351 * combine.c: Likewise.
3352 * conflict.c: Likewise.
3353 * cppfiles.c: Likewise.
3354 * cppinit.c: Likewise.
3355 * cpplex.c: Likewise.
3356 * cpplib.c: Likewise.
3357 * cppmacro.c: Likewise.
3358 * cppspec.c: Likewise.
3359 * c-pragma.c: Likewise.
3360 * crtstuff.c: Likewise.
3362 * cselib.c: Likewise.
3363 * c-semantics.c: Likewise.
3364 * c-typeck.c: Likewise.
3366 2001-08-01 H.J. Lu <hjl@gnu.org>
3368 * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
3370 2001-08-01 H.J. Lu <hjl@gnu.org>
3372 * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
3374 2001-08-01 Ziemowit Laski <zlaski@apple.com>
3376 * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
3377 contextualizing Objective-C class name lookup by the lexer.
3378 (typespec_reserved_nonattr): Disable ObjC class name lookup after
3380 (protocoldef): Add support for forward @protocol declarations.
3381 (yylexname): Suppress ObjC class name lookup in certain contexts;
3382 re-enable after lookup is complete.
3383 (_yylex): Re-enable ObjC class name lookup when certain
3384 punctuation marks are seen.
3386 * objc/objc-act.c (check_protocol_recursively): New function used
3387 for finding circular dependencies in protocols.
3388 (objc_declare_protocols): New function for handling forward
3389 @protocol declarations.
3390 (receiver_is_class_object): Detect the case when 'self' is used
3391 inside of a class method.
3392 (build_message_expr): Issue a warning if class method is desired
3393 but instance method is found instead.
3394 (conforms_to_protocol): Streamline.
3395 (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
3396 protocol Foo, even if 'Bar foo' does not.
3397 (check_protocols): Streamline.
3398 (start_protocol): Add checks for circular and duplicate protocol
3400 (encode_aggregate_within): For typedefs of structs, encode the
3402 * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
3403 (objc_declare_protocols): New prototype.
3405 2001-08-01 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3407 * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
3408 * cpplex.c (handle_newline): Update prototype. Maintain logical
3410 (skip_escaped_newlines, skip_block_comment, parse_string):
3412 (_cpp_lex_token): Update, and store token position within the token.
3413 * cpplib.h (struct cpp_token): Add line and column entries.
3414 * cppmacro.c (replace_args): Position stringified tokens correctly.
3416 2001-08-01 Andreas Jaeger <aj@suse.de>
3418 * basic-block.h: Add prototype for last_loop_beg_note.
3420 2001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
3422 * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
3423 RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
3425 (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
3426 while handling WITH_CLEANUP_EXPR node. Use second operand calling
3427 expand_decl_cleanup.
3428 * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
3430 (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
3431 operand while calling simple_cst_equal.
3432 * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
3433 operand is the cleanup expression, the third is the RTL_EXPR.
3434 * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
3436 2001-07-31 Jeff Sturm <jsturm@one-point.com>
3438 * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
3440 2001-07-31 matthew green <mrg@eterna.com.au>
3442 * config.gcc (i386-*-netbsdelf): New description.
3443 * config/i386/netbsd-elf.h: New file.
3445 2001-07-30 Geoffrey Keating <geoffk@redhat.com>
3447 * loop.c (check_dbra_loop): Use single_set to compute
3450 2001-07-31 Daniel Berlin <dan@cgsoftware.com>
3452 PowerPC reorg and support for powerpc64-*-linux*.
3454 Also fixes emitting of constants on 32 bit and 64 bit
3457 * config.gcc: powerpc64-*-linux* is a new target.
3458 Things that needed aix.h now also include xcoff.h
3460 * config/rs6000/rs6000.h: Split XCOFF specific stuff into
3462 Move AIX specific stuff into aix.h.
3463 (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
3464 with more than just XCOFF now.
3465 (SET_ASM_OP): Remove, now defined where needed.
3466 (FUNCTION_PROLOGUE): New macro definition.
3467 (FUNCTION_EPILOGUE): New macro definition.
3468 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
3470 * config/rs6000/xcoff.h: New file.
3472 * config/rs6000/linux64.h: New file.
3474 * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
3476 2001-07-31 Alan Modra <amodra@bigpond.net.au>
3478 * rs6000.c (print_operand_address): Handle ELF syntax.
3479 (output_toc): Simplify. Use DOUBLE_INT_ASM_OP.
3480 * rs6000.md (load_toc_aix_di): Handle ELF syntax.
3481 * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
3483 2001-07-31 David Edelsohn <edelsohn@gnu.org>
3485 * rs6000.c (rs6000_override_options): Only disable
3486 flag_function_sections for XCOFF.
3487 (exact_log2_cint_operand): New predicate.
3488 (reg_or_{add,sub}_cint64_operand): New predicates.
3489 (add_operand): Compare CONST_INT with fewer function calls.
3490 (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
3491 (print_operand, case 'p'): Ensure positive operand.
3492 (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
3493 * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
3494 (PREDICATE_CODES): Add new predicates.
3495 * rs6000.md (addsi3): Split 32-bit constants more correctly.
3496 (divsi3, modsi3): Ensure positive power-of-2.
3497 (adddi3): Use new predicate. Split 32-bit constants more
3498 correctly. Re-arrange splitter to handle any constant.
3499 (subdi3): Use new predicate.
3500 (divdi3, moddi3): Ensure positive power-of-2.
3501 (movdi): Use rs6000_emit_set_const.
3502 (load_toc_v4_pic_di): Delete.
3504 2001-07-31 Graham Stott <grahams@redhat.com>
3506 * function.c (pad_below): Revert 2001-07-26 patch.
3508 Tue Jul 31 15:37:35 CEST 2001 Jan Hubicka <jh@suse.cz>
3510 * reg-stack (convert_regs_1): Fix best edge condition.
3512 Tue Jul 31 15:33:27 CEST 2001 Jan Hubicka <jh@suse.cz>
3514 * jump.c (duplicate_loop_exit_test): Better test for jumps
3515 entering the loop; create loop pre_header.
3517 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
3519 * doc/install.texi: Add s390 and s390x as new targets.
3520 * doc/invoke.texi: Add documantation of S/390 and zSeries
3522 * doc/md.texi: Add documantation of S/390 and zSeries constraints.
3524 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
3526 * config/m68k/m68k.md: Replace all general_operand with
3527 nonimmediate_operand for all destinations.
3528 * config/m68k/m68k.c (not_sp_operand): Likewise.
3530 Mon Jul 30 23:20:34 EDT 2001 John Wehle (john@feith.com)
3532 * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
3534 2001-07-30 Richard Henderson <rth@redhat.com>
3536 * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
3537 * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
3539 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
3541 * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
3542 Add missing doc strings
3543 * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
3544 * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
3546 Mon Jul 30 22:16:08 CEST 2001 Jan Hubicka <jh@suse.cz>
3548 * i386.c (ix86_output_main_function_alignment_hack): New function.
3549 (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
3551 * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
3552 edges by EDGE_DFS_BACK flag.
3553 (dump_edge_info): Add dfs_back flag.
3554 * basic-block.h (EDGE_DFS_BACK): New constant.
3555 (mark_dfs_back_edges): Declare.
3556 * alias.c (loop_p): Remove.
3557 (mark_constant_function): Use mark_dfs_back_edges.
3559 * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
3560 (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
3561 (compensate_edge): Break out from ...
3562 (convert_regs_1): ... here; do smart choosing of stack_out to copy.
3563 (convert_regs_2): Set block_done once block is really done;
3564 Do updating of the predecesors counts.
3566 * toplev.c (rest_of_compilation): Recompute block_for_insn
3567 before post-reload cfg_cleanup.
3568 * function.c (thread_prologue_epilogue_insns):
3569 Call set_block_for_new_insns when emitting prologue directly.
3571 2001-07-30 Andreas Jaeger <aj@suse.de>
3573 * jump.c: Add prototype for mark_modified_reg.
3575 * cse.c (set_live_p): Add unused attribute.
3577 * gcov.c (calculate_branch_probs): Use gcov_type to avoid
3579 (scan_for_source_files): Use long for count to avoid overflow.
3580 (output_data): Likewise.
3581 (output_data): Don't use string concatatenation to silence gcc
3584 * predict.c: Fix typos and grammar.
3586 * gcse.c (insert_insn_end_bb): Remove unused variables.
3588 Mon Jul 30 21:54:53 CEST 2001 Jan Hubicka <jh@suse.cz>
3590 * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
3591 (attempt_auto_inc): LIkewise.
3592 (mark_used_reg): Likewise.
3593 (try_pre_increment_1): Likewise.
3594 * regclass.c (regclass): Likewise.
3595 * global.c (allocno_compare): Update comment; change scaling factor.
3596 * local-alloc.c (QTY_CMP_PRI): Likewise.
3597 * regs.h (REG_FREQ_FROM_BB): New.
3598 (REG_FREQ_MAX): Likewise.
3600 2001-07-30 H.J. Lu <hjl@gnu.org>
3602 * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
3605 2001-07-30 H.J. Lu (hjl@gnu.org)
3607 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
3608 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
3609 (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
3611 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3613 * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
3614 as -mthumb-interwork when -mcpu=arm7 is specified.
3616 Mon Jul 30 17:44:43 CEST 2001 Jan Hubicka <jh@suse.cz>
3618 * predict.def (noreturn, loop branch, loop exit): Mark as first
3621 Mon Jul 30 12:52:11 CEST 2001 Jan Hubicka <jh@suse.cz>
3623 * combine.c (try_combine): Avoid barrier after noop jumps.
3625 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3627 * cpphash.h (struct cpp_reader): Remove import_warning.
3628 * cpplib.c (skip_rest_of_line): Don't bother turning off
3630 (parse_include): Move include handling to...
3631 (do_include_common): ... here. Move import warning from...
3632 (do_import): ... here.
3633 (do_pragma_poison): Don't do a callback for poison identifiers.
3634 * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
3635 * cppmain.c (setup_callbacks): Similarly.
3637 Sun Jul 29 23:26:50 CEST 2001 Jan Hubicka <jh@suse.cz>
3639 * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
3640 handle multiple sets.
3641 * except.c (sjlj_mark_call_sites): .... here.
3642 * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
3644 Sun Jul 29 21:38:45 CEST 2001 Jan Hubicka <jh@suse.cz>
3646 Suggested by Richard Henderson and Richard Kenner:
3647 * combine.c (recog_for_combine): Use the fake recog
3648 only if instruction does not match.
3649 * rtl.h (NOOP_MOVE_INSN_CODE): New.
3650 * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
3652 * combine.c (try_combine): Discover noop jump as direct jump.
3654 2001-07-29 Daniel Berlin <dan@cgsoftware.com>
3656 * df.c (df_rd_global_compute): Add successors to worklist, not
3658 (df_ru_global_compute): Ditto.
3660 2001-07-27 Daniel Berlin <dan@cgsoftware.com>
3662 * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
3663 increment REG_N_SETS.
3665 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
3667 * sbitmap.h: New prototype for sbitmap_a_xor_b.
3669 * sbitmap.c (sbitmap_a_xor_b): New function.
3670 ifdef the basic block stuff on IN_GCC.
3672 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3674 * cppexp.c (parse_defined): Always record the macro name.
3675 (lex): Don't worry about identifiers, or special-case
3677 (_cpp_parse_expr): Figure out at the end of the routine
3678 whether we saw a valid !defined() expression.
3679 * cppfiles.c (stack_include_file): Update for mi_valid.
3680 (_cpp_pop_file_buffer): Similarly.
3681 * cpplex.c (_cpp_lex_token): Similarly.
3682 * cpphash.h (enum mi_state, enum mi_ind, mi_state,
3683 mi_if_not_defined, mi_lexed): Remove.
3685 * cpplib.c (do_if): Simplify.
3686 (do_endif, push_conditional, _cpp_handle_directive): Update
3687 for renaming of mi_state to mi_valid.
3689 * cpp.texi: Add index entries for digraphs, and add comment
3690 that C++ refers to them as alternative tokens.
3692 Sun Jul 29 18:59:13 CEST 2001 Jan Hubicka <jh@suse.cz>
3694 * basic-block.h (CLEANUP_PRE_LOOP): New.
3695 * except.c (finish_eh_generation): Update call of cleanup_cfg.
3696 * sibcall.c (optimize_sibling_calls): Likewise.
3697 * toplev.c (rest_of_compilation): Likewise.
3698 * flow.c (try_forward_edges): Take argument MODE;
3699 do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
3700 (try_optimize_cfg): Update call of try_forward_edges.
3702 Sun Jul 29 18:59:56 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
3703 Jan Hubicka <jh@suse.cz>
3705 * (validate_replace_rtx_1): Fix simplification of MINUS.
3707 2001-07-29 Neil Booth <neil@daikokuya.demon.co.uk>
3709 PR preprocessor/3669
3710 * cppinit.c (init_dependency_output): Turn off dump requests
3711 if sending dependencies to stdout.
3713 2001-07-28 Richard Henderson <rth@redhat.com>
3715 * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
3718 2001-07-28 Golubev I. N. <gin@mo.msk.ru>
3720 * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
3722 2001-07-28 Kazu Hirata <kazu@hxi.com>
3724 * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
3725 is VAR_DECL first to prevent an ICE.
3727 2001-07-28 Richard Henderson <rth@redhat.com>
3729 * varasm.c (immed_real_const_1): Don't elide special cases for
3731 (clear_const_double_mem): Clear const_tiny_rtx too.
3733 2001-07-28 Richard Henderson <rth@redhat.com>
3735 * dwarf2out.c (dw_val_class_offset): New.
3736 (struct dw_ranges_struct, dw_ranges_ref): New.
3737 (ranges_table, ranges_table_allocated): New.
3738 (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
3739 (add_AT_offset, add_ranges, output_ranges): New.
3740 (print_die, output_die): Handle dw_val_class_offset.
3741 (attr_checksum, size_of_die, value_format): Likewise.
3742 (gen_lexical_block_die): Handle non-contiguous blocks.
3743 (gen_block_die): Likewise.
3744 (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
3745 if needed. Dump the ranges table.
3746 * final.c (final_start_function): Remove unnecessary notes and
3747 rebuild the block tree before numbering the blocks.
3748 * function.c (reorder_blocks_0): Walk the existing block tree
3749 to unmark all blocks.
3750 (reorder_blocks_1): Create block fragments when duplicate block
3752 (reorder_fix_fragments): New.
3753 (reorder_blocks): Call it.
3754 * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
3756 2001-07-28 Richard Henderson <rth@redhat.com>
3758 * emit-rtl.c (adjust_address): Make a copy of the memory address.
3760 2001-07-28 Richard Henderson <rth@redhat.com>
3762 * flow.c (add_to_mem_set_list): New function.
3763 (init_propagate_block_info): Use it.
3764 (mark_set_1): Likewise.
3765 (insn_dead_p): Canonicalize memory address for dead store
3766 comparison. Allow wider mode stores to kill narrower mode stores.
3767 (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
3768 (invalidate_mems_from_set): Don't handle MEMs.
3770 2001-07-28 Kazu Hirata <kazu@hxi.com>
3772 * config/h8300/h8300.h: Fix formatting.
3774 Sat Jul 28 23:35:22 CEST 2001 Jan Hubicka <jh@suse.cz>
3776 * basic-block.h (EDGE_FREQUENCY): New macro.
3777 * bb-reorder (fixup_reorder_chain): Set counts and frequencies
3779 * flow.c (find_sub_basic_blocks): Likewise.
3780 (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
3781 (redirect_edge_and_branch): Use EDGE_FREQUENCY.
3783 * predict.c (DEF_PREDICTOR): New argument FLAGS.
3784 (HITRATE): New macro.
3785 (PRED_FLAG_FIRST_MATCH): New constant.
3786 (predictor_info): New field flgags.
3787 (combine_predictions_for_insn): Use DS theory to combine
3788 probabilities; set the edge probabilities when finished.
3789 (estimate_probability): Avoid duplicated matches
3790 of LOOP_BRANCH heuristics for nested loops; update comment.
3791 * predict.def: Add flags for each prediction, set probabilities
3792 according to B&L paper.
3793 * predict.h (DEF_PREDICTOR): New argument FLAGS.
3795 * profile.c (compute_branch_probabilities): Cleanup way the edge
3796 probabilities are computed and REG_BR_PROB notes are dropped; if
3797 values does not match, emit error.
3798 (init_branch_prob): Do error instead of warning when profile driven
3799 feedback is missing or corrupt.
3801 2001-07-27 DJ Delorie <dj@redhat.com>
3803 * ifcvt.c (noce_get_alt_condition): If the condition is a compare
3804 against a constant, try to adjust the compare to have the desired
3805 constant in it so that min/max optimizations happen more often.
3807 Fri Jul 27 17:53:00 CEST 2001 Jan Hubicka <jh@suse.cz>
3809 * flow.c (last_loop_beg_note): New function.
3810 (redirect_edge_and_branch): Use it.
3811 (split_edge): Likewise.
3813 * alias.c (loop_p): Avoid uninitialized memory access.
3815 * flow.c (try_forward_edges): Avoid accessing freed memory.
3817 * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
3820 2001-07-26 Andrew Haley <aph@redhat.com>
3821 Joern Rennecke <amylaar@redhat.com>
3823 * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
3824 (SUBTARGET_CPP_ENDIAN_SPEC): New.
3825 (SUBTARGET_CPP_SPEC): New.
3827 * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
3828 (SUBTARGET_CPP_PTR_SPEC): New.
3829 (CPP_DEFAULT_CPU_SPEC): New.
3830 (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
3831 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
3832 (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
3833 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
3834 (SUBTARGET_CPP_SPEC): Define as an empty string.
3836 2001-07-27 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3838 * doc/install.texi (Configuration): Properly link the host
3839 specific instructions also when generating HTML.
3841 Fri Jul 27 00:33:35 EDT 2001 John Wehle (john@feith.com)
3843 * flow.c (redirect_edge_and_branch_force): Test
3844 target->global_live_at_start.
3846 2001-07-26 Richard Henderson <rth@redhat.com>
3848 * simplify-rtx.c (avoid_constant_pool_reference): Export.
3849 * rtl.h (avoid_constant_pool_reference): Declare it.
3850 * dwarf2out.c (add_location_or_const_value_attribute): Use it.
3851 (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
3853 Thu Jul 26 22:30:22 CEST 2001 Jan Hubicka <jh@suse.cz>
3855 * rtl.h (cleanup_barriers): Declare.
3856 * jump.c (cleanup_barriers): New function.
3857 * toplev.c (rest_of_compilation): Call cleanup_barriers
3858 before loop optimizer and after bb_reorder.
3860 * flow.c (back_edge_of_syntactic_loop_p): New.
3861 (split_edge): Use it.
3863 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3865 * glimits.h (_MACH_MACHLIMITS_H_): Delete.
3867 Thu Jul 26 22:22:21 2001 Denis Chertykov <denisc@overta.ru>
3869 * cse.c (cse_process_notes): Replace any registers if the address
3872 Thu Jul 26 14:04:03 EDT 2001 John Wehle (john@feith.com)
3874 * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
3875 (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
3876 (propagate_block): Update prototype.
3877 * flow.c (update_life_info): Simplify the CFG and
3878 recalculate the global regs which are alive when
3879 removing dead code during a global update.
3880 (propagate_block): Return non-zero if an INSN is
3883 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3885 * Makefile.in (LIBICONV): Define.
3887 2001-07-26 Catherine Moore <clm@redhat.com>
3889 * config/v850/v850.h (ENCODE_SECTION_INFO): Change order
3890 of conditional to avoid tree checking errors.
3892 2001-07-26 Kazu Hirata <kazu@hxi.com>
3894 * regmove.c (regmove_optimize): Don't replace a reg with
3895 another reg of a different mode.
3897 2001-07-26 Andrew MacLeod <amacleod@redhat.com>
3899 * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
3900 limit length of dependancy flush list.
3901 * params.h (MAX_PENDING_LIST_LENGTH): Define.
3902 * sched-int.h (struct deps): Add pending_flush_length field.
3903 * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
3904 has 1 element in it.
3905 (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
3906 (sched_analyze): After a jump, if the pending memory flush list is too
3907 large, flush the pending lists.
3908 (init_deps): Initialize pending_flush_length to 0.
3909 * doc/invoke.texi (max_pending_list_length): Document parameter.
3911 2001-07-26 Neil Booth <neil@daikokuya.demon.co.uk>
3913 * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
3914 * dbxout.c (dbxout_global_decl): Move outside #ifdef.
3915 * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
3917 2001-07-26 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3919 * cpphash.h (struct_lexer_state): Delete was_skipping.
3920 Move skipping here from struct cpp_reader.
3921 * cpplex.c (parse_identifier): Update.
3922 (_cpp_lex_token): Don't skip tokens in a directive.
3923 * cpplib.c (struct if_stack): Update.
3924 (start_directive, end_directive): Don't change skipping state.
3925 (_cpp_handle_directive): Update.
3926 (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
3927 (do_else, do_endif): Update; only check for excess tokens if not
3928 in a skipped conditional block.
3929 (push_conditional): Update for new struct if_stack.
3931 2001-07-26 Graham Stott <grahams@redhat.com>
3933 * function.c (locate_and_pad_parm): Also pad initial offset
3934 so that the total argument size also includes the padding.
3936 2001-07-26 Graham Stott <grahams@redhat.com>
3938 * gensupport.c (alter_output_for_insn): Correct enable checking failure
3939 change XSTR to XTMPL.
3941 (process_one_cond_exec): Likewise
3943 2001-07-25 Richard Henderson <rth@redhat.com>
3945 * varasm.c (assemble_variable): Create DECL_RTL before setting
3948 Thu Jul 26 00:19:30 CEST 2001 Jan Hubicka <jh@suse.cz>
3950 * predict.c (estimate_probability): Avoid duplicated predictions.
3952 * loop.c (find_and_verify_loops): Grok multiple barriers.
3954 Wed Jul 25 18:00:05 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3956 * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
3958 * dbxout.c: Consistently use putc instead of fputc.
3959 (print_wide_int): New function; call instead of direct fprintf.
3960 (dbxout_type_index): Adjust calls of CHARS to be more accurate.
3961 (dbxout_type_fields, dbxout_type_method_1): Likewise.
3962 (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
3963 (print_int_cst_octal): Likewise.
3964 (print_octal): Show we wrote characters.
3965 (dbxout_type): Set have_used_extensions in more places.
3967 2001-07-25 Catherine Moore <clm@redhat.com>
3969 * config/v850/v850.c (v850_va_arg): Use addr
3970 instead of valist to build incr.
3972 Wed Jul 25 22:48:59 CEST 2001 Jan Hubicka <jh@suse.cz>
3974 * flow.c (delete_dead_jumptables): New function.
3975 (life_analyzis): Call it.
3976 * bb-reorder.c (skip_insns_after_block): Handle contradictory
3979 2001-07-25 Richard Henderson <rth@redhat.com>
3981 * except.c (reachable_handlers): Handle a region being removed
3982 out from under a RESX.
3984 2001-07-25 Richard Henderson <rth@redhat.com>
3986 * config/alpha/alpha.c (alpha_emit_conditional_move): Always
3987 swap GE/GT if it is an fp comparison.
3989 2001-07-25 Andrew Haley <aph@cambridge.redhat.com>
3991 * alias.c (rtx_equal_for_memref_p): Allow strings as types in
3994 Wed Jul 25 08:25:01 2001 Jeffrey A Law (law@cygnus.com)
3996 * ssa.c (rename_insn_1): Do not wrap an assignment to a
3997 paradoxical SUBREG inside a SEQUENCE. Fix minor formatting
4000 * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
4002 (visit_expression): When attempting to simplify an expression,
4003 retrieve any modes for arguments before they are simplified
4006 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
4007 Janis Johnson <janis@us.ibm.com>
4009 * stmt.c (expand_goto): A nonlocal goto can be a call too.
4010 * builtins.c (expand_builtin_longjmp): Reverse label and static chain
4011 pointer parameters to match documented usage of nonlocal_goto.
4012 * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
4013 parameters to their correct order.
4014 * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
4015 parameters to their correct order.
4017 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
4019 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
4021 2001-07-25 Jan Hubicka <jh@suse.cz>
4022 Richard Henderson <rth@redhat.com>
4024 * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
4026 (make_edges): New argument update_p; populate the edge cache if set.
4027 (find_basic_blocks): Update make_edges invocation.
4029 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4031 * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
4033 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4035 * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
4036 -Acpu and -Amachine.h.
4037 * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
4038 Corrected header to say ELF not a.out.
4039 * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
4040 when given -msoft-float.
4042 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4044 * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
4045 extra multilib parts like arm-elf.
4046 (i960-*-coff*, i960-*-rtems): Should not use collect2.
4047 (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
4048 crtfini.o as extra multilib parts.
4050 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4052 * configure.in: Add rtems as a supported thread model.
4053 * gthr-rtems.h: Add missing entry point __gthread_active_p.
4054 * configure: Rebuilt.
4056 2001-07-24 Lars Brinkhoff <lars@nocrew.org>
4058 * stor-layout.c (get_mode_alignment): make it work when
4059 BITS_PER_UNIT is not a power of two.
4060 * builtins.c (get_pointer_alignment): Likewise.
4062 2001-07-24 Richard Henderson <rth@redhat.com>
4064 * simplify-rtx.c (avoid_constant_pool_reference): Coerce
4065 the retrieved constant into the expected mode.
4067 Wed Jul 25 01:41:27 CEST 2001 Jan Hubicka <jh@suse.cz>
4069 * flow.c (try_simplify_condjump): Avoid duplicated edges.
4070 (verify_flow_info): Check for duplicated edges; clarify
4073 * flow.c (block_label): Update basic_block_for_insn.
4074 (commit_edge_insertions): Call compute_bb_for_insn.
4076 * flow.c (purge_dead_edges): Handle conditional jumps and conditional
4079 * flow.c (redirect_edge_and_branch,
4080 try_optimize_cfg): Use redirect_edge_succ_nodup
4081 (redirect_edge_succ_nodup): New.
4082 * basic_block.h (redirect_edge_succ_nodup): Declare.
4084 * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
4087 Wed Jul 25 00:32:49 CEST 2001 Jan Hubicka <jh@suse.cz>
4089 * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
4090 (try_crossjump_to_edge): Update commetns.
4091 (try_crossjump_bb): Likewise.
4093 2001-07-24 Richard Henderson <rth@redhat.com>
4095 * combine.c (distribute_notes): Move set of need_refresh
4096 for noop_move_p down to catch all cases.
4098 Tue Jul 24 20:32:44 CEST 2001 Jan Hubicka <jh@suse.cz>
4100 * recog.c (split_all_insns_noflow): New.
4101 * rtl.h (split_all_insns_noflow): Declare.
4102 * ia64.c (ia64_reorg): Use split_all_insns_noflow.
4103 * m68hc11.c (m68hc11_reorg): Likewise.
4104 * sh.c (machine_dependent_reorg): Likewise.
4105 * toplev.c (rest_of_compilation): Likewise for last split_all_insns
4108 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
4110 * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
4111 (ashlsi3_n splitter): Likewise.
4112 (lshrsi3_n splitter): Likewise.
4114 (GOTaddr2picreg): Make const SImode.
4115 (sym_label2reg): Likewise.
4116 (symGOT2reg): Likewise.
4117 (symGOTOFF2reg) Likewise.
4119 (casesi_worker_0): Make unspec SImode.
4121 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
4123 * config/sh/sh.c (barrier_align): Check that an operand really is
4124 an insn before extracting its INSN_CODE.
4126 2001-07-24 Andrew Haley <aph@cambridge.redhat.com>
4128 * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
4131 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
4132 for SImode to prevent overflow.
4134 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4136 * config/mips/irix6-libc-compat.c: New file.
4137 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
4138 * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
4141 2001-07-24 lars brinkhoff <lars@nocrew.org>
4143 * rtl.texi (REG_POINTER): Document.
4144 (Machine Modes): Document BImode, OImode, PQImode, PHImode,
4145 QFmode, HFmode, TQFmode, QCmode, and HCmode.
4147 Tue Jul 24 10:49:40 CEST 2001 Jan Hubicka <jh@suse.cz>
4149 * flow.c (delete_noop_moves): Do not confuse libcall regions.
4151 2001-07-23 Richard Henderson <rth@redhat.com>
4153 * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
4155 2001-07-23 Kazu Hirata <kazu@hxi.com>
4157 * config/h8300/h8300-protos.h: Add a prototype for
4158 general_operand_dst_push.
4159 * config/h8300/h8300.c (general_operand_dst_push): New.
4160 * config/h8300/h8300.h (OK_FOR_T): New.
4161 (EXTRA_CONSTRAINT): Use it.
4162 * config/h8300/h8300.md (movqi_push): Remove and integrate into
4163 the existing movqi pattern.
4164 (movhi_push): Likewise.
4166 * reload.c: Fix comment typos.
4168 Mon Jul 23 23:34:07 CEST 2001 Jan Hubicka <jh@suse.cz>
4170 * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
4172 2001-07-23 H.J. Lu (hjl@gnu.org)
4174 * doc/extend.texi: Update __builtin_return_address and
4175 __builtin_frame_address.
4177 2001-07-23 Richard Henderson <rth@redhat.com>
4179 * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
4181 * config/i386/i386.md: New setcc+movzbl peephole2.
4183 2001-07-23 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4185 * objc/Make-lang.in (objc-act.o): Depend on debug.h.
4186 * objc/objc-act.c: Include debug.h.
4187 (synth_module_prologue): Save and restore debug hooks too.
4189 2001-07-23 lars brinkhoff <lars@nocrew.org>
4191 * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
4192 and C4X_FLOAT_FORMAT.
4193 (BOOL_TYPE_SIZE): Document.
4195 Mon Jul 23 11:54:23 2001 Clinton Popetz <cpopetz@cpopetz.com>
4197 * unroll.c (loop_iterations): Fix miscalculation of initial
4200 2001-07-13 Andrew Haley <aph@redhat.com>
4202 * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
4203 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
4204 * config/sh/sh.c (sh_can_redirect_branch): New function.
4205 * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
4206 * reorg.c (steal_delay_list_from_target): Use
4207 MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
4209 Mon Jul 23 17:20:18 CEST 2001 Jan Hubicka <jh@suse.cz>
4211 * flow.c (try_simplify_condjump): Unlink insn chain on
4212 fallthru edge; use can_fallthru.
4214 Mon Jul 23 16:03:19 CEST 2001 Jan Hubicka <jh@suse.cz>
4216 * basic-block.h (find_sub_basic_block): Declare.
4217 * flow.c (make_edges): New arguments MIN and MAX;
4218 (find_sub_basic_blocks): Revamp to use make_edges
4219 and purge_dead_edges.
4220 (find_basic_blocks): Update call of find_sub_basic_block.
4222 * recog.c (split_all_insns): Always expect CFG to be consistent;
4223 call find_sub_basic_blocks in case something has changed.
4224 * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
4227 * basic-block.h (delete_noop_moves): Declare.
4228 * combine.c (combine_instructions): Call it.
4229 (recog_for_combine): Tolerate noop moves
4230 (distribute_notes): Force refresh when register dies at noop move.
4231 * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
4233 (life_analysis): Update delete_noop_moves call.
4234 (set_noop_p): Move too ...
4235 * rtlanal.c (noop_move_p): ... here.
4236 * rtl.h (noop_move_p): Declare.
4238 * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
4239 * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
4241 * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
4242 (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
4244 2001-07-23 Hans-Peter Nilsson <hp@bitrange.com>
4246 * reload.c (push_reload): Fix typo in comment.
4247 (find_reloads_address): Ditto.
4248 (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
4250 2001-07-22 Richard Henderson <rth@redhat.com>
4252 * flow.c: Grammar check and clarify a lot of comments.
4253 (try_simplify_condjump): Rename variables to be clearer.
4254 (try_forward_edges): Skip complex and fallthru edges.
4255 Rearrange tests to avoid duplicate checks.
4256 (flow_find_cross_jump): Likewise.
4257 (outgoing_edges_match): Allow match if neither branch has
4258 probability data. Loosen probability match to 5%.
4259 (try_crossjump_to_edge): Hoist repeated indirection into
4261 (try_crossjump_bb): Don't check complex edges. Eliminate
4262 redundant crossjump tests.
4263 (try_optimize_cfg): Fix use of bool. Reorganize cheaper
4264 checks before more expensive checks.
4266 2001-07-22 Richard Henderson <rth@redhat.com>
4268 * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
4269 INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
4272 2001-07-22 Richard Henderson <rth@redhat.com>
4274 * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
4275 (const_sint32_operand): Likewise.
4276 * m68k.md (anon mulsi pattern): Use const_int_operand not
4277 const_sint32_operand.
4278 (umulsi3_highpart): Zero extend a constant input.
4279 (smulsi3_highpart): Don't bother checking SImode constant.
4280 (const_umulsi3_highpart): Give op3 DImode.
4281 (const_smulsi3_highpart): Likewise.
4283 2001-07-22 Richard Henderson <rth@redhat.com>
4285 * flow.c (split_block): Make sure bb_note is included in the
4286 new block when splitting before a label.
4288 Sun Jul 22 23:28:56 CEST 2001 Jan Hubicka <jh@suse.cz>
4290 * basic-block.h (redirect_edge_and_branch_force,
4291 redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
4292 * flow.c (redirect_edge_and_branch_force,
4293 redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
4294 (redirect_edge_and_branch_force): Fix copying of lifeness information.
4295 (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
4296 * ifcvt.c (dead_or_predictable): Take BB as an new destionation
4297 instead of label; update CFG after transformation.
4298 (find_if_case_1): Update call, use redirect_edge_and_branch_force
4299 for finishing the transformation; handle even case where ELSE
4300 does not follow THEN.
4301 (find_if_case_2): Update call of dead_or_predictable; simplify
4304 * emit-rtl.c (split_branch_probability): New global variable.
4305 (try_split): Take care to set split_branch_probability and
4306 create REG_BR_PROB note for new jump insns.
4307 * md.texi (define_split): Document new feature.
4309 * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
4311 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
4313 * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
4314 (asm_out_file): Remove redundant declaration.
4315 (assemble_asm): Remove old #if 0 block.
4316 (assemble_variable): Remove end of function; debug output is
4317 now handled with global_decl. Remove old #if 0 block. Update.
4318 Remove saved_in_section and associated no-op code.
4319 * Makefile.in (varasm.o): Correct dependencies.
4321 Sun Jul 22 17:55:11 2001 Alexandre Oliva <aoliva@redhat.com>
4323 * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
4324 the definition in defaults.h.
4326 Sun Jul 22 21:31:04 CEST 2001 Jan Hubicka <jh@suse.cz>
4328 * jump.c: Update comments.
4329 (delete_barrier_successors, delete_unreferenced_labels,
4330 delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
4331 delete_labelref_insn, redirect_tablejump, jump_optimize_1,
4332 jump_optimize, jump_optimize_minimal): Kill.
4333 (rebuild_jump_labels): Move code from jump_optimize_1.
4334 (purge_line_number_notes): Likewise.
4335 (copy_loop_headers): Likewise.
4336 * reg-stack.c: Update comment.
4338 * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
4339 JUMP_AFTER_REGSCAN): Kill.
4340 * toplev.c (rest_of_compilation): Use cleanup_cfg, call
4341 purge_line_number_notes and copy_loop_headers.
4343 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
4344 Richard Henderson <rth@redhat.com>
4346 * dbxout.c (dbxout_global_decl): New.
4347 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
4348 * sdbout.c (sdbout_finish): New.
4349 (sdbout_debug_hooks): Use it, add comments.
4350 (sdbout_global_decl): Defer initialised public vars to
4352 * varasm.c (assemble_variable): Don't output debug information
4353 for file-scope variables.
4355 2001-07-22 Richard Henderson <rth@redhat.com>
4357 * config/alpha/alpha.c (get_trap_mode_suffix): New.
4358 (get_round_mode_suffix): New.
4359 (print_operand): Use them for [/]. Remove support for [&'`()+].
4360 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
4361 * config/alpha/alpha.md (attr round_suffix): New.
4362 (attr trap_suffix): New.
4363 (all insns): Set them appropriately. Use %/ instead of the
4366 2001-07-22 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4368 * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
4370 2001-07-22 Richard Henderson <rth@redhat.com>
4372 * regrename.c (regrename_optimize): Compute nregs for each
4373 potential target register.
4375 2001-07-21 Neil Booth <neil@daikokuya.demon.co.uk>
4376 Richard Henderson <rth@redhat.com>
4378 * dbxout.c (dbxout_global_decl): New.
4379 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
4380 * sdbout.c (sdbout_finish): New.
4381 (sdbout_debug_hooks): Use it, add comments.
4382 (sdbout_global_decl): Defer initialised public vars to
4384 * varasm.c (assemble_variable): Don't output debug information
4385 for file-scope variables.
4387 2001-07-21 H.J. Lu (hjl@gnu.org)
4389 * config/mips/mips.c (mips_cpu): Moved into ...
4390 (override_options): Here.
4392 * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
4394 (mips_cpu): Removed.
4396 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4398 * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
4399 ("iorqi3"): Likewise.
4400 ("xorqi3"): Likewise.
4401 ("*addhi3"): Fix constraint to avoid reloading in a soft register.
4402 ("*subhi3_sp): Likewise.
4403 ("*subhi3"): Likewise.
4404 ("extendhisi2"): Accept D, X and Y as source operand to avoid
4407 2001-07-21 Nathan Sidwell <nathan@codesourcery.com>
4409 * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
4410 * config/freebsd.h: Likewise.
4411 * config/linux.h: Likewise.
4412 * config/openbsd.h: Likewise.
4413 * config/alpha/linux-elf.h: Likewise.
4414 * config/arm/linux-elf.h: Likewise.
4415 * config/d30v/d30v.h: Likewise.
4416 * config/fr30/fr30.h: Likewise.
4417 * config/ia64/aix.h: Likewise.
4418 * config/ia64/ia64.h: Likewise.
4419 * config/mips/linux.h: Likewise.
4420 * config/pj/pj.h: Likewise.
4421 * config/rs6000/linux.h: Likewise.
4422 * config/sparc/linux.h: Likewise.
4423 * config/sparc/linux64.h: Likewise.
4425 2001-07-20 Bruce Korb <bkorb@gnu.org>
4427 * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
4428 because getc() and char* may disagree on signedness.
4430 2001-07-20 Richard Henderson <rth@redhat.com>
4432 * doc/rtl.texi (REG_DEAD): Update for current semantics.
4434 * flow.c (try_redirect_by_replacing_jump): Correctly compute which
4435 insns to delete in the presence of cc0 in a jump insn.
4437 Fri Jul 20 22:14:49 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
4438 Jan Hubicka <jh@suse.cz>
4440 * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
4441 of doing the change by hand.
4443 Fri Jul 20 21:59:42 CEST 2001 Jan Hubicka <jh@suse.cz>
4445 * rtlanal.c (set_noop_p): Return true for noop jumps.
4447 * expr.c (emit_single_push_insn): Add call to push expander.
4448 * expr.h (optab_index): Add OTI_push
4449 (push_optab): New constant.
4450 * genopinit.c (optabs): Add push_optab.
4451 * optabs.c (init_optab): Init push optab.
4452 * md.texi (push??1): Document
4454 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4456 * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
4457 expand to emit the pattern; put a REG_INC note for push/pop
4459 ("movdf", "movdf_internal"): Likewise.
4460 ("movsi", "movsi_internal"): Likewise.
4461 ("movsf", "movsf_internal"): Likewise.
4462 ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
4464 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4466 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
4469 2001-07-20 Daniel Berlin <dan@cgsoftware.com>
4471 * params.def: Change default max inline insns to 100.
4473 2001-07-20 Diego Novillo <dnovillo@redhat.com>
4475 * combine.c (combine_simplify_rtx): Generate a new shift operation
4476 when simplifying the first operand of a (neg (ashift)) expression.
4478 2001-07-20 Roman Lechtchinsky <rl@cs.tu-berlin.de>
4480 * regclass.c (N_REG_INTS): Use only 32 bits per element.
4482 2001-07-20 Kelley Cook <kelley.cook@home.com>
4484 * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
4485 information. Move rest into ...
4486 (*-*-solaris): ... here. Eliminate redundant information and
4487 reword necessary packages section. Delete 4.x assembler bug info.
4488 (sparc-sun-*): Merge into ...
4489 (sparc-sun-sunos*): here.
4491 2001-07-20 Catherine Moore <clm@redhat.com>
4493 * config/v850/v850.md (casesi): Generate LABEL_REF
4496 Fri Jul 20 14:12:57 CEST 2001 Jan Hubicka <jh@suse.cz>
4498 * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
4499 * i386.c (ix86_zero_extend_to_Pmode): Make global.
4500 * i386.md (strclrsi expander): Use it.
4502 Fri Jul 20 13:24:16 CEST 2001 Jan Hubicka <jh@suse.cz>
4504 * integrate.c (copy_insn_list): handle
4505 NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
4506 (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
4507 identically as to CODE_LABEL.
4509 * fold-const (fold): Convert A/B/C to A/(B*C) and
4512 * except.c (connect_post_landing_pads): Delete the RESX insns.
4514 2001-07-20 Aldy Hernandez <aldyh@redhat.com>
4516 * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
4518 * config/mips/mips.md (nmadd/nmsub): Use macro.
4520 2001-07-20 Nathan Sidwell <nathan@codesourcery.com>
4522 * cppinit.c (remove_dup_dir): Make static.
4523 (remove_dup_dirs): Make static. Only warn about preempting a
4524 system directory with a non-system directory.
4526 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
4528 * ifcvt.c (noce_try_store_flag_constants): Correct order
4529 of parameters to trunc_int_for_mode.
4531 2001-07-19 Mark Mitchell <mark@codesourcery.com>
4533 * reorg.c (fill_simple_delay_slots): If an instruction might throw
4534 an exception that will be caught within this function, do not fill
4535 its delay slot with any subsequent instruction.
4537 2001-07-19 Steve Ellcey <sje@cup.hp.com>
4539 * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
4540 * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
4541 pointer extension instruction.
4542 * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
4543 * simplify-rtx.c (simplify_unary_operation) Likewise.
4544 * explow.c (convert_memory_address) Check value of
4545 POINTERS_EXTEND_UNSIGNED to avoid some conversions when
4547 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
4548 MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
4549 * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
4550 Add Multilib Support.
4551 (POINTERS_EXTEND_UNSIGNED) Define for ILP32 support.
4552 * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
4553 Add Multilib Support.
4554 (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
4556 * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
4557 * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
4558 a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
4560 2001-07-19 Alexandre Oliva <aoliva@redhat.com>
4562 * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
4563 old and new operands in `<', `3' and `b'.
4565 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
4567 * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
4568 (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
4569 (toplev.o): Don't depend on xcoffout.h.
4570 * c-decl.c: Include debug.h
4571 (duplicate_decls): Use debug hook.
4572 * dbxout.c (dbxout_source_file, dbxout_args): Make static.
4573 (dbx_debug_hooks, xcoff_debug_hooks): Update.
4574 (dbxout_types): Remove.
4575 * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
4576 * debug.c (do_nothing_debug_hooks): Update.
4577 (debug_true_tree, debug_nothing_rtx): New.
4578 * debug.h (struct rtx_def): New.
4579 (struct gcc_debug_hooks): New hooks ignore_block,
4580 outlining_inline_function and label.
4581 (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
4582 dwarf2out_frame_finish): New.
4583 * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
4584 Make static, update prototype.
4585 (dwarf2_debug_hooks): Update.
4586 * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
4587 dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
4588 * dwarfout.c (dwarf_debug_hooks): Update.
4589 * emit-rtl.c: Include debug.h.
4590 (remove_unnecessary_notes): Use debug hook.
4591 * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
4592 (final_scan_insn): Use debug hook.
4593 * integrate.c (output_inline_function): Use debug hook.
4594 * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
4595 (sdb_debug_hooks): Update.
4596 * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
4597 * toplev.c: Don't include xcoffout.h.
4598 (note_outlining_of_inline_function, debug_ignore_block): Remove.
4599 * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
4601 * tree.h (dwarf2out_do_frame): Remove.
4603 2001-07-19 Catherine Moore <clm@cygnus.com>
4605 * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
4607 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
4609 * reload1.c (eliminate_regs_in_insn): When updating a set
4610 to the frame pointer to the hardware frame pointer, perform
4611 the update always not just when REPLACE is set.
4613 * reload1.c (choose_reload_regs): Don't inherit a reload
4614 that crosses multiple registers if registers past the first
4615 don't fit in the desired class.
4617 * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
4618 when negating constants.
4620 2001-07-19 Toon Moene <toon@moene.indiv.nluug.nl>
4622 * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
4623 * doc/tree.texi: Ditto.
4625 2001-07-19 Mark Kettenis <kettenis@wins.uva.nl>
4626 Jakub Jelinek <jakub@redhat.com>
4628 * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
4629 (extract_cie_info): Handle "eh" augmentation properly,
4631 (struct frame_state, __frame_state_for): New.
4633 2001-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4635 * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
4636 HANDLE_SYSV_PRAGMA): Define.
4637 * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
4639 (copy_object): Caller changed.
4641 2001-07-19 Andreas Schwab <schwab@suse.de>
4643 * configure.in (assembler dwarf2 debug_line support): Define nop
4645 * configure: Regenerated.
4647 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
4649 * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
4651 * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
4652 to conditionally compiled block.
4653 (dbx_debug_hooks, xcoff_debug_hooks): Update.
4654 * dbxout.h (dbxout_function): Remove.
4655 * debug.c (do_nothing_debug_hooks): Update.
4656 * debug.h (struct gcc_debug_hooks): New hooks function_decl,
4657 global_decl, deferred_inline_function.
4658 * dwarf2out.c (dwarf2_debug_hooks): Update.
4659 (dwarf2out_global_decl): New.
4660 * dwarfout.c: Don't include dwarfout.h.
4661 (dwarfout_global_decl, dwarfout_function_decl,
4662 dwarfout_deferred_inline_function): New.
4663 (dwarf_debug_hooks): Update.
4664 * dwarfout.h: Remove.
4665 * final.c: Don't include dwarfout.h.
4666 * sdbout.c (sdbout_global_decl): New.
4667 (sdbout_debug_hooks): Update.
4668 * toplev.c: Don't include dwarfout.h.
4669 (check_global_declarations, rest_of_compilation): Use new debug hooks.
4670 (note_deferral_of_defined_inline_function): Remove.
4671 * toplev.h (note_deferral_of_defined_inline_function): Remove.
4672 * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
4673 * ch/lex.c: Don't include dwarfout.h.
4674 * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
4675 (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
4676 * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
4677 * cp/optimize.c: Include debug.h.
4678 (maybe_clone_body): Use debug hook.
4679 * cp/semantics.c: Include debug.h.
4680 (expand_body): Use debug hook.
4681 * po/POTFILES.in: Remove dwarfout.h.
4683 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
4685 * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
4686 * c-parse.in (yyerror, _yylex): Similarly.
4687 * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
4688 Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
4690 * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
4691 * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
4693 2001-07-18 Jeff Sturm <jsturm@one-point.com>
4695 * dwarf2out.c (dwarf2out_abstract_function): Don't emit
4696 in-class declaration at -g1. Fixes c++/2814.
4698 2001-07-18 Richard Henderson <rth@redhat.com>
4700 * doc/md.texi (reload_in/out): Document restrictions in predicates
4701 and constraints for these patterns. Document empty string matching
4704 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4706 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
4708 Wed Jul 18 20:47:36 CEST 2001 Jan Hubicka <jh@suse.cz>
4710 * cse.c: Undo my previous patch.
4712 2001-07-18 Tom Tromey <tromey@redhat.com>
4715 * configure: Rebuilt.
4716 * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
4718 * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
4720 Wed Jul 18 18:46:30 CEST 2001 Richard Henderson <rth@cygnus.com>
4721 Jan Hubicka <jh@suse.cz>
4723 * flow.c (redirect_edge_and_branch): Bail out on complex edges.
4724 (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
4725 * jump.c (mark_jump_label): Do not forward branches.
4727 Wed Jul 18 18:35:01 CEST 2001 Jan Hubicka <jh@suse.cz>
4729 * cse.c (delete_trivially_dead_insns): Delete the libcall block
4730 when return value is unused.
4732 Wed Jul 18 18:28:16 CEST 2001 Jan Hubicka <jh@suse.cz>
4734 * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
4736 Wed Jul 18 12:05:29 2001 Nicola Pero <n.pero@mi.flashnet.it>
4738 * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
4739 on error. We can't blindly return the result of
4740 pthread_mutex_trylock because it returns a positive number on
4741 error, while we must return -1 on error.
4742 (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
4744 Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
4746 2001-07-18 Andreas Jaeger <aj@suse.de>
4748 * integrate.c (output_inline_function): Correct type of debug_hooks.
4750 2001-07-18 Toon Moene <toon@moene.indiv.nluug.nl>
4752 * combine.c (combine_simplify_rtx): DIV can be treated
4753 associatively for floats if unsafe math optimisations are enabled.
4755 2001-07-17 Richard Henderson <rth@redhat.com>
4757 * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
4759 2001-07-17 Richard Henderson <rth@redhat.com>
4761 * calls.c (prepare_call_address): New parameter SIBCALLP. If true,
4762 don't force the function address into a register.
4763 (expand_call, emit_library_call_value_1): Update callers.
4764 * builtins.c (expand_builtin_apply): Likewise.
4765 * expr.h (prepare_call_address): Update decl.
4767 2001-07-17 Chandrakala Chavva <cchavva@redhat.com>
4769 * config.gcc: For *-*-chorusos triplet, get chorus.h file from
4771 * config/i386/chorus.h: Move up.
4772 * config/sparc/chorus.h: Likewise.
4773 * config/rs6000/chorus.h: Likewise.
4774 * config/chorus.h: Moved here.
4776 2001-07-17 Andreas Schwab <schwab@suse.de>
4778 * configure.in (assembler eh_frame optimization): Handle big
4780 * configure: Regenerated.
4782 Tue Jul 17 23:43:31 CEST 2001 Jan Hubicka <jh@suse.cz>
4784 * expr.c (epxand_expr): Convert divisions into multiplications by
4785 reciprocals if -ffast-math.
4787 2001-07-17 Neil Booth <neil@daikokuya.demon.co.uk>
4789 * dbxout.c (dbxout_really_begin_function): Rename to
4790 dbxout_begin_function.
4791 (dbx_debug_hooks, xcoff_debug_hooks): Update.
4792 (dbxout_begin_function): Remove.
4793 (dbxout_function): Update.
4794 (dbxout_source_line): Update prototype.
4795 * dbxout.h (dbxout_begin_function): Remove.
4796 * debug.c (do_nothing_debug_hooks): Update.
4797 (debug_nothing_tree): Update.
4798 (debug_nothing_charstar_rtx): Remove.
4799 * debug.h (union tree_node): Declare.
4800 (struct rtx_def): Remove.
4801 (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
4802 begin_function. Change source_line prototype.
4803 (debug_nothing_tree): New.
4804 (debug_nothing_charstar_rtx): Delete.
4805 (dwarf2out_begin_prologue): Moved from ...
4807 * dwarf2out.c (dwarf2_debug_hooks): Update.
4808 (dwarf2out_begin_prologue): Update prototype. If genuine dwarf2
4809 debug info, call dwarf2out_source_line.
4810 (dwarf2out_souce_line): Update prototype.
4811 * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
4812 Change prototype, make static.
4813 (dwarfout_source_line): Update prototype.
4814 (dwarf_debug_hooks): Update.
4815 * dwarfout.h (dwarfout_begin_function): Remove.
4816 * final.c (final_start_function, final_scan_insn): Use appropriate
4817 debug hooks, update to use notice_source_line.
4818 (output_source_line): Rename notice_source_line. Don't call the
4819 source_line debug hook.
4820 * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
4821 make static, update prototype.
4822 (sdbout_mark_begin_function): Rename sdbout_begin_function, update
4824 (sdbout_end_prologue): New.
4825 (sdbout_source_line): Update prototype.
4826 (sdbout_debug_hooks): Update.
4827 (sdbout_symbol): Remove unused var.
4828 * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
4830 * varasm.c: Include debug.h.
4831 (assemble_start_function): Use begin_function debug_hook.
4832 * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
4833 update with prototype.
4834 (xcoffout_source_line): Update prototype.
4835 * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
4837 (xcoffout_source_line): Update prototype.
4839 2001-07-17 Richard Henderson <rth@redhat.com>
4841 * c-typeck.c (build_binary_op): Do not shorten unsigned
4842 right shift after sign extension.
4844 Tue Jul 17 16:56:05 CEST 2001 Jan Hubicka <jh@suse.cz>
4846 * combine.c (combine_simplify_rtx): Attempt to simplify
4847 a*(b/c) as (a*b)/c for floats in unsafe_math mode.
4849 * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
4850 (simplify_binary_operation, simplify_unary_operation,
4851 simplify_relational_operation): Use it.
4853 * combine.c (combine_simplify_rtx): Don't do associative law
4854 on divisions; allow associative law on floats.
4856 2001-07-17 H.J. Lu <hjl@gnu.org>
4857 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4859 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
4860 ASM_OUTPUT_WEAK_ALIAS are defined.
4861 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
4862 * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
4864 * config/mips/iris5.h: ... here.
4865 (HANDLE_SYSV_PRAGMA): Defined as 1.
4866 * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
4867 * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
4870 2001-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
4872 * c-parse.in (all_prefix_attributes): New variable.
4873 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
4874 (maybe_resetattrs): New production.
4875 (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
4876 maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
4877 notype_initdcl, nested_function, notype_nested_function,
4878 component_decl, components, components_notype,
4879 component_declarator, component_notype_declarator,
4880 absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
4881 ivars, mydecl, myparm): Update. Avoid prefix attributes just
4882 after a comma being applied to more than one declarator.
4883 * doc/extend.texi (Attribute Syntax): Update. Remove
4884 documentation of bugs that are no longer present.
4886 2001-07-13 Eric Christopher <echristo@redhat.com>
4888 * config/mips/mips.h: Change TUNE_MIPS* options to use
4890 (EXTRA_SPECS): Add cc1_cpu_spec.
4891 * config/mips/mips.md (muldf3): Fix typo.
4893 2001-07-16 Richard Henderson <rth@redhat.com>
4895 * config/m68k/m68k.c: Include expr.h and reload.h.
4896 (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
4897 [general int]: Use HOST_WIDE_INT_PRINT_DEC.
4899 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
4900 Richard Henderson <rth@redhat.com>
4902 * cse.c (set_live_p): Take INSN argument for cc0; update callers.
4903 (insn_live_p): Fix fall off end of function.
4904 (dead_libcall_p): Remove COUNTS argument; update callers.
4905 (delete_trivially_dead_insns): Remove unused variables.
4907 2001-07-17 Andreas Jaeger <aj@suse.de>
4909 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
4912 * lcm.c (optimize_mode_switching): Avoid warning for unused
4913 variable if !NORMAL_MODE.
4915 * flow.c (try_crossjump_to_edge): Remove unused variable.
4917 2001-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
4919 * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
4920 atexit declaration in stdlib.h.
4922 2001-07-16 Richard Begg <Richard.Begg@colesmyer.com.au>
4924 * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
4926 Mon Jul 16 22:48:00 CEST 2001 Jan Hubicka <jh@suse.cz>
4928 * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
4929 * except.c (finish_eh_generation): Update call of cleanup_cfg;
4930 do rebuild_jump_labels instead of jump_optimize
4931 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
4932 * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
4933 * flow.c (try_optimize_cfg): Remove unneeded code_labels.
4935 * flow.c: Include timevar.h
4936 (find_basic_block): Push/pop timevar;
4937 (cleanup_cfg): Likewise.
4938 * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
4939 * Makefile: Add dependencies on timevar.h
4941 * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
4942 (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
4944 * rtl.h (delete_trivially_dead_insns): Add new parameter.
4945 * toplev.c (rest_of_compilation): Update calls.
4946 * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
4947 (delete_trivially_dead_insns): ... here; accept new argument
4948 preserve_basic_blocks; preserve basic blocks if set.
4950 * reg-stack.c (stack_regs_mentioned): Return 0 if
4951 stack_regs_mentioned_data is not initialized.
4952 (reg_to_stack): Make stack_regs_mentioned survive after the
4953 reg-stack is completted; do not call cleanup_cfg.
4954 * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
4955 make cleanup_cfg after bb-reorder to output to debug file.
4957 2001-07-16 Richard Henderson <rth@redhat.com>
4959 * regclass.c (init_reg_sets): Use only 32 bits per initializer
4960 from int_reg_class_contents.
4962 2001-07-16 Richard Henderson <rth@redhat.com>
4964 * hard-reg-set.h (regs_invalidated_by_call): Declare.
4965 * regclass.c (regs_invalidated_by_call): Move from cse.c.
4966 (init_reg_sets_1): Move initialization from cse_main.
4967 * cse.c (regs_invalidated_by_call): Move to regclass.c.
4968 (cse_main): Move its initialization also.
4969 * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
4970 * flow.c (propagate_one_insn): Likewise.
4971 * gcse.c (compute_hash_table): Likewise.
4972 (compute_kill_rd, compute_store_table): Likewise.
4973 * sched-deps.c (sched_analyze_1): Likewise.
4975 Mon Jul 16 18:07:07 2001 J"orn Rennecke <amylaar@redhat.com>
4977 * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
4980 2001-07-16 Steve Ellcey <sje@cup.hp.com>
4982 * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
4983 in if statement so we don't access undefined memory.
4985 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
4987 * gcse.c: Update comment at top.
4988 Update comment on mem handling.
4989 mem_last_set, mem_first_set, mem_set_in_block: gone.
4990 Declaration of reg_set_info: gone.
4991 (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
4992 pointless with load_killed_in_block_p (they are *more*
4993 conservative then it, not less, and less accurate).
4994 (oprs_not_set_p): Ditto.
4995 (alloc_gcse_mem): Don't allocate mem_set_in_block
4996 (free_gcse_mem): Don't free it, either.
4997 (record_last_mem_set_info): Update comment in front, remove
4998 mem_*set_* stuff. Note the reason we don't handle stores directly
5000 (compute_hash_table): Update comments to reflect reality. Remove
5001 mem_*set_* references.
5002 (reset_opr_set_tables): Remove mem_*set_* references.
5004 (mark_set): Ditto. Also remove double sets of bitmaps for REG's.
5005 (mark_clobber): Ditto (on both parts, we double set here too).
5006 (expr_killed_p): Remove mem_set_in_block test.
5007 (compute_transp): Remove mem_set_in_block test.
5009 * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
5010 of edge, and removal of phi alternative to dump file.
5011 (ssa_ccp_substitute_constants): Add note about register now being
5012 constant, and which uses were replaced in what insns to dump file.
5014 2001-07-16 Andreas Jaeger <aj@suse.de>
5016 * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
5017 variables of type HOST_WIDEST_INT.
5019 * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
5020 (__bb_exit_func): Correct type of count_max to avoid overflow.
5021 (num_digits): Handle long long argument.
5023 * combine.c (gen_lowpart_for_combine): Remove unused variable.
5025 2001-07-16 Neil Booth <neil@cat.daikokuya.demon.co.uk>
5027 * output.h (sdb_begin_function_line): Restore as an extern
5029 * sdbout.c (sdb_begin_function_line): Make extern.
5031 2001-07-15 Richard Henderson <rth@redhat.com>
5033 * machmode.def (Pmode): Redefine if GENERATOR_FILE.
5034 * genrecog.c (maybe_both_true_mode): New.
5035 (maybe_both_true_2): Use it.
5036 (write_switch): Don't put Pmode in a switch.
5037 * rtl.c (mode arrays): Don't explicitly size them.
5039 Sun Jul 15 14:07:36 CEST 2001 Jan Hubicka <jh@suse.cz>
5041 * toplev.c (rest_of_compilation): Fix register_life_up_to_date
5042 handling; move unconditional splitting before mode switching.
5044 * i386.md (type): Add fistp type.
5045 (i387, length_attr, scheduling definitions): Handle this type.
5046 (fix_trunc?f?i2): Revamp to use mode switching.
5047 (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
5048 * i386.h (fp_cw_mode): New enum
5049 (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
5050 MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
5052 Sun Jul 15 12:53:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5054 * Makefile.in (integrate.o): Add debug.h.
5055 * integrate.c (debug.h): Add.
5056 (output_inline_function): Save, reset, and restore debug_hooks.
5058 2001-07-15 Richard Henderson <rth@redhat.com>
5060 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
5061 instead of COMPARE for the EQUIV expression.
5063 2001-07-15 Richard Henderson <rth@redhat.com>
5065 * flow.c (redirect_edge_and_branch_force): Initialize
5066 global_live_at_start and global_live_at_end.
5067 (allocate_bb_life_data): Export.
5068 * basic-block.h (allocate_bb_life_data): Declare.
5069 * toplev.c (rest_of_compilation): Call it.
5071 2001-07-15 Richard Henderson <rth@redhat.com>
5073 * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
5074 (alpha_tablejump_best_label): New.
5075 * config/alpha/alpha-protos.h: Declare them.
5076 * config/alpha/alpha.md: Use braced strings for code blocks.
5077 (tablejump_osf): Break out add with r29.
5078 (tablejump_osf_internal): Remove.
5079 (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
5080 use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
5082 Sun Jul 15 00:53:35 CEST 2001 Jan Hubicka <jh@suse.cz>
5084 * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
5087 * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
5089 * i386-protos.h (ix86_split_fp_branch): Update prototype.
5090 (ix86_fp_jump_nontrivial_p): New.
5091 * i386.md (fp_jcc_?): Update call of split_fp_branch;
5092 use ix86_fp_jump_nontrivial_p.
5093 * i386.c (ix86_fp_jump_nontrivial_p): New.
5094 (ix86_split_fp_branch): Accept code instead of rtx.
5095 (ix86_expand_compare): Expand comparison early in case
5096 doing so is resonably cheap.
5098 2001-07-15 Nick Clifton <nickc@cambridge.redhat.com>
5100 * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
5102 (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
5103 (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
5105 2001-07-15 Neil Booth <neil@daikokuya.demon.co.uk>
5107 * dbxout.c (dbxout_source_line): Make static, update prototype.
5108 (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
5109 (dbxout_init, dbxout_finish, dbxout_source_line,
5110 dbxout_begin_block, dbxout_end_block): Update for new prototypes.
5111 * dbxout.h (dbxout_source_line): Delete.
5112 * debug.c (debug_nothing_file, debug_nothing_file_int,
5113 debug_nothing_file_charstar_rtx): New.
5114 (do_nothing_debug_hooks): Update.
5115 (debug_nothing_void, debug_nothing_charstar_rtx,
5116 dwarf2out_end_epilogue): New.
5117 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
5118 * debug.h (struct rtx_def): Declare.
5119 (gcc_debug_hooks): New hooks source_line, end_epilogue
5121 (debug_nothing_void, debug_nothing_charstar_rtx,
5122 dwarf2out_end_epilogue): New.
5123 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
5124 * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
5125 (dwarf2_debug_hooks): Update.
5126 (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
5127 dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
5128 * dwarf2out.h (dwarf2out_source_line): Remove.
5129 * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
5130 Make static, update prototype.
5131 (dwarfout_init, dwarfout_finish, dwarfout_source_line,
5132 dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
5133 (dwarf_debug_hooks): Update.
5134 * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
5135 dwarfout_end_function): Remove.
5136 * final.c (profile_function): Use debug hooks for ending functions
5138 (output_source_line, final_end_function): Update prototype,
5140 (final_start_function, final_scan_insn): Update.
5141 * output.h (sdb_begin_function_line): Remove.
5142 (final_end_function): Update prototype.
5143 * sdbout.c (sdb_begin_function_line): Make static.
5144 (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
5145 (sdbout_source_line): New.
5146 (sdbout_end_epilogue, sdbout_end_function): Make static, update
5148 (sdb_debug_hooks): Update.
5149 (sdbout_init, sdbout_source_line,
5150 sdbout_begin_block, sdbout_end_block): Update for new prototypes.
5151 * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
5152 * toplev.c (compile_file, rest_of_compilation): Update.
5153 * tree.h (dwarf2out_end_epilogue): Move to debug.h.
5154 * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
5155 xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
5156 Update for prototype changes.
5157 * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
5158 xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
5160 2001-07-15 Richard Henderson <rth@redhat.com>
5162 * config/alpha/alpha.h (TARGET_ABI_OSF): New.
5163 (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
5164 * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
5165 * config/alpha/alpha.c: Likewise.
5166 * config/alpha/alpha.md: Likewise.
5167 * config/alpha/alpha32.h: Likewise.
5168 * config/alpha/vms.h: Likewise.
5171 2001-07-14 Richard Henderson <rth@redhat.com>
5173 * config/alpha/alpha.md: Use define_constants for unspec values.
5174 Substitute throughout.
5176 2001-07-14 Tim Josling <tej@melbpc.org.au>
5178 * tree.def (EXPON_EXPR) remove. Never supported anyway.
5180 2001-07-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
5182 * pa.md: Remove unused constraints from define_split's.
5184 2001-04-14 Richard Henderson <rth@redhat.com>
5186 * ifcvt.c (find_cond_trap): Test for exit block.
5188 Sun Jul 15 00:50:20 CEST 2001 Jan Hubicka <jh@suse.cz>
5190 Re-install recently reverted patch.
5191 * emit-rtl.c (try_split): Update mark_jump_label call.
5192 * flow.c (find_sub_basic_blocks): Likewise.
5193 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
5195 (mark_all_labels): Kill second parameter.
5196 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
5197 (rebuild_jump_labels, jump_optimize_minimal): Update call
5199 (jump_optimize_1): Kill crossjumping code.
5200 (mark_jump_label): Kill cross_jump parameter.
5201 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
5202 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
5203 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
5205 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
5207 (dump_file_info): Likewise.
5208 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
5209 reorganize passes to do reg-stack first, bb-reorder second.
5210 * invoke.texi (-d letters doc): Remove the jump2 pass.
5212 2001-07-14 Richard Henderson <rth@redhat.com>
5214 * ifcvt.c (find_cond_trap): New.
5215 (find_if_header): Call it.
5216 (merge_if_block): Relax existing jump sanity check.
5217 * jump.c (jump_optimize_1): Remove conditional trap handling.
5219 2001-07-14 Alan Modra <amodra@bigpond.net.au>
5221 * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
5223 (insn_refs_are_delayed): Correct comment.
5224 * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
5225 * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
5226 instead of r31. Make associated insn !TARGET_64BIT, and
5227 provide an additional 64-bit insn that clobbers r2.
5229 (udivsi3): Likewise.
5231 (umodsi3): Likewise.
5233 Sat Jul 14 02:58:38 CEST 2001 Jan Hubicka <jh@suse.cz>
5235 * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
5237 * flow.c (redirect_edge_and_branch_force, split_edge,
5238 try_crossjump_to_edge): Use set_block_for_new_insns.
5239 * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
5241 2001-07-13 H.J. Lu (hjl@gnu.org)
5243 * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
5246 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
5248 Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
5250 2001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
5252 * c-common.c (decl_attributes): Take a pointer to the node to
5253 which attributes are to be attached, and a flags argument.
5254 * c-common.h (enum attribute_flags): New.
5255 (decl_attributes): Update prototype.
5256 * c-decl.c (start_decl, push_parm_decl, finish_struct,
5257 finish_enum, start_function): Update calls to decl_attributes.
5258 * c-parse.in (component_declarator, component_notype_declarator,
5259 label): Update calls to decl_attributes.
5261 Fri Jul 13 23:04:00 2001 Denis Chertykov <denisc@overta.ru>
5263 * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
5264 * config/avr/avr.c (legitimate_address_p): Return value changed
5265 from letter to register classes. For better debugging.
5267 2001-07-13 Kazu Hirata <kazu@hxi.com>
5269 * jump.c (reversed_comparison_code_parts): Fix comment typos.
5271 2001-07-13 H.J. Lu (hjl@gnu.org)
5273 * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
5275 2001-07-13 Marc Espie <espie@cvs.openbsd.org>
5277 * config.gcc (*-*-openbsd*): Add fragment to compile libgcc
5278 correctly for shared configurations.
5279 * config/t-libgcc-pic: New.
5280 * config/{i386,m68k,sparc}/t-openbsd: New.
5281 * config/openbsd.h: Include cpu_spec in cpp_spec where needed.
5282 Support -shared. Support debugging libraries with -g.
5283 * config/i386/openbsd.h: Correct ASM_COMMENT_START. Ensure dwarf2
5284 frame information does not emit pointer diffs.
5285 * config/sparc/openbsd.h: Ensure dwarf2 frame information does not
5288 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
5290 Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
5292 2001-07-13 David Edelsohn <edelsohn@gnu.org>
5294 * combine.c (try_combine): Ensure const_int pow2 is positive.
5296 2001-07-13 Hartmut Penner <hpenner@de.ibm.com>
5298 * config.gcc: Add configuration for s/390.
5299 * config/s390/s390.c: New. Subroutines for code generation.
5300 * config/s390/s390.h: New. Definitions for s/390.
5301 * config/s390/s390-protos.h: New. Prototypes.
5302 * config/s390/linux.h: New. Definitions for linux for s/390.
5303 * config/s390/linux64.h: New. Definitions for linux for zSeries.
5304 * config/s390/t-linux: New. Makefile fragment.
5305 * config/s390/s390.md: New. Machine description for s/390 and zSeries.
5306 * config/s390/fixdfdi.h: New. Fix L_fix*di.
5308 Fri Jul 13 14:46:21 CEST 2001 Jan Hubicka <jh@suse.cz>
5310 * emit-rtl.c (try_split): Update mark_jump_label call.
5311 * flow.c (find_sub_basic_blocks): Likewise.
5312 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
5314 (mark_all_labels): Kill second parameter.
5315 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
5316 (rebuild_jump_labels, jump_optimize_minimal): Update call
5318 (jump_optimize_1): Kill crossjumping code.
5319 (mark_jump_label): Kill cross_jump parameter.
5320 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
5321 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
5322 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
5324 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
5326 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
5327 reorganize passes to do reg-stack first, bb-reorder second.
5328 * invoke.texi (-d letters doc): Remove the jump2 pass.
5330 2001-07-12 Steve Ellcey <sje@cup.hp.com>
5332 * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
5334 Thu Jul 12 17:57:16 CEST 2001 Jan Hubicka <jh@suse.cz>
5336 * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
5338 (verify_flow_info): Make diagnostics prettier.
5340 Thu Jul 12 16:48:54 CEST 2001 Jan Hubicka <jh@suse.cz>
5342 * flow.c (find_basic_blocks_1): Do not emit NOP after call.
5344 * flow.c (outgoing_edges_match): Return early if condition reversal
5347 2001-07-06 Richard Sandiford <rsandifo@redhat.com>
5349 * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
5350 (mips_move_2words): When splitting a move into two instructions,
5351 prefix the second address operand with '%D'.
5353 2001-07-12 Neil Booth <neil@daikokuya.demon.co.uk>
5355 * Makefile.in (final.o): Depend on debug.h.
5356 * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
5357 (dbx_debug_hooks): Add new hooks.
5358 (xcoff_debug_hooks): New.
5359 * debug.c (debug_nothing_file_int_int): New.
5360 (do_nothing_debug_hooks): Update.
5361 * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
5362 (debug_nothing_file_int_int): New.
5363 * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
5364 static, update prototype.
5365 (dwarf2_debug_hooks): Update.
5366 * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
5367 * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
5368 static, update prototype.
5369 (dwarf_debug_hooks): Update.
5370 * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
5371 * final.c: Include debug.h.
5372 (final_scan_insn): Use debug hooks when beginning and ending blocks.
5373 * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
5374 static, update prototype.
5375 (sdb_debug_hooks): Update.
5376 * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
5377 * toplev.c: Distinguish between xcoff and dbx.
5379 * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
5380 Call all debug hooks, not just dwarf ones.
5382 2001-07-11 Timothy Wall <twall@redhat.com>
5384 * config.gcc: Add configuration for AIX5/IA64.
5385 * config/ia64/aix.h: New. AIX5/IA64-specific configuration.
5386 * config/ia64/crt[in].asm: New. Generic static ctor/dtor
5387 support prefix/suffix code.
5388 * config/ia64/t-aix: New. Makefile fragment.
5389 * config/ia64/unwind-aix.c: New. Unwind table entry lookup.
5391 2001-07-11 Kazu Hirata <kazu@hxi.com>
5393 * recog.c (validate_change): Fix a comment typo.
5395 2001-07-11 Neil Booth <neil@daikokuya.demon.co.uk>
5397 * Makefile.in (c-lex.o): Wrap long lines. Depend on debug.h.
5398 * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
5400 * dbxout.c (dbx_debug_hooks): Add new hooks.
5401 (dbxout_start_new_source_file): Rename dbxout_start_source_file,
5403 (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
5405 * dbxout.h (dbxout_start_new_source_file,
5406 dbxout_resume_previous_source_file): Delete.
5407 * debug.c (do_nothing_debug_hooks): Add new hooks.
5408 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
5409 (debug_nothing_int_charstar, debug_nothing_int): New.
5410 * debug.h (gcc_debug_hooks): New hooks define, undef,
5411 start_source_file and end_source_file.
5412 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
5413 (debug_nothing_int_charstar, debug_nothing_int): New.
5414 * dwarf2out.c (dwarf2_debug_hooks): Add new hooks. Move into
5415 the conditionally compiled section.
5416 (dwarf2out_start_source_file, dwarf2out_end_source_file,
5417 dwarf2out_define, dwarf2out_undef): Make static.
5418 * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
5419 dwarf2out_define, dwarf2out_undef): Remove.
5420 * dwarfout.c (dwarf_debug_hooks): Add new hooks.
5421 (dwarfout_start_source_file, dwarfout_end_source_file,
5422 dwarfout_define, dwarfout_undef): Make static.
5423 (dwarfout_start_source_file_check,
5424 dwarfout_end_source_file_check): New.
5425 (dwarfout_define, dwarfout_finish): Update.
5426 * dwarfout.h (dwarfout_start_new_source_file,
5427 dwarfout_resume_previous_source_file, dwarfout_define,
5428 dwarfout_undef): Remove.
5429 * sdbout.c (sdb_debug_hooks): Add new hooks.
5430 (sdbout_start_new_source_file): Rename sdbout_start_source_file,
5432 (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
5433 make static, take an arg.
5434 * sdbout.h (sdbout_start_new_source_file,
5435 sdbout_resume_previous_source_file): Delete.
5436 * toplev.c (debug_start_source_file, debug_end_source_file,
5437 debug_define, debug_undef): Delete.
5438 * toplev.h (debug_start_source_file, debug_end_source_file,
5439 debug_define, debug_undef): Delete.
5441 * java/jcf-parse.c: Include debug.h.
5442 (parse_class_file): Update to use debug hooks directly.
5443 * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
5445 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5447 * alias.c (set_mem_alias_set): New function.
5448 * rtl.h (set_mem_alias_set): Declare it.
5449 * builtins.c (expand_builtin_return_addr): Call it instead of
5450 using MEM_ALIAS_SET accessor.
5451 (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
5452 (get_memory_rtx, expand_builtin_va_arg): Likewise.
5453 (expand_builtin_va_copy):Likewise.
5454 * caller-save.c (setup_save_areas): Likewise.
5455 * calls.c (compute_argument_addresses): Likewise.
5456 * explow.c (set_mem_attributes): Likewise.
5457 * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
5458 (expand_assignment, store_constructor_field, store_field): Likewise.
5459 (expand_expr_unaligned): Likewise.
5460 * function.c (assign_stack_temp_for_type): Likewise.
5461 (put_reg_into_stack, gen_mem_addressof): Likewise.
5462 * ifcvt.c (noce_try_cmove_arith): Likewise.
5463 * reload1.c (reload, alter_reg): Likewise.
5464 * config/alpha/alpha.c (get_aligned_mem): Likewise.
5465 (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
5466 (alpha_expand_unaligned_store): Likewise
5467 (alpha_expand_unaligned_load_words): Likewise.
5468 (alpha_expand_unaligned_store_words): Likewise.
5469 (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
5470 (alpha_expand_epilogue): Likewise.
5471 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
5472 * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
5473 * config/i386/i386.c (legitimize_pic_address): Likewise.
5474 * config/i960/i960.c (setup_incoming_varargs): Likewise.
5475 * config/ia64/ia64.c (spill_restore_mem): Likewise.
5476 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
5477 * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
5478 * config/mips/mips.c (mips_va_arg): Likewise.
5479 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
5480 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
5481 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5482 (setup_incoming_varargs, rs6000_va_arg): Likewise.
5483 (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
5484 (rs6000_emit_epilogue): Likewise.
5485 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
5486 * config/sparc/sparc.c (sparc_va_arg): Likewise.
5487 * config/v850/v850.c (v850_va_arg): Likewise.
5489 Wed Jul 11 21:27:25 CEST 2001 Jan Hubicka <jh@suse.cz>
5491 * flow.c (merge_blocks_move_successor_nojumps): Do not crash
5492 when fallthru edge is present.
5493 (mege_blocks): Handle case where creation of jump insn
5496 * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
5497 CLEANUP_POST_REGSTACK): New constants.
5498 * except.c (finish_eh_generation): Update call of cleanup_cfg,
5499 * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
5500 * output.h (cleanup_cfg): Update prototype.
5501 * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
5502 * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
5503 cleanup_cfg call; kill missleading comment.
5504 * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
5505 * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
5506 parameter; control optimizations performed using it.
5507 (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
5508 try_crossjump_bb): New functions.
5510 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5512 * pa.c (pa_output_function_prologue): Delete prototype. Make function
5514 * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
5515 pa_output_function_prologue.
5516 * pa-protos.h (pa_output_function_prologue): New prototype.
5518 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5520 * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
5521 and low to get correct sign extension in low+high test.
5523 2001-07-11 Janis Johnson <janis@us.ibm.com>
5525 * gcov.c (arcdata): Use gcov_type to fix branch percentage
5526 for large hit count.
5528 * profile.c (branch_prob): Fix .bbg info for computed gotos
5531 2001-07-11 Mark Mitchell <mark@codesourcery.com>
5533 * stmt.c (parse_output_constraint): New function, split out
5535 (expand_asm_operands): ... here. Use parse_output_constraint.
5536 * tree.h (parse_output_constraint): Declare it.
5538 2001-07-11 Richard Henderson <rth@redhat.com>
5540 * bitmap.c: Comment some functions; fiddle whitespace.
5541 (bitmap_free): Don't export.
5542 (bitmap_element_allocate): Use memset.
5543 * bitmap.h (bitmap_free): Don't declare.
5545 2001-07-11 Daniel Berlin <dan@cgsoftware.com>
5547 * gcse.c, lcm.c, sched-deps.c:
5548 s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
5550 * flow.c (flow_loops_find): Free dom if we found no loops, since
5551 we aren't going to save it.
5553 * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
5556 Wed Jul 11 09:00:48 2001 Jeffrey A Law (law@cygnus.com)
5558 * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
5560 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5562 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
5563 #ifndef DWARF2_DEBUGGING_INFO.
5565 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
5567 * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
5569 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
5571 * config/mips/mips.c (gen_int_relational): Tell the caller not to
5572 reverse a branch if a NE comparison is implemented with GTU.
5574 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
5575 H.J. Lu <hjl@gnu.org>
5577 * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
5579 (call_internal2): Likewise.
5580 (call_value_internal1): Likewise.
5581 (call_value_internal2): Likewise.
5582 (call_value_multiple_internal1): Likewise.
5583 (call_value_multiple_internal2): Likewise.
5585 2001-07-10 Kazu Hirata <kazu@hxi.com>
5587 * calls.c (emit_library_call_value_1): Fix a comment typo.
5588 * dwarf2out.c (mem_loc_descriptor): Likewise.
5589 * config/i386/i386.c (ix86_expand_aligntest): Likewise.
5591 2001-07-11 David Billinghurst <David.Billinghurst@riotinto.com>
5593 * simplify-rtx.c (simplify_subreg): Fix typo in comment
5595 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5597 * recog.c (offsettable_address_p): Handle LO_SUM case.
5598 * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
5599 instead of plus_constant.
5601 2001-07-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5603 * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
5604 fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
5606 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5608 * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
5609 adjust_address_nv instead of plus_constant.
5611 2001-07-10 Neil Booth <neil@daikokuya.demon.co.uk>
5613 * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
5614 dwarf2out.o): Depend on debug.h, wrap long lines.
5615 * dbxout.c: Include debug.h.
5616 (dbx_debug_hooks): New.
5617 (dbxout_init): Make static, take just 2 args.
5618 (dbxout_finish): Make static.
5619 * dbxout.h (dbxout_init, dbxout_finish): Delete.
5620 * debug.c: New file.
5621 * debug.h: New file.
5622 * dwarf2out.c: Include debug.h.
5623 (dwarf2_debug_hooks): New.
5624 (dwarf2out_init): Make static.
5625 (dwarf2out_finish): Make static, take 2 args.
5626 * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
5627 * dwarfout.c: Include debug.h.
5628 (dwarf_debug_hooks): New.
5629 (dwarfout_init): Make static.
5630 (dwarfout_finish): Make static, take 2 args.
5631 * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
5632 * sdbout.c: Include debug.h.
5633 (sdb_debug_hooks): New.
5634 (sdbout_init): Make static, take 2 args.
5635 * sdbout.h (sdbout_init): Delete.
5636 * toplev.c: Include debug.h.
5638 (compile_file): Set deubg_hooks based on command line options.
5639 Use the hooks unconditionally rather than conditional compilation.
5641 Tue Jul 10 09:04:45 2001 Jeffrey A Law (law@cygnus.com)
5643 * ssa-ccp.c (first_phi_node): Remove. Replace uses with calls to
5644 first_insn_after_basic_block_note instead.
5646 * df.c (df_bb_refs_unlink): #if 0 out for now.
5648 2001-07-10 David Billinghurst <David.Billinghurst@riotinto.com
5650 * ssa.h: Add prototype for ssa_const_prop
5651 * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
5652 (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
5653 (ssa_fast_dce): Remove unused variable
5655 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
5657 * diagnostic.c (finish_diagnostic): Rename to
5658 diagnostic_finish. Make it take an 'output_buffer *'. Adjust
5661 2001-07-10 Jason Merrill <jason_merrill@redhat.com>
5663 * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
5666 * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
5667 (dump_file): Only pad the demangled name with spaces if the
5668 mangled name was padded with spaces.
5670 2001-07-10 Bernd Schmidt <bernds@redhat.com>
5672 * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
5675 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5677 * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
5678 extraction if no direct load if either EXPAND_CONST_ADDRESS or
5681 * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
5682 whether can put offset inside LO_SUM to check mode alignment, not size.
5684 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
5686 * doc/tm.texi (Misc): Fix thinko.
5688 2001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
5690 * regmove.c (replace_in_call_usage): Fix warnings.
5691 * sched-deps.c (add_dependence): Fix warnings.
5692 * simplify-rtx.c (simplify_subreg): Likewise.
5693 Return NULL_RTX instead of NULL.
5695 * reg-stack.c (emit_swap_insn): Eliminate warnings.
5696 (subst_asm_stack_regs): Likewise.
5698 * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
5701 * dwarf2out.c (output_call_frame_info): Declare i as int.
5702 (build_abbrev_table): Declare n_alloc as int.
5703 (dwarf2out_finish): Initialize die.
5704 * except.c: Declare sjlj_funcdef_number as unsigned.
5705 (connect_post_landing_pads): Declare j as unsigned.
5706 (convert_to_eh_region_ranges): Initialize call_site.
5707 (output_function_exception_table): Initialize tt_format_size.
5708 * expr.c (move_by_pieces_1): Initialize to1.
5709 (store_constructor): Initialize minelt and maxelt.
5710 * flow.c (mark_regs_live_at_end): Declare i as unsigned.
5711 * function.c (instantiate_decls): Avoid signed/unsigned warning.
5713 * c-decl.c (combine_parm_decls): Unused, remove.
5714 * c-tree.h: Remove prototype for combine_parm_decls.
5716 * reload.c (push_reload): Fix warning.
5717 (regno_clobbered_p): Likewise.
5718 * reload1.c (replace_pseudos_in_call_usage): Likewise.
5719 (reload_combine): Likewise.
5721 * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
5722 * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
5724 * bitmap.c (bitmap_operation): Change user.
5725 * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
5727 2001-07-10 Eric Christopher <echristo@redhat.com>
5729 * config/mips/mips.c (override_options): Fix typo.
5731 2001-07-09 Stan Shebs <shebs@apple.com>
5733 * target.h (struct gcc_target): New fields init_builtins and
5735 * target-def.h (TARGET_INIT_BUILTINS): New macro.
5736 (TARGET_EXPAND_BUILTIN): New macro.
5737 (TARGET_INITIALIZER): Add them.
5738 * builtins.c: Include target.h.
5739 (expand_builtin): Use targetm.expand_builtin.
5740 (default_init_builtins): New function.
5741 (default_expand_builtin): New function.
5742 * expr.h (default_init_builtins): Declare.
5743 (default_expand_builtin): Declare.
5744 * c-common.c (c_common_nodes_and_builtins): Use
5745 targetm.init_builtins.
5746 * defaults.h (MD_INIT_BUILTINS): Remove.
5747 * Makefile.in (builtins.o): Depend on target.h.
5749 * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
5750 (TARGET_EXPAND_BUILTIN): Define.
5751 * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
5752 (MD_EXPAND_BUILTIN): Remove.
5754 * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
5755 (TARGET_EXPAND_BUILTIN): Define.
5756 (c4x_init_builtins): Make endlink arg a local.
5757 (c4x_print_operand): Fix typos in adjust_address usages.
5758 * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
5759 * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
5760 (MD_EXPAND_BUILTIN): Remove.
5762 * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
5763 (TARGET_EXPAND_BUILTIN): Define.
5764 (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
5765 (ix86_init_builtins): Call new function only if TARGET_MMX.
5766 * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
5767 * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
5768 (MD_EXPAND_BUILTIN): Remove.
5770 * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
5771 (TARGET_EXPAND_BUILTIN): Define.
5772 * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
5773 (MD_EXPAND_BUILTIN): Remove.
5775 * doc/tm.texi: Document these changes.
5777 2001-07-09 Diego Novillo <dnovillo@redhat.com>
5779 * basic-block.h (tree_node): Forward declare if needed.
5780 (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
5781 (BLOCK_HEAD_TREE): Define.
5782 (BLOCK_END_TREE): Define.
5783 (struct loops): Rename field 'tree' to 'tree_root'.
5784 * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
5786 (flow_loops_tree_build): Rename reference to field 'tree' to
5788 (flow_loops_level_compute): Ditto.
5789 * predict.c (estimate_bb_frequencies): Ditto.
5790 * tree.h (struct tree_common): Add field 'aux'.
5792 2001-07-09 Stan Shebs <shebs@apple.com>
5794 * config/darwin.c (darwin_encode_section_info): Don't mark any
5795 DECL_EXTERNAL node as defined.
5797 2001-07-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
5799 * pa.c (pa_init_machine_status, pa_mark_machine_status,
5800 pa_free_machine_status, hppa_init_pic_save): Delete.
5801 (hppa_pic_save_rtx): New. Use get_hard_reg_initial_val.
5802 (hppa_profile_hook): Use hppa_pic_save_rtx.
5803 * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
5804 hppa_init_pic_save): Delete.
5805 (hppa_pic_save_rtx): Declare.
5806 * pa.md (call, call_value, sibcall, sibcall_value,
5807 builtin_setjmp_receiver): Use hppa_pic_save_rtx.
5809 2001-07-09 Kazu Hirata <kazu@hxi.com>
5811 * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
5812 * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
5814 2001-07-09 Andreas Jaeger <aj@suse.de>
5816 * output.h: Add declaration of final_forward_branch_p.
5818 * config/i386/i386.c (output_fix_trunc): Remove unused variable.
5820 * varray.c: Include errors.h for internal_error and trim_filename
5823 * Makefile.in (varray.o): Add errors.h.
5825 2001-07-09 Toon Moene <toon@moene.indiv.nluug.nl>
5827 * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
5828 * optabs.c (have_add2_insn): Check whether the add insn chosen
5829 really accepts the operands. (have_sub2_insn): Ditto for sub insn.
5830 * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
5832 Mon Jul 9 13:26:40 2001 Jeffrey A Law (law@cygnus.com)
5834 * Makefile.in (OBJS): Add ssa-ccp.o
5835 (ssa-ccp.o): Add dependencies.
5836 * toplev.c (DFI_ssa_ccp): New dump file enum.
5837 (dump_file): Add entry for dumping after SSA CCP.
5838 (flag_ssa_ccp): New flag variable.
5839 (f_options): Add -fssa-ccp.
5840 (rest_of_compilation): Run SSA CCP if requested.
5841 * timevar.def (TV_SSA_CCP): New timevar.
5842 * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
5843 * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
5844 Fix minor typo in SSA DCE documentation.
5845 * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
5846 Add documentation for new dump option. Renumber dump files
5849 Mon Jul 9 21:36:00 CEST 2001 Jan Hubicka <jh@suse.cz>
5851 * emit-rtl.c (gen_highpart_mode): New.
5852 * rtl.h (gen_highpart_mode): Declare.
5853 * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
5854 operand can be VOIDmode constant.
5856 Mon Jul 9 17:23:10 CEST 2001 Jan Hubicka <jh@suse.cz>
5858 * flow.c (redirect_edge_and_branch_force): New.
5859 (can_fallthru): Ensure that basic blocks are succeeding.
5860 (try_optimize_cfg): Do not delete basic block if it is the last one.
5862 * flow.c (try_redirect_by_replacing_jump): Do not remove
5863 jumps with side effects, unlink chain on fallthru edge;
5864 set block for new jump instruction; avoid basic block to
5865 over by line number note.
5867 * flow.c (try_simplify_condjump): Verify that the condjump
5868 is not always falling trought.
5871 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
5873 * flow.c (forwarder_block_p): Fix for fallthru blocks.
5874 (try_redirect_by_replacing_jump): Update properly the count
5875 and frequency information.
5877 Mon Jul 9 06:41:07 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5879 * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
5880 address that is a LO_SUM specially.
5881 * explow.c (plus_constant_wide, case LO_SUM): Deleted.
5883 * c-lang.c (start_cdtor): Remove extra parameter from start_function.
5885 * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
5886 (operand_subword): Use them.
5887 (change_address_1): Renamed from change_address; new arg VALIDATE.
5888 * expr.h: Reflect above changes; change_address now macro.
5889 * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
5891 * cselib.c (add_mem_for_addr): Likewise.
5892 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
5893 * regmove.c (try_apply_stack_adjustment): Likewise.
5894 * reload.c (push_reload, make_memloc): Likewise.
5895 * reload1.c (eliminate_regs): Likewise.
5896 * simplify-rtx.c (simplify_replace_rtx): Likewise.
5897 * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
5899 * combine.c (make_extraction, simplify_shift_const): Likewise.
5900 (gen_lowpart_for_combine): Likewise.
5901 * cse.c (gen_lowpart_if_possible): Likewise.
5902 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
5903 * expr.c (expand_expr, case COMPONENT_REF): Likewise.
5904 * optabs.c (gen_move_insn): Likewise.
5905 * reload1.c (alter_reg): Likewise.
5906 * simplify-rtx.c (simplify_subreg): Likewise.
5907 * stmt.c (expand_anon_union_decl): Likewise.
5908 * recog.c (validate_replace_rtx_1): Likewise.
5910 * Makefile.in (recog.o): Add $(EXPR_H).
5911 * explow.c (stabilize): Call replace_equiv_address.
5912 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
5913 * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
5915 2001-07-03 Andrew Haley <aph@redhat.com>
5917 * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
5918 the mode of the memory location.
5920 2001-07-09 Bo Thorsen <bo@suse.co.uk>
5922 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
5924 2001-07-09 Neil Booth <neil@daikokuya.demon.co.uk>
5926 * final.c (output_addr_const): Use target opening and
5927 closing parentheses.
5928 * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
5929 defaults, add to TARGET_ASM_OUT.
5930 * target.h (struct gcc_target): Add open_paren and close_paren.
5931 * doc/md.texi: Update.
5932 * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
5933 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
5934 TARGET_ASM_CLOSE_PAREN.
5935 * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
5937 * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
5939 * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
5940 * config/a29k/a29k.h: Similarly.
5941 * config/alpha/alpha.h: Similarly.
5942 * config/arc/arc.h: Similarly.
5943 * config/arm/aof.h: Similarly.
5944 * config/arm/aout.h: Similarly.
5945 * config/avr/avr.h: Similarly.
5946 * config/c4x/c4x.h: Similarly.
5947 * config/clipper/clipper.h: Similarly.
5948 * config/convex/convex.h: Similarly.
5949 * config/d30v/d30v.h: Similarly.
5950 * config/dsp16xx/dsp16xx.h: Similarly.
5951 * config/elxsi/elxsi.h: Similarly.
5952 * config/fr30/fr30.h: Similarly.
5953 * config/h8300/h8300.h: Similarly.
5954 * config/i370/i370.h: Similarly.
5955 * config/i386/i386.h: Similarly.
5956 * config/i860/i860.h: Similarly.
5957 * config/i960/i960.h: Similarly.
5958 * config/ia64/ia64.h: Similarly.
5959 * config/m32r/m32r.h: Similarly.
5960 * config/m68hc11/m68hc11.h: Similarly.
5961 * config/m68k/m68k.h: Similarly.
5962 * config/m88k/m88k.h: Similarly.
5963 * config/mcore/mcore.h: Similarly.
5964 * config/mips/mips.h: Similarly.
5965 * config/mn10200/mn10200.h: Similarly.
5966 * config/mn10300/mn10300.h: Similarly.
5967 * config/ns32k/ns32k.h: Similarly.
5968 * config/pa/pa.h: Similarly.
5969 * config/pdp11/pdp11.h: Similarly.
5970 * config/pj/pj.h: Similarly.
5971 * config/romp/romp.h: Similarly.
5972 * config/rs6000/rs6000.h: Similarly.
5973 * config/sh/sh.h: Similarly.
5974 * config/sparc/sparc.h: Similarly.
5975 * config/v850/v850.h: Similarly.
5976 * config/vax/vax.h: Similarly.
5977 * config/we32k/we32k.h: Similarly.
5979 2001-07-09 Joseph S. Myers <jsm28@cam.ac.uk>
5981 * doc/c-tree.texi: Document representation of attributes.
5983 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
5985 * doc/tm.texi: Update some places for the rename of target to
5988 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
5990 * target.h (struct gcc_target): Add insert_attributes.
5991 * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
5992 (TARGET_INITIALIZER): Update.
5993 * tree.c, tree.h (default_insert_attributes): New function.
5994 Update comments on other default functions to refer to targetm,
5996 * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
5997 TARGET_INSERT_ATTRIBUTES.
5998 (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
5999 * c-common.c (decl_attributes): Use targetm.insert_attributes.
6000 Don't use PRAGMA_INSERT_ATTRIBUTES.
6001 * Makefile.in (c-common.o): Depend on $(TARGET_H).
6002 * c-decl.c (start_decl, start_function): Don't call
6003 SET_DEFAULT_DECL_ATTRIBUTES.
6004 * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
6005 * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
6007 * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
6008 (c4x_check_attribute): Avoid modifying attribute list itself.
6009 (c4x_set_default_attributes): Rename to c4x_insert_attributes.
6011 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
6012 * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
6014 * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
6015 (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
6017 * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
6018 * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
6020 * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
6021 (v850_set_default_decl_attr): Rename to v850_insert_attributes.
6022 Adjust parameters. Make static.
6024 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
6026 * c-common.c (decl_attributes): Only take a single attributes
6028 * c-common.h (decl_attributes): Update prototype.
6029 * c-decl.c (start_decl, start_function): Only take a single
6030 attributes parameter. Update calls to decl_attributes.
6031 (finish_struct, finish_enum): Update calls to decl_attributes.
6032 (push_parm_decl): Expect unified list of attributes. Update call
6034 * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
6035 notype_nested_function, component_declarator,
6036 component_notype_declarator, label): Update calls to
6038 (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
6039 lists that are passed to push_parm_decl.
6040 * c-tree.h (start_function, start_decl): Update prototypes.
6041 * config/sh/sh-protos.h, config/sh/sh.c
6042 (sh_pragma_insert_attributes): Only take a single attributes
6044 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
6045 * doc/tm.texi (INSERT_ATTRIBUTES): Update.
6046 * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
6047 build_module_descriptor, generate_static_references,
6048 generate_strings, build_selector_translation_table,
6049 generate_descriptor_table, generate_protocols,
6050 generate_ivars_list, generate_dispatch_table,
6051 generate_protocol_list, generate_category,
6052 generate_shared_structures, really_start_method, add_objc_decls,
6053 generate_classref_translation_entry): Update calls to start_decl
6055 (build_tmp_function_decl, start_method_def): Unify attribute lists
6056 that are passed to push_parm_decl.
6058 2001-07-08 Neil Booth <neil@daikokuya.demon.co.uk>
6060 * final.c (no_asm_to_stream): New.
6061 (final_scan_insn): Use target structures for prologue ends
6062 and epilogue starts.
6063 * output.h (no_asm_to_stream): New.
6064 * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
6065 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
6066 (TARGET_ASM_OUT): Update.
6067 * target.h (struct gcc_target): New members function_end_prologue
6068 and function_begin_epilogue.
6069 * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
6070 * config/alpha/alpha-protos.h (output_end_prologue): Delete.
6071 * config/alpha/alpha.c (output_end_prologue): Rename to
6072 alpha_output_function_end_prologue. Use in target struct
6074 * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
6075 * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
6076 * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
6077 ia64_output_function_end_prologue. Use in target struct
6079 (ia64_function_prologue, ia64_funciton_epilogue): Rename
6080 mistyped prototypes.
6081 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
6082 * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
6084 * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
6085 an use in target struct, make static.
6086 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
6089 2001-07-08 Richard Henderson <rth@redhat.com>
6091 * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
6093 2001-07-08 Richard Henderson <rth@redhat.com>
6095 * config/i386/i386.md: Remove constraints strings from define_split
6096 and define_peephole2 patterns.
6097 (eh_return_si, eh_return_di): Split eh_return_1 for modes.
6098 (eh_return): Use them.
6100 2001-07-08 Richard Henderson <rth@redhat.com>
6102 * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
6103 Document MD_FALLBACK_FRAME_STATE_FOR.
6105 2001-07-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6107 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
6108 Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
6110 * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
6112 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
6114 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
6115 of the label inside NAME as opposed to just the end of NAME.
6117 2001-07-07 Neil Booth <neil@daikokuya.demon.co.uk>
6119 * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
6120 * config/alpha/alpha.c (alpha_init_machine_status,
6121 alpha_mark_machine_status, alpha_free_machine_status): Delete.
6122 (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
6123 (vms_valid_decl_attribute_p): Make static, conditionally compile.
6124 * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
6126 2001-07-06 Stan Shebs <shebs@apple.com>
6128 * target.h (targetm): Rename global from "target", so as not to
6129 conflict with local variables.
6131 * c-typeck.c: Ditto.
6135 * cp/decl2.c: Ditto.
6136 * cp/typeck.c: Ditto.
6137 * 1750a/1750a.c: Ditto.
6138 * a29k/a29k.c: Ditto.
6142 * clipper/clipper.c: Ditto.
6143 * convex/convex.c: Ditto.
6144 * d30v/d30v.c: Ditto.
6145 * dsp16xx/dsp16xx.c: Ditto.
6146 * elxsi/elxsi.c: Ditto.
6147 * fr30/fr30.c: Ditto.
6148 * h8300/h8300.c: Ditto.
6149 * i370/i370.c: Ditto.
6150 * i386/i386.c: Ditto.
6151 * i860/i860.c: Ditto.
6152 * i960/i960.c: Ditto.
6153 * ia64/ia64.c: Ditto.
6154 * m32r/m32r.c: Ditto.
6155 * m68hc11/m68hc11.c: Ditto.
6156 * m68k/m68k.c: Ditto.
6157 * m88k/m88k.c: Ditto.
6158 * mips/mips.c: Ditto.
6159 * ns32k/ns32k.c: Ditto.
6161 * pdp11/pdp11.c: Ditto.
6162 * romp/romp.c: Ditto.
6163 * rs6000/rs6000.c: Ditto.
6165 * sparc/sparc.c: Ditto.
6167 * we32k/we32k.c: Ditto.
6168 * doc/tm.texi: Update the manual to match.
6170 2001-07-06 Richard Henderson <rth@redhat.com>
6172 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
6173 DWARF2_UNWIND_INFO not just whether it is defined.
6175 2001-07-06 Diego Novillo <dnovillo@redhat.com>
6177 * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
6178 call to simplify_binary_operation returns a new pattern.
6180 2001-07-06 Roman Lechtchinsky <rl@cs.tu-berlin.de>
6182 * glimits.h (__SHRT_MAX__): New.
6183 (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
6184 (SHRT_MAX): Define in terms of __SHRT_MAX__.
6186 2001-07-06 Jan van Male <jan.vanmale@fenk.wau.nl>
6188 * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
6191 2001-07-06 Richard Henderson <rth@redhat.com>
6193 * bitmap.c (bitmap_release_memory): Move adjacent to the
6194 allocation functions.
6195 (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
6196 the implementation. Binary search for the set bit.
6197 (bitmap_union_of_diff): Allocate the temporary on the stack
6198 instead of using xmalloc.
6200 2001-07-06 Richard Henderson <rth@redhat.com>
6202 * genrecog.c (validate_pattern): Warn for constraints in
6203 define_{expand,split,peephole2}. Remove strict_low_part
6204 before looking up match_dup.
6206 2001-07-06 DJ Delorie <dj@redhat.com>
6208 * doc/gcc.texi (Makefile): Rename to be a more general purpose
6209 chapter about various build hints and history. Add section
6210 talking about the various types of native and cross builds.
6212 2001-07-06 Neil Booth <neil@daikokuya.demon.co.uk>
6214 * Makefile.in (final.o): Depend on target.h.
6215 * final.c: Include target.h.
6216 (default_function_pro_epilogue): New.
6217 (final_start_function): Use target structure for function prologues.
6218 (final_end_function): Use target structure for function epilogues.
6219 * fold-const.c (real_hex_to_f): Constify s and p.
6220 * output.h (default_function_pro_epilogue): New.
6221 * real.h (real_hex_to_f): Update prototype.
6222 * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
6223 TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
6224 (TARGET_INITIALIZER): Update.
6225 * target.h (gcc_target): Add struct asm_out.
6226 * doc/tm.texi: Update.
6229 Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
6230 TARGET_ASM_FUNCTION_EPILOGUE. Move macro code to functions
6231 in cpu/cpu.c, or rename old functions consistently. Take
6232 a HOST_WIDE INT not an int as the SIZE parameter. Remove now
6233 redundant macros and prototypes. Make new functions static.
6235 * 1750a/1750a.c: Similarly.
6236 * 1750a/1750a.h: Similarly.
6237 * a29k/a29k-protos.h: Similarly.
6238 * a29k/a29k.c: Similarly.
6239 * a29k/a29k.h: Similarly.
6240 * arc/arc-protos.h: Similarly.
6241 * arc/arc.c: Similarly.
6242 * arc/arc.h: Similarly.
6243 * arm/arm-protos.h: Similarly.
6244 * arm/arm.c: Similarly.
6245 * arm/arm.h: Similarly.
6246 * avr/avr-protos.h: Similarly.
6247 * avr/avr.c: Similarly.
6248 * avr/avr.h: Similarly.
6249 * clipper/clipper-protos.h: Similarly.
6250 * clipper/clipper.c: Similarly.
6251 * clipper/clipper.h: Similarly.
6252 * convex/convex.c: Similarly.
6253 * convex/convex.h: Similarly.
6254 * d30v/d30v-protos.h: Similarly.
6255 * d30v/d30v.c: Similarly.
6256 * d30v/d30v.h: Similarly.
6257 * d30v/d30v.md: Similarly.
6258 * dsp16xx/dsp16xx-protos.h: Similarly.
6259 * dsp16xx/dsp16xx.c: Similarly.
6260 * dsp16xx/dsp16xx.h: Similarly.
6261 * elxsi/elxsi.c: Similarly.
6262 * elxsi/elxsi.h: Similarly.
6263 * fr30/fr30.c: Similarly.
6264 * fr30/fr30.md: Similarly.
6265 * h8300/h8300-protos.h: Similarly.
6266 * h8300/h8300.c: Similarly.
6267 * h8300/h8300.h: Similarly.
6268 * i370/i370-protos.h: Similarly.
6269 * i370/i370.c: Similarly.
6270 * i370/i370.h: Similarly.
6271 * i386/i386.c: Similarly.
6272 * i386/osf1elf.h: Similarly.
6273 * i386/osfrose.h: Similarly.
6274 * i860/i860-protos.h: Similarly.
6275 * i860/i860.c: Similarly.
6276 * i860/i860.h: Similarly.
6277 * i960/i960-protos.h: Similarly.
6278 * i960/i960.c: Similarly.
6279 * i960/i960.h: Similarly.
6280 * ia64/ia64-protos.h: Similarly.
6281 * ia64/ia64.c: Similarly.
6282 * ia64/ia64.h: Similarly.
6283 * m32r/m32r-protos.h: Similarly.
6284 * m32r/m32r.c: Similarly.
6285 * m32r/m32r.h: Similarly.
6286 * m68hc11/m68hc11-protos.h: Similarly.
6287 * m68hc11/m68hc11.c: Similarly.
6288 * m68hc11/m68hc11.h: Similarly.
6289 * m68k/crds.h: Similarly.
6290 * m68k/dpx2.h: Similarly.
6291 * m68k/m68k-protos.h: Similarly.
6292 * m68k/m68k.c: Similarly.
6293 * m68k/m68k.h: Similarly.
6294 * m68k/news.h: Similarly.
6295 * m88k/m88k-protos.h: Similarly.
6296 * m88k/m88k.c: Similarly.
6297 * m88k/m88k.h: Similarly.
6298 * mips/mips-protos.h: Similarly.
6299 * mips/mips.c: Similarly.
6300 * mips/mips.h: Similarly.
6301 * ns32k/merlin.h: Similarly.
6302 * ns32k/ns32k.c: Similarly.
6303 * ns32k/ns32k.h: Similarly.
6304 * ns32k/tek6000.h: Similarly.
6305 * pa/pa-protos.h: Similarly.
6306 * pa/pa.c: Similarly.
6307 * pa/pa.h: Similarly.
6308 * pdp11/2bsd.h: Similarly.
6309 * pdp11/pdp11-protos.h: Similarly.
6310 * pdp11/pdp11.c: Similarly.
6311 * pdp11/pdp11.h: Similarly.
6312 * romp/romp-protos.h: Similarly.
6313 * romp/romp.c: Similarly.
6314 * romp/romp.h: Similarly.
6315 * rs6000/rs6000-protos.h: Similarly.
6316 * rs6000/rs6000.c: Similarly.
6317 * rs6000/rs6000.h: Similarly.
6318 * rs6000/sysv4.h: Similarly.
6319 * sh/sh-protos.h: Similarly.
6320 * sh/sh.c: Similarly.
6321 * sh/sh.h: Similarly.
6322 * sparc/sparc-protos.h: Similarly.
6323 * sparc/sparc.c: Similarly.
6324 * sparc/sparc.h: Similarly.
6325 * vax/vax.c: Similarly.
6326 * vax/vax.h: Similarly.
6327 * vax/vms.h: Similarly.
6328 * we32k/we32k.c: Similarly.
6329 * we32k/we32k.h: Similarly.
6331 Fri Jul 6 11:47:59 2001 Jeffrey A Law (law@cygnus.com)
6333 * basic-block.h (first_insn_after_basic_block_note): Declare.
6334 * flow.c (first_insn_after_basic_block_note): Define. Moved
6336 * ssa.c (first_insn_after_basic_block_note): Remove.
6337 * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
6339 (ssa_eliminate_dead_code): Properly update the CFG and PHI
6340 nodes when we find a dead conditional branch. Insert BARRIERs
6341 after any blocks with no successors, but which do not have
6344 2001-07-06 Zack Weinberg <zackw@stanford.edu>
6346 * varray.c (varray_check_failed): Use internal_error.
6348 2001-07-05 Andrew Haley <aph@redhat.com>
6350 * Makefile.in (LIB2_DIVMOD_FUNCS): New.
6351 (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
6352 * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
6354 2001-07-02 Jason Merrill <jason_merrill@redhat.com>
6356 * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
6357 reference if the target constant is also a SYMBOL_REF.
6359 2001-07-05 Eric Christopher <echristo@redhat.com>
6361 * config/mips/mips.h (MASK_MIPS3900): Remove.
6362 (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
6363 MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
6364 (TARGET_MIPS3900): Change to use mips_arch.
6365 (TARGET_MIPS4000): New.
6366 (TARGET_MIPS4100): New.
6367 (TARGET_MIPS4300): New.
6368 (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
6369 (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
6371 (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
6372 (ISA_HAS_BRANCHLIKELY): To here.
6373 (CC1_CPU_SPEC): New.
6374 (CC1_SPEC): Use here. Remove 4650 and 3900 options.
6375 (mips_arch_string): Declare.
6376 (mips_arch): Declare.
6377 (TARGET_OPTIONS): Add -march and -mtune.
6379 * config/mips/mips.c (mips_arch_string): New.
6381 (override_options): Handle -march for codegen and -mtune
6382 for scheduling. Use mips_arch. Move tx39 target default here.
6383 (mips_parse_cpu): Move error message to override_options.
6385 * config/mips/r3900.h (TARGET_DEFAULT): Remove.
6387 * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
6389 * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
6390 (MIPS Options): Ditto. Change mcpu entry to historical text.
6392 2001-07-05 H.J. Lu (hjl@gnu.org)
6394 * config/mips/mips.c (mips_parse_cpu): New function to parse
6397 2001-07-05 Jim Wilson <wilson@redhat.com>
6399 * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
6400 * config/ia64/t-ia64: Likewise.
6401 (LIB1ASMFUNCS): Update comment.
6403 2001-07-05 David Edelsohn <edelsohn@gnu.org>
6405 * doc/install.texi (Install GCC: Binaries): Fix typo.
6407 2001-07-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6409 * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
6410 reference using the stack pointer, adjust it since we push Y
6412 ("*ashrsi3"): Likewise.
6413 ("*lshrsi3"): Likewise.
6415 2001-07-05 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6417 * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
6418 when -fomit-frame-pointer is used.
6420 2001-07-05 Jeffrey Oldham <oldham@codesourcery.com>
6422 * flow.c: Reverse Jan Hubicka's patch of 02July2001.
6423 (try_redirect_by_replacing_jump): Reverse updating properly the
6424 count and frequency information. Reverse removing cc0 setter.
6425 (forwarder_block_p): Reverse fixing for fallthru blocks.
6427 2001-07-05 DJ Delorie <dj@redhat.com>
6429 * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
6430 (translate_options): If the above is defined, use it to map
6431 given options to new options.
6432 * doc/tm.texi: Document it.
6434 2001-07-05 Brad Lucier <lucier@math.purdue.edu>
6435 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6437 * doc/invoke.texi (Optimize Options): Document that -fgcse may
6438 cause programs using computed gotos to run more slowly.
6440 2001-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6442 * doc/install.texi (Specific): Markup, spelling and typo fixes.
6444 Consistently require binutils 2.11.2, not prereleases.
6445 (Specific, decstation-*): Canonicalize as mips-dec-*.
6446 (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
6448 (Specific, m68k-altos): Removed reference to README.altos, deleted.
6449 (Specific, mips-*): Reword MIPS C compiler requirements.
6450 (Specific, powerpc*-*-*): New, mention --with-cpu once.
6451 (Specific, sunv5): Removed, obsolete.
6453 2001-07-05 Nathan Sidwell <nathan@codesourcery.com>
6455 * dwarf2out.c (output_loc_list): Use an all ones mask for
6456 .text asm output and don't rely on long long
6457 literals. Reformat some long lines.
6459 2001-07-05 Andreas Jaeger <aj@suse.de>
6461 * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
6464 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
6466 * dwarf2out.c (dwarf2out_define): Update comment.
6467 (dwarf2out_undef): Ditto.
6468 (dwarf2out_start_source_file): Ditto.
6469 (dwarf2out_end_source_file): Ditto.
6470 (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
6471 since we never call the start/end debug hook for the primary file.
6473 2001-07-04 Kazu Hirata <kazu@hxi.com>
6475 * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
6478 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
6480 * cppinit.c (remove_dup_dirs): Inform if a system include
6481 directory is being reordered.
6482 * doc/invoke.texi (Directory Options): GCC warns if you hide a
6484 * doc/cpp.texi (Search Paths): Likewise.
6485 * doc/gcc.texi (Interoperation): Remove information about
6488 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
6490 * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
6491 (VARRAY_TOP_CHAR_PTR): Likewise.
6493 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6495 * gcc.c (process_command): Don't assign elements of a const char*.
6497 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6499 * emit-rtl.c (change_address): Don't abort if invalid address while
6500 reload is in progress.
6502 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
6504 * c-lex.c (cb_file_change): Pass line number to
6505 debug_start_source_file.
6506 (cb_undefine): Pass correct line number to debug_undef.
6508 * toplev.c (debug_start_source_file): Add line number to
6509 parameters. Pass it along to dwarf2out_start_source_file.
6510 (decode_g_option): Stop resetting debug level back to normal when
6511 we change debug formats, unless the current level is
6512 none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
6515 * toplev.h (debug_start_source_file): Add line number to
6518 * dwarf2out.h (dwarf2out_start_source_file): Add line number to
6521 * dwarf2out.c (dwarf2out_start_source_file): Add line number to
6523 Output debug_macinfo data for starting file if requested.
6524 (dwarf2out_end_source_file): Output debug_macinfo data for ending
6526 (dwarf2out_define): Output debug_macinfo data for defining a macro
6528 (dwarf2out_undef): Output debug_macinfo data for undefining a
6530 (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
6531 (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
6532 (macinfo_section_label): New. DWARF2 macro info section label.
6533 (dwarf2out_init): If we want macro info, output the start label
6535 (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
6536 attribute to the compilation unit die pointing to the macro info.
6538 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
6540 * dwarf2out.c (new_loc_list): Move to inside #ifdef
6541 DWARF2_DEBUGGING_INFO.
6542 (add_loc_descr_to_loc_list): Ditto.
6543 (output_loc_list): Ditto.
6544 Also, fix thinko in curr not being initialized.
6545 (gen_internal_sym): Ditto.
6547 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6549 * emit-rtl.c (replace_equiv_address): New function.
6550 * expr.h (replace_equiv_address): New declaration.
6551 * explow.c (validize_mem): Call it instead of change_address and
6552 also call if -fforce-addr and address is constant.
6553 * expr.c: Replace more calls to change_address with adjust_address
6554 and/or replace_equiv_address or to validize_mem.
6555 * function.c, regmove.c, config/alpha/alpha.c: Likewise.
6556 * config/arm/arm.md, config/clipper/clipper.md: Likewise.
6557 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
6558 * config/i370/i370.md, config/i860/i860.md: Likewise.
6559 * config/i960/i960.md, config/mips/mips.c: Likewise.
6560 * config/mips/mips.md, config/pa/pa.md: Likewise.
6561 * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
6562 * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
6564 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6566 * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
6568 * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
6571 2001-07-04 Joseph S. Myers <jsm28@cam.ac.uk>
6573 * doc/include: New directory.
6574 * doc/fdl.texi: Move to doc/include/fdl.texi.
6575 * doc/texinfo.tex: Move to doc/include/texinfo.tex.
6576 * doc/include/funding.texi, doc/include/gpl.texi: New files.
6577 * doc/gcc.texi: Use funding.texi and gpl.texi.
6578 * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
6579 $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
6580 Update dependencies and use -I $(docdir)/include.
6582 2001-07-04 Anthony Green <green@redhat.com>
6584 * config/v850/t-v850 (v850-c.o): Add missing dependencies.
6586 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6588 * doc/install.texi (sparc64-*-*): Remove garbage.
6590 Wed Jul 4 09:07:44 2001 Jan van Male <jan.vanmale@fenk.wau.nl>
6592 * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
6593 Fix typo in last change to use adjust_address.
6595 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6597 * doc/install.texi (Specific): Update information for *-*-solaris*.
6599 Tue Jul 3 22:33:15 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6601 * explow.c (plus_constant_wide): Reinitialize Y for restart.
6603 2001-07-03 Stan Shebs <shebs@apple.com>
6605 * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
6606 case for flag_no_mach_text_sections.
6607 (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
6608 * config/darwin.c (flag_no_mach_text_sections): Remove.
6609 * config/darwin-protos.h (darwin_init_pragma): Remove decl.
6611 Tue Jul 3 15:35:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6613 * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
6614 and avoid checking for constant as first operand.
6615 * recog.c (find_constant_term_loc): No longer static.
6616 (adj_offettable_operand): Delete.
6617 * rtl.h (adj_offsettable_operand): Delete declaration.
6618 (find_constant_term): Add declaration.
6619 * caller-save.c: Replace calls to adj_offsettable_operand with calls
6621 * config/arm/arm.c, config/c4x/c4x.c: Likewise.
6622 * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
6623 * config/i386/i386.c, config/i386/i386.md: Likewise.
6624 * config/i860/i860.c, config/i960/i960.c: Likewise.
6625 * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
6626 * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
6627 * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
6628 * config/mips/mips.c, config/mips/mips.md: Likewise.
6629 * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
6630 * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
6631 * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
6632 * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
6633 * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
6634 * config/ns32k/ns32k.md: Likewise.
6636 2001-07-03 Zack Weinberg <zackw@stanford.edu>
6638 * rtl.c (copy_rtx): Handle 'T' format letter.
6639 * gensupport.c (collect_insn_data): Likewise.
6640 * print-rtl.c (print_rtx): Print 'T' slots like 's'.
6642 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
6644 * doc/invoke.texi (Directory Options): Specifiy range for <N> in
6645 -B option. Use 'dir' not 'foo' as example directory name.
6647 2001-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6649 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6650 Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
6652 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
6654 * doc/cppinternals.texi: Improve formatting and logical markup.
6656 2001-07-03 Andreas Jaeger <aj@suse.de>
6658 * Makefile.in (insn-recog.o): Add dependency on reload.h.
6660 * genrecog.c (write_header): Include reload.h for prototypes in
6663 2001-07-03 Neil Booth <neil@daikokuya.demon.co.uk>
6666 * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
6667 VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
6668 * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
6669 i386_pe_valid_type_attribute_p): Add.
6670 * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
6671 * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
6673 Mon Jul 2 21:52:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6675 * explow.c (plus_constant_wide, case LO_SUM): New case.
6676 (plus_constant_for_output_wide): Delete.
6677 * rtl.h (plus_constant_for_output): Delete.
6678 * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
6679 instead of plus_constant_for_output.
6680 * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
6681 * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
6682 * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
6683 * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
6684 * config/sparc/sparc.md: Likewise.
6685 Convert some change_address calls to adjust_address.
6687 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
6689 * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
6690 doc/rtl.texi, doc/tm.texi: Improve formatting. Improve
6691 documentation of -std and -Wwrite-strings.
6693 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
6695 * cse.c (canon_hash): Don't register registers in very small
6696 register classes, as extending their lifetime might cause
6699 Mon Jul 2 23:14:00 CEST 2001 Jan Hubicka <jh@suse.cz>
6701 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
6703 * flow.c (forwarder_block_p): Fix for fallthru blocks.
6704 (try_redirect_by_replacing_jump): Update properly the count
6705 and frequency information.
6707 Mon Jul 2 14:20:13 2001 Jeffrey A Law (law@cygnus.com)
6709 * toplev.c (dump_file_index): Move SSA dumps just after first
6711 (dump_file): Corresponding changes.
6712 (rest_of_compilation): Move SSA path to just after the first
6714 * doc/gcc.texi (Passes): Update due to movement of SSA path.
6715 * doc/invoke.texi: Update dump file #s as they were completely
6716 out of date with reality.
6718 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
6720 * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
6722 * expr.c (emit_move_insn_1): Deal with non-default
6725 * expr.c (emit_single_push_insn): Fix warning.
6727 2001-07-02 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6729 * expr.c (emit_move_insn_1): Avoid modifying
6730 cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
6732 Mon Jul 2 15:33:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6734 * emit-rtl.c (adjust_address): New function.
6735 * expr.h (adjust_address): Add declaration.
6736 * builtins.c: Replace some calls to change_address with calls to it
6738 * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
6739 * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
6740 * config/arm/arm.c, config/convex/convex.c: Likewise.
6741 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
6742 * config/i386/i386.c, config/i386/i386.md: Likewise.
6743 * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
6744 * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
6745 * config/m88k/m88k.c, config/mips/mips.md: Likewise.
6746 * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
6747 * config/sh/sh.c, config/sparc/sparc.md: Likewise.
6749 2001-07-02 Jim Wilson <wilson@redhat.com>
6751 * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
6753 2001-07-02 Steve Ellcey <sje@cup.hp.com>
6755 * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
6756 * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
6758 2001-07-02 Zack Weinberg <zackw@stanford.edu>
6760 * cppinit.c (lang_defaults): New table.
6761 (set_lang): Just read from lang_defaults into the live options
6764 2001-07-02 Zack Weinberg <zackw@stanford.edu>
6766 * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
6767 * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
6768 * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
6770 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6772 * doc/install.texi: Various spelling and markup fixes.
6773 (Installing GCC): Component specific installation instructions are
6776 Warn about removing old install dir in the presence of shared libs.
6777 (Configuration): Invoke with options target to match configure
6779 Consistently refer to gas, gld pathnames.
6780 Invert --enable-multilib documentation.
6781 Remove references to old compiler versions.
6783 Mon Jul 2 12:50:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6785 * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
6787 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6789 * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
6791 (Specific, mips*-sgi-irix5): Note IDO download.
6792 Reworded MIPS C hints.
6793 Use GNU as instead of GAS.
6795 Removed SGI Freeware reference, IRIX 6 only.
6796 (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
6797 Note N64 library requirement/workaround.
6799 Complete list of structure passing bug victims.
6801 2001-07-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6803 * doc/install.texi: Remove CVS Id.
6805 2001-07-02 Andreas Jaeger <aj@suse.de>
6807 * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
6808 (find_inherently_necessary): Remove unused variable.
6810 2001-07-02 Nathan Sidwell <nathan@codesourcery.com>
6812 * c-common.h (TDI_inlined): New ast dump phase.
6813 (dump_flag_name): New function.
6814 * c-dump.c (dump_files): Add inlined phase.
6815 (dump_flag_name): Define.
6816 * doc/invoke.texi (-fdump-ast-inlined): Document.
6818 Mon Jul 2 06:29:36 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6820 * stor-layout.c (layout_decl): Revert change to handling of alignment
6823 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6825 * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
6828 2001-07-01 Geoffrey Keating <geoffk@redhat.com>
6830 * doc/tm.texi (FUNCTION_ARG): Document that the last call
6833 2001-07-01 Nathan Sidwell <nathan@codesourcery.com>
6835 * tlink.c (recompile_files): Remove COMPILER_PATH and
6836 LIBRARY_PATH from the environment.
6838 2001-07-01 Zack Weinberg <zackw@stanford.edu>
6840 * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
6841 RID_LAST_PQ. Move RID_FIRST_PQ down with the other FIRST/LAST
6843 (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
6845 * c-parse.in (OBJC_STRING): Kill.
6846 (objc_string): Decompose to [objc_string] '@' STRING.
6847 (reswords): Take the leading '@' off all the Objective C keywords.
6848 (objc_rid_sans_at): Kill.
6849 (init_reswords): Don't initialize it.
6850 (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
6851 (_yylex): Kill reconsider label. Look ahead one token after
6852 an '@'; if we get an identifier, check whether it's an
6853 Objective C @-keyword. If so, return the keyword. Otherwise,
6854 put back the token and return the '@' as a terminal.
6856 * cpplib.c (lex_macro_node): Remove unnecessary check for
6857 leading '@' on identifier. Clarify control flow and commentary.
6859 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6861 * cse.c (new_label_ref): Variable deleted.
6862 (insert): Remove set of new_label_ref.
6863 (check_for_label_ref): New function.
6864 (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
6866 See ChangeLog.5 for earlier changes.