1 2001-09-11 Joseph S. Myers <jsm28@cam.ac.uk>
3 * c-common.c (split_specs_attrs): Allow for empty attributes with
4 empty TREE_PURPOSE. Fixes PR c/4294.
6 Tue Sep 11 11:37:52 CEST 2001 Jan Hubicka <jh@suse.cz>
8 * basic-block.h (cached_make_edge, make_single_succ): New.
9 (make_edge): Remove first parameter.
10 * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
11 * cfg.c (cached_make_edge): Rename from make_edge; return newly
12 created edge; use obstack allocation.
13 (make_edge, make_single_succ_edge): New.
14 (first_removed_edge): New static variable.
15 (init_flow): Initialize first_removed_edge and n_edges.
16 (clear_edges): Use remove_edge.
17 (flow_delete_block): Likewise.
18 (remove_edge): Add removed edges to the removed edges list.
19 (split_block, redirect_edge_and_branch_force, split_edge):
21 * cfganal.c (flow_call_edges_add): Updaet make_edge call.
22 (add_noreturn_fake_exit_edges): Likewise.
23 (connect_infinite_loops_to_exit): Liekwise.
24 * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
26 * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
27 * profile.c (branch_prob): Update make_edge call.
28 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
30 2001-09-11 Richard Henderson <rth@redhat.com>
32 * config/alpha/alpha.c: Tidy formatting.
33 (local_symbolic_operand): Verify mode.
34 (alpha_sa_mask): Ignore unicos for eh_return.
35 (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
36 * config/alpha/alpha.md (umk divsi patterns): Remove.
37 (extendsfdf2): Remove unicos check.
38 (tablejump): Merge vms and unicos code; always use direct set
41 2001-09-11 Roman Lechtchinsky <rl@cs.tu-berlin.de>
43 * config.gcc (alpha*-*-unicosmk*): New target.
45 * config/alpha/alpha-protos.h (symbolic_operand,
46 unicosmk_add_call_info_word, unicosmk_add_extern,
47 unicosmk_defer_case_vector, unicosmk_unique_section,
48 unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
49 unicosmk_asm_file_start, unicosmk_asm_file_end,
50 unicosmk_output_common): Declare.
52 * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
53 direct_return, function_arg, alpha_va_start, alpha_va_arg,
54 alpha_does_function_need_gp, alpha_end_function): Support Cray
56 (alpha_init_machine_status, alpha_mark_machine_status,
57 alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
58 unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
59 unicosmk_asm_named_section, unicosmk_insert_attributes,
60 unicosmk_section_type_flags, symbolic_operand,
61 unicosmk_output_module_name, unicosmk_output_default_externs,
62 unicosmk_output_dex, unicosmk_output_externs,
63 unicosmk_output_addr_vec, unicosmk_ssib_name,
64 unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
65 unicosmk_asm_file_end, unicosmk_output_common,
66 unicosmk_section_type_flags, unicosmk_unique_section,
67 unicosmk_add_call_info_word, unicosmk_text_section,
68 unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
69 unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
70 unicosmk_dex_count, unicosmk_special_name): New.
71 (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
73 (get_aligned_mem, alpha_expand_unaligned_load,
74 alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
75 alpha_expand_unaligned_store_words): Support big-endian mode.
76 (print_operand): Likewise. New format specifier 't'. Use
77 TARGET_AS_SLASH_BEFORE_SUFFIX.
78 (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
79 (alpha_pv_save_size): Update with above change.
80 (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
81 alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
84 * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
85 (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
86 (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
87 (EXTRA_CONSTRAINT): New constraint 'U'.
88 (PREDICATE_CODES): Add symbolic_operand.
90 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
91 UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
92 (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
93 (integer division and modulus patterns): Split in default and
95 (*divmodsi_internal, *divmoddi_internal): Disable for
97 (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
98 little-endian and big-endian versions.
99 (ext, ins, msk): Likewise.
100 (extv, extzv, insv): Support big-endian mode.
101 (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
102 (call_umk, call_value_umk, *call_umk, tablejump_umk,
103 *tablejump_umk_internal, *call_value_umk): New.
104 (*movdi_nofix): Add pattern for loading an address into a register on
106 (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
107 (umk_mismatch_args, arg_home_umk): New.
108 (various insns): Don't use mov, fmov, nop, fnop and unop.
109 (realign): Support TARGET_ABI_UNICOSMK.
111 * config/alpha/unicosmk.h: New file.
112 * config/alpha/t-unicosmk: New file.
114 * fixinc/inclhack.def (unicosmk_restrict): New.
115 * fixinc/fixincl.x: Regenerate.
117 * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
118 (wchar_t): Check for and define __WCHAR_T__.
120 2001-09-11 Richard Sandiford <rsandifo@redhat.com>
122 * combine.c (simplify_shift_const): Treat shifts by the mode
125 2001-09-11 Neil Booth <neil@daikokuya.demon.co.uk>
127 * cpphash.h (struct tokenrun): New.
128 (struct cpp_context): New member bol.
129 (struct cpp_reader): New members.
130 (_cpp_init_tokenrun): New.
131 * cppinit.c (cpp_create_reader): Set up the token runs.
132 * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
133 (lex_token): New internalised version of _cpp_lex_token. Don't
134 handle directives or the multiple include opimisation here any
135 more. Simply lex a token.
136 * cpplib.c (run_directive): Clear bol.
137 (_cpp_pop_buffer): Set bol.
138 * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
141 2001-09-11 Michael Meissner <meissner@redhat.com>
143 * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
144 give an error if the user uses -mfp32.
145 (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
147 (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
148 floating point register size.
149 (EXTRA_SPECS): Add CPP_FPR_SPEC.
151 * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
152 HOST_WIDE_INT_PRINT_DEC to properly print the result of
154 * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
155 * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
157 2001-09-11 Hans-Peter Nilsson <hp@axis.com>
159 * dbxout.c (dbxout_parms): Fix typo in comment.
160 * unroll.c (loop_find_equiv_value): Ditto.
161 * toplev.c (rest_of_compilation): Ditto.
162 * loop.c (scan_loop): Ditto.
164 * dwarf2out.c (struct dw_fde_struct): Ditto.
166 2001-09-10 Zack Weinberg <zackw@panix.com>
168 * cpplex.c (parse_identifier): Fast-path optimize. Avoid
169 copying identifier when we're just going to throw it away.
170 (parse_identifier_slow): New routine to handle abnormal cases.
171 (_cpp_lex_token): Update call site.
173 * hashtable.c (ht_lookup): Don't assume that the string we've
174 been given is NUL-terminated.
175 * system.h: #define __builtin_expect(a, b) to (a) if not
178 2001-09-10 Michael Meissner <meissner@redhat.com>
180 * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
183 2001-09-10 David Edelsohn <edelsohn@gnu.org>
185 * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
187 Mon Sep 10 16:26:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
189 * builtins.c (c_getstr): Correct thinko in last change and further
192 2001-09-10 Tim Freeman <tim@fungibole.com>
194 * dwarf2out.c (incomplete_types, decl_scope_table): Make them
195 into varray's and register them as roots with the garbage
196 collector so they are not collected too soon.
198 Mon Sep 10 14:21:26 CEST 2001 Jan Hubicka <jh@suse.cz>
200 * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
202 * basic-block.h (flow_obstack, label_value_list,
203 tail_recursion_label_list): Declare
204 (tidy_fallthru_edges): Declare.
205 (expunge_block, last_loop_beg_note): Delete.
206 (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
208 (basic_block_for_insn, label_value_list): Move from flow.c; make global.
209 (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
210 init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
211 flow_delete_insn, flow_delete_insn_chain, create_basic_block,
212 expunge_block, flow_delete_block, compute_bb_for_insn,
213 update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
214 make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
215 redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
216 try_redirect_by_replacing_jump, last_loop_beg_note,
217 redirect_edge_and_branch, redirect_edge_and_branch_force,
218 tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
219 split_edge, insert_insn_on_edge, commit_one_edge_insertion,
220 commit_edge_insertions, dump_flow_info, debug_flow_info,
221 dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
222 verify_flow_info, purge_dead_edges, purge_all_dead_edges):
223 Move here from flow.c
224 * cfganal.c: New file.
225 (forwarder_block_p, can_fallthru, mark_critical_edges,
226 mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
227 find_unreachable_blocks, create_edge_list, free_edge_list,
228 print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
229 flow_edge_list_print, remove_fake_successors, remove_fake_edges,
230 add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
231 flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
232 flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
233 flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
234 Move here from flow.c
235 * cfgbuild.c: New file
236 (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
237 make_edges, find_basic_blocks_1, find_basic_blocks,
238 find_sub_basic_blocks): Move here from flow.c
239 * cfgcleanup.c: New file.
240 (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
241 merge_blocks_move_predecessor_nojumps,
242 merge_blocks_move_successor_nojumps, merge_blocks,
243 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
244 try_crossjump_bb, try_optimize_cfg): Move here from flow.c
245 (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
247 * cfgloop.c: New file
248 (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
249 flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
250 flow_loop_exit_edges_find, flow_loop_nodes_find,
251 flow_loop_pre_header_scan, flow_loop_pre_header_find,
252 flow_loop_tree_node_add, flow_loops_tree_build,
253 flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
254 flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
255 Move here from flow.c
256 * flow.c: Remove everything moved elsewhere
257 * output.h (cleanup_cfg): Return bool.
259 * bb-reorder.c (reorder_block_def): Remove 'index'.
260 (insert_intra_1): Add argument BB, set block for new note.
261 (make_reorder_chain): Do not depdent on BB indexes.
262 (make_reorder_chain_1): Do not use BB indexes.
263 (label_for_bb): Likewise; set BB for new insn.
264 (emit_jump_to_block_after): Likewise.
265 (fixup_reoder_chain): Sanity check that all basic blocks
266 are chained; verify newly created insn chain; remove
267 undocnitional jump simplifying; Do not use BB indexes;
268 properly initialize count and frequency information;
269 dump reordered sequence.
270 (insert_intra_bb_scope_notes): update call of insert_intra_1.
271 (insert_inter_bb_scope_notes): Set block for new insn.
272 (reorder_basic_blocks): Dump flow info before reoredering.
274 Mon Sep 10 06:47:35 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
276 * alias.c (clear_reg_alias_info): Use K&R format definition.
277 Avoid unsigned warning.
278 * builtins.c: Use "unsigned int", not "unsigned".
279 (target_char_cast): Use host_integerp and tree_low_cst.
280 (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
281 (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
282 (c_getstr): Likewise.
283 (std_expand_builtin_va_arg): Use int_size_in_bytes.
284 (builtin_memcpy_read_str): Avoid unsigned warning.
285 (expand_builtin_memcpy): Alignments are unsigned.
286 (expand_builtin_strncpy, expand_builtin_memset): Likewise.
287 (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
288 * predict.c (expensive_function_p): LIMIT now unsigned.
289 * resource.c (mark_target_live_regs): Make some vars unsigned.
290 * sdbout.c: Use "unsigned int", not "unsigned".
291 (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
292 (sdbout_source_line): Likewise.
293 (sdbout_record_type_name): Remove "const" for NAME declaration.
294 * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
296 2001-09-10 Richard Sandiford <rsandifo@redhat.com>
298 * calls.c (store_one_arg): Expand comment.
300 2001-09-10 Roman Lechtchinsky <rl@cs.tu-berlin.de>
302 * calls.c (store_one_arg): Make sure that the entire argument is
303 pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
305 2001-09-09 Richard Henderson <rth@redhat.com>
307 * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
309 Sun Sep 9 10:43:17 CEST 2001 Jan Hubicka <jh@suse.cz>
311 * loop.c (combine_givs): Fix computing of benefit once giv is combined.
313 2001-09-09 Richard Henderson <rth@redhat.com>
315 * config/alpha/alpha.c (alpha_next_sequence_number): New.
316 (alpha_this_literal_sequence_number): New.
317 (alpha_this_gpdisp_sequence_number): New.
318 (some_operand, input_operand): Add HIGH.
319 (local_symbolic_operand): New.
320 (alpha_encode_section_info): New.
321 (alpha_legitimate_address_p): Allow LO_SUM.
322 (alpha_legitimize_address): Generate HIGH+LO_SUM.
323 (alpha_expand_mov): Likewise.
324 (secondary_reload_class): Check memory_operand not general_operand
326 (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
327 (alpha_expand_unaligned_store): Likewise.
328 (alpha_expand_unaligned_load_words): Likewise.
329 (alpha_expand_unaligned_store_words): Likewise.
330 (alpha_expand_block_clear): Likewise.
331 (print_operand): Handle %#, %*, %H.
332 (print_operand_address): Handle LO_SUM.
334 (alpha_does_function_need_gp): Use it.
335 (alpha_expand_block_move): Fix signed compare warnings.
336 (alpha_sa_mask, alpha_align_insns): Likewise.
337 * config/alpha/alpha-protos.h: Update.
338 * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
339 (MASK_EXPLICIT_RELOCS): New.
340 (TARGET_SWITCHES): Add -mexplicit-relocs.
341 (EXTRA_CONSTRAINT): Add 'T'.
342 (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
343 (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
344 (ENCODE_SECTION_INFO): Out line.
345 (REDO_SECTION_INFO_P): New.
346 (STRIP_NAME_ENCODING): New.
347 (ASM_OUTPUT_LABELREF): New.
348 (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
349 (PREDICATE_CODES): Update.
350 * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
351 call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
352 movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
353 builtin_setjmp_receiver_er, exception_receiver_1_er,
354 call_value_osf_1_er): New patterns.
355 (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
356 (movqi, movhi, movsi): Add explicit $31 base register to lda.
357 * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
358 (FINAL_PRESCAN_INSN): New.
360 Sat Sep 8 22:00:55 CEST 2001 Jan Hubicka <jh@suse.cz>
362 * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
364 2001-09-08 Andreas Jaeger <aj@suse.de>
366 * i386.h (TARGET_SWITCHES): Fix description.
368 2001-09-07 David Edelsohn <edelsohn@gnu.org>
370 * rs6000.c (num_insns_constant): Compute number of instructions
373 * doc/install.texi: Explain AIX exception handling work-around.
374 Update URL for AIX fixes.
376 2001-09-07 Jim Wilson <wilson@redhat.com>
378 * alias.c (clear_reg_alias_info): New.
379 * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
380 * rtl.h (clear_reg_alias_info): Declare.
382 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
384 * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
386 (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
387 (m16m,edivm,emulm): Change declaration to match definition.
389 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
391 * reload.c (push_reload): Check for subreg_lowpart_p instead of
392 SUBREG_BYTE being 0 when determining if the inner part of a subreg
395 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
397 * c-common.c (signed_or_unsigned_type): Handle machine mode types
398 which have no corresponding C type.
399 * fold_const.c (target_isinf,target_isnan,target_negative): Update
400 the representation of 64-bit doubles to work with 64-bit ints.
402 2001-09-07 Aldy Hernandez <aldyh@redhat.com>
404 * config/mips/mips.c (override_options): Do not override ISA when ABI
405 specified if MIPS_CPU_STRING_DEFAULT was specified.
407 2001-09-07 Richard Henderson <rth@redhat.com>
409 * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
410 (express_from_1): Wrap lines.
411 * rtlanal.c (commutative_operand_precedence): Rename from
412 operand_preference; export.
414 * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
415 (simplify_binary_operation): Invoke simplify_plus_minus on
416 (CONST (PLUS ...)) as well.
417 (struct simplify_plus_minus_op_data): New.
418 (simplify_plus_minus_op_data_cmp): New.
419 (simplify_plus_minus): Use them. Avoid infinite recursion with
420 simplify_binary_operation wrt CONST.
422 Fri Sep 7 11:52:30 2001 Kazu Hirata <kazu@hxi.com>
424 * h8300-protos.h (general_operand_dst_push): Remove.
425 * h8300.c (general_operand_dst_push): Likewise.
426 * h8300.h (OK_FOR_T): Likewise.
427 (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
428 * h8300.md (pushqi_h8300): New.
429 (pushqi_h8300hs): Likewise.
431 (pushhi_h8300): Likewise.
432 (pushhi_h8300hs): Likewise.
435 Fri Sep 7 12:56:26 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
437 * genattrtab.c (attr_printf): First arg is unsigned.
438 Clean up formatting of callers.
440 2001-09-06 Aldy Hernandez <aldyh@redhat.com>
442 * config/mips/mips.c (override_options): Allow abi32 with 64 bit
445 2001-09-07 Andreas Jaeger <aj@suse.de>
447 * i386.h (TARGET_SWITCHES): Fix descriptions.
449 2001-09-07 Matt Kraai <kraai@alumni.carnegiemellon.edu>
451 * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
453 2001-09-06 Ira Ruben <ira@apple.com>
455 Remove OP_IDENTIFIER.
456 * tree.def (OP_IDENTIFIER): Remove.
457 * tree.c (tree_node_kind enum): Remove op_id_kind.
458 (tree_node_kind_names): Remove "op_identifiers".
459 (make_node): Remove OP_IDENTIFIER test.
460 (build_op_identifier): Removed because it isn't being used.
461 * print-tree.c (print_node): Remove OP_IDENTIFIER case.
462 * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
464 2001-09-06 Richard Henderson <rth@redhat.com>
466 * simplify-rtx.c (simplify_binary_operation): Revert last change.
468 2001-09-06 Richard Henderson <rth@redhat.com>
470 * simplify-rtx.c (simplify_binary_operation): Simplify contents
473 2001-09-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
475 * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
476 number used for CR register.
478 Thu Sep 6 11:16:35 2001 Jeffrey A Law (law@cygnus.com)
479 Joern Rennecke (amylaar@cygnus.com)
481 * h8300-protos.h (h8300_return_addr_rtx): New prototype.
482 * h8300.c (initial_offset): Handle offset between RP and FP.
483 (h8300_return_addr_rtx): New function.
484 * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
486 (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
487 (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
488 (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
489 (CAN_ELIMINATE, REGISTER_NAMES):
490 (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
492 2001-09-06 Nathan Sidwell <nathan@codesourcery.com>
494 Remove TYPE_NONCOPIED_PARTS.
495 * tree.h (TYPE_NONCOPIED_PARTS): Remove.
496 (struct tree_type): Remove noncopied_parts.
497 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
498 * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
499 (fixed_type_p): Remove.
500 (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
501 (expand_expr, MODIFY_EXPR): Likewise.
502 * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
503 * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
505 2001-09-06 Alan Modra <amodra@bigpond.net.au>
507 * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
509 (mask64_operand): Likewise.
510 (includes_rldic_lshift_p): Likewise.
511 (includes_rldicr_lshift_p): Likewise.
513 2001-09-05 Ziemowit Laski <zlaski@apple.com>
515 * objc/objc-act.c (build_message_expr): If a class method cannot
516 be found, do not issue a warning if a corresponding instance
517 method exists in the root class.
519 2001-09-05 Richard Henderson <rth@redhat.com>
521 * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
523 2001-09-05 Zack Weinberg <zack@codesourcery.com>
525 * function.c (ggc_mark_struct_function): Mark f->outer.
526 * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
527 * integrate.c (output_inline_function): ... not here.
529 Wed Sep 5 17:28:49 CEST 2001 Jan Hubicka <jh@suse.cz>
531 * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
533 * i386.c (size_cost): New static variable.
534 (override_function): Use size_cost when -Os is specified.
536 * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
537 properly; Use current_function_calls_eh_return.
538 (ix86_expand_epilogue): Avoid dummy optimize_size tests;
539 use leave to avoid depdendancy chain.
541 * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
542 get BB loop_depth instead of computing it from LOOP notes.
544 * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
546 2001-09-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
548 * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
549 * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
550 UNALIGNED_DOUBLE_INT_ASM_OP): Define
552 2001-09-05 Jeffrey A Law (law@cygnus.com)
553 Jason Merrill (jason@redhat.com)
555 * stor-layout.c (layout_type): Complain if an array's size can
556 not be represented in a size_t.
558 * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
560 2001-09-05 David Billinghurst <David.Billinghurst@riotinto.com>
562 * gcc.c: (process_command) Add parentheses around assignment
565 2001-09-05 Richard Sandiford <rsandifo@redhat.com>
567 * config/mips/mips.c (save_restore_insns): Don't mark any register
568 save slots as unchanging if current_function_calls_eh_return.
570 2001-09-05 Richard Henderson <rth@redhat.com>
572 * config/alpha/alpha.c (alpha_legitimate_address_p): New.
573 * config/alpha/alpha-protos.h: Declare it.
574 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
575 (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
576 (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
577 (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
578 (REG_OK_FOR_BASE_P): Select one of the above.
580 2001-09-05 Richard Sandiford <rsandifo@redhat.com>
582 * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
583 (crti.o): Prefix name of object file with $(T).
586 2001-09-05 David S. Miller <davem@redhat.com>
588 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
589 * config/sparc/linux64.h: Likewise.
591 2001-09-05 Andreas Jaeger <aj@suse.de>
593 * doc/invoke.texi (i386 Options): -mwide-multiply is not
594 available anymore, remove the documentation.
595 (i386 Options): Fix typo, cleanup index entries.
597 * prefix.c (concat): Remove, we can use the version from liberty.
599 2001-09-05 Richard Henderson <rth@redhat.com>
601 * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
602 New functions split out of md file expanders.
603 * config/alpha/alpha-protos.h: Declare them.
604 * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
606 2001-09-05 Neil Booth <neil@daikokuya.demon.co.uk>
608 * cppmacro.c (funlike_invocation_p): No need to restore context.
610 2001-09-04 Richard Henderson <rth@redhat.com>
612 * reload.c (push_reload): Export.
613 * reload.h (push_reload): Declare it.
615 * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
616 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
617 * config/alpha/alpha.c (alpha_legitimize_address): New.
618 (alpha_legitimize_reload_address): Likewise.
619 * config/alpha/alpha-protos.h: Declare them.
621 2001-09-04 Stan Shebs <shebs@apple.com>
623 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
624 * config/darwin.c (machopic_stub_name): Account for internally
625 generated lib calls such as memcpy.
627 2001-09-04 Richard Henderson <rth@redhat.com>
629 * unwind.h (_UA_END_OF_STACK): New flag.
630 * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
632 Tue Sep 4 11:16:35 2001 Jeffrey A Law (law@cygnus.com)
634 * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
636 2001-09-04 Richard Sandiford <rsandifo@redhat.com>
638 * config/mips/mips.c (save_restore_insns): Change base_offset to
639 fp_offset in second call to mips_emit_frame_related_store.
641 2001-09-04 Hans-Peter Nilsson <hp@axis.com>
643 * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
644 sometimes be represented as a NOTE of type
645 NOTE_INSN_DELETED_LABEL.
646 (Insns): Document NOTE_INSN_DELETED_LABEL.
648 2001-09-04 Nathan Sidwell <nathan@codesourcery.com>
650 * c-common.h (tree_dump_index): Add more comments.
651 * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
652 (dump_option_value_info): New struct.
653 (dump_options): New array.
654 (dump_switch_p): Parse switch options symbolically.
655 * doc/invoke.texi (-fdump-ast): Rename to ...
656 (-fdump-tree): ... here. Document that options are symbolic, and
657 not all are applicable.
659 2001-09-04 David S. Miller <davem@redhat.com>
661 * config/sparc/sparc.md (define_splits): Kill constraints.
663 Cleanup redundant and unused insn attributes.
664 * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
665 binary, and move. Mark ialu as default.
666 (commented out define_function_unit "alu"): Kill.
667 (define_attr "use_clobbered"): Kill.
668 (whole file): Kill address insn type references. Replace
669 all unary/binary/move references with ialu.
670 * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
671 references. Replace TYPE_{UNARY,BINARY,MOVE} references with
674 Simplify length insn attribute and make more judicious use
675 of insn attribute defaulting.
676 * config/sparc/sparc.md (all insns with length > one): Mark as
677 insn type multi if real instructions, else use default if
678 it is a forced splitter.
679 (all insns with length == one): Use default insn length.
680 (all insns of type ialu): Use default insn type.
682 Fix erroneous insn attribute settings.
683 (addx): Set insn type to misc.
684 (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
685 const_umulsidi3_sp64): Set insn type to imul.
687 Track SFmode vs DFmode insns according to UltraSPARC
689 * config/sparc/sparc.md ("fptype"): New attribute, default
691 (all DFmode single insns): Mark as fptype "double".
693 2001-09-03 Jakub Jelinek <jakub@redhat.com>
695 * loop.c (express_from_1): Fix CONSTANT_P(a) case.
697 2001-09-03 Richard Henderson <rth@redhat.com>
699 * function.h (struct function): Add arg_pointer_save_area_init.
700 * function.c (expand_function_end): Init arg_pointer_save_area.
701 (get_arg_pointer_save_area): Do not init arg_pointer_save_area
702 when called from a nested function.
704 2001-09-02 Angela Marie Thomas <angela@cygnus.com>
706 * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
709 Sun Sep 2 18:37:54 CEST 2001 Jan Hubicka <jh@suse.cz>
711 * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
713 2001-09-01 Geoffrey Keating <geoffk@redhat.com>
715 * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
716 (emit_push_insn): Use specified padding direction when
717 STACK_PUSH_CODE is POST_INC.
719 * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
721 2001-09-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
723 * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
725 2001-09-01 Neil Booth <neil@daikokuya.demon.co.uk>
727 * cppinit.c (cpp_start_read): Free the imacros list as we
728 traverse it. Don't free the chains before returning.
729 (_cpp_push_next_buffer): Only try pushing buffers if we've
730 completed -imacros handling.
732 2001-08-31 Eric Christopher <echristo@redhat.com>
734 * gcc.c (handle_braces): Add explaination for abort.
736 2001-08-30 Roman Zippel <zippel@linux-m68k.org>
738 * expmed.c (store_bit_field): Update to patch from 2001-08-27:
739 move adjustment of bitpos instead.
741 2001-08-31 Zack Weinberg <zack@codesourcery.com>
743 * function.c: Remove all_functions. Make outer_function_chain
745 (init_function_start): Don't add new function structure to
747 (find_function_data, push_function_context_to,
748 pop_function_context_from, put_var_into_stack,
749 trampoline_address): Update for changed structure element names.
750 (push_function_context_to): Disentangle.
751 (free_after_compilation): Also free F.
752 (expand_dummy_function_end): Don't free cfun here.
753 (put_var_into_stack): Comment why we can't use find_function_data here.
754 (fix_lexical_addr, trampoline_address, ): Use find_function_data.
755 (mark_function_chain): Split into maybe_mark_struct_function and
756 ggc_mark_struct_function. Export the latter.
757 (init_function_once): Mark from cfun and outer_function_chain;
760 * function.h (struct function): Kill next_global. Rename next
761 to outer. All users updated to match.
762 (all_functions, outer_function_chain): Don't declare.
764 * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
765 * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
766 don't touch f->inlinable, after calling rest_of_compilation.
768 * tree.h: Forward-declare struct function. Prototype
769 ggc_mark_struct_function.
771 2001-08-31 Kazu Hirata <kazu@hxi.com>
773 * config/h8300/h8300.md (*andorhi3): Fix typos.
775 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
777 * calls.c (emit_library_call_value): Don't use a fixed
778 argument after VA_CLOSE, i.e. out of scope in traditional C.
780 * emit-rtl.c (gen_rtvec): Likewise.
782 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
784 * Makefile.in (c-pragma.o): Depend on output.h.
785 (reorg.o): Depend on except.h.
787 * c-pragma.c: Include output.h.
789 * reorg.c: Include except.h.
791 * unwind-dw2.c: Call __builtin_alloca, not alloca.
793 2001-08-31 Richard Henderson <rth@redhat.com>
795 * sched-deps.c (add_dependence): Don't elide dependancy if the
796 conditional used by insn is modified in elem.
798 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
800 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
802 2001-08-31 Diego Novillo <dnovillo@redhat.com>
804 * c-decl.c (c_decode_option): Skip '-f' prefix before calling
807 2001-08-31 Geoffrey Keating <geoffk@redhat.com>
809 * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
811 (stormy16_asm_out_constructor): New function.
812 (TARGET_ASM_CONSTRUCTOR): Define.
813 (TARGET_ASM_DESTRUCTOR): Define.
815 2001-08-31 Andreas Jaeger <aj@suse.de>
817 * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
818 * loop.c (add_label_notes): Likewise.
819 * reload.c (find_reloads): Likewise.
820 * config/sh/sh.c (machine_dependent_reorg): Likewise.
822 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
824 * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
825 code here. Take _Unwind_{W,Sw}ord*.
826 (read_encoded_value_with_base): Use them.
827 * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
829 (extract_cie_info): Simplify read_?leb128 handling.
830 (execute_stack_op, execute_cfa_program): Likewise.
831 * unwind-dw2-fde.c (get_cie_encoding): Likewise.
833 2001-08-31 Geoffrey Keating <geoffk@redhat.com>
835 * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
836 the frame pointer to pop the stack if convenient.
838 * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
839 Don't use post-increment before combine.
840 * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
841 a call-saved register.
843 2001-08-31 Andreas Jaeger <aj@suse.de>
845 * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
848 2001-08-30 Geoffrey Keating <geoffk@redhat.com>
850 * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
851 not DIV/MOD, of course.
853 2001-08-30 Vladimir Makarov <vmakarov@redhat.com>
855 * rtl.def: Undo my patch commited 2001-08-27.
857 * genattrtab.c: Ditto.
861 * sched-int.h: Ditto.
863 * target-def.h: Ditto.
867 * haifa-sched.c: Ditto.
869 * sched-rgn.c: Ditto.
871 * sched-vis.c: Ditto.
873 * Makefile.in: Ditto.
875 * doc/md.texi: Ditto.
877 * doc/tm.texi: Ditto.
879 * doc/contrib.texi: Ditto.
881 * doc/gcc.texi: Ditto.
883 * genattrtab.h: Remove it.
885 * genautomata.c: Remove it.
887 * genattr.c: Undo my patch and Richard Henderson's patch commited
890 Thu Aug 30 19:22:15 2001 J"orn Rennecke <amylaar@redhat.com>
892 * config.gcc (h8300-*-elf*): New case.
893 * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
894 (SUBTARGET_CPP_SPEC): Define.
895 (EXTRA_SPECS): Define.
896 (SUBTARGET_EXTRA_SPECS): Define.
897 * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
898 * config/h8300/elf.h, config/h8300/t-elf: Likewise.
900 Thu Aug 30 18:50:37 2001 J"orn Rennecke <amylaar@redhat.com>
902 * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
903 (LIB2FUNCS_EXTRA): Define.
904 config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
905 config/h8300/fixunssfsi.c: New file.
907 2001-08-30 Kazu Hirata <kazu@hxi.com>
909 * config/h8300/h8300.md (zero_extendqihi2): Changes to
910 define_expand to accomodate target-specific attributes.
911 (anonymous zero_extendqihi2 patterns): New.
913 Thu Aug 30 18:10:56 2001 J"orn Rennecke <amylaar@redhat.com>
915 * h8300.md (*andorhi3): New pattern.
917 Thu Aug 30 16:00:31 2001 J"orn Rennecke <amylaar@redhat.com>
919 * h8300.c (dosize): Fix test for "sub".
921 Thu Aug 30 10:21:43 2001 J"orn Rennecke <amylaar@redhat.com>
923 * c-typeck.c (pointer_diff): Try to eliminate common term before
926 2001-08-30 Nick Clifton <nickc@cambridge.redhat.com>
928 * config/arm/arm.c (arm_compute_initial_elimination_offset):
929 Account for the saves of the FP registers.
931 * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
932 (TEXT_SECTION_ASM_OP): Define.
933 (INIT_SECTION_ASM_OP): Define.
934 (FINI_SECTION_ASM_OP): Define.
935 (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
936 (RDATA_SECTION_FUNCITON): Provide prototype.
938 2001-08-29 Geoffrey Keating <geoffk@redhat.com>
940 * reload1.c (move2add_note_store): Correct typo checking for
943 2001-08-29 Andrew MacLeod <amacleod@redhat.com>
945 * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
946 note should not be considered outside the libcall block.
948 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
950 * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
952 2001-08-29 Kazu Hirata <kazu@hxi.com>
954 * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
956 2001-08-29 Kazu Hirata <kazu@hxi.com>
958 * config/h8300/h8300-protos.h: Add a prototype for
960 * config/h8300/h8300.c (emit_logical_op): New.
961 * config/h8300/h8300.md (andhi3): Use emit_logical_op.
968 2001-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
970 * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
971 comparison with rtx INTVAL.
972 (pa_output_function_prologue): Don't mix signed and unsigned in `?'
974 * pa.h (FUNCTION_ARG_SIZE): Likewise.
976 2001-08-29 Kazu Hirata <kazu@hxi.com>
978 * config/h8300/lib1funcs.asm: Update the copyright. Fix
981 2001-08-29 Kazu Hirata <kazu@hxi.com>
983 * config/h8300/h8300.md (anonymous movhi pattern): Don't move
984 (reg n) to (mem (pre_dec (reg n))
985 (anonymous movsi pattern): Likewise.
987 2001-08-29 Kazu Hirata <kazu@hxi.com>
989 * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
991 2001-08-29 Kazu Hirata <kazu@hxi.com>
993 * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
994 several special constants.
996 2001-08-29 Kazu Hirata <kazu@hxi.com>
998 * config/h8300/lib1funcs.asm: Fix comment typos.
1000 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1002 * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
1003 Fix format specifier warnings.
1005 * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
1006 inet_makeaddr, semctl): Prototype.
1008 * mips.c (compute_frame_size): Fix signed/unsigned warnings.
1009 (save_restore_insns): Use base_offset, not gp_offset.
1011 * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
1012 (ASM_OUTPUT_BYTE): Fix format specifier warning.
1014 2001-08-29 Richard Henderson <rth@redhat.com>
1016 * bb-reorder.c (function_tail_eff_head): New.
1017 (record_effective_endpoints): Set it.
1018 (fixup_reorder_chain): Use it.
1020 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1022 * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
1024 2001-08-28 Dale Johannesen <dalej@apple.com>
1026 * config/darwin.c (machopic_function_base_name): Add const
1027 qualifier to a string.
1028 (darwin_encode_section_info): Ditto.
1030 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1032 * tree.c (default_valid_attribute_p): Don't use PARAMS on a
1033 function definition.
1035 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
1037 * df.h (struct df): Add rts_order variable.
1039 * df.c (df_visit_next_rts): New function.
1040 (df_visit_next): Renamed to df_visit_next_rc
1041 (df_analyse_1): Allocate/compute/free rts_order as well.
1042 (df_rd_global_compute): Use df_visit_next_rc instead of
1044 (df_ru_global_compute): Use df_visit_next_rts instead of
1047 * flow.c (flow_reverse_top_sort_order_compute): New function.
1049 * basic-block.h: Add prototype.
1051 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
1053 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
1054 blocks, the BB_REACHABLE is now set, rather than aux being
1055 non-NULL. Update the test to reflect this.
1057 2001-08-28 Eric Christopher <echristo@redhat.com>
1059 * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
1060 config/mips/crti.asm: Ditto.
1062 2001-08-28 Eric Christopher <echristo@redhat.com>
1063 Richard Henderson <rth@redhat.com>
1065 * c-pragma.h (add_weak): Move prototype from here...
1066 * output.h (add_weak): ... to here.
1067 * varasm.c (add_weak): Fix typo.
1068 * config/mips/crti.asm: New file.
1069 * config/mips/crtn.asm: Ditto.
1070 * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
1071 (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
1072 (INVOKE__main): Ditto.
1073 (INIT_SECTION_ASM_OP): New.
1074 (FINI_SECTION_ASM_OP): Ditto.
1075 (STARTFILE_SPEC): Add crti.
1076 (ENDFILE_SPEC): Add crtn.
1077 * config/mips/elf64.h: Same.
1078 * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
1080 * config/mips/vxworks.h: Ditto.
1081 * config/mips/t-elf: Support crti and crtn.
1083 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
1085 * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
1088 2001-08-28 Richard Henderson <rth@redhat.com>
1090 * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
1091 (one_cmplbi2 splitter): Remove redundant test.
1093 2001-08-28 Dale Johannesen <dalej@apple.com>
1095 * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
1097 2001-08-28 Danny Smith <dannysmith@users.sourceforge.net>
1099 * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
1101 2001-08-28 Stan Shebs <shebs@apple.com>
1103 * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
1104 (UNALIGNED_SHORT_ASM_OP): Define.
1105 (UNALIGNED_INT_ASM_OP): Define.
1107 2001-08-28 Will Cohen <wcohen@redhat.com>
1109 * config/rs6000/rs6000.md (store_multiple): Correct RTL
1110 generation for first set.
1112 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
1114 * flow.c (redirect_edge_succ_nodup): Return new edge.
1115 (try_simplify_condjump): Use new edge.
1116 * basic-block.h (redirect_edge_succ_nodup): Update prototype.
1118 * cse.c (cse_basic_block): Skip note instructions.
1120 2001-08-27 Richard Henderson <rth@redhat.com>
1122 * combine.c (combine_simplify_rtx): Don't reverse condition
1123 if there is no reverse for the condition.
1124 (simplify_comparison): Don't simplify subregs from INT to FP.
1126 * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
1127 suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
1128 sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1129 bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
1130 bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
1131 bunle_rev, bunlt_rev, bltgt_rev): New patterns.
1133 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
1135 * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
1136 bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
1138 (adddi_dilshr32, adddi_dishl32): Only data register can be
1139 source for mem destination.
1141 * expmed.c (store_bit_field): Ignore adjustment to bitpos
1142 and use bitnum to decide about register move.
1144 2001-08-27 Richard Henderson <rth@redhat.com>
1146 * genattr.c (main): Emit state_t even when not doing scheduling.
1148 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
1149 Richard Henderson <rth@redhat.com>
1151 * gcse.c (reg_first_set, reg_last_set): Replace with ...
1152 (reg_avail_info, current_bb): ... these.
1153 (oprs_unchanged_p, record_last_reg_set_info): Use them.
1154 (compute_hash_table): Likewise.
1156 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
1158 * flow.c (verify_flow_info): Use checksums to verify edges.
1160 2001-08-27 Richard Henderson <rth@redhat.com>
1162 * genautomata.c (expand_automata): Always create a description.
1164 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
1166 * optabs.c (expand_binop): Correctly handle the carry in multiword
1167 add/subtract operations.
1169 2001-08-27 Fred Fish <fnf@be.com>
1171 * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
1174 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
1176 * reload.c (find_reloads_toplev): Back out this change:
1178 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
1180 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
1181 mem if the address is a mode_dependent_address_p.
1183 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
1185 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
1186 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
1187 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
1190 * genattr.c (main): New variable num_insn_reservations. Increase
1191 it if there is DEFINE_INSN_RESERVATION. Output automaton based
1192 pipeline hazard recognizer interface.
1194 * genattrtab.h: New file.
1196 * genattrtab.c: Include genattrtab.h.
1197 (attr_printf, check_attr_test, make_internal_attr,
1198 make_numeric_value): Move protypes into genattrtab.h. Define them
1200 (num_dfa_decls): New global variable.
1201 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
1202 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
1203 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
1204 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
1206 * genautomata.c: New file.
1208 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
1210 * sched-int.h: (curr_state): Add the external definition for
1211 automaton pipeline interface.
1212 (haifa_insn_data): Add comments for members blockage and units.
1214 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
1215 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
1216 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
1217 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
1218 TARGET_SCHED_DFA_POST_CYCLE_INSN,
1219 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
1220 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
1222 (TARGET_SCHED): Use the new macros.
1224 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
1225 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
1226 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
1227 dfa_bubble): New members in gcc_target.sched.
1229 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
1230 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
1231 (insn_queue): Redefine it as pointer to array.
1232 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
1234 (max_insn_queue_index_macro_value): New variable.
1235 (curr_state, dfa_state_size, ready_try): New varaibles for
1236 automaton interface.
1237 (ready_element, ready_remove, max_issue): New function prototypes
1238 for automaton interface.
1239 (choose_ready): New function prototype.
1240 (insn_unit, blockage_range): Add comments.
1241 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
1242 FUNCTION_UNITS_SIZE == 0.
1243 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
1244 actual_hazard, potential_hazard): Add comments.
1245 (insn_cost): Use cost -1 as undefined value. Remove
1246 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
1248 (ready_element, ready_remove): New functions for automaton
1250 (schedule_insn): Add new code for automaton pipeline interface.
1251 (queue_to_ready): Add new code for automaton pipeline interface.
1252 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
1253 (debug_ready_list): Print newline when the queue is empty.
1254 (max_issue): New function for automaton pipeline interface.
1255 (choose_ready): New function.
1256 (schedule_block): Add new code for automaton pipeline interface.
1257 Print ready list before scheduling each insn.
1258 (sched_init): Add new code for automaton pipeline interface.
1259 Initiate insn cost by -1.
1260 (sched_finish): Free the current automaton state and finalize
1261 automaton pipeline interface.
1263 * sched-rgn.c: Include target.h.
1264 (init_ready_list, new_ready, debug_dependencies): Add new code for
1265 automaton pipeline interface.
1267 * sched-vis.c: Include target.h.
1268 (get_visual_tbl_length): Add code for automaton interface.
1269 (target_units, print_block_visualization): Add comments.
1271 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
1272 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
1273 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
1274 (getruntime.o, genautomata.o): New entries.
1275 (genattrtab.o): Add new dependency file genattrtab.h.
1276 (genattrtab): Add new dependencies. Link it with `libm.a'.
1277 (getruntime.o, hashtab.o): New entries for canadian cross.
1279 * doc/md.texi: Description of automaton based model.
1281 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
1283 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
1284 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
1285 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
1286 TARGET_SCHED_DFA_POST_CYCLE_INSN,
1287 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
1288 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
1289 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
1291 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
1292 MAX_DFA_ISSUE_RATE): New macro descriptions.
1294 * doc/contrib.texi: Add dfa based scheduler contribution.
1296 * doc/gcc.texi: Add more information about genattrtab.
1298 2001-08-27 Diego Novillo <dnovillo@redhat.com>
1300 * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
1303 2001-08-27 Richard Henderson <rth@redhat.com>
1305 * function.c (expand_function_end): Don't init arg_pointer_save_area.
1306 (get_arg_pointer_save_area): New. Create an init it here.
1307 (fix_lexical_addr): Use it.
1308 * function.h: Declare it.
1309 * builtins.c (expand_builtin_setjmp_receiver): Use it.
1310 * stmt.c (expand_nl_goto_receiver): Use it.
1312 2001-08-27 Richard Henderson <rth@redhat.com>
1314 * final.c (final_scan_insn): Don't enter APP_ON mode for
1317 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
1318 alignment for assemble_integer for DW_EH_PE_aligned.
1319 * except.c (output_function_exception_table): Likewise.
1321 2001-08-26 Andreas Jaeger <aj@suse.de>
1323 * c-tree.h: Add prototyp for c_sizeof_nowarn.
1325 2001-08-25 Dan Nicolaescu <dann@ics.uci.edu>
1327 * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
1329 2001-08-27 Alan Modra <amodra@bigpond.net.au>
1331 * config/rs6000/rs6000.c (mask_operand): Rewrite without
1333 (mask64_operand): Likewise.
1334 (rldic_operand): Delete.
1335 (includes_lshift64_p): Delete.
1336 (includes_rldic_lshift_p): New function.
1337 (includes_rldicr_lshift_p): New function.
1338 (print_operand): Don't call rldic_operand in case 'W'.
1339 * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
1340 (includes_lshift64_p): Remove.
1341 (includes_rldic_lshift_p): Declare.
1342 (includes_rldicr_lshift_p): Declare.
1343 * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
1344 * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
1345 Replace match_operand rldic_operand predicate with
1346 const_int_operand. Replace includes_lshift64_p condition with
1347 includes_rldic_lshift_p.
1348 <ashldi3_internal 64 bit rldicr patterns>: New.
1350 2001-08-27 Andreas Jaeger <aj@suse.de>
1352 * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
1353 * errors.c: Likewise.
1354 * final.c: Likewise.
1355 * dwarf2asm.c: Likewise.
1356 * doprint.c (checkit): Likewise.
1357 * diagnostic.c: Likewise.
1358 * collect2.c: Likewise.
1359 * calls.c: Likewise.
1360 * c-semantics.c (build_stmt): Likewise.
1361 * c-format.c (status_warning): Likewise.
1362 * c-errors.c (pedwarn_c99): Likewise.
1363 * builtins.c (validate_arglist): Likewise.
1364 * config/pj/pj.c (pj_printf): Likewise.
1365 * fix-header.c: Likewise.
1367 * gcov.c (fnotice): Likewise.
1368 * gensupport.c (message_with_line): Likewise.
1369 * mips-tfile.c: Likewise.
1370 * protoize.c (notice): Likewise.
1371 * read-rtl.c (fatal_with_file_and_line): Likewise.
1372 * rtl-error.c: Likewise.
1373 * tradcpp.c: Likewise.
1375 * cp/tree.c (build_min_nt): Likewise.
1376 (build_min): Likewise.
1377 * cp/lex.c: Likewise.
1378 * cp/errfn.c: Likewise.
1379 * cp/rtti.c (create_pseudo_type_info): Likewise.
1381 Sun Aug 26 20:25:44 2001 Denis Chertykov <denisc@overta.ru>
1383 * df.c (df_uses_record): Return after recording all uses
1386 2001-08-26 Daniel Berlin <dan@cgsoftware.com>
1388 * df.c (df_insn_modify): Realloc the INSN table here, if
1389 necessary, here, too.
1391 2001-08-26 Aldy Hernandez <aldyh@redhat.com>
1393 * config/mips/mips.c (mips_function_value): Handle complex return
1396 2001-08-25 Hans-Peter Nilsson <hp@bitrange.com>
1398 * reload1.c (reload): Make all entries in reg_equiv_memory_loc
1400 * reload.c (make_memloc): Copy result if it is still
1401 reg_equiv_memory_loc[regno] on return.
1402 (subst_reloads) [ENABLE_CHECKING]: Check that none of
1403 reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
1404 reg_equiv_mem are modified by the substitutions.
1406 Sat Aug 25 23:07:35 CEST 2001 Jan Hubicka <jh@suse.cz>
1408 * predict.c (expensive_function_p): New.
1409 * rtl.h (expensive_function_p): Declare.
1410 * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
1411 (use_fast_prologue_epilogue): New static variable.
1412 (expand_prologue): Set it; emit short prologues if unset.
1413 (expand_epilogue): Likewise.
1415 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
1417 * config.gcc: Add stormy16-*-elf case.
1418 * config/stormy16/stormy-abi: New file.
1419 * config/stormy16/stormy16-lib2.c: New file.
1420 * config/stormy16/stormy16-protos.h: New file.
1421 * config/stormy16/stormy16.c: New file.
1422 * config/stormy16/stormy16.h: New file.
1423 * config/stormy16/stormy16.md: New file.
1424 * config/stormy16/t-stormy16: New file.
1426 Sat Aug 25 15:46:51 CEST 2001 Jan Hubicka <jh@suse.cz>
1428 * i386.h (no-accumulate-outgoing-args): Use proper mask.
1430 2001-08-24 David Edelsohn <edelsohn@gnu.org>
1432 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
1433 descriptor members are pointer size, not constant 4.
1434 * config/rs6000/rs6000.md (define_splits): Remove more unused
1437 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1439 * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
1441 2001-08-24 Andreas Jaeger <aj@suse.de>, rkl@connect.org.uk
1443 * cp/rtti.c (VPARAMS): Fix parameter.
1445 2001-08-24 Zack Weinberg <zackw@panix.com>
1447 * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
1449 (mode_for_extraction): No need for #ifdefs. Add default-case abort
1451 (store_bit_field): Eliminate insv_bitsize variable. Put HAVE_insv
1452 in if controlling use of insv.
1453 (extract_bit_field): Likewise, for extv and extzv.
1455 Fri Aug 24 17:27:46 CEST 2001 Jan Hubicka <jh@suse.cz>
1457 * i386.md (movcc peep2): Fix load of 0.
1459 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1461 * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
1462 *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
1464 2001-08-23 Jason Merrill <jason_merrill@redhat.com>
1466 * c-pragma.h: Move weak_syms and weak_decls...
1467 * varasm.c: ...here. Now static.
1468 (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
1469 depend on HANDLE_PRAGMA_WEAK.
1471 * c-common.c (c_alignof, c_alignof_expr): Move here...
1472 * c-typeck.c: ...from here.
1473 * c-tree.h, c-common.h: Adjust.
1475 2001-08-23 Bernd Schmidt <bernds@redhat.com>
1477 * config/ia64/ia64.c (rws_update): If !pred, set write_count
1478 instead of incrementing it.
1480 * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
1481 asm ready, don't try to move them all into the same array element.
1483 Thu Aug 23 17:21:43 CEST 2001 Jan Hubicka <jh@suse.cz>
1485 * function.c (thread_prologue_and_epilogue_insns): Avoid
1486 fallthru flag on edge to exit.
1488 * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
1490 * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
1493 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
1495 * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
1496 * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
1497 * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
1500 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
1502 * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
1503 replace "GNU CC" with "GCC".
1505 2001-08-23 Richard Henderson <rth@redhat.com>
1507 * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
1508 Reorganize. Handle ADDL like GR, add GR_AND_BR. Handle TFmode.
1509 (ia64_secondary_reload_class): Need GR between AR/BR and anything.
1510 Need GR between FR and not GR_AND_FR.
1511 * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
1512 * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
1513 AR regs before GR regs.
1514 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
1515 (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
1516 (REGISTER_MOVE_COST): Update.
1517 (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
1519 2001-08-23 Richard Henderson <rth@redhat.com>
1521 * regclass.c (init_reg_sets_1): Don't assume cost 2 within
1524 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
1526 * reload1.c (emit_reload_insns): Don't look for notes
1527 on a NULL store_insn.
1529 2001-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1531 * sparc.c (uns_small_int): Don't reference a constant >32-bit.
1532 (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
1533 (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
1534 format specifier warnings.
1535 (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
1537 2001-08-22 David Billinghurst <David.Billinghurst@riotinto.com>
1539 * config/i386/i386-protos.h: Correct declaration of
1540 i386_pe_asm_named_section.
1542 2001-08-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
1544 * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
1546 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
1548 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
1550 * cpperror.c (print_location): Don't show _Pragma.
1551 * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
1552 and file change callback generation here.
1553 (stack_include_file): Update use of cpp_push_buffer.
1554 * cpphash.h (_cpp_pop_file_buffer): Update prototype.
1555 (struct cpp_buffer): Remove type, pfile members.
1556 * cppinit.c (cpp_handle_option): Use free_chain.
1557 * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
1558 (skip_escaped_newlines, get_effective_char, lex_percent): Take
1559 a cpp_reader rather than a cpp_buffer.
1560 (skip_escaped_newlines, get_effective_char, skip_block_comment,
1561 skip_line_comment, parse_string, lex_percent, lex_dot,
1562 _cpp_lex_token): Update accordingly.
1563 * cpplib.c (_cpp_pop_buffer): Don't do file change callback
1565 (cpp_push_buffer): Update prototype.
1566 (run_directive): Update use of cpp_push_buffer.
1567 (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
1568 handle_assertion): Update use of run_directive.
1569 * cpplib.h (enum cpp_buffer_type): Remove.
1570 (cpp_push_buffer): Update prototype.
1571 * fix-header.c (read_scan_file): Update.
1573 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1575 * gcc.c (struct prefix_list): Change prefix to const char *.
1577 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1579 * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
1581 2001-08-22 Jason Merrill <jason_merrill@redhat.com>
1583 * explow.c (set_mem_attributes): Avoid returning a bogus alias set
1586 * jump.c (squeeze_notes): Take parms by reference. Handle END being
1589 * ifcvt.c (dead_or_predicable): Adjust.
1590 * loop.c (find_and_verify_loops): Adjust.
1591 * stmt.c (expand_end_case): Adjust.
1592 * flow.c (merge_blocks_move_successor_nojumps): Adjust. Modify the
1593 head and end insn pointers in the basic block, not just local copies.
1594 (merge_blocks_move_predecessor_nojumps): Likewise.
1596 2001-08-22 Lars Brinkhoff <lars@nocrew.org>
1598 * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
1599 bitmap.h, builtin-types.def, builtins.c, builtins.def,
1600 c-aux-info.c, c-common.c, c-common.def, c-common.h,
1601 c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
1602 c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
1603 c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
1604 caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
1605 conditions.h, config.gcc, configure.frag, configure.in,
1606 conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
1607 cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
1608 dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
1609 doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
1610 dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
1611 emit-rtl.c, errors.c, errors.h, except.c, except.h,
1612 exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
1613 fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
1614 function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
1615 gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
1616 gencheck.c, gencodes.c, genconfig.c, genemit.c,
1617 genextract.c, genflags.c, gengenrtl.c, genmultilib,
1618 genopinit.c, genoutput.c, genpeep.c, genrecog.c,
1619 gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
1620 ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
1621 graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
1622 gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
1623 gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
1624 hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
1625 integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
1626 libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
1627 machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
1628 mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
1629 mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
1630 params.h, predict.c, predict.def, predict.h, prefix.c,
1631 prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
1632 read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
1633 regclass.c, regmove.c, regrename.c, regs.h, reload.c,
1634 reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
1635 rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
1636 sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
1637 sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
1638 ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
1639 stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
1640 tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
1641 tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
1642 unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
1643 unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
1644 xcoffout.h: replace "GNU CC" with "GCC".
1646 2001-08-21 Richard Henderson <rth@redhat.com>
1648 * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
1649 (final_scan_insn): Consider jump tables data even if we have no
1650 independant text section if !JUMP_TABLES_IN_TEXT_SECTION. Use
1652 * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
1653 (ASM_OUTPUT_CASE_END): Remove.
1654 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
1655 * config/ia64/ia64.md (tablejump): Decode pc-relative references.
1656 * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
1658 2001-08-21 Richard Henderson <rth@redhat.com>
1660 * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
1661 at barrier insns. Emit stop bits before barriers.
1663 * flow.c (flow_find_cross_jump): Don't consider unconditional
1664 return insns for commoning.
1666 * final.c (compute_alignments): Fix typo.
1668 * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
1669 (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
1670 (store_bit_field): Use mode_for_extraction more places.
1671 (extract_bit_field): Likewise.
1673 2001-08-21 Zack Weinberg <zackw@panix.com>
1675 * caller-save.c: Don't include insn-codes.h.
1676 (reg_save_code, reg_restore_code): Make arrays of int.
1677 All uses updated to match.
1678 (insert_save, insert_restore): No need to initialize "code"
1679 variable upon declaration.
1680 * Makefile.in: update dependencies; fix typo in clean rule.
1682 2001-08-21 Richard Henderson <rth@redhat.com>
1684 * ifcvt.c (find_if_block): Allow join_bb as EXIT.
1685 (merge_if_block): Handle fallout from same.
1687 2001-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1689 * builtins.c (type_to_class): Fix typo in last change.
1691 2001-08-21 Richard Henderson <rth@redhat.com>
1693 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
1694 ia64_asm_output_label.
1696 * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
1697 copy of gp while the real gp register contains garbage.
1699 2001-08-21 Zack Weinberg <zackw@panix.com>
1701 * expmed.c (mode_for_extraction): New function.
1702 (store_bit_field, extract_bit_field): Use it.
1703 * expr.h: Prototype it and provide an enum for its first argument.
1705 * combine.c, function.c, recog.c: Don't include insn-codes.h.
1706 Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
1707 and digging through the insn_data tables.
1708 * Makefile.in: Update dependencies.
1710 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
1712 * cppfiles.c (stack_include_file): line-map.c now handles include
1714 (handle_missing_handler): Similarly.
1715 (_cpp_execute_include): Similarly.
1716 (_cpp_pop_file_buffer): Similarly.
1717 * cpphash.h (struct cpp_reader): Remove system_include_depth,
1718 buffer_stack_depth and include_depth.
1719 * cpplib.c (do_include_common): line-map.c now handles include depth.
1720 (cpp_push_buffer): Similarly.
1721 (_cpp_pop_buffer): Similarly.
1722 * cppmacro.c (builtin_macro): Update.
1723 * line-map.c (init_line_maps): Set depth.
1724 (add_line_map): Increment "used" earlier. Update and use the
1726 (trace_include): Use the include depth.
1727 * line-map.h (struct line_maps): New member depth.
1729 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
1731 * cppfiles.c (stack_include_file): Don't handle -H here.
1732 * cppinit.c (cpp_start_read): Set include tracing after
1733 cpp_post_options and after stacking the main file.
1734 * line-map.c (trace_include): New.
1735 (init_line_maps, add_line_map): Update.
1736 * line-map.h (struct line_maps): New member trace_includes.
1738 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
1740 * cppfiles.c (stack_include_file): Harmonize system headerness tests.
1741 * cppfiles.c (stack_include_file): Only stack a file if there
1742 is something to do. Return a boolean indicating whether a
1743 buffer was stacked or not.
1744 (_cpp_execute_include): Similarly.
1745 (_cpp_read_file): Similarly.
1746 * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
1748 2001-08-21 Sam Steingold <sds@gnu.org>
1750 * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
1751 (RECACHE): keep obufp_before_macroname up to date
1753 2001-08-21 Zack Weinberg <zackw@panix.com>
1755 * stmt.c: Don't include insn-codes.h.
1756 (expand_end_case): Machine specific logic moved to expr.c.
1757 No need to worry about __builtin_classify_type.
1758 (check_for_full_enumeration_handling, emit_case_nodes):
1761 * builtins.o (expand_builtin_classify_type): Split up so code
1762 can be shared with fold_builtin_classify_type.
1763 (type_to_class, fold_builtin_classify_type): New functions.
1764 (fold_builtins): Handle __builtin_classify_type.
1766 * expr.c (do_tablejump): Now static.
1767 (case_values_threshold, try_casesi, try_tablejump): New;
1768 code mostly from stmt.c (expand_end_case).
1769 (expr.h): Update prototypes.
1771 * Makefile.in (stmt.o): Update dependencies.
1773 2001-08-21 Will Cohen <wcohen@redhat.com>
1775 * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
1776 declaration of variable i.
1777 * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
1778 declaration of variable i.
1780 2001-08-21 Richard Henderson <rth@redhat.com>
1782 * crtstuff.c: Fix thinko last change. Move list tails to start
1783 of CRT_END section. Tidy ifdefs.
1784 (__EH_FRAME_BEGIN__): Always static for ELF.
1785 (__do_global_ctors_1): Rename from __frame_dummy.
1786 * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
1787 name change; don't hide __EH_FRAME_BEGIN__.
1789 2001-08-21 Richard Henderson <rth@redhat.com>
1791 * gdbinit.in: Move break on exit after break on fancy_abort.
1793 * config/ia64/ia64.c (ia64_return_in_memory): True for variable
1796 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
1798 * cpphash.h (_cpp_push_next_buffer): New.
1799 * cppinit.c (do_includes): Remove.
1800 (push_include, free_chain, _cpp_push_next_buffer): New.
1801 (cpp_start_read): Use them to rework command line option handling.
1802 (cpp_handle_option): Combine handling of -include and -imacros.
1803 * cpplex.c (_cpp_lex_token): Push a new -include buffer if
1804 appropriate. Always insert missing \n at EOF.
1805 * cpplib.c (start_directive): Get the directive position right.
1806 * cppmain.c (cb_file_change): Always print the first line, unless
1809 2001-08-20 Andreas Jaeger <aj@suse.de>
1811 * profile.c (compute_branch_probabilities): Remove extra new-line
1813 * flow.c (verify_flow_info): Likewise.
1815 2001-08-20 Diego Novillo <dnovillo@redhat.com>
1817 * basic-block.h (basic_block): Add new field 'flags'.
1818 (BB_REACHABLE): Define.
1819 (expunge_block): Declare.
1820 * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
1821 (EXIT_BLOCK_PTR): Ditto.
1822 (expunge_block): Remove static declaration.
1823 (cleanup_cfg): Clear bb->aux on every basic block.
1824 (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
1825 computing reachability.
1826 (delete_unreachable_blocks): Delete block b if b->flags has
1829 2001-08-20 Diego Novillo <dnovillo@redhat.com>
1831 * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
1833 2001-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1835 * sparc.c (sparc_variable_issue): Fix typo in last change.
1837 2001-08-20 Richard Henderson <rth@redhat.com>
1839 * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
1841 2001-08-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
1843 * pa.h (RETURN_IN_MEMORY): Improve comment.
1845 2001-08-20 Janis Johnson <janis187@us.ibm.com>
1847 * doc/invoke.texi (Profiling options): Clarify the interactions
1848 between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
1850 2001-08-20 Jeffrey Oldham <oldham@codesourcery.com>
1852 * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
1855 2001-08-20 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1857 * gcc.c (make_relative_prefix): Allocate a sufficiently large
1860 2001-08-20 Richard Henderson <rth@redhat.com>
1862 * final.c (end_final): Fix typo last change.
1864 2001-08-20 Neil Booth <neil@daikokuya.demon.co.uk>
1866 * cppinit.c (init_standard_includes): The returned buffer
1867 is already malloc-ed.
1868 * gcc.c (add_prefix): Similarly.
1869 * prefix.c (translate_name): Update to support clear buffer
1871 (update_path): Similarly. Be sure to free any newly allocated
1872 key. UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
1874 * prefix.h (update_path): Update prototype and document.
1875 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
1876 up and update to new buffer ownership rules.
1877 * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
1879 Mon Aug 20 01:44:50 CEST 2001 Jan Hubicka <jh@suse.cz>
1881 * final.c (compute_alignments): New function.
1882 (init_insn_lengths): Do not care label_align.
1883 (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
1884 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
1885 (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
1886 (shorted_branches): Realloc label_align array; do
1887 not call init_insn_lengths; Do not care about loop alignments.
1888 * output.h (compute_alignments): Declare.
1889 * toplev.c (rest_of_compilation): Call compute_alignments.
1890 * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
1892 * predict.c (block_info_def): Add npredecesors, remove nvisited;
1893 change visited to tovisit.
1894 (propagate_freq): Use faster traversing algorithm.
1895 (estimate_loops_at_level, estimate_bb_frequencies): Change visited
1896 to tovisit; reverse meaning.
1898 * predict.c (struct block_info_def): Remove nvisited.
1899 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
1900 (estimate_bb_frequencies): Call mark_dfs_back_edges.
1902 2001-08-19 Geoffrey Keating <geoffk@redhat.com>
1904 * doc/invoke.texi (MIPS Options): Document -mfused-madd.
1905 * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
1906 (TARGET_FUSED_MADD): New.
1907 (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
1908 * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
1909 the multiply-add instructions.
1911 2001-08-19 Richard Henderson <rth@redhat.com>
1913 * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
1914 is aligned to pointer size.
1916 2001-08-19 Richard Henderson <rth@redhat.com>
1918 * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
1919 display markers during final schedule.
1921 2001-08-19 Richard Henderson <rth@redhat.com>
1923 * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
1925 2001-08-19 Richard Henderson <rth@redhat.com>
1927 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
1929 (ASM_NAME_TO_STRING): Remove.
1930 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
1931 in the same string. Remove support for expressions.
1933 2001-08-19 Richard Henderson <rth@redhat.com>
1935 * config/i386/i386.md (tablejump): Make an expander; handle
1936 pic relative addressing here.
1937 (tablejump_1): Rename from tablejump_pic.
1940 2001-08-19 Richard Henderson <rth@redhat.com>
1942 * regclass.c (fix_register): Fix typo.
1944 2001-08-18 Richard Henderson <rth@redhat.com>
1946 * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
1947 (struct _Unwind_Context): Expand br_loc to hold it.
1948 (uw_frame_state_for): Handle leaf functions better.
1949 (uw_update_reg_address): Update for br_loc change.
1951 2001-08-18 Richard Henderson <rth@redhat.com>
1953 * crtstuff.c: Move list heads before code that uses them.
1954 (__JCR_LIST__): Remove initial null.
1955 (frame_dummy, __frame_dummy): Do java registration here ...
1956 (__do_global_ctors_aux): ... not here.
1958 * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
1959 (__do_global_dtors_aux): Update to match.
1960 (__JCR_LIST__, __do_jv_register_classes): New.
1962 * config/ia64/crtend.asm (__JCR_END__): New.
1963 (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
1964 instead of an indirect LTOFF22 reloc.
1966 2001-08-18 Richard Henderson <rth@redhat.com>
1968 * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
1969 * regclass.c (init_reg_sets_1): Fix typo.
1970 * config/ia64/ia64.c (ar_pfs_reg_operand): New.
1971 (ia64_expand_call): Pass ar.pfs to sibcall expanders.
1972 (ia64_compute_frame_size): Make ar.unat live when in use.
1973 (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
1974 for ar.pfs; remove ar.unat handling.
1975 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
1977 (PREDICATE_CODES): Add ar_pfs_reg_operand.
1978 * config/ia64/ia64-protos.h: Update decls.
1979 * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
1980 (sibcall_pic): Likewise.
1982 2001-08-18 Richard Henderson <rth@redhat.com>
1984 * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
1985 pred_rel_mutex when searching for insn_group_barrier.
1986 * config/ia64/ia64.md (cycle_display): Combine the expander
1989 * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
1990 bit before asm as needed.
1992 2001-08-18 Richard Henderson <rth@redhat.com>
1994 * timevar.def (TV_MACH_DEP): New.
1995 * toplev.c (rest_of_compilation): Use it.
1996 * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
1998 2001-08-18 Zack Weinberg <zackw@panix.com>
2000 * unwind-dw2.c (execute_stack_op): Add default aborts to
2001 the inner switches to prevent warnings.
2003 2001-08-18 Richard Henderson <rth@redhat.com>
2005 * timevar.h (struct timevar_time_def): Change element type to float.
2006 (ticks_to_msec, clocks_to_msec): Likewise.
2007 (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
2008 (get_time): Likewise.
2009 (timevar_print): Adjust zero check and printing to match.
2011 2001-08-18 Zack Weinberg <zackw@panix.com>
2013 * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
2014 doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
2015 Eliminate overfull or underfull hboxes.
2017 2001-08-18 Zack Weinberg <zackw@panix.com>
2019 * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
2021 2001-08-18 Zack Weinberg <zackw@panix.com>
2023 * haifa-sched.c: Convert to target hooks. Macros replaced
2024 are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
2025 MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
2026 MD_SCHED_FINISH, and HAVE_cycle_display.
2027 * target-def.h (TARGET_SCHED_ADJUST_COST,
2028 TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
2029 TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
2030 TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
2031 TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
2032 New hook #defines to be overridden.
2033 (TARGET_SCHED): Bring them all together.
2034 (TARGET_INITIALIZER): Update.
2035 * target.h: Don't forward declare struct rtx_def. Use 'rtx'
2036 instead of 'struct rtx_def *' throughout.
2037 (struct sched): New set of hooks for the scheduler.
2038 * Makefile.in (haifa-sched.o): Depend on target.h.
2039 * doc/tm.texi: Document the new scheduler hooks, together in
2040 their own section, instead of scattered around.
2041 Fix a bunch of underfull/overfull hboxes.
2043 * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
2044 ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
2045 sparc.h: Don't define any of the old scheduler macros.
2047 * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
2048 ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
2049 sparc.c: Create hook functions from code extracted from
2050 corresponding target header, or make existing hooks static, as
2051 appropriate. Set the appropriate entries in targetm.
2053 * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
2054 i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
2055 rs6000-protos.h, s390-protos.h, sparc-protos.h:
2056 Remove prototypes for functions which are now static.
2058 * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
2059 related gunk; the Haifa scheduler is now the only choice.
2061 2001-08-18 Zack Weinberg <zackw@panix.com>
2063 * optabs.h (OTI_flodiv, flodiv_optab): Kill.
2064 * genopinit.c: Put floating point divide insns in sdiv_optab.
2065 * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
2066 * config/gofast.h, config/c4x/c4x.h,
2067 config/ia64/hpux_longdouble.h, config/mips/mips.h,
2068 config/pa/long_double.h, config/rs6000/sysv4.h,
2069 config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
2070 * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
2071 (init_optabs): Use init_optabv for overflow-trapping optabs.
2072 Don't init flodiv_optab. Give mov_optab, movstrict_optab, and
2073 cmp_optab RTX codes so have_insn_for can find them.
2075 * optabs.c (expand_simple_binop, expand_simple_unop,
2076 have_insn_for, gen_sub3_insn): New interfaces.
2077 * expr.h: Prototype new functions.
2078 (enum optab_methods): Move here from optabs.h.
2080 * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
2081 loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
2082 Use new functions instead of working directly with optabs.
2083 * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
2084 unroll.c: Don't include optabs.h.
2085 * caller-save.c, combine.c, function.c, stmt.c: Just include
2086 insn-codes.h, not optabs.h.
2087 * Makefile.in: Update dependencies.
2089 * combine.c (make_compound_operation, simplify_comparison):
2090 Fix typos testing for this or that instruction.
2092 2001-08-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2094 * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
2095 generating libgcc.a.
2097 2001-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2099 * except.c (TYPE_HASH): Delete.
2101 * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
2104 * tree.c (TYPE_HASH): Delete.
2106 * tree.h (TYPE_HASH): Define.
2108 2001-08-18 Graham Stott <grahams@redhat.com>
2110 * config/mips/mips.md (adddi3_internal_2+1): Remove contraints from
2112 (adddi3_internal_2+2): Likewise.
2113 (eh_set_lr_di+1): Likewise.
2115 2001-08-17 Richard Henderson <rth@redhat.com>
2117 * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2118 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
2119 * dwarf2asm.c: ... here.
2120 * dwarfout.c: Remove them.
2122 * varasm.c (assemble_integer): Add align parameter.
2123 (assemble_real, output_constant, output_constructor): Likewise.
2124 * output.h: Update decls.
2125 * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
2126 config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
2127 config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
2128 config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
2129 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
2132 * final.c (end_final): Abort profile block generation if we
2133 havn't layed it out properly.
2134 * output.h (assemble_eh_integer): Remove stale decl.
2135 * varasm.c (assemble_zeros): Tidy; use assemble_integer.
2137 (assemble_integer): Handle unaligned data.
2138 (assemble_real): Abort on unaligned data.
2139 (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
2141 (default_dtor_section_asm_out_destructor): Use assemble_align.
2142 (default_named_section_asm_out_constructor): Likewise.
2143 (default_ctor_section_asm_out_constructor): Likewise.
2144 * config/darwin.c (machopic_asm_out_constructor): Likewise.
2145 (machopic_asm_out_destructor): Likewise.
2146 * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
2147 (nextstep_asm_out_destructor): Likewise.
2148 * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
2149 (vms_asm_out_destructor): Likewise.
2151 2001-08-17 Richard Henderson <rth@redhat.com>
2153 * config/mips/iris6.h (TARGET_IRIX6): New.
2154 (current_section_name, current_section_flags): New.
2155 (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
2156 (MAX_OFILE_ALIGNMENT): New.
2157 (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
2158 * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
2159 (copy_file_data): Split out from
2160 (mips_asm_file_end): ... here.
2161 (mips_asm_file_start): Remove extra .section directive. Use
2162 tmpfile instead of mips_make_temp_file.
2163 (mips_unique_section): Use const char * as needed for warnings.
2164 (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
2165 re-add align parameter.
2166 (iris6_asm_named_section): New.
2167 (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
2168 (iris6_asm_output_align, iris6_section_align_1): New.
2169 (iris6_asm_file_start, iris6_asm_file_end): New.
2170 * config/mips/mips-protos.h: Update decls.
2172 2001-08-17 Janis Johnson <janis187@us.ibm.com>
2174 * doc/install.texi (Install GCC): Add links to build status pages.
2176 (Final install): Ditto; request updates for specific info
2178 2001-08-17 Neil Booth <neil@daikokuya.demon.co.uk>
2180 * cpperror.c (print_location): Don't take a file name; use the
2182 (_cpp_begin_message): Similarly.
2183 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
2184 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
2185 (cpp_pedwarn_with_file_and_line): Remove.
2186 * cppfiles.c (stack_include_file): Update; set filename to stdin
2187 here when appropriate.
2188 * cpphash.h (struct cpp_buffer): Remove nominal_fname.
2189 (_cpp_begin_message): Don't take a file name.
2190 * cppinit.c: Add comment.
2191 * cpplex.c: Fix end-of-directive indicator.
2192 * cpplib.c: Don't include intl.h.
2193 (run_directive, do_diagnostic): Update.
2194 (do_line): Update to not use nominal_fname.
2195 (cpp_push_buffer): Don't take a filename.
2196 * cpplib.h (struct ht): Remove.
2197 (cpp_push_buffer): Don't take a filename.
2198 (cpp_pedwarn_with_file_and_line): Remove.
2199 * cppmacro.c (struct cpp_macro): Remove file.
2200 (builtin_macro): Update.
2201 (_cpp_create_definition): Update.
2202 * cppmain.c: Correct comment.
2203 * fix-header.c (read_scan_file): Update.
2205 2001-08-17 Kazu Hirata <kazu@hxi.com>
2207 * sbitmap.c: Fix comment formatting.
2208 * sched-deps.c: Likewise.
2209 * sibcall.c: Likewise.
2210 * simplify-rtx.c: Likewise.
2212 * ssa-ccp.c: Likewise.
2213 * stor-layout.c: Likewise.
2214 * timevar.c: Likewise.
2215 * toplev.c: Likewise.
2216 * unwind-dw2.c: Likewise.
2217 * unwind-dw2-fde.c: Likewise.
2218 * varasm.c: Likewise.
2220 2001-08-17 John David Anglin <dave@hiauly1.hia.nrc.ca>
2222 * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
2223 or larger than an integer in memory.
2225 2001-08-17 Zack Weinberg <zackw@panix.com>
2227 * system.h: Forward-declare struct rtx_def, struct rtvec_def,
2228 and union tree_node. Typedef rtx, rtvec, and tree. Fix comment.
2229 * rtl.h: Don't forward-declare union tree_node here. Don't
2230 typedef rtx or rtvec here. Change all uses of struct rtx_def *,
2231 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
2232 and tree respectively.
2233 * tree.h: Don't forward-declare struct rtx_def here. Don't
2234 typedef tree here. Change all uses of struct rtx_def *,
2235 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
2236 and tree respectively.
2238 2001-08-17 Richard Henderson <rth@redhat.com>
2240 * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
2241 config/mips/openbsd.h: Fix typos last change.
2243 2001-08-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2245 * doc/invoke.texi (Optimize Options): The default for
2246 -finline-limit is 600.
2248 2001-08-17 Richard Henderson <rth@redhat.com>
2250 * varasm.c (text_section): Allow TEXT_SECTION to override the
2251 printing of TEXT_SECTION_ASM_OP.
2252 * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
2253 (DATA_SECTION, BSS_SECTION): Remove.
2254 * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
2255 RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
2256 Rename from s/_NAME//.
2257 * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
2258 (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
2259 (TEXT_SECTION): ... here. New.
2260 * config/mips/elf.h (TEXT_SECTION): New; no file switching.
2261 * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
2262 * config/mips/openbsd.h: Likewise.
2263 * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
2264 (mips_asm_file_end): Likewise test.
2265 (mips_output_function_epilogue): Likewise. Switch back to data
2266 section after emitting the function.
2268 * doc/tm.texi (Sections): Document TEXT_SECTION.
2270 2001-08-17 Richard Henderson <rth@redhat.com>
2272 * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
2273 (dwarf2out_finish): Do it here. Emit .debug_loc before .debug_info.
2275 2001-08-17 Richard Henderson <rth@redhat.com>
2277 * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
2278 * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
2279 __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
2280 Add aligned attribute.
2282 2001-08-17 Andrew Haley <aph@cambridge.redhat.com>
2284 * config/sh/sh.md: Add modes to unspecs in first insn to match
2285 those in the second.
2287 * Makefile.in: Fix collect2 copy for Cygwin.
2289 Fri Aug 17 15:48:57 CEST 2001 Jan Hubicka <jh@suse.cz>
2291 Install the proper patch.
2292 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
2293 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
2294 (expand_function_start): Likewise.
2295 * stmt.c (expand_decl): Likewise.
2296 * varasm.c (make_decl_rtx): Likewise.
2298 Fri Aug 17 15:41:35 CEST 2001 Jan Hubicka <jh@suse.cz>
2300 * final.c: Undo my previous accidental checkin.
2301 * output.h: Likewise.
2302 * tm.texi: Likewise.
2304 2001-08-16 Richard Henderson <rth@redhat.com>
2306 * varasm.c (named_section_flags): Remove align parameter.
2307 * varasm.c, dwarf2out.c: Update all callers.
2308 * output.h: Update prototypes.
2310 * target.h (target.asm_out.named_section): Remove align parameter.
2311 * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
2312 config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
2313 config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
2314 config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
2315 config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
2317 * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
2318 (get_named_section_flags, set_named_section_flags): New.
2319 (named_section_flags): Use them.
2320 (named_section): Do decl vs section flags check here...
2321 (default_section_type_flags): ... not here.
2322 (init_varasm_once): Create in_named_htab.
2323 (resolve_unique_section): Mark reloc unused.
2325 2001-08-16 Richard Henderson <rth@redhat.com>
2327 * varasm.c (force_const_mem): Keep pool alignment in bits.
2328 (output_constant_pool): Use assemble_align.
2330 2001-08-16 Zack Weinberg <zackw@panix.com>
2332 * doc/tm.texi: Remove extra @table command.
2334 2001-08-16 Zack Weinberg <zackw@panix.com>
2336 * final.c (shorten_branches): Clear the end of the label_align
2337 array only if we made it larger. Break up messy expressions
2340 * diagnostic.c (internal_error): Check for error recursion
2341 before doing ICE suppression.
2343 * timevar.c: Timing variables now count in milliseconds.
2344 (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
2345 (get_time): Not here.
2346 (timevar_print): Don't print any timer whose user, cpu, and
2347 wall times are all zero as displayed.
2348 * timevar.h: Update comment aboout units. Make timevar
2351 Thu Aug 16 17:39:45 CEST 2001 Jan Hubicka <jh@suse.cz>
2353 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
2354 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
2355 (expand_function_start): Likewise.
2356 * stmt.c (expand_decl): Likewise.
2357 * varasm.c (make_decl_rtx): Likewise.
2359 2001-08-16 Jason Merrill <jason_merrill@redhat.com>
2361 * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
2362 (finalize_record_size): Don't set TYPE_USER_ALIGN.
2364 2001-08-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2366 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
2369 2001-08-16 Andreas Jaeger <aj@suse.de>
2371 * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
2374 Wed Aug 15 15:22:52 EDT 2001 John Wehle (john@feith.com)
2376 * rtl.h (only_sets_cc0_p): New prototype.
2377 * jump.c (sets_cc0_p): Handle INSN.
2378 (only_sets_cc0_p): New function.
2379 * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
2380 (tidy_fallthru_edge): Likewise.
2381 * integrate.c (copy_insn_list): Likewise.
2382 * unroll.c (unroll_loop): Likewise.
2383 (copy_loop_body): Likewise.
2385 2001-08-15 Jason Eckhardt <jle@redhat.com>
2387 * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
2389 Wed Aug 15 14:24:22 CEST 2001 Jan Hubicka <jh@suse.cz>
2391 * predict.c (struct block_info_def): Remove nvisited.
2392 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
2393 (estimate_bb_frequencies): Call mark_dfs_back_edges.
2395 * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
2396 (ix86_adjust_cost): Teach scheduler that latency to load operand can
2399 Wed Aug 15 12:41:32 CEST 2001 Jan Hubicka <jh@suse.cz>
2401 * predict.def: Update hitrates.
2403 2001-08-15 Richard Henderson <rth@redhat.com>
2405 * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
2407 Tue Aug 14 17:30:59 2001 Jeffrey A Law (law@cygnus.com)
2409 * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
2410 note from its associated jump.
2412 2001-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2414 * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
2415 also on 64-bit s390x targets.
2417 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
2419 * config/arm/arm.c (arm_compute_initial_elimination_offset): New
2421 (arm_expand_prologue): Handled nested functions which take a
2422 variable argument list.
2423 * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
2424 macro with an invocation of
2425 arm_compute_initial_elimination_offset.
2426 * config/arm/arm-protos.h: Prototype
2427 arm_compute_initial_elimination_offset.
2429 2001-08-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2431 * doc/install.texi (Specific, avr): Fix markup.
2432 (Specific, c4x): Ditto.
2434 2001-08-14 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2436 * predict.c (dump_prediction): Change `bool' parameter to `int'.
2438 2001-08-14 Gabriel Dos Reis <gdr@codesourcery.com>
2440 * Makefile.in (OBJS): Add rtl-error.o
2441 (rtl-error.o): New rule.
2442 (diagnostic.o): Adjust dependency.
2443 diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
2444 error_for_asm, _fatal_insn, _fatal_insn_not_found,
2445 warning_for_asm): Move to...
2446 rtl-error.c: ...here. New file.
2448 2001-08-14 Richard Henderson <rth@redhat.com>
2450 * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
2451 if USING_SJLJ_EXCEPTIONS.
2453 2001-08-14 Steve Ellcey <sje@cup.hp.com>
2455 * tlink.c (scan_linker_output): Check string for unsatisfied in
2456 addition to undefined and unresolved.
2458 2001-08-14 Graham Stott <grahams@redhat.com>
2460 * libgcc2.c (*): Replace EH_FRAME_SECTION with
2461 EH_FRAME_SECTION_NAME.
2463 Tue Aug 14 14:57:07 CEST 2001 Jan Hubicka <jh@suse.cz>
2465 * genattrtab.c (simplify_test_exp_in_temp): New function.
2466 (simplify_test_exp): Avoid explicit use of temporary obstack.
2467 (simplify_cond, insert_right_side, evaluate_eq_attr,
2468 simplify_and_tree, simplify_or_tree, eliminate_known_true):
2469 Use simplify_test_exp_in_temp.
2470 (optimize_attrs): Iterate until expression stabilizes.
2472 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>:
2474 * glimits.h: Remove the __LONG_MAX__ special case for s390x.
2475 * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
2477 2001-08-13 Richard Henderson <rth@redhat.com>
2479 * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
2480 (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
2481 * config/arm/conix-elf.h: Likewise.
2483 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
2485 * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
2487 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
2489 * gcse.c (hash_scan_set): Expressions that are set as part of
2490 jump instructions are not available.
2492 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>
2494 * config/s390/s390.c (print_operand, s390_function_prologue,
2495 s390_va_start): Fixed HOST_WIDE_INT type mismatch.
2497 2001-08-13 Richard Henderson <rth@redhat.com>
2499 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
2500 * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
2501 * doc/tm.texi (Exception Region Output): Document it.
2503 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
2505 * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
2506 DWARF2 instead of stabs by default.
2508 2001-08-13 David Edelsohn <edelsohn@gnu.org>
2510 * config/rs6000/rs6000.c: Include optabs.h.
2512 2001-08-13 David Edelsohn <edelsohn@gnu.org>
2514 * config/rs6000/eabi.asm: Define 64-bit versions of FPR
2515 save/restore routines.
2516 * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
2518 2001-08-13 Andreas Jaeger <aj@suse.de>
2520 * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
2521 the english is correct.
2523 2001-08-13 Zack Weinberg <zackw@panix.com>
2525 * expr.h: Split out optab- and libfunc-related code to...
2526 * optabs.h, libfuncs.h: ... these new headers.
2528 * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
2530 (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
2532 * mkconfig.sh: Don't include insn-codes.h from config.h.
2534 * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
2535 enum insn_code is available. Move reload_in_optab and
2536 reload_out_optab array declarations to optabs.h.
2537 * regmove.c (gen_add3_insn): Move to optabs.c, export from
2538 there, prototype in expr.h.
2539 * gencodes.c: Cleanup: zap global variables, don't use
2540 printf where puts will do, don't bother defining MAX_INSN_CODE
2541 which nothing uses, let CODE_FOR_nothing get its value implicitly.
2543 * genemit.c, genopinit.c: Include optabs.h in generated file.
2544 * genoutput.c: Include insn-codes.h in generated file.
2545 * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
2546 expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
2547 reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
2548 config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
2549 config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
2550 config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
2552 * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
2553 optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
2554 config/m88k/m88k.c, config/sparc/sparc.c:
2556 * reload.c: Include expr.h and optabs.h before reload.h.
2557 * config/alpha/alpha.c: Include tree.h before reload.h.
2558 * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
2559 and reload.h in that order.
2560 * config/sparc/sparc.c: Include debug.h.
2561 * recog.c: Include insn-codes.h.
2563 2001-08-13 Andreas Jaeger <aj@suse.de>
2565 * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
2568 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
2570 * dwarf2out.c (output_cfa_loc): Fix typo in comment.
2571 * gcc.c (init_spec): Fix typo in comment.
2572 * varasm.c (data_section): Fix typo in comment.
2574 Mon Aug 13 02:27:39 CEST 2001 Jan Hubicka <jh@suse.cz>
2576 * predict.c (dump_prediction): New argument "USED".
2577 (combine_predictions_for_insn): Determine the used heuristics,
2578 output the case no heuristic applied.
2579 * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
2581 2001-08-13 Andreas Jaeger <aj@suse.de>
2583 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
2586 2001-08-13 Kazu Hirata <kazu@hxi.com>
2588 * jump.c: Fix formatting.
2590 2001-08-13 Kazu Hirata <kazu@hxi.com>
2592 * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
2595 2001-08-12 Geoffrey Keating <geoffk@redhat.com>
2597 * loop.c (check_dbra_loop): Use condjump_label to compute
2600 * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
2601 to better document the files they're in.
2603 2001-08-12 Zack Weinberg <zackw@panix.com>
2605 * recog.h (struct insn_operand_data): Shrink 'mode' field
2608 2001-08-12 Kazu Hirata <kazu@hxi.com>
2610 * gcc.c: Fix comment formatting.
2611 * gccspec.c: Likewise.
2614 * genemit.c: Likewise.
2615 * gengenrtl.c: Likewise.
2616 * genrecog.c: Likewise.
2617 * gensupport.c: Likewise.
2618 * ggc-page.c: Likewise.
2619 * global.c: Likewise.
2620 * graph.c: Likewise.
2621 * ifcvt.c: Likewise.
2622 * integrate.c: Likewise.
2624 * libgcc2.c: Likewise.
2626 * mbchar.c: Likewise.
2627 * optabs.c: Likewise.
2628 * predict.c: Likewise.
2629 * prefix.c: Likewise.
2630 * profile.c: Likewise.
2631 * protoize.c: Likewise.
2633 * recog.c: Likewise.
2634 * regclass.c: Likewise.
2635 * regmove.c: Likewise.
2636 * reg-stack.c: Likewise.
2637 * reload1.c: Likewise.
2638 * resource.c: Likewise.
2639 * rtlanal.c: Likewise.
2642 2001-08-12 Kazu Hirata <kazu@hxi.com>
2644 * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
2645 a tree representing a constant is passed to the macro.
2647 2001-08-12 Richard Henderson <rth@redhat.com>
2649 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
2650 (rs6000_elf_asm_out_destructor): New.
2651 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
2652 (DTORS_SECTION_ASM_OP): Remove.
2653 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2654 (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
2656 2001-08-12 David Edelsohn <edelsohn@gnu.org>
2659 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2660 * gcc.c (set_collect_gcc_options): New function, split out from
2662 Ignore elided switches.
2663 (do_spec_1): Invoke before executing command.
2664 (set_input): Export.
2665 Move declaration ...
2666 * gcc.h (set_input): ... here.
2667 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
2670 2001-08-12 Richard Henderson <rth@redhat.com>
2672 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
2673 thinko wrt TARGET_RELOCATABLE.
2675 2001-08-12 Neil Booth <neil@daikokuya.demon.co.uk>
2677 * fix-header.c (cb_file_change): Update prototype.
2679 2001-08-11 Zack Weinberg <zackw@panix.com>
2681 * toplev.c (set_float_handler): Make static.
2682 * toplev.h: Don't prototype set_float_handler.
2684 * simplify-rtx.c: Don't include setjmp.h.
2685 (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
2687 (simplify_unary_operation, simplify_binary_operation): Use them,
2688 via do_float_handler.
2690 * fold-const.c: Don't include setjmp.h.
2691 (exact_real_inverse_1): New function.
2692 (exact_real_inverse): Use it, via do_float_handler.
2694 * varasm.c: Don't include setjmp.h.
2695 (assemble_real_1): New function.
2696 (assemble_real): Use it, via do_float_handler.
2697 Call internal_error if we get a trap here.
2699 * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
2700 config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
2702 2001-08-11 Zack Weinberg <zackw@panix.com>
2704 * defaults.h: Define PREFERRED_STACK_BOUNDARY to
2705 STACK_BOUNDARY if not already defined.
2707 * calls.c, function.c, reload1.c, explow.c: Don't default
2708 PREFERRED_STACK_BOUNDARY. Remove all #if/#ifdef on
2709 PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
2711 * explow.c (allocate_dynamic_stack_space): Change unsafe #if
2714 * doc/tm.texi: Document that STACK_BOUNDARY is required;
2715 clarify difference between it and PREFERRED_STACK_BOUNDARY.
2717 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
2719 * cppmacro.c (enter_macro_context): Push macro expansions even
2722 2001-08-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2724 * config/rs6000/rs6000.c: Include integrate.h to silence warning.
2725 (rs6000_elf_section_type_flags): Actually return a value.
2727 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
2729 * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
2730 Clean up code: add missing comments and prototypes, fix warnings,
2731 remove obsolete code, fix spacing to conform to coding style.
2733 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
2735 * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
2736 and TARGET_ASM_CLOSE_PAREN.
2737 (regclass_map): CC register belongs to class NO_REGS.
2738 (legitimize_pic_address): Don't generate unnecessary moves
2739 (to avoid confusing loop optimization).
2740 (check_and_change_labels): Replace jump_long by indirect_jump.
2741 (s390_final_chunkify): Don't start a new literal pool on section
2742 switch in 64-bit code.
2743 (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
2745 * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
2746 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
2747 (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
2749 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
2750 (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
2751 (CONST_COSTS): Fixed incorrect costs.
2753 * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
2754 Use emit_jump instead of emit_jump_insn (gen_jump).
2755 (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
2756 (to avoid confusing flow analysis).
2757 (tablejump, tablejump1, tablejump2): Removed. Replaced by casesi.
2758 (casesi, casesi_jump): New.
2759 (jump_long): Removed. Functionality merged into indirect_jump.
2760 (indirect_jump): Accept address_operand, not just register_operand.
2761 (cjump_long, icjump_long): Use same logic as indirect_jump.
2762 (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
2763 Fixed broken setjmp/longjmp handling.
2764 (do_builtin_setjmp_setup): Removed.
2766 * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
2767 broken GNU as versions that don't accept .quad with large
2768 negative values. Use hexadecimal output instead.
2769 (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
2770 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
2771 FUNCTION_EPILOGUE): Removed. Now in targetm.
2773 * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
2775 * config/s390/fixdfdi.h: Add missing copyright statement.
2776 Fix type conflicts on 64-bit. Add missing SFmode routines.
2778 * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
2781 2001-08-11 Richard Henderson <rth@redhat.com>
2783 * rtl.h (REG_EH_RETHROW): Remove.
2784 * rtl.c (reg_note_name): Update.
2785 * combine.c (distribute_notes): Don't check for it.
2787 2001-08-11 Richard Henderson <rth@redhat.com>
2789 * combine.c (distribute_notes): Place REG_SETJMP.
2791 2001-08-11 Richard Henderson <rth@redhat.com>
2793 * doc/extend.texi (Arrays and pointers implementation): Discourage
2794 relying on sign-extension of pointers.
2796 2001-08-11 H.J. Lu <hjl@gnu.org>
2798 * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
2800 (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
2801 RDATA_SECTION_ASM_OP.
2803 2001-08-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2805 * doc/install.texi (Specific, c4x): Fix cross-reference to the
2806 main manual to work both for info and HTML versions.
2808 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
2809 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2811 * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
2812 * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
2813 (struct cpp_pool): New member first.
2814 * cppinit.c (append_include_chain): Plug memory leaks.
2815 * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
2816 Allocate pragma structures from the (aligned) macro pool to
2817 avoid leaking memory.
2818 * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
2819 so we don't leak memory.
2820 * hashtable.c (ht_destroy): New.
2821 * hashtable.h (ht_destroy): New.
2823 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
2824 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2826 * c-lex.c (map): Make const.
2827 (cb_file_change): Update for callback passing a line map.
2828 Don't assume we have a previous map. Remove sanity check
2829 about popping too many files.
2830 * cpperror.c (print_location): Make map const.
2831 * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
2832 (cpp_make_system_header): Similarly.
2833 (search_from): Similarly.
2834 (_cpp_execute_include): Don't remember where we came from.
2835 * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
2836 (struct cpp_reader): Make map const.
2837 (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
2838 * cpplib.c (do_line): Update; line maps now hold sysp.
2839 (cpp_push_buffer): Similarly.
2840 (_cpp_do_file_change): Similarly; callback with map instead.
2841 (cpp_get_line_maps): Constify return value.
2842 (_cpp_pop_buffer): Update.
2843 * cpplib.h (struct cpp_file_change): Remove.
2844 (struct cpp_callbacks): Update.
2845 (cpp_get_line_maps): Constify return value.
2846 * cppmacro.c (_cpp_create_definition): Update.
2847 * cppmain.c (struct printer): Constify map.
2848 (maybe_print_line): Similarly.
2849 (print_line): Similarly. Deduce flags 1 and 2 here.
2850 (cb_file_change): Update.
2851 * line-map.c (free_line_maps): Warn regardless.
2852 (add_line_map): Return pointer to const. When passed NULL to_file
2853 with LC_LEAVE, use the obvious values for the return point so the
2854 caller doesn't have to figure them out.
2855 (lookup_line): Return pointer to const.
2856 (print_containing_files): Take pointer to const.
2857 * line-map.h (struct line_map): New members reason, sysp.
2858 (add_line_map): Return pointer to const.
2859 (lookup_line): Similarly.
2860 (print_containing_files): Take pointer to const.
2862 2001-08-10 Roman Zippel <zippel@linux-m68k.org>
2863 Richard Henderson <rth@redhat.com>
2865 * regmove.c (regmove_optimize): Avoid setting a register twice in
2868 2001-08-10 Richard Henderson <rth@redhat.com>
2870 * doc/extend.texi (Arrays and pointers implementation): Document
2871 behavior of pointer/integer conversion.
2873 2001-08-10 Ulrich Weigand <uweigand@de.ibm.com>
2875 * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
2877 2001-08-10 Richard Henderson <rth@redhat.com>
2879 * doc/extend.texi (C Implementation): New chapter.
2880 * doc/gcc.texi (Top): Link it in.
2882 2001-08-10 Andrew Cagney <ac131313@redhat.com>
2884 * doc/install.texi (Specific): Fix CVS merge botch.
2886 2001-08-10 Richard Henderson <rth@redhat.com>
2888 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
2889 ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
2891 2001-08-10 Zack Weinberg <zackw@stanford.edu>
2893 * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
2894 if not already defined. Remove all #ifdefs on STACK_BOUNDARY;
2895 this macro is now required.
2897 * cselib.c (cselib_process_insn), flow.c (propagate_block),
2898 loop.c (find_and_verify_loops), reload.c (reload): Check
2899 for rtx code of CALL_INSN, not CALL, when deciding if we
2900 need to check for REG_SETJMP note.
2902 * gcse.c (compute_hash_table, compute_store_table): Update
2903 the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
2906 * config/avr/avr.c: Fix typo.
2907 * config/convex/convex.c (expand_movstr): Use adjust_address.
2908 * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
2910 * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
2911 * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
2913 * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
2914 Do define STACK_BOUNDARY.
2915 * config/i370/i370.c: Include expr.h.
2916 * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
2917 config/pa/som.h, config/v850/v850.h: Take in_ctors and
2918 in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
2919 and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
2920 * config/m88k/m88k.c: Include c-tree.h after expr.h.
2921 * config/pdp11/pdp11.c: Include expr.h and toplev.h.
2922 * config/romp/romp.c: Include expr.h after tree.h.
2924 (output_fpop): Use xmalloc, not oballoc.
2925 * config/we32k/we32k.c: Include expr.h.
2927 2001-08-10 Kazu Hirata <kazu@hxi.com>
2929 * config/h8300/h8300.h: Fix formatting.
2931 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
2933 * c-common.h (RETURN_NULLIFIED_P): Lose.
2934 * c-semantics.c (genrtl_return_stmt): Don't check it.
2936 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
2938 * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
2939 (mips_annotate_frame_insn): New function.
2940 (mips_emit_frame_related_store): New function.
2941 (save_restore_insns): Don't mark instructions that set up the base
2942 registers as frame-related. Add REG_FRAME_RELATED_EXPR notes to
2943 the store instructions instead.
2944 (mips_expand_prologue): If the stack size is moved into a temporary
2945 register, do not mark that move as frame-related. Add a
2946 REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
2948 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
2950 * config/mips/mips.c (save_restore_insns): Don't mark the RA's
2951 stack slot as unchanging if current_function_calls_eh_return.
2953 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
2955 * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
2956 access the second half of the TFmode scratch operand.
2958 2001-08-10 Anthony Green <green@redhat.com>
2960 * java/class.c (emit_register_classes): Conditionalize code on
2963 2001-08-10 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2965 * doc/install.texi (Specific, avr): Fix cross-reference to the
2966 main manual to work both for info and HTML versions.
2968 2001-08-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
2970 * stmt.c (expand_null_return_1): Remove code to generate simple returns
2971 and "use_goto" argument.
2972 (expand_null_return, expand_value_return): Update all callers.
2973 * function.c (expand_function_end): Remove code to generate simple
2975 * config/vax/vax.md (epilogue): New expander for function return.
2976 * doc/md.texi (epilogue): Remove "if defined".
2978 2001-08-09 Zack Weinberg <zackw@stanford.edu>
2980 * Makefile.in: Partially revert my previous change:
2981 put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
2982 of the hashtab.o and safe-ctype.o rules.
2984 2001-08-09 Richard Henderson <rth@redhat.com>
2986 * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
2987 (USE_COLLECT2): Remove duplicate definition.
2988 * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
2989 (use_collect2): Remove dead code.
2990 * configure.in (use_collect2): Remove will_use_collect2 and
2991 maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
2992 * configure: Rebuild.
2994 * target.h (targetm.asm_out.constructor): New.
2995 (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
2996 * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
2997 (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
2998 * varasm.c (in_ctors, in_dtors): New.
2999 (assemble_constructor, assemble_destructor): Remove.
3000 (default_stabs_asm_out_destructor): New.
3001 (default_named_section_asm_out_destructor): New.
3002 (dtors_section, default_dtor_section_asm_out_destructor): New.
3003 (default_stabs_asm_out_constructor): New.
3004 (default_named_section_asm_out_constructor): New.
3005 (ctors_section, default_ctor_section_asm_out_constructor): New.
3006 * output.h: Update declarations.
3007 * c-decl.c (c_expand_body): Use target hooks instead of
3008 assemble_constructor and assemble_destructor.
3009 * profile.c (output_func_start_profiler): Likewise.
3010 * objc/objc-act.c (finish_objc): Likewise.
3011 (build_module_descriptor): Tidy. Set TREE_PUBLIC properly
3012 for the constructor.
3013 * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
3015 * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
3016 (DTORS_SECTION_ASM_OP): Likewise.
3017 (__CTOR_LIST__): Use attribute section when possible.
3018 (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
3020 * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
3021 ASM_OUTPUT_CONSTRUCTOR.
3023 * config/darwin.c (machopic_asm_out_constructor): New.
3024 (machopic_asm_out_destructor): New.
3025 * config/darwin-protos.h: Update declarations.
3026 * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
3027 (ASM_OUTPUT_DESTRUCTOR): Remove.
3028 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
3029 * config/nextstep.c (nextstep_asm_out_constructor): New.
3030 (nextstep_asm_out_destructor): New.
3031 * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
3032 (ASM_OUTPUT_DESTRUCTOR): Remove.
3033 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
3034 * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
3035 ASM_OUTPUT_*STRUCTOR.
3036 * config/i386/aix386ng.h: Likewise.
3038 * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
3039 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
3040 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
3041 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
3042 * config/lynx.h: Likewise.
3043 * config/netware.h: Likewise.
3044 * config/psos.h: Likewise.
3045 * config/alpha/alpha-interix.h: Likewise.
3046 * config/alpha/elf.h: Likewise.
3047 * config/arc/arc.h: Likewise.
3048 * config/arm/aof.h: Likewise.
3049 * config/arm/coff.h: Likewise.
3050 * config/arm/elf.h: Likewise.
3051 * config/c4x/c4x.h: Likewise.
3052 * config/h8300/h8300.h: Likewise.
3053 * config/i386/cygwin.h: Likewise.
3054 * config/i386/djgpp.h: Likewise.
3055 * config/i386/i386-coff.h: Likewise.
3056 * config/i386/i386-interix.h: Likewise.
3057 * config/i386/sco5.h: Likewise.
3058 * config/i386/vsta.h: Likewise.
3059 * config/i386/win32.h: Likewise.
3060 * config/i960/i960-coff.h: Likewise.
3061 * config/ia64/sysv4.h: Likewise.
3062 * config/m68hc11/m68hc11.h: Likewise.
3063 * config/m68k/coff.h: Likewise.
3064 * config/m68k/mot3300.h: Likewise.
3065 * config/m88k/m88k.h: Likewise.
3066 * config/mcore/mcore-pe.h: Likewise.
3067 * config/mcore/mcore.h: Likewise.
3068 * config/mips/elf.h: Likewise.
3069 * config/mips/elf64.h: Likewise.
3070 * config/mips/iris6.h: Likewise.
3071 * config/pa/pa64-hpux.h: Likewise.
3072 * config/rs6000/sysv4.h: Likewise.
3073 * config/sh/sh.h: Likewise.
3074 * config/sparc/litecoff.h: Likewise.
3076 * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
3077 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
3078 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
3079 * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
3080 (ASM_OUTPUT_DESTRUCTOR): Remove.
3081 * config/a29k/a29k.c: Move include of tree.h.
3082 * config/a29k/udi.h: Delete file.
3083 * config/alpha/alpha.c (vms_asm_out_constructor): New.
3084 (vms_asm_out_destructor): New.
3085 * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
3086 (EXTRA_SECTION_FUNCTIONS): Likewise.
3087 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
3088 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
3089 * config/c4x/c4x.c: Move include of tree.h.
3090 * config/clipper/clipper.c (clix_asm_out_constructor): New.
3091 (clix_asm_out_destructor): New.
3092 * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
3093 (ASM_OUTPUT_DESTRUCTOR): Remove.
3094 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
3095 * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
3096 (TARGET_ASM_CONSTRUCTOR): New.
3097 * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
3098 (sco_asm_out_constructor): New.
3099 * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
3100 * config/i386/svr3gas.h: Remove stack grows up code.
3101 Remove code duplicated from i386/sysv3.h.
3102 (TARGET_ASM_CONSTRUCTOR): New.
3103 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
3104 (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
3105 * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
3106 (TARGET_ASM_CONSTRUCTOR): New.
3107 * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
3108 (m68hc11_asm_out_destructor): New.
3109 * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
3110 (TARGET_ASM_DESTRUCTOR): New.
3111 * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
3112 * config/m68k/dpx2.h: Properly undef all the bits inherited from
3113 config/svr3.h pertaining to section manipulation.
3114 * config/m68k/dpx2g.h: Remove #if 0 code.
3115 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
3116 * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
3117 (ASM_OUTPUT_CONSTRUCTOR): Remove.
3118 (TARGET_ASM_CONSTRUCTOR): New.
3119 * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
3120 (m88k_svr3_asm_out_constructor): New.
3121 (m88k_svr3_asm_out_destructor): New.
3122 * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
3123 (ASM_OUTPUT_DESTRUCTOR): Remove.
3124 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
3125 * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
3126 * config/rs6000/aix.h: Likewise.
3127 * config/mips/rtems64.h: Don't undef removed constructor related bits.
3128 * config/mips/vxworks.h: Likewise.
3129 * config/rs6000/lynx.h: Likewise.
3130 * config/sh/elf.h: Likewise.
3131 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
3132 (DTORS_SECTION_ASM_OP): New.
3133 * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
3134 (ASM_OUTPUT_DESTRUCTOR): Remove.
3135 * config/sparc/sol2-sld-64.h: Likewise.
3136 * config/vax/vax.c (vms_asm_out_constructor): New.
3137 (vms_asm_out_destructor): New.
3138 * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
3139 (ASM_OUTPUT_DESTRUCTOR): Remove.
3140 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
3142 * doc/tm.texi (@node Initialization): Update.
3144 2001-08-09 Richard Henderson <rth@redhat.com>
3146 * config/alpha/crtbegin.asm (__JCR_LIST__): New.
3147 (__do_global_dtors_aux): Use gp-relative static data to avoid
3148 one dynamic relocation.
3149 (__do_frame_setup): Register Java classes.
3150 * config/alpha/crtend.asm (__JCR_END__): New.
3152 2001-08-09 Zack Weinberg <zackw@stanford.edu>
3154 * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
3155 (CONFIG_H, TCONFIG_H, TM_P_H): Update.
3156 (GEN, STAGESTUFF): Add new files.
3157 (insn-constants.h, s-constants, tm-preds.h, s-preds,
3158 genconstants, genpreds, genconstants.o, genpreds.o): New rules.
3159 (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
3160 * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
3161 as well as insn-codes.h and insn-flags.h in config.h; and no
3162 extra headers in tconfig.h and hconfig.h.
3164 * gencodes.c: Eliminate code to generate predicate declarations
3165 or #defines for md-file constants.
3166 * genconstants.c, genpreds.c: New files.
3168 * i386.md: Re-order guard expressions such that TARGET_64BIT
3169 comes first, when this permits better optimization. Add
3170 TARGET_64BIT to more x86-64 patterns. Add comment explaining
3171 why this is desirable.
3173 2001-08-09 Jakub Jelinek <jakub@redhat.com>
3175 * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
3176 (find_fde_for_dso): Remove.
3177 (_Unwind_IteratePhdrCallback): New.
3178 (_Unwind_FindTableEntry): Use dl_iterate_phdr.
3179 * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
3181 Thu Aug 9 11:30:20 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3183 * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
3184 (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
3186 2001-08-09 Graham Stott <grahams@redhat.com>
3188 * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
3189 (vis_no_unit): Use it.
3190 (visualize_no_unit): Add the insn only if room exists.
3192 2001-08-09 Graham Stott <grahams@redhat.com>
3194 * predict.c (estimate_probability): Replace magic numbers with
3195 appropriate enumeration.
3197 2001-08-09 Graham Stott <grahams@redhat.com>
3199 * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
3201 (EXTRACT_FLAGS): Likewise.
3203 2001-08-09 Aldy Hernandez <aldyh@redhat.com>
3205 * config/mips/mips.c (mips_legitimate_address_p): Check for
3206 CONST_INT in last patch.
3208 2001-08-08 Anthony Green <green@redhat.com>
3210 * java/class.c (emit_register_classes): Use assemble_jcr if
3211 possible. Keep the original mechanism as a fallback.
3212 * defaults.h (JCR_SECTION_NAME): Define if we have named section
3213 and weak symbol support.
3214 * crtstuff.c (__JCR_LIST__): Define.
3215 (__JCR_END__): Define.
3216 (_Jv_RegiserClasses): Define weak symbol if possible.
3217 (__do_global_ctors_aux): Register classes for ELF targets with
3218 weak symbol support.
3220 2001-08-08 Kazu Hirata <kazu@hxi.com>
3222 * dbxout.c: Fix comment formatting.
3223 * dependence.c: Likewise.
3225 * diagnostic.c: Likewise.
3226 * dominance.c: Likewise.
3227 * doprint.c: Likewise.
3228 * dwarf2out.c: Likewise.
3229 * dwarfout.c: Likewise.
3230 * emit-rtl.c: Likewise.
3231 * except.c: Likewise.
3232 * explow.c: Likewise.
3233 * expmed.c: Likewise.
3236 * fold-const.c: Likewise.
3237 * function.c: Likewise.
3239 2001-08-08 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3241 * global.c (retry_global_alloc): Avoid shadowing allocno.
3243 2001-08-08 Mark Mitchell <mark@codesourcery.com>
3245 * except.c (remove_fixup_regions): Fix typo.
3247 2001-08-08 Jan van Male <jan.vanmale@fenk.wau.nl>
3249 * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
3250 unsigned HOST_WIDE_INT to avoid warning.
3251 * final.c (final): Cast INSN_UID to unsigned to avoid warning.
3252 * flow.c (set_block_for_new_insns): Likewise.
3254 Wed Aug 8 21:08:14 CEST 2001 Jan Hubicka <jh@suse.cz>
3256 * sibcall.c (return_value_pseudo): New static variable.
3257 (skip_copy_to_return_value): Handle return_value_pseudo.
3258 (call_ends_block_p): Ensure that return_value_pseudo is set.
3259 (optimize_sibling_and_tail_recursive_call): Discover the
3260 load of pseudo return value in alternate exit block.
3262 Wed Aug 8 21:06:43 CEST 2001 Jan Hubicka <jh@suse.cz>
3264 * calls.c (ECF_ALWAYS_RETURN): New constant.
3265 (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
3266 (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
3267 (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
3268 * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
3269 * rtl.c (reg_note_name): New name.
3270 * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
3272 2001-08-07 Aldy Hernandez <aldyh@redhat.com>
3274 * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
3276 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
3278 * alias.c (get_alias_set): Return a previously calculated
3279 alias set for a VAR_DECL.
3280 * function.c (gen_mem_addressof): Calculate the alias set before
3283 Wed Aug 8 18:44:37 CEST 2001 Jan Hubicka <jh@suse.cz>
3285 * predict.def: Set hitrates according our experimental run.
3287 Wed Aug 8 18:01:58 CEST 2001 Jan Hubicka <jh@suse.cz>
3289 * i386.h (HARD_REGNO_RENAME_OK): New macro.
3291 2001-08-08 H.J. Lu <hjl@gnu.org>
3293 * config/mips/mips.c (mips_unique_section): New. Copied from
3296 * config/mips/mips-protos.h (mips_unique_section): New
3299 * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
3301 * config/mips/little.h: New. Generic little endian mips
3302 targets. Only mips*-*-linux* is converted to use it so far.
3304 * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
3305 (WCHAR_TYPE): Defined
3306 (WCHAR_TYPE_SIZE): Likewise.
3307 (INIT_SUBTARGET_OPTABS): Likewise.
3308 (BSS_SECTION_ASM_OP): Likewise.
3309 (SBSS_SECTION_ASM_OP): Likewise.
3310 (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3311 (ASM_DECLARE_OBJECT_NAME): Likewise.
3312 (UNIQUE_SECTION): Likewise.
3313 (EXTRA_SECTIONS): Likewise.
3314 (ASM_OUTPUT_CONSTRUCTOR): Likewise.
3315 (ASM_OUTPUT_DESTRUCTOR): Likewise.
3316 (ASM_OUTPUT_DEF): Likewise.
3317 (HANDLE_SYSV_PRAGMA): Removed.
3318 (NO_IMPLICIT_EXTERN_C): Likewise.
3319 (TARGET_MEM_FUNCTIONS): Likewise.
3320 (STARTFILE_SPEC): Likewise.
3321 (ENDFILE_SPEC): Likewise.
3322 (LIB_SPEC): Likewise.
3323 (INVOKE__main): Likewise.
3324 (CTOR_LIST_BEGIN): Likewise.
3325 (CTOR_LIST_END): Likewise.
3326 (DTOR_LIST_BEGIN): Likewise.
3327 (DTOR_LIST_END): Likewise.
3328 (SET_ASM_OP): Likewise.
3329 (ASM_OUTPUT_SOURCE_LINE): Likewise.
3330 (ASM_OUTPUT_DEF): Likewise.
3331 (ASM_OUTPUT_IDENT): Likewise.
3333 * config/mips/mips.h (ASM_SPEC): Undefine before define.
3334 (CPLUSPLUS_CPP_SPEC): Likewise.
3335 (ASM_APP_ON) Redefine only if not defined.
3336 (ASM_APP_OFF): Likewise.
3337 (ASM_OUTPUT_SOURCE_LINE): Likewise.
3338 (ASM_OUTPUT_IDENT): Likewise.
3340 * config.gcc: Update tm_file for Linux/mips.
3342 2001-08-08 Bernd Schmidt <bernds@redhat.com>
3344 * cselib.c (cselib_record_sets): If insn is predicated, turn
3345 sources into IF_THEN_ELSEs.
3347 * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
3348 Turn into define_insn_and_split.
3350 * sched-deps.c: Include "cselib.h".
3351 (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
3352 Use cselib to turn memory addresses into VALUEs.
3353 (sched_analyze): Call cselib_init/cselib_finish if necessary.
3354 * sched-int.h (struct sched_info): New member USE_CSELIB.
3355 * sched-ebb.c (ebb_sched_info): Initialize it.
3356 * sched-rgn.c (rgn_sched_info): Likewise.
3357 * Makefile.in (sched-deps.o): Update dependencies.
3359 * cselib.h (cselib_subst_to_values): Declare.
3360 * cselib.c (cselib_subst_to_values): No longer static. Allow MEMs
3361 that have no value and autoincs to be handled by generating a new
3364 2001-08-08 Graham Stott <grahams@redhat.com>
3366 * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
3367 within fixed length SEQUENCE.
3369 2001-08-08 Graham Stott <grahams@redhat.com>
3371 * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
3372 (diagnostic_prefixing_rule): Likewise.
3373 (diagnostic_line_cutoff): Likewise.
3374 (diagnostic_kind_count): Likewise.
3376 2001-08-08 Graham Stott <grahams@redhat.com>
3378 * alias.c (find_base_decl): Delete redundent assignment.
3380 2001-08-08 Graham Stott <grahams@redhat.com>
3382 * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
3383 (abs): Uppercase and paranthesize macro parameter.
3384 (MEM_DEPENDENCY): Add whitespace.
3386 2001-08-08 Graham Stott <grahams@redhat.com>
3388 * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
3389 failure check for CONST_INT
3391 2001-08-08 Graham Stott <grahams@redhat.com>
3393 * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
3394 (libcall_dead_p): Likewise.
3396 (mark_used_regs): Constify fmt.
3397 (find_use_as_address): Likewise.
3399 2001-08-08 Graham Stott <grahams@redhat.com>
3401 * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
3404 2001-08-08 Graham Stott <grahams@redhat.com>
3406 * combine.c (combine_simplify_rtx): Update comment and
3407 remove erroneous test.
3409 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
3411 * cppinit.c (cpp_finish): Pop the final buffer without comment.
3412 * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
3413 take care to avoid multiple no-newline at EOF warnings in that
3416 Tue Aug 7 22:18:06 CEST 2001 Jan Hubicka <jh@suse.cz>
3418 * calls.c (expand_call): Do not emit INSN_SETJMP note.
3419 (emit_library_call_value_1): Likewise.
3420 (emit_call_1): Emit REG_SETJMP note.
3421 * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
3423 * cselib.c (cselib_process_insn): Likewise.
3424 * flow.c (propagate_block): Likewise.
3425 * loop.c (find_and_verify_loops): Likewise.
3426 * reload.c (find_equiv_regs): Likewise.
3427 * reload1.c (reload): Likewise.
3428 * resource.c (mark_referenced_resources,
3429 mark_set_resources): Likewise.
3430 * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
3431 * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
3432 * haifa-sched.c (unlink_other_notes): Likewise.
3433 (reemit_notes): Likewise.
3434 * sched-ebb.c (sched_ebb): Likewise.
3435 * sched-rgc.c (sched_region): Likewise.
3436 * rtl.c (note_insn_name): Likewise.
3437 (reg_note_name): Add REG_SETJMP
3438 * rtl.h (reg_note): Add REG_SETJMP.
3439 (insn_note): Remove NOTE_INSN_SETJMP.
3441 * profile.c (branch_prob): Add fake edges for setjmp.
3443 2001-08-07 Daniel Jacobowitz <drow@mvista.com>
3445 * config.gcc: Quote target_cpu_default2 correctly for
3446 powerpc*-*-* targets.
3448 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
3450 * cpplib.h, line-map.h: Update comments.
3451 * cppmain.c (printer_init): Move inline.
3452 (maybe_print_line, print_line): Take a map pointer.
3453 (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
3454 (cb_file_change): Don't use prior value of print.map.
3456 2001-08-07 David Edelsohn <edelsohn@gnu.org>
3458 * doc/install.texi: Document fine-grained multilib configuration.
3460 Tue Aug 7 16:52:54 CEST 2001 Jan Hubicka <jh@suse.cz>
3462 * rtlanal.c (find_first_parameter_load): Call note_stores
3463 only on the instructions.
3465 Tue Aug 7 14:56:16 CEST 2001 Jan Hubicka <jh@suse.cz>
3467 * alias.c (nonlocal_mentioned_p):
3468 Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
3469 * calls.c (emit_call_1): Likewise.
3470 * cse.c (cse_insn, invalidate_skipped_block): Likewise.
3471 * cselib.c (cselib_process_insn): Likewise.
3472 * df.c (df_insns_modify): Likewise.
3473 * flow.c (need_fake_edge_p): Likewise.
3474 (propagate_one_insn): Likewise.
3475 * haifa-sched.c (reemit_notes): Likewise.
3476 * integrate.c (copy_insn_list): Likewise.
3477 * jump.c (delete_prior_computation): Likewise.
3478 * local-alloc.c (validate_equiv_mem): Likewise.
3479 * loop.c (scan_loop): Likewise.
3480 * predict.c (estimate_probability): Likewise.
3481 * reload.c (reload): Likewise.
3482 * sched-deps (sched_analyze): Likewise.
3483 * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
3484 * gcse.c (compute_hash_table): Likewise.
3485 (mark_call): Likewise.
3486 (store_killed_in_insn): Likewise.
3488 2001-08-07 Jason Merrill <jason_merrill@redhat.com>
3490 * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
3492 2001-08-06 Richard Henderson <rth@redhat.com>
3494 * varasm.c (assemble_gc_entry): Remove.
3495 * output.h: Likewise.
3497 2001-08-06 Richard Henderson <rth@redhat.com>
3499 * varasm.c (assemble_constructor): Take a symbol_ref and a
3500 priority instead of a bare string. Move priority handling
3501 here from cp/decl2.c.
3502 * output.h: Update decls.
3504 * c-decl.c (c_expand_body): Update calls to assemble_constructor
3505 and assemble_destructor.
3506 * profile.c (output_func_start_profiler): Likewise.
3507 * objc/objc-act.c (finish_objc): Likewise.
3508 (build_module_descriptor): Return the symbol not the symbol name.
3510 2001-08-06 David Edelsohn <edelsohn@gnu.org>
3512 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
3513 * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
3514 ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
3515 * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
3516 * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
3517 * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
3519 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
3521 * cpperror.c (print_containing_files): Moved to line-map.c.
3522 (print_location): line-map.c handles re-listing or otherwise.
3523 * cpphash.h (struct lexer_state): Remove next_bol.
3524 (struct cpp_buffer): Remove include_stack_listed.
3525 * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
3526 Remove faked buffer handling.
3527 (_cpp_do_file_change): Tweak.
3528 * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
3529 * cppmain.c (struct printer): Remove filename.
3530 (print_line, cb_file_change): Update accordingly.
3531 * line-map.c: Include intl.h.
3532 (init_line_maps): Initialize last_listed.
3533 (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
3534 (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
3535 (print_containing_files): New.
3536 * line-map.h (struct line_maps): New member last_listed.
3537 (print_containing_files, INCLUDED_FROM): New.
3538 * Makefile.in: Update.
3539 * po/POTFILES.in: Add line-map.c.
3541 2001-08-06 Richard Henderson <rth@redhat.com>
3543 * except.c (convert_from_eh_region_ranges_1): Never mark
3544 USE or CLOBBER insns as throwing.
3546 * expr.c (store_constructor): Don't clobber memory targets.
3548 2001-08-06 Andreas Jaeger <aj@suse.de>
3550 * profile.c (branch_prob): Remove unused variable insn.
3552 * Makefile.in (local-alloc.o): Add dependency on except.h.
3554 * local-alloc.c: Include except.h for can_throw_internal prototype.
3556 2001-08-06 Richard Henderson <rth@redhat.com>
3558 * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
3559 * function.c (expand_main_function): Implement it.
3560 * doc/tm.texi: Document it.
3562 2001-08-06 Stan Shebs <shebs@apple.com>
3564 * doc/install.texi: Document powerpc-*-darwin* details.
3566 2001-08-06 Daniel Berlin <dan@cgsoftware.com>
3568 * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
3569 (ASM_CPU_SPEC): Move back to rs6000.h
3570 #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
3572 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
3574 * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
3577 * config/rs6000/linux64.h: Ditto.
3579 * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
3580 to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
3583 Remove accidently readded definitions of FUNCTION_PROLOGUE,
3584 FUNCTION_EPILOGUE, ASM_OPEN_PAREN, ASM_CLOSE_PAREN
3586 * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
3589 2001-08-05 Richard Henderson <rth@redhat.com>
3591 * local-alloc.c (update_equiv_regs): Do not move insns that
3594 2001-08-05 Jan Hubicka <jh@suse.cz>
3596 * Makefile.in (reload1.o): Add dedendancy on except.h
3597 * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
3599 * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
3600 indicating wehther edges has been cleaned up.
3601 * reload1.c: Inlucde except.h
3602 (fixup_abnormal_edges): Accept deleted insns.
3603 * toplev.c (rest_of_compilation): Purge dead edges unconditionally
3606 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
3608 * cpplib.c (do_line): Correct line number after pop_buffer.
3610 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
3612 PR preprocessor/3824
3613 * line-map.c: Update comments.
3614 * line-map.h: Update comments.
3615 * tradcif.y: Don't consider large numbers unsigned.
3617 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
3619 PR preprocessor/3081
3620 * c-lex.c (map): New.
3621 (cb_file_change): Update map and use it.
3622 (cb_def_pragma, cb_define, cb_undef): Use map and line.
3623 (c_lex): Update to use map.
3624 * cpperror.c (print_location): Move to using logical line numbers.
3625 * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
3626 (cpp_make_system_header): Similarly.
3627 (_cpp_execute_include): Stop line numbering hacks. Store the
3628 line we will return to.
3629 * cpphash.h (CPP_BUF_LINE): Remove.
3630 (struct cpp_buffer): Remove lineno and pseudo_newlines.
3631 Add map and return_to_line.
3632 (_cpp_do_file_change): Update.
3633 * cppinit.c (cpp_start_read): Update line kludge.
3634 * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
3635 (trigraph_ok): Use logical line numbers for diagnostics.
3636 (skip_block_comment): Likewise.
3637 (skip_whitespace): Likewise.
3638 (skip_line_comment): Use pfile->line instead.
3639 (_cpp_lex_token): Update to use logical line numbering exclusively.
3640 Handle BOL locally. Accept new lines in directives, but keep
3641 pfile->line decremented. Diagnostics use logical lines. Update
3643 * cpplib.c (SEEN_EOL): New.
3644 (skip_rest_of_line, check_eol): Use it.
3645 (end_directive): Increase line number when accepting the newline
3646 at the end of a directive.
3647 (run_directive): Simplify.
3648 (do_line): Bad LC_LEAVEs become LC_RENAMEs. Update.
3649 (_cpp_do_file_change): Update to take buffer line number as an
3650 argument, and store the current map in the cpp_reader. Remove
3651 line number kludges.
3652 (_cpp_do__Pragma): Restore output position after a _Pragma.
3653 (cpp_push_buffer): Don't set output line or lineno.
3654 (_cpp_pop_buffer): Transfer more info from a faked buffer.
3655 Remove line kludge. Set output_line.
3656 * cppmacro.c (builtin_macro): Update handling of __LINE__.
3657 (parse_arg): Use logical lines.
3658 (save_lookahead_token): Save EOFs too now.
3659 * cppmain.c (struct printer): Fix comments.
3660 (printer_init): Simplify, let caller do errors.
3661 (scan_translation_unit, check_multiline_token, dump_macro): Update.
3662 (maybe_print_line): Simplify.
3663 (print_line): Don't print a linemarker if -P.
3664 (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
3665 (cb_file_change): Simplify.
3666 * line-map.h (LAST_SOURCE_LINE): Fix.
3667 (CURRENT_LINE_MAP): New.
3669 2001-08-05 Bernd Schmidt <bernds@redhat.com>
3671 * doloop.c (doloop_modify_runtime): Properly compute number of
3672 iterations if loop was unrolled.
3674 * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
3675 if their CSELIB_VAL_PTRs are.
3677 * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
3678 (setup_spill_pointers): Initialize it.
3679 (spill_restore_mem): Set it.
3680 (do_spill, do_restore): Use it to add REG_INC note.
3681 * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
3683 * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
3684 asms if other insns are available.
3686 * config/ia64/ia64.c (condop_operator): New predicate.
3687 * config/ia64/ia64.h (PREDICATE_CODES): Add it.
3688 * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
3691 * expr.c (expand_expr, case COND_EXPR): Prefer working with a
3692 temporary register than directly using a MEM.
3694 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
3696 * config/sh/sh.c (sh_asm_named_section): Fix typo in align
3697 parameter in last change.
3699 2001-08-04 Zack Weinberg <zackw@panix.com>
3701 * sparc.md: Don't use #if inside C test expression.
3703 2001-08-04 Richard Henderson <rth@redhat.com>
3705 * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
3707 2001-08-04 Neil Booth <neil@daikokuya.demon.co.uk>
3709 * cpphash.h (struct cpp_reader): New member directive_line.
3710 * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
3711 * cpplib.c (do_define, do_undef, do_ident, do_include_common,
3712 do_pragma): Pass line to callbacks.
3713 (start_directive): Record line of directive.
3714 * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
3715 cb_include): Similarly.
3716 * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
3719 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
3721 * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
3724 Sat Aug 4 13:51:36 CEST 2001 Jan Hubicka <jh@suse.cz>
3726 * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
3728 * reload1.c (fixup_abnormal_edges): New static function.
3731 * flow.c (need_fake_edge_p): New function.
3732 (flow_call_edges_add): Fix handling of noreturn and sibbling calls;
3733 avoid call insn to be very last insn in the insn stream.
3735 * profile.c (branch_prob): Call flow_call_edges_add instead of
3736 doing that by hand; cleanup cfg to re-merge basic blocks once
3739 2001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3741 * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
3742 are also on line-map.h.
3743 * cppfiles.c (stack_include_file): Update.
3744 * cpphash.h (struct cpp_buffer): New member return_at_eof.
3745 (_cpp_pop_buffer): New.
3746 * cppinit.c (cpp_destroy, cpp_finish): Update.
3747 (do_includes): Mark each buffer to return at EOF.
3748 * cpplex.c (_cpp_lex_token): Pop buffers at EOF. Continue or
3749 return as requested.
3750 * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
3751 (cpp_pop_buffer): Rename _cpp_pop_buffer. Stop skipping.
3752 * cpplib.h (cpp_pop_buffer): Remove.
3753 (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
3754 * cppmacro.c (cpp_scan_buffer_nooutput): Similarly. No need to pop
3756 * cppmain.c (scan_buffer): Rename scan_translation_unit. No need
3758 (do_preprocessing): Update.
3759 * fix-header.c (read_scan_file): Update. No need to pop buffers.
3760 * c-parse.in (_yylex): Similarly.
3761 * scan-decls.c (scan_decls): Similarly.
3762 * line-map.h: Update comments.
3764 * objc/Make-lang.in (objc-act.o): Update dependencies.
3766 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3768 * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
3769 and soft register for operand 0.
3770 ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
3772 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3774 * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
3775 register for operand 0.
3776 ("bitcmpqi_z_used"): Allow memory for operand 0.
3777 (split "bitcmpqi"): New split to handle address reg as operand 1.
3779 2001-08-04 Andreas Jaeger <aj@suse.de>
3781 * gcse.c: Revert Daniel's last patch.
3783 2001-08-03 Zack Weinberg <zackw@stanford.edu>
3785 * sparc-protos.h: Add prototypes for fp_zero_operand and
3787 * sh-protos.h: Add prototype for fpul_operand.
3789 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
3791 * doc/extend.texi (Other Builtins): Fix typo in last change.
3793 2001-08-03 Richard Henderson <rth@redhat.com>
3795 * target.h (gcc_target): Add asm_out.named_section,
3796 section_type_flags, have_named_sections.
3797 * target-def.h (TARGET_ASM_NAMED_SECTION): New.
3798 (TARGET_HAVE_NAMED_SECTIONS): New.
3799 (TARGET_SECTION_TYPE_FLAGS): New.
3801 * Makefile.in (toplev.o): Depend on TARGET_H.
3802 (varasm.o, dbxout.o): Likewise.
3803 * c-common.c (decl_attributes): Check targetm.have_named_sections
3804 instead of ifdef ASM_OUTPUT_SECTION_NAME.
3805 * dbxout.c (dbxout_function_decl): Likewise.
3806 (dbxout_function_end): Likewise.
3807 * toplev.c (compile_file): Likewise.
3808 * varasm.c (exception_section): Likewise.
3809 * cp/decl2.c (finish_objects): Likewise.
3811 * defaults.h (EH_FRAME_SECTION): Remove.
3812 (EH_FRAME_SECTION_ASM_OP): Remove.
3813 (EH_FRAME_SECTION_NAME): New.
3814 (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
3815 (UNIQUE_SECTION_P): Remove.
3816 * dwarf2out.c (SECTION_FORMAT): Remove.
3817 (ASM_OUTPUT_SECTION): Remove.
3818 (output_call_frame_info): Use named_section_flags.
3819 (output_comp_unit, dwarf2out_start_source_file): Likewise.
3820 (dwarf2out_end_source_file, dwarf2out_define): Likewise.
3821 (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
3822 * varasm.c (in_eh_frame, eh_frame_section): Remove.
3823 (named_section_flags): New.
3824 (named_section): Use it and targetm.section_type_flags.
3825 (resolve_unique_section): New.
3826 (assemble_start_function): Use it.
3827 (asm_emit_uninitialised, assemble_variable): Likewise.
3828 (default_section_type_flags): New.
3829 (default_no_named_section, default_elf_asm_named_section): New.
3830 (default_coff_asm_named_section, default_pe_asm_named_section): New.
3831 * output.h: Update varasm.c decls.
3832 (SECTION_*): New flags.
3834 * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
3835 (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
3837 * config/elfos.h (UNIQUE_SECTION_P): Remove.
3838 * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
3839 * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
3840 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
3841 * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
3842 * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
3843 * config/mips/elf.h, config/mips/elf64.h: Likewise.
3844 * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
3845 * config/pa/pa64-hpux.h,
3847 * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
3848 (TARGET_ASM_NAMED_SECTION): New.
3849 * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
3850 * config/alpha/vms.h, config/arm/coff.h: Likewise.
3851 * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
3852 * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
3853 * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
3854 * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
3855 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
3856 * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
3857 * config/i386/sco5.h, config/i386/win32.h: Likewise.
3858 * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
3859 * config/mcore/mcore.h, config/mips/elf.h: Likewise.
3860 * config/mips/elf64.h, config/mips/iris6.h: Likewise.
3861 * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
3862 * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
3863 * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
3864 * config/sparc/sysv4.h: Likewise.
3866 * config/nextstep.h: Error until named sections implemented.
3868 * config/a29k/a29k.c (a29k_asm_named_section): New.
3869 * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
3870 (vms_section_type_flags, vms_asm_named_section): New.
3871 * config/arm/arm.c (arm_elf_asm_named_section): New.
3872 * config/avr/avr.c (asm_output_section_name): Remove.
3873 * config/avr/avr-protos.h: Update.
3874 * config/c4x/c4x.c (c4x_asm_named_section): New.
3875 * config/h8300/h8300.c (h8300_asm_named_section): New.
3876 * config/i386/i386.c (sco_asm_named_section): New.
3877 * config/i386/winnt.c (SECTION_PE_SHARED): New.
3878 (i386_pe_section_type_flags): New.
3879 (i386_pe_asm_named_section): New.
3880 * config/i386/i386-protos.h: Update.
3881 * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
3882 * config/mcore/mcore.c (mcore_asm_named_section): New.
3883 * config/mips/mips.c (iris6_asm_named_section): New.
3884 * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
3885 instead of UNIQUE_SECTION_P.
3886 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
3887 (xcoff_asm_named_section): New.
3888 * config/sh/sh.c (sh_asm_named_section): New.
3889 * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
3891 * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
3892 * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
3893 (EH_FRAME_SECTION_NAME): New.
3894 (EXCEPTION_SECTION): New.
3895 * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
3896 (DEBUG_*_SECTION): Remove.
3897 * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
3898 * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
3899 (EH_FRAME_SECTION_ASM_OP): Remove.
3901 * doc/tm.texi (UNIQUE_SECTION_P): Remove.
3902 (ASM_OUTPUT_SECTION_NAME): Remove.
3903 (TARGET_ASM_NAMED_SECTION): New.
3904 (TARGET_HAVE_NAMED_SECTIONS): New.
3905 (TARGET_SECTION_TYPE_FLAGS): New.
3906 (EH_FRAME_SECTION_ASM_OP): Remove.
3907 (EH_FRAME_SECTION_NAME): New.
3909 2001-08-03 Zack Weinberg <zackw@stanford.edu>
3911 * builtins.c (fold_builtin_constant_p): Return integer_zero_node
3912 for complex expressions when cfun == 0.
3913 * doc/extend.texi: Document that __builtin_constant_p can be
3914 used in data initializers as well as functions.
3916 2001-08-03 Alexandre Oliva <aoliva@redhat.com>
3918 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
3919 variable I locally, instead of expecting a declaration in the
3922 2001-08-03 Richard Henderson <rth@redhat.com>
3924 * except.c (collect_one_action_chain): Add an explicit cleanup
3925 action if regions surrounding a catch were encoded entirely
3926 within the call-site entry.
3928 2001-08-03 Richard Henderson <rth@redhat.com>
3930 * dbxout.c (dbxout_symbol_location): Flatten subregs first;
3931 don't take REGNO of a non-register.
3933 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
3935 * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
3936 __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
3937 (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
3938 (__gthread_mutex_init_function): New function for mutex initialization.
3940 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
3942 * Makefile.in: Revert screwed up commit.
3944 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3946 * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
3947 * config/m68hc11/larith.asm (_exit): Split in several sub-sections
3948 merged by linker script to get a final _exit().
3949 (__do_global_dtors): New for destructor handling in specific exit
3951 (__do_global_ctors): New for constructors in specific install section.
3952 (__map_data_section): Map data sections before running constructors.
3953 * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
3954 (CTORS_SECTION_ASM_OP): Define to put in readonly section.
3955 (DTORS_SECTION_ASM_OP): Likewise.
3956 (CTORS_SECTION_FUNCTION): Define to force a reference to
3958 (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
3960 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
3962 * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
3964 * Makefile.in: Add df.h to gcse.c dependencies.
3966 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
3968 * varasm.c (output_constant_def_contents): Use for the length of a
3969 string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
3970 depending on which is larger.
3972 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
3974 * gcse.c: Include df.h for use as a dataflow analyzer.
3976 Declaration of reg_set_info: gone.
3977 New df_analyzer variable used by store motion.
3978 (reg_set_info): Deleted.
3979 (mark_mem_regs): New function, analyze regs used by a mem.
3980 (store_ops_ok): Use dataflow analyzer results to determine if
3981 necessary regs are changed in the block.
3982 (find_moveable_store): Remove check for symbol ref, we can handle
3983 much more complex expressions now.
3984 (compute_store_table): Remove most of the code, it's unnecessary
3985 now that the dataflow analyzer records the info for us.
3986 (store_killed_after): Add parameter to say whether to do the
3987 store_ops_okay test, used to speed up testing when we already know
3988 the answer, and just want to know if the store itself was killed.
3989 (build_store_vector): Largely rewritten to calculate the various
3990 vectors properly, and somewhat optimized.
3991 (store_motion): Init the df_analyzer, get REG_DEF chains.
3992 Also handle trapping expressions (since mems almost always trap)
3993 (simple_mem): Redefine what a simple mem is.
3995 2001-08-03 DJ Delorie <dj@redhat.com>
3997 * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
3998 set from a constant part of the condition.
4000 2001-08-01 Andrew Cagney <ac131313@redhat.com>
4002 * mkdeps.c (deps_add_default_target): Make local variable
4003 ``start'' a const char pointer.
4004 * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
4006 2001-08-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4008 * doc/install.texi (Configuration): Fix markup.
4009 (Specific, i?86-*-udk): Likewise.
4010 (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
4012 Document --enable-threads and --enable-libgcj status.
4013 (Specific, mips-sgi-irix*): Canonicalize triples.
4014 (Specific, mips-sgi-irix5): Warn about problems with this config.
4015 Mention required GNU as patch.
4016 Native assembler problems are fixed.
4017 (Specific, mips-sgi-irix6): Update O32 ABI support status.
4018 Document --enable-threads and --enable-libgcj status.
4020 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
4022 * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
4025 2001-08-03 Richard Henderson <rth@redhat.com>
4027 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
4030 2001-08-03 Richard Henderson <rth@redhat.com>
4032 * rtlanal.c (find_first_parameter_load): Stop if we
4033 reach a CODE_LABEL at BOUNDARY.
4035 2001-08-03 Richard Henderson <rth@redhat.com>
4037 * config/alpha/alpha.md (force_movdi): New insn.
4038 * config/alpha/alpha.c (alpha_expand_prologue): Use it.
4039 Tweek FRP marking of VMS prologue insns.
4040 * config/alpha/vms.h (EPILOGUE_USES): New.
4042 2001-08-02 Richard Henderson <rth@redhat.com>
4044 * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
4046 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
4048 * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
4049 simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
4050 config/convex/convex.h, config/d30v/d30v.c,
4051 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4052 config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
4053 config/mips/mips.h, config/mn10200/mn10200.h,
4054 config/mn10300/mn10300.h, config/pdp11/pdp11.md,
4055 config/v850/v850.h, config/vax/openbsd.h,
4056 config/vax/openbsd1.h, config/vax/ultrix.h,
4057 config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
4058 config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
4059 cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
4060 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
4061 doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
4062 in comments and documentation.
4064 2001-08-03 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4068 * Makefile.in (line-map.o): New.
4069 (LIBCPP_OBJS, LIBCPP_DEPS): Update.
4070 * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
4071 * cpperror.c (print_containing_files): Similarly.
4072 (print_location): Update. Don't output a space before _Pragma.
4073 * cppfiles.c (stack_include_file): Set to line 1 immediately.
4074 (stack_include_filee, cpp_make_system_header): Update.
4075 (_cpp_execute_include): Get logical line number right for calling
4076 as-yet-unterminated #include.
4077 * cpphash.h (struct cpp_reader): Add line_maps.
4078 (_cpp_do_file_change): Update.
4079 * cppinit.c (cpp_create_reader): Initialize line maps.
4080 (cpp_destroy): Destroy line maps.
4081 (cpp_start_read): Get logical line number right.
4082 * cpplex.c (parse_string): Only warn once for multi-line strings.
4083 Use boolean variable for null warning.
4084 * cpplib.c (_cpp_handle_directive): End the directive if it isn't
4086 (do_include_common): End the directive early.
4087 (do_line): Don't warn about out-of-range lines in preprocessed
4088 source. Update. Remove unused variables.
4089 (_cpp_do_file_change): Update for new line mapping.
4090 (pragma_cb): New typedef.
4091 (cpp_register_pragma): Stop looking ahead before calling the
4093 (do_pragma_system_header): End directive early.
4094 (cpp_get_line_maps): New.
4095 (cpp_pop_buffer): Fudge logical line. Update.
4096 * cpplib.h: Include line-map.h
4097 (enum cpp_fc_reason): Remove.
4098 (struct cpp_file_change): Update.
4099 (cpp_get_line_maps): New.
4100 * cppmain.c (struct_printer): New member map.
4101 (cb_file_change): Update for new mappings.
4102 * fix-header.c (cb_file_change): Similarly.
4104 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
4106 * Makefile.in (libgcc.mk): Define mkinstalldirs.
4107 * mklibgcc.in: Use mkinstalldirs instead of mkdir.
4109 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
4111 * config/vax/vax.c: include expr.h.
4113 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
4115 * Makefile.in ($(srcdir)/configure): Only rebuild in
4117 ($(srcdir)/config.in): Only define in maintainer mode.
4118 ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
4120 2001-08-02 David Edelsohn <edelsohn@gnu.org>
4122 * doc/install.texi (Install GCC: Binaries): Update Bull info.
4124 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4126 * gcc.c (set_collect_gcc_options): New function, split out from
4128 Ignore elided switches.
4129 (do_spec_1): Invoke before executing command.
4130 (set_input): Export.
4131 Move declaration ...
4132 * gcc.h (set_input): ... here.
4133 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
4136 2001-08-02 Nathan Sidwell <nathan@codesourcery.com>
4139 * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
4141 * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
4143 2001-08-02 Richard Sandiford <rsandifo@redhat.com>
4145 * mips.md (movdicc): Make conditional on TARGET_64BIT. Likewise
4146 for the unnamed instructions it expands to.
4148 2001-08-02 Richard Henderson <rth@redhat.com>
4150 * regclass.c (call_really_used_regs): Conditionally define.
4151 (init_reg_sets_1): Don't use it if not defined.
4152 (fix_register): Similarly, don't set it.
4154 2001-08-01 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4156 * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
4157 Correct comment that had been missed in the previous change.
4159 2001-08-01 Stan Shebs <shebs@apple.com>
4161 * config/darwin.c (machopic_stub_name): Try matching by name.
4162 (update_stubs): New function.
4163 (darwin_encode_section_info): Call it and update_non_lazy_ptrs
4166 2001-08-01 Richard Henderson <rth@redhat.com>
4168 * except.c (output_function_exception_table): Use assemble_align.
4169 * varasm.c (assemble_eh_label): Remove.
4170 (assemble_eh_align, assemble_eh_integer): Remove.
4172 2001-08-01 Robert Lipe <robertl@caldera.com>
4174 * dwarfout.c: Remove reference to README.DWARF.
4176 2001-08-01 Andrew MacLeod <amacleod@redhat.com>
4178 * regclass.c (call_really_used_regs): New array for registers which
4179 are actually used by a call.
4180 (init_reg_sets_1): Initialize regs_invalidated_by_call with the
4182 (fix_register): Set call_really_used too.
4183 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
4184 * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
4186 2001-08-01 Richard Henderson <rth@redhat.com>
4188 * read-rtl.c (read_name): Consider \r whitespace.
4190 2001-07-11 Andrew Cagney <ac131313@redhat.com>
4192 * config.gcc: Recognize powerpc-*-netbsd*.
4194 * doc/install.texi (Host/target specific installation notes for
4195 GCC): Mention powerpc-*-netbsd*.
4197 * config/rs6000/netbsd.h: New file.
4198 (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
4199 (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
4200 (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
4201 (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
4202 (TARGET_VERSION): Redefine.
4204 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
4205 mcall-netbsd as a match for mcall-sysv.
4206 (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
4207 (ncrti.S, ncrtn.S): New targets.
4208 ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
4210 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
4211 "netbsd' as a V4 ABI.
4212 (ASM_SPEC): Check for -mcall-netbsd.
4213 (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
4214 (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
4215 (LIB_SPEC, ENDFILE_SPEC): Ditto.
4216 (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
4217 (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
4218 (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
4219 (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
4221 * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
4222 (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
4224 2001-08-01 Mark Kettenis <kettenis@gnu.org>
4226 * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
4227 only if NO_BASE_OF_ENCODED_VALUE isn't defined.
4228 * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
4229 including "unwind-pe.h".
4231 Wed Aug 1 20:01:42 CEST 2001 Jan Hubicka <jh@suse.cz>
4233 * rs6000.md (define_splits): Kill unused constraints.
4235 Wed Aug 1 20:02:12 CEST 2001 Graham Stott <grahams@redhat.com>
4236 Jan Hubicka <jh@suse.cz>
4238 * function.c (thread_prologue_and_epilogue_insns): Kill code
4239 dealing with non-existent CFG.
4241 2001-08-01 Kazu Hirata <kazu@hxi.com>
4243 * alias.c: Fix comment formatting.
4244 * bitmap.c: Likewise.
4245 * builtins.c: Likewise.
4246 * calls.c: Likewise.
4247 * c-common.c: Likewise.
4248 * c-decl.c: Likewise.
4249 * c-dump.c: Likewise.
4250 * c-lex.c: Likewise.
4251 * collect2.c: Likewise.
4252 * combine.c: Likewise.
4253 * conflict.c: Likewise.
4254 * cppfiles.c: Likewise.
4255 * cppinit.c: Likewise.
4256 * cpplex.c: Likewise.
4257 * cpplib.c: Likewise.
4258 * cppmacro.c: Likewise.
4259 * cppspec.c: Likewise.
4260 * c-pragma.c: Likewise.
4261 * crtstuff.c: Likewise.
4263 * cselib.c: Likewise.
4264 * c-semantics.c: Likewise.
4265 * c-typeck.c: Likewise.
4267 2001-08-01 H.J. Lu <hjl@gnu.org>
4269 * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
4271 2001-08-01 H.J. Lu <hjl@gnu.org>
4273 * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
4275 2001-08-01 Ziemowit Laski <zlaski@apple.com>
4277 * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
4278 contextualizing Objective-C class name lookup by the lexer.
4279 (typespec_reserved_nonattr): Disable ObjC class name lookup after
4281 (protocoldef): Add support for forward @protocol declarations.
4282 (yylexname): Suppress ObjC class name lookup in certain contexts;
4283 re-enable after lookup is complete.
4284 (_yylex): Re-enable ObjC class name lookup when certain
4285 punctuation marks are seen.
4287 * objc/objc-act.c (check_protocol_recursively): New function used
4288 for finding circular dependencies in protocols.
4289 (objc_declare_protocols): New function for handling forward
4290 @protocol declarations.
4291 (receiver_is_class_object): Detect the case when 'self' is used
4292 inside of a class method.
4293 (build_message_expr): Issue a warning if class method is desired
4294 but instance method is found instead.
4295 (conforms_to_protocol): Streamline.
4296 (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
4297 protocol Foo, even if 'Bar foo' does not.
4298 (check_protocols): Streamline.
4299 (start_protocol): Add checks for circular and duplicate protocol
4301 (encode_aggregate_within): For typedefs of structs, encode the
4303 * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
4304 (objc_declare_protocols): New prototype.
4306 2001-08-01 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4308 * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
4309 * cpplex.c (handle_newline): Update prototype. Maintain logical
4311 (skip_escaped_newlines, skip_block_comment, parse_string):
4313 (_cpp_lex_token): Update, and store token position within the token.
4314 * cpplib.h (struct cpp_token): Add line and column entries.
4315 * cppmacro.c (replace_args): Position stringified tokens correctly.
4317 2001-08-01 Andreas Jaeger <aj@suse.de>
4319 * basic-block.h: Add prototype for last_loop_beg_note.
4321 2001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
4323 * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
4324 RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
4326 (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
4327 while handling WITH_CLEANUP_EXPR node. Use second operand calling
4328 expand_decl_cleanup.
4329 * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
4331 (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
4332 operand while calling simple_cst_equal.
4333 * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
4334 operand is the cleanup expression, the third is the RTL_EXPR.
4335 * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
4337 2001-07-31 Jeff Sturm <jsturm@one-point.com>
4339 * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
4341 2001-07-31 matthew green <mrg@eterna.com.au>
4343 * config.gcc (i386-*-netbsdelf): New description.
4344 * config/i386/netbsd-elf.h: New file.
4346 2001-07-30 Geoffrey Keating <geoffk@redhat.com>
4348 * loop.c (check_dbra_loop): Use single_set to compute
4351 2001-07-31 Daniel Berlin <dan@cgsoftware.com>
4353 PowerPC reorg and support for powerpc64-*-linux*.
4355 Also fixes emitting of constants on 32 bit and 64 bit
4358 * config.gcc: powerpc64-*-linux* is a new target.
4359 Things that needed aix.h now also include xcoff.h
4361 * config/rs6000/rs6000.h: Split XCOFF specific stuff into
4363 Move AIX specific stuff into aix.h.
4364 (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
4365 with more than just XCOFF now.
4366 (SET_ASM_OP): Remove, now defined where needed.
4367 (FUNCTION_PROLOGUE): New macro definition.
4368 (FUNCTION_EPILOGUE): New macro definition.
4369 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
4371 * config/rs6000/xcoff.h: New file.
4373 * config/rs6000/linux64.h: New file.
4375 * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
4377 2001-07-31 Alan Modra <amodra@bigpond.net.au>
4379 * rs6000.c (print_operand_address): Handle ELF syntax.
4380 (output_toc): Simplify. Use DOUBLE_INT_ASM_OP.
4381 * rs6000.md (load_toc_aix_di): Handle ELF syntax.
4382 * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
4384 2001-07-31 David Edelsohn <edelsohn@gnu.org>
4386 * rs6000.c (rs6000_override_options): Only disable
4387 flag_function_sections for XCOFF.
4388 (exact_log2_cint_operand): New predicate.
4389 (reg_or_{add,sub}_cint64_operand): New predicates.
4390 (add_operand): Compare CONST_INT with fewer function calls.
4391 (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
4392 (print_operand, case 'p'): Ensure positive operand.
4393 (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
4394 * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
4395 (PREDICATE_CODES): Add new predicates.
4396 * rs6000.md (addsi3): Split 32-bit constants more correctly.
4397 (divsi3, modsi3): Ensure positive power-of-2.
4398 (adddi3): Use new predicate. Split 32-bit constants more
4399 correctly. Re-arrange splitter to handle any constant.
4400 (subdi3): Use new predicate.
4401 (divdi3, moddi3): Ensure positive power-of-2.
4402 (movdi): Use rs6000_emit_set_const.
4403 (load_toc_v4_pic_di): Delete.
4405 2001-07-31 Graham Stott <grahams@redhat.com>
4407 * function.c (pad_below): Revert 2001-07-26 patch.
4409 Tue Jul 31 15:37:35 CEST 2001 Jan Hubicka <jh@suse.cz>
4411 * reg-stack (convert_regs_1): Fix best edge condition.
4413 Tue Jul 31 15:33:27 CEST 2001 Jan Hubicka <jh@suse.cz>
4415 * jump.c (duplicate_loop_exit_test): Better test for jumps
4416 entering the loop; create loop pre_header.
4418 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
4420 * doc/install.texi: Add s390 and s390x as new targets.
4421 * doc/invoke.texi: Add documantation of S/390 and zSeries
4423 * doc/md.texi: Add documantation of S/390 and zSeries constraints.
4425 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
4427 * config/m68k/m68k.md: Replace all general_operand with
4428 nonimmediate_operand for all destinations.
4429 * config/m68k/m68k.c (not_sp_operand): Likewise.
4431 Mon Jul 30 23:20:34 EDT 2001 John Wehle (john@feith.com)
4433 * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
4435 2001-07-30 Richard Henderson <rth@redhat.com>
4437 * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
4438 * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
4440 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
4442 * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
4443 Add missing doc strings
4444 * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
4445 * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
4447 Mon Jul 30 22:16:08 CEST 2001 Jan Hubicka <jh@suse.cz>
4449 * i386.c (ix86_output_main_function_alignment_hack): New function.
4450 (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
4452 * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
4453 edges by EDGE_DFS_BACK flag.
4454 (dump_edge_info): Add dfs_back flag.
4455 * basic-block.h (EDGE_DFS_BACK): New constant.
4456 (mark_dfs_back_edges): Declare.
4457 * alias.c (loop_p): Remove.
4458 (mark_constant_function): Use mark_dfs_back_edges.
4460 * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
4461 (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
4462 (compensate_edge): Break out from ...
4463 (convert_regs_1): ... here; do smart choosing of stack_out to copy.
4464 (convert_regs_2): Set block_done once block is really done;
4465 Do updating of the predecesors counts.
4467 * toplev.c (rest_of_compilation): Recompute block_for_insn
4468 before post-reload cfg_cleanup.
4469 * function.c (thread_prologue_epilogue_insns):
4470 Call set_block_for_new_insns when emitting prologue directly.
4472 2001-07-30 Andreas Jaeger <aj@suse.de>
4474 * jump.c: Add prototype for mark_modified_reg.
4476 * cse.c (set_live_p): Add unused attribute.
4478 * gcov.c (calculate_branch_probs): Use gcov_type to avoid
4480 (scan_for_source_files): Use long for count to avoid overflow.
4481 (output_data): Likewise.
4482 (output_data): Don't use string concatatenation to silence gcc
4485 * predict.c: Fix typos and grammar.
4487 * gcse.c (insert_insn_end_bb): Remove unused variables.
4489 Mon Jul 30 21:54:53 CEST 2001 Jan Hubicka <jh@suse.cz>
4491 * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
4492 (attempt_auto_inc): LIkewise.
4493 (mark_used_reg): Likewise.
4494 (try_pre_increment_1): Likewise.
4495 * regclass.c (regclass): Likewise.
4496 * global.c (allocno_compare): Update comment; change scaling factor.
4497 * local-alloc.c (QTY_CMP_PRI): Likewise.
4498 * regs.h (REG_FREQ_FROM_BB): New.
4499 (REG_FREQ_MAX): Likewise.
4501 2001-07-30 H.J. Lu <hjl@gnu.org>
4503 * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
4506 2001-07-30 H.J. Lu (hjl@gnu.org)
4508 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
4509 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
4510 (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
4512 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
4514 * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
4515 as -mthumb-interwork when -mcpu=arm7 is specified.
4517 Mon Jul 30 17:44:43 CEST 2001 Jan Hubicka <jh@suse.cz>
4519 * predict.def (noreturn, loop branch, loop exit): Mark as first
4522 Mon Jul 30 12:52:11 CEST 2001 Jan Hubicka <jh@suse.cz>
4524 * combine.c (try_combine): Avoid barrier after noop jumps.
4526 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4528 * cpphash.h (struct cpp_reader): Remove import_warning.
4529 * cpplib.c (skip_rest_of_line): Don't bother turning off
4531 (parse_include): Move include handling to...
4532 (do_include_common): ... here. Move import warning from...
4533 (do_import): ... here.
4534 (do_pragma_poison): Don't do a callback for poison identifiers.
4535 * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
4536 * cppmain.c (setup_callbacks): Similarly.
4538 Sun Jul 29 23:26:50 CEST 2001 Jan Hubicka <jh@suse.cz>
4540 * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
4541 handle multiple sets.
4542 * except.c (sjlj_mark_call_sites): .... here.
4543 * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
4545 Sun Jul 29 21:38:45 CEST 2001 Jan Hubicka <jh@suse.cz>
4547 Suggested by Richard Henderson and Richard Kenner:
4548 * combine.c (recog_for_combine): Use the fake recog
4549 only if instruction does not match.
4550 * rtl.h (NOOP_MOVE_INSN_CODE): New.
4551 * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
4553 * combine.c (try_combine): Discover noop jump as direct jump.
4555 2001-07-29 Daniel Berlin <dan@cgsoftware.com>
4557 * df.c (df_rd_global_compute): Add successors to worklist, not
4559 (df_ru_global_compute): Ditto.
4561 2001-07-27 Daniel Berlin <dan@cgsoftware.com>
4563 * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
4564 increment REG_N_SETS.
4566 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
4568 * sbitmap.h: New prototype for sbitmap_a_xor_b.
4570 * sbitmap.c (sbitmap_a_xor_b): New function.
4571 ifdef the basic block stuff on IN_GCC.
4573 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4575 * cppexp.c (parse_defined): Always record the macro name.
4576 (lex): Don't worry about identifiers, or special-case
4578 (_cpp_parse_expr): Figure out at the end of the routine
4579 whether we saw a valid !defined() expression.
4580 * cppfiles.c (stack_include_file): Update for mi_valid.
4581 (_cpp_pop_file_buffer): Similarly.
4582 * cpplex.c (_cpp_lex_token): Similarly.
4583 * cpphash.h (enum mi_state, enum mi_ind, mi_state,
4584 mi_if_not_defined, mi_lexed): Remove.
4586 * cpplib.c (do_if): Simplify.
4587 (do_endif, push_conditional, _cpp_handle_directive): Update
4588 for renaming of mi_state to mi_valid.
4590 * cpp.texi: Add index entries for digraphs, and add comment
4591 that C++ refers to them as alternative tokens.
4593 Sun Jul 29 18:59:13 CEST 2001 Jan Hubicka <jh@suse.cz>
4595 * basic-block.h (CLEANUP_PRE_LOOP): New.
4596 * except.c (finish_eh_generation): Update call of cleanup_cfg.
4597 * sibcall.c (optimize_sibling_calls): Likewise.
4598 * toplev.c (rest_of_compilation): Likewise.
4599 * flow.c (try_forward_edges): Take argument MODE;
4600 do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
4601 (try_optimize_cfg): Update call of try_forward_edges.
4603 Sun Jul 29 18:59:56 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
4604 Jan Hubicka <jh@suse.cz>
4606 * (validate_replace_rtx_1): Fix simplification of MINUS.
4608 2001-07-29 Neil Booth <neil@daikokuya.demon.co.uk>
4610 PR preprocessor/3669
4611 * cppinit.c (init_dependency_output): Turn off dump requests
4612 if sending dependencies to stdout.
4614 2001-07-28 Richard Henderson <rth@redhat.com>
4616 * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
4619 2001-07-28 Golubev I. N. <gin@mo.msk.ru>
4621 * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
4623 2001-07-28 Kazu Hirata <kazu@hxi.com>
4625 * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
4626 is VAR_DECL first to prevent an ICE.
4628 2001-07-28 Richard Henderson <rth@redhat.com>
4630 * varasm.c (immed_real_const_1): Don't elide special cases for
4632 (clear_const_double_mem): Clear const_tiny_rtx too.
4634 2001-07-28 Richard Henderson <rth@redhat.com>
4636 * dwarf2out.c (dw_val_class_offset): New.
4637 (struct dw_ranges_struct, dw_ranges_ref): New.
4638 (ranges_table, ranges_table_allocated): New.
4639 (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
4640 (add_AT_offset, add_ranges, output_ranges): New.
4641 (print_die, output_die): Handle dw_val_class_offset.
4642 (attr_checksum, size_of_die, value_format): Likewise.
4643 (gen_lexical_block_die): Handle non-contiguous blocks.
4644 (gen_block_die): Likewise.
4645 (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
4646 if needed. Dump the ranges table.
4647 * final.c (final_start_function): Remove unnecessary notes and
4648 rebuild the block tree before numbering the blocks.
4649 * function.c (reorder_blocks_0): Walk the existing block tree
4650 to unmark all blocks.
4651 (reorder_blocks_1): Create block fragments when duplicate block
4653 (reorder_fix_fragments): New.
4654 (reorder_blocks): Call it.
4655 * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
4657 2001-07-28 Richard Henderson <rth@redhat.com>
4659 * emit-rtl.c (adjust_address): Make a copy of the memory address.
4661 2001-07-28 Richard Henderson <rth@redhat.com>
4663 * flow.c (add_to_mem_set_list): New function.
4664 (init_propagate_block_info): Use it.
4665 (mark_set_1): Likewise.
4666 (insn_dead_p): Canonicalize memory address for dead store
4667 comparison. Allow wider mode stores to kill narrower mode stores.
4668 (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
4669 (invalidate_mems_from_set): Don't handle MEMs.
4671 2001-07-28 Kazu Hirata <kazu@hxi.com>
4673 * config/h8300/h8300.h: Fix formatting.
4675 Sat Jul 28 23:35:22 CEST 2001 Jan Hubicka <jh@suse.cz>
4677 * basic-block.h (EDGE_FREQUENCY): New macro.
4678 * bb-reorder (fixup_reorder_chain): Set counts and frequencies
4680 * flow.c (find_sub_basic_blocks): Likewise.
4681 (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
4682 (redirect_edge_and_branch): Use EDGE_FREQUENCY.
4684 * predict.c (DEF_PREDICTOR): New argument FLAGS.
4685 (HITRATE): New macro.
4686 (PRED_FLAG_FIRST_MATCH): New constant.
4687 (predictor_info): New field flgags.
4688 (combine_predictions_for_insn): Use DS theory to combine
4689 probabilities; set the edge probabilities when finished.
4690 (estimate_probability): Avoid duplicated matches
4691 of LOOP_BRANCH heuristics for nested loops; update comment.
4692 * predict.def: Add flags for each prediction, set probabilities
4693 according to B&L paper.
4694 * predict.h (DEF_PREDICTOR): New argument FLAGS.
4696 * profile.c (compute_branch_probabilities): Cleanup way the edge
4697 probabilities are computed and REG_BR_PROB notes are dropped; if
4698 values does not match, emit error.
4699 (init_branch_prob): Do error instead of warning when profile driven
4700 feedback is missing or corrupt.
4702 2001-07-27 DJ Delorie <dj@redhat.com>
4704 * ifcvt.c (noce_get_alt_condition): If the condition is a compare
4705 against a constant, try to adjust the compare to have the desired
4706 constant in it so that min/max optimizations happen more often.
4708 Fri Jul 27 17:53:00 CEST 2001 Jan Hubicka <jh@suse.cz>
4710 * flow.c (last_loop_beg_note): New function.
4711 (redirect_edge_and_branch): Use it.
4712 (split_edge): Likewise.
4714 * alias.c (loop_p): Avoid uninitialized memory access.
4716 * flow.c (try_forward_edges): Avoid accessing freed memory.
4718 * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
4721 2001-07-26 Andrew Haley <aph@redhat.com>
4722 Joern Rennecke <amylaar@redhat.com>
4724 * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
4725 (SUBTARGET_CPP_ENDIAN_SPEC): New.
4726 (SUBTARGET_CPP_SPEC): New.
4728 * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
4729 (SUBTARGET_CPP_PTR_SPEC): New.
4730 (CPP_DEFAULT_CPU_SPEC): New.
4731 (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
4732 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
4733 (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
4734 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
4735 (SUBTARGET_CPP_SPEC): Define as an empty string.
4737 2001-07-27 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4739 * doc/install.texi (Configuration): Properly link the host
4740 specific instructions also when generating HTML.
4742 Fri Jul 27 00:33:35 EDT 2001 John Wehle (john@feith.com)
4744 * flow.c (redirect_edge_and_branch_force): Test
4745 target->global_live_at_start.
4747 2001-07-26 Richard Henderson <rth@redhat.com>
4749 * simplify-rtx.c (avoid_constant_pool_reference): Export.
4750 * rtl.h (avoid_constant_pool_reference): Declare it.
4751 * dwarf2out.c (add_location_or_const_value_attribute): Use it.
4752 (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
4754 Thu Jul 26 22:30:22 CEST 2001 Jan Hubicka <jh@suse.cz>
4756 * rtl.h (cleanup_barriers): Declare.
4757 * jump.c (cleanup_barriers): New function.
4758 * toplev.c (rest_of_compilation): Call cleanup_barriers
4759 before loop optimizer and after bb_reorder.
4761 * flow.c (back_edge_of_syntactic_loop_p): New.
4762 (split_edge): Use it.
4764 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4766 * glimits.h (_MACH_MACHLIMITS_H_): Delete.
4768 Thu Jul 26 22:22:21 2001 Denis Chertykov <denisc@overta.ru>
4770 * cse.c (cse_process_notes): Replace any registers if the address
4773 Thu Jul 26 14:04:03 EDT 2001 John Wehle (john@feith.com)
4775 * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
4776 (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
4777 (propagate_block): Update prototype.
4778 * flow.c (update_life_info): Simplify the CFG and
4779 recalculate the global regs which are alive when
4780 removing dead code during a global update.
4781 (propagate_block): Return non-zero if an INSN is
4784 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4786 * Makefile.in (LIBICONV): Define.
4788 2001-07-26 Catherine Moore <clm@redhat.com>
4790 * config/v850/v850.h (ENCODE_SECTION_INFO): Change order
4791 of conditional to avoid tree checking errors.
4793 2001-07-26 Kazu Hirata <kazu@hxi.com>
4795 * regmove.c (regmove_optimize): Don't replace a reg with
4796 another reg of a different mode.
4798 2001-07-26 Andrew MacLeod <amacleod@redhat.com>
4800 * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
4801 limit length of dependancy flush list.
4802 * params.h (MAX_PENDING_LIST_LENGTH): Define.
4803 * sched-int.h (struct deps): Add pending_flush_length field.
4804 * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
4805 has 1 element in it.
4806 (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
4807 (sched_analyze): After a jump, if the pending memory flush list is too
4808 large, flush the pending lists.
4809 (init_deps): Initialize pending_flush_length to 0.
4810 * doc/invoke.texi (max_pending_list_length): Document parameter.
4812 2001-07-26 Neil Booth <neil@daikokuya.demon.co.uk>
4814 * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
4815 * dbxout.c (dbxout_global_decl): Move outside #ifdef.
4816 * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
4818 2001-07-26 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4820 * cpphash.h (struct_lexer_state): Delete was_skipping.
4821 Move skipping here from struct cpp_reader.
4822 * cpplex.c (parse_identifier): Update.
4823 (_cpp_lex_token): Don't skip tokens in a directive.
4824 * cpplib.c (struct if_stack): Update.
4825 (start_directive, end_directive): Don't change skipping state.
4826 (_cpp_handle_directive): Update.
4827 (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
4828 (do_else, do_endif): Update; only check for excess tokens if not
4829 in a skipped conditional block.
4830 (push_conditional): Update for new struct if_stack.
4832 2001-07-26 Graham Stott <grahams@redhat.com>
4834 * function.c (locate_and_pad_parm): Also pad initial offset
4835 so that the total argument size also includes the padding.
4837 2001-07-26 Graham Stott <grahams@redhat.com>
4839 * gensupport.c (alter_output_for_insn): Correct enable checking failure
4840 change XSTR to XTMPL.
4842 (process_one_cond_exec): Likewise
4844 2001-07-25 Richard Henderson <rth@redhat.com>
4846 * varasm.c (assemble_variable): Create DECL_RTL before setting
4849 Thu Jul 26 00:19:30 CEST 2001 Jan Hubicka <jh@suse.cz>
4851 * predict.c (estimate_probability): Avoid duplicated predictions.
4853 * loop.c (find_and_verify_loops): Grok multiple barriers.
4855 Wed Jul 25 18:00:05 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4857 * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
4859 * dbxout.c: Consistently use putc instead of fputc.
4860 (print_wide_int): New function; call instead of direct fprintf.
4861 (dbxout_type_index): Adjust calls of CHARS to be more accurate.
4862 (dbxout_type_fields, dbxout_type_method_1): Likewise.
4863 (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
4864 (print_int_cst_octal): Likewise.
4865 (print_octal): Show we wrote characters.
4866 (dbxout_type): Set have_used_extensions in more places.
4868 2001-07-25 Catherine Moore <clm@redhat.com>
4870 * config/v850/v850.c (v850_va_arg): Use addr
4871 instead of valist to build incr.
4873 Wed Jul 25 22:48:59 CEST 2001 Jan Hubicka <jh@suse.cz>
4875 * flow.c (delete_dead_jumptables): New function.
4876 (life_analyzis): Call it.
4877 * bb-reorder.c (skip_insns_after_block): Handle contradictory
4880 2001-07-25 Richard Henderson <rth@redhat.com>
4882 * except.c (reachable_handlers): Handle a region being removed
4883 out from under a RESX.
4885 2001-07-25 Richard Henderson <rth@redhat.com>
4887 * config/alpha/alpha.c (alpha_emit_conditional_move): Always
4888 swap GE/GT if it is an fp comparison.
4890 2001-07-25 Andrew Haley <aph@cambridge.redhat.com>
4892 * alias.c (rtx_equal_for_memref_p): Allow strings as types in
4895 Wed Jul 25 08:25:01 2001 Jeffrey A Law (law@cygnus.com)
4897 * ssa.c (rename_insn_1): Do not wrap an assignment to a
4898 paradoxical SUBREG inside a SEQUENCE. Fix minor formatting
4901 * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
4903 (visit_expression): When attempting to simplify an expression,
4904 retrieve any modes for arguments before they are simplified
4907 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
4908 Janis Johnson <janis@us.ibm.com>
4910 * stmt.c (expand_goto): A nonlocal goto can be a call too.
4911 * builtins.c (expand_builtin_longjmp): Reverse label and static chain
4912 pointer parameters to match documented usage of nonlocal_goto.
4913 * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
4914 parameters to their correct order.
4915 * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
4916 parameters to their correct order.
4918 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
4920 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
4922 2001-07-25 Jan Hubicka <jh@suse.cz>
4923 Richard Henderson <rth@redhat.com>
4925 * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
4927 (make_edges): New argument update_p; populate the edge cache if set.
4928 (find_basic_blocks): Update make_edges invocation.
4930 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4932 * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
4934 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4936 * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
4937 -Acpu and -Amachine.h.
4938 * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
4939 Corrected header to say ELF not a.out.
4940 * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
4941 when given -msoft-float.
4943 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4945 * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
4946 extra multilib parts like arm-elf.
4947 (i960-*-coff*, i960-*-rtems): Should not use collect2.
4948 (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
4949 crtfini.o as extra multilib parts.
4951 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4953 * configure.in: Add rtems as a supported thread model.
4954 * gthr-rtems.h: Add missing entry point __gthread_active_p.
4955 * configure: Rebuilt.
4957 2001-07-24 Lars Brinkhoff <lars@nocrew.org>
4959 * stor-layout.c (get_mode_alignment): make it work when
4960 BITS_PER_UNIT is not a power of two.
4961 * builtins.c (get_pointer_alignment): Likewise.
4963 2001-07-24 Richard Henderson <rth@redhat.com>
4965 * simplify-rtx.c (avoid_constant_pool_reference): Coerce
4966 the retrieved constant into the expected mode.
4968 Wed Jul 25 01:41:27 CEST 2001 Jan Hubicka <jh@suse.cz>
4970 * flow.c (try_simplify_condjump): Avoid duplicated edges.
4971 (verify_flow_info): Check for duplicated edges; clarify
4974 * flow.c (block_label): Update basic_block_for_insn.
4975 (commit_edge_insertions): Call compute_bb_for_insn.
4977 * flow.c (purge_dead_edges): Handle conditional jumps and conditional
4980 * flow.c (redirect_edge_and_branch,
4981 try_optimize_cfg): Use redirect_edge_succ_nodup
4982 (redirect_edge_succ_nodup): New.
4983 * basic_block.h (redirect_edge_succ_nodup): Declare.
4985 * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
4988 Wed Jul 25 00:32:49 CEST 2001 Jan Hubicka <jh@suse.cz>
4990 * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
4991 (try_crossjump_to_edge): Update commetns.
4992 (try_crossjump_bb): Likewise.
4994 2001-07-24 Richard Henderson <rth@redhat.com>
4996 * combine.c (distribute_notes): Move set of need_refresh
4997 for noop_move_p down to catch all cases.
4999 Tue Jul 24 20:32:44 CEST 2001 Jan Hubicka <jh@suse.cz>
5001 * recog.c (split_all_insns_noflow): New.
5002 * rtl.h (split_all_insns_noflow): Declare.
5003 * ia64.c (ia64_reorg): Use split_all_insns_noflow.
5004 * m68hc11.c (m68hc11_reorg): Likewise.
5005 * sh.c (machine_dependent_reorg): Likewise.
5006 * toplev.c (rest_of_compilation): Likewise for last split_all_insns
5009 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
5011 * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
5012 (ashlsi3_n splitter): Likewise.
5013 (lshrsi3_n splitter): Likewise.
5015 (GOTaddr2picreg): Make const SImode.
5016 (sym_label2reg): Likewise.
5017 (symGOT2reg): Likewise.
5018 (symGOTOFF2reg) Likewise.
5020 (casesi_worker_0): Make unspec SImode.
5022 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
5024 * config/sh/sh.c (barrier_align): Check that an operand really is
5025 an insn before extracting its INSN_CODE.
5027 2001-07-24 Andrew Haley <aph@cambridge.redhat.com>
5029 * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
5032 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
5033 for SImode to prevent overflow.
5035 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5037 * config/mips/irix6-libc-compat.c: New file.
5038 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
5039 * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
5042 2001-07-24 lars brinkhoff <lars@nocrew.org>
5044 * rtl.texi (REG_POINTER): Document.
5045 (Machine Modes): Document BImode, OImode, PQImode, PHImode,
5046 QFmode, HFmode, TQFmode, QCmode, and HCmode.
5048 Tue Jul 24 10:49:40 CEST 2001 Jan Hubicka <jh@suse.cz>
5050 * flow.c (delete_noop_moves): Do not confuse libcall regions.
5052 2001-07-23 Richard Henderson <rth@redhat.com>
5054 * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
5056 2001-07-23 Kazu Hirata <kazu@hxi.com>
5058 * config/h8300/h8300-protos.h: Add a prototype for
5059 general_operand_dst_push.
5060 * config/h8300/h8300.c (general_operand_dst_push): New.
5061 * config/h8300/h8300.h (OK_FOR_T): New.
5062 (EXTRA_CONSTRAINT): Use it.
5063 * config/h8300/h8300.md (movqi_push): Remove and integrate into
5064 the existing movqi pattern.
5065 (movhi_push): Likewise.
5067 * reload.c: Fix comment typos.
5069 Mon Jul 23 23:34:07 CEST 2001 Jan Hubicka <jh@suse.cz>
5071 * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
5073 2001-07-23 H.J. Lu (hjl@gnu.org)
5075 * doc/extend.texi: Update __builtin_return_address and
5076 __builtin_frame_address.
5078 2001-07-23 Richard Henderson <rth@redhat.com>
5080 * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
5082 * config/i386/i386.md: New setcc+movzbl peephole2.
5084 2001-07-23 Neil Booth <neil@cat.daikokuya.demon.co.uk>
5086 * objc/Make-lang.in (objc-act.o): Depend on debug.h.
5087 * objc/objc-act.c: Include debug.h.
5088 (synth_module_prologue): Save and restore debug hooks too.
5090 2001-07-23 lars brinkhoff <lars@nocrew.org>
5092 * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
5093 and C4X_FLOAT_FORMAT.
5094 (BOOL_TYPE_SIZE): Document.
5096 Mon Jul 23 11:54:23 2001 Clinton Popetz <cpopetz@cpopetz.com>
5098 * unroll.c (loop_iterations): Fix miscalculation of initial
5101 2001-07-13 Andrew Haley <aph@redhat.com>
5103 * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
5104 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
5105 * config/sh/sh.c (sh_can_redirect_branch): New function.
5106 * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
5107 * reorg.c (steal_delay_list_from_target): Use
5108 MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
5110 Mon Jul 23 17:20:18 CEST 2001 Jan Hubicka <jh@suse.cz>
5112 * flow.c (try_simplify_condjump): Unlink insn chain on
5113 fallthru edge; use can_fallthru.
5115 Mon Jul 23 16:03:19 CEST 2001 Jan Hubicka <jh@suse.cz>
5117 * basic-block.h (find_sub_basic_block): Declare.
5118 * flow.c (make_edges): New arguments MIN and MAX;
5119 (find_sub_basic_blocks): Revamp to use make_edges
5120 and purge_dead_edges.
5121 (find_basic_blocks): Update call of find_sub_basic_block.
5123 * recog.c (split_all_insns): Always expect CFG to be consistent;
5124 call find_sub_basic_blocks in case something has changed.
5125 * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
5128 * basic-block.h (delete_noop_moves): Declare.
5129 * combine.c (combine_instructions): Call it.
5130 (recog_for_combine): Tolerate noop moves
5131 (distribute_notes): Force refresh when register dies at noop move.
5132 * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
5134 (life_analysis): Update delete_noop_moves call.
5135 (set_noop_p): Move too ...
5136 * rtlanal.c (noop_move_p): ... here.
5137 * rtl.h (noop_move_p): Declare.
5139 * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
5140 * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
5142 * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
5143 (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
5145 2001-07-23 Hans-Peter Nilsson <hp@bitrange.com>
5147 * reload.c (push_reload): Fix typo in comment.
5148 (find_reloads_address): Ditto.
5149 (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
5151 2001-07-22 Richard Henderson <rth@redhat.com>
5153 * flow.c: Grammar check and clarify a lot of comments.
5154 (try_simplify_condjump): Rename variables to be clearer.
5155 (try_forward_edges): Skip complex and fallthru edges.
5156 Rearrange tests to avoid duplicate checks.
5157 (flow_find_cross_jump): Likewise.
5158 (outgoing_edges_match): Allow match if neither branch has
5159 probability data. Loosen probability match to 5%.
5160 (try_crossjump_to_edge): Hoist repeated indirection into
5162 (try_crossjump_bb): Don't check complex edges. Eliminate
5163 redundant crossjump tests.
5164 (try_optimize_cfg): Fix use of bool. Reorganize cheaper
5165 checks before more expensive checks.
5167 2001-07-22 Richard Henderson <rth@redhat.com>
5169 * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
5170 INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
5173 2001-07-22 Richard Henderson <rth@redhat.com>
5175 * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
5176 (const_sint32_operand): Likewise.
5177 * m68k.md (anon mulsi pattern): Use const_int_operand not
5178 const_sint32_operand.
5179 (umulsi3_highpart): Zero extend a constant input.
5180 (smulsi3_highpart): Don't bother checking SImode constant.
5181 (const_umulsi3_highpart): Give op3 DImode.
5182 (const_smulsi3_highpart): Likewise.
5184 2001-07-22 Richard Henderson <rth@redhat.com>
5186 * flow.c (split_block): Make sure bb_note is included in the
5187 new block when splitting before a label.
5189 Sun Jul 22 23:28:56 CEST 2001 Jan Hubicka <jh@suse.cz>
5191 * basic-block.h (redirect_edge_and_branch_force,
5192 redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
5193 * flow.c (redirect_edge_and_branch_force,
5194 redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
5195 (redirect_edge_and_branch_force): Fix copying of lifeness information.
5196 (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
5197 * ifcvt.c (dead_or_predictable): Take BB as an new destionation
5198 instead of label; update CFG after transformation.
5199 (find_if_case_1): Update call, use redirect_edge_and_branch_force
5200 for finishing the transformation; handle even case where ELSE
5201 does not follow THEN.
5202 (find_if_case_2): Update call of dead_or_predictable; simplify
5205 * emit-rtl.c (split_branch_probability): New global variable.
5206 (try_split): Take care to set split_branch_probability and
5207 create REG_BR_PROB note for new jump insns.
5208 * md.texi (define_split): Document new feature.
5210 * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
5212 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
5214 * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
5215 (asm_out_file): Remove redundant declaration.
5216 (assemble_asm): Remove old #if 0 block.
5217 (assemble_variable): Remove end of function; debug output is
5218 now handled with global_decl. Remove old #if 0 block. Update.
5219 Remove saved_in_section and associated no-op code.
5220 * Makefile.in (varasm.o): Correct dependencies.
5222 Sun Jul 22 17:55:11 2001 Alexandre Oliva <aoliva@redhat.com>
5224 * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
5225 the definition in defaults.h.
5227 Sun Jul 22 21:31:04 CEST 2001 Jan Hubicka <jh@suse.cz>
5229 * jump.c: Update comments.
5230 (delete_barrier_successors, delete_unreferenced_labels,
5231 delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
5232 delete_labelref_insn, redirect_tablejump, jump_optimize_1,
5233 jump_optimize, jump_optimize_minimal): Kill.
5234 (rebuild_jump_labels): Move code from jump_optimize_1.
5235 (purge_line_number_notes): Likewise.
5236 (copy_loop_headers): Likewise.
5237 * reg-stack.c: Update comment.
5239 * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
5240 JUMP_AFTER_REGSCAN): Kill.
5241 * toplev.c (rest_of_compilation): Use cleanup_cfg, call
5242 purge_line_number_notes and copy_loop_headers.
5244 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
5245 Richard Henderson <rth@redhat.com>
5247 * dbxout.c (dbxout_global_decl): New.
5248 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
5249 * sdbout.c (sdbout_finish): New.
5250 (sdbout_debug_hooks): Use it, add comments.
5251 (sdbout_global_decl): Defer initialised public vars to
5253 * varasm.c (assemble_variable): Don't output debug information
5254 for file-scope variables.
5256 2001-07-22 Richard Henderson <rth@redhat.com>
5258 * config/alpha/alpha.c (get_trap_mode_suffix): New.
5259 (get_round_mode_suffix): New.
5260 (print_operand): Use them for [/]. Remove support for [&'`()+].
5261 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
5262 * config/alpha/alpha.md (attr round_suffix): New.
5263 (attr trap_suffix): New.
5264 (all insns): Set them appropriately. Use %/ instead of the
5267 2001-07-22 Neil Booth <neil@cat.daikokuya.demon.co.uk>
5269 * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
5271 2001-07-22 Richard Henderson <rth@redhat.com>
5273 * regrename.c (regrename_optimize): Compute nregs for each
5274 potential target register.
5276 2001-07-21 Neil Booth <neil@daikokuya.demon.co.uk>
5277 Richard Henderson <rth@redhat.com>
5279 * dbxout.c (dbxout_global_decl): New.
5280 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
5281 * sdbout.c (sdbout_finish): New.
5282 (sdbout_debug_hooks): Use it, add comments.
5283 (sdbout_global_decl): Defer initialised public vars to
5285 * varasm.c (assemble_variable): Don't output debug information
5286 for file-scope variables.
5288 2001-07-21 H.J. Lu (hjl@gnu.org)
5290 * config/mips/mips.c (mips_cpu): Moved into ...
5291 (override_options): Here.
5293 * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
5295 (mips_cpu): Removed.
5297 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5299 * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
5300 ("iorqi3"): Likewise.
5301 ("xorqi3"): Likewise.
5302 ("*addhi3"): Fix constraint to avoid reloading in a soft register.
5303 ("*subhi3_sp): Likewise.
5304 ("*subhi3"): Likewise.
5305 ("extendhisi2"): Accept D, X and Y as source operand to avoid
5308 2001-07-21 Nathan Sidwell <nathan@codesourcery.com>
5310 * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
5311 * config/freebsd.h: Likewise.
5312 * config/linux.h: Likewise.
5313 * config/openbsd.h: Likewise.
5314 * config/alpha/linux-elf.h: Likewise.
5315 * config/arm/linux-elf.h: Likewise.
5316 * config/d30v/d30v.h: Likewise.
5317 * config/fr30/fr30.h: Likewise.
5318 * config/ia64/aix.h: Likewise.
5319 * config/ia64/ia64.h: Likewise.
5320 * config/mips/linux.h: Likewise.
5321 * config/pj/pj.h: Likewise.
5322 * config/rs6000/linux.h: Likewise.
5323 * config/sparc/linux.h: Likewise.
5324 * config/sparc/linux64.h: Likewise.
5326 2001-07-20 Bruce Korb <bkorb@gnu.org>
5328 * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
5329 because getc() and char* may disagree on signedness.
5331 2001-07-20 Richard Henderson <rth@redhat.com>
5333 * doc/rtl.texi (REG_DEAD): Update for current semantics.
5335 * flow.c (try_redirect_by_replacing_jump): Correctly compute which
5336 insns to delete in the presence of cc0 in a jump insn.
5338 Fri Jul 20 22:14:49 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
5339 Jan Hubicka <jh@suse.cz>
5341 * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
5342 of doing the change by hand.
5344 Fri Jul 20 21:59:42 CEST 2001 Jan Hubicka <jh@suse.cz>
5346 * rtlanal.c (set_noop_p): Return true for noop jumps.
5348 * expr.c (emit_single_push_insn): Add call to push expander.
5349 * expr.h (optab_index): Add OTI_push
5350 (push_optab): New constant.
5351 * genopinit.c (optabs): Add push_optab.
5352 * optabs.c (init_optab): Init push optab.
5353 * md.texi (push??1): Document
5355 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5357 * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
5358 expand to emit the pattern; put a REG_INC note for push/pop
5360 ("movdf", "movdf_internal"): Likewise.
5361 ("movsi", "movsi_internal"): Likewise.
5362 ("movsf", "movsf_internal"): Likewise.
5363 ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
5365 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5367 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
5370 2001-07-20 Daniel Berlin <dan@cgsoftware.com>
5372 * params.def: Change default max inline insns to 100.
5374 2001-07-20 Diego Novillo <dnovillo@redhat.com>
5376 * combine.c (combine_simplify_rtx): Generate a new shift operation
5377 when simplifying the first operand of a (neg (ashift)) expression.
5379 2001-07-20 Roman Lechtchinsky <rl@cs.tu-berlin.de>
5381 * regclass.c (N_REG_INTS): Use only 32 bits per element.
5383 2001-07-20 Kelley Cook <kelley.cook@home.com>
5385 * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
5386 information. Move rest into ...
5387 (*-*-solaris): ... here. Eliminate redundant information and
5388 reword necessary packages section. Delete 4.x assembler bug info.
5389 (sparc-sun-*): Merge into ...
5390 (sparc-sun-sunos*): here.
5392 2001-07-20 Catherine Moore <clm@redhat.com>
5394 * config/v850/v850.md (casesi): Generate LABEL_REF
5397 Fri Jul 20 14:12:57 CEST 2001 Jan Hubicka <jh@suse.cz>
5399 * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
5400 * i386.c (ix86_zero_extend_to_Pmode): Make global.
5401 * i386.md (strclrsi expander): Use it.
5403 Fri Jul 20 13:24:16 CEST 2001 Jan Hubicka <jh@suse.cz>
5405 * integrate.c (copy_insn_list): handle
5406 NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
5407 (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
5408 identically as to CODE_LABEL.
5410 * fold-const (fold): Convert A/B/C to A/(B*C) and
5413 * except.c (connect_post_landing_pads): Delete the RESX insns.
5415 2001-07-20 Aldy Hernandez <aldyh@redhat.com>
5417 * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
5419 * config/mips/mips.md (nmadd/nmsub): Use macro.
5421 2001-07-20 Nathan Sidwell <nathan@codesourcery.com>
5423 * cppinit.c (remove_dup_dir): Make static.
5424 (remove_dup_dirs): Make static. Only warn about preempting a
5425 system directory with a non-system directory.
5427 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
5429 * ifcvt.c (noce_try_store_flag_constants): Correct order
5430 of parameters to trunc_int_for_mode.
5432 2001-07-19 Mark Mitchell <mark@codesourcery.com>
5434 * reorg.c (fill_simple_delay_slots): If an instruction might throw
5435 an exception that will be caught within this function, do not fill
5436 its delay slot with any subsequent instruction.
5438 2001-07-19 Steve Ellcey <sje@cup.hp.com>
5440 * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
5441 * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
5442 pointer extension instruction.
5443 * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
5444 * simplify-rtx.c (simplify_unary_operation) Likewise.
5445 * explow.c (convert_memory_address) Check value of
5446 POINTERS_EXTEND_UNSIGNED to avoid some conversions when
5448 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
5449 MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
5450 * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
5451 Add Multilib Support.
5452 (POINTERS_EXTEND_UNSIGNED) Define for ILP32 support.
5453 * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
5454 Add Multilib Support.
5455 (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
5457 * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
5458 * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
5459 a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
5461 2001-07-19 Alexandre Oliva <aoliva@redhat.com>
5463 * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
5464 old and new operands in `<', `3' and `b'.
5466 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
5468 * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
5469 (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
5470 (toplev.o): Don't depend on xcoffout.h.
5471 * c-decl.c: Include debug.h
5472 (duplicate_decls): Use debug hook.
5473 * dbxout.c (dbxout_source_file, dbxout_args): Make static.
5474 (dbx_debug_hooks, xcoff_debug_hooks): Update.
5475 (dbxout_types): Remove.
5476 * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
5477 * debug.c (do_nothing_debug_hooks): Update.
5478 (debug_true_tree, debug_nothing_rtx): New.
5479 * debug.h (struct rtx_def): New.
5480 (struct gcc_debug_hooks): New hooks ignore_block,
5481 outlining_inline_function and label.
5482 (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
5483 dwarf2out_frame_finish): New.
5484 * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
5485 Make static, update prototype.
5486 (dwarf2_debug_hooks): Update.
5487 * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
5488 dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
5489 * dwarfout.c (dwarf_debug_hooks): Update.
5490 * emit-rtl.c: Include debug.h.
5491 (remove_unnecessary_notes): Use debug hook.
5492 * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
5493 (final_scan_insn): Use debug hook.
5494 * integrate.c (output_inline_function): Use debug hook.
5495 * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
5496 (sdb_debug_hooks): Update.
5497 * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
5498 * toplev.c: Don't include xcoffout.h.
5499 (note_outlining_of_inline_function, debug_ignore_block): Remove.
5500 * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
5502 * tree.h (dwarf2out_do_frame): Remove.
5504 2001-07-19 Catherine Moore <clm@cygnus.com>
5506 * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
5508 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
5510 * reload1.c (eliminate_regs_in_insn): When updating a set
5511 to the frame pointer to the hardware frame pointer, perform
5512 the update always not just when REPLACE is set.
5514 * reload1.c (choose_reload_regs): Don't inherit a reload
5515 that crosses multiple registers if registers past the first
5516 don't fit in the desired class.
5518 * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
5519 when negating constants.
5521 2001-07-19 Toon Moene <toon@moene.indiv.nluug.nl>
5523 * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
5524 * doc/tree.texi: Ditto.
5526 2001-07-19 Mark Kettenis <kettenis@wins.uva.nl>
5527 Jakub Jelinek <jakub@redhat.com>
5529 * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
5530 (extract_cie_info): Handle "eh" augmentation properly,
5532 (struct frame_state, __frame_state_for): New.
5534 2001-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5536 * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
5537 HANDLE_SYSV_PRAGMA): Define.
5538 * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
5540 (copy_object): Caller changed.
5542 2001-07-19 Andreas Schwab <schwab@suse.de>
5544 * configure.in (assembler dwarf2 debug_line support): Define nop
5546 * configure: Regenerated.
5548 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
5550 * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
5552 * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
5553 to conditionally compiled block.
5554 (dbx_debug_hooks, xcoff_debug_hooks): Update.
5555 * dbxout.h (dbxout_function): Remove.
5556 * debug.c (do_nothing_debug_hooks): Update.
5557 * debug.h (struct gcc_debug_hooks): New hooks function_decl,
5558 global_decl, deferred_inline_function.
5559 * dwarf2out.c (dwarf2_debug_hooks): Update.
5560 (dwarf2out_global_decl): New.
5561 * dwarfout.c: Don't include dwarfout.h.
5562 (dwarfout_global_decl, dwarfout_function_decl,
5563 dwarfout_deferred_inline_function): New.
5564 (dwarf_debug_hooks): Update.
5565 * dwarfout.h: Remove.
5566 * final.c: Don't include dwarfout.h.
5567 * sdbout.c (sdbout_global_decl): New.
5568 (sdbout_debug_hooks): Update.
5569 * toplev.c: Don't include dwarfout.h.
5570 (check_global_declarations, rest_of_compilation): Use new debug hooks.
5571 (note_deferral_of_defined_inline_function): Remove.
5572 * toplev.h (note_deferral_of_defined_inline_function): Remove.
5573 * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
5574 * ch/lex.c: Don't include dwarfout.h.
5575 * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
5576 (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
5577 * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
5578 * cp/optimize.c: Include debug.h.
5579 (maybe_clone_body): Use debug hook.
5580 * cp/semantics.c: Include debug.h.
5581 (expand_body): Use debug hook.
5582 * po/POTFILES.in: Remove dwarfout.h.
5584 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
5586 * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
5587 * c-parse.in (yyerror, _yylex): Similarly.
5588 * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
5589 Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
5591 * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
5592 * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
5594 2001-07-18 Jeff Sturm <jsturm@one-point.com>
5596 * dwarf2out.c (dwarf2out_abstract_function): Don't emit
5597 in-class declaration at -g1. Fixes c++/2814.
5599 2001-07-18 Richard Henderson <rth@redhat.com>
5601 * doc/md.texi (reload_in/out): Document restrictions in predicates
5602 and constraints for these patterns. Document empty string matching
5605 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5607 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
5609 Wed Jul 18 20:47:36 CEST 2001 Jan Hubicka <jh@suse.cz>
5611 * cse.c: Undo my previous patch.
5613 2001-07-18 Tom Tromey <tromey@redhat.com>
5616 * configure: Rebuilt.
5617 * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
5619 * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
5621 Wed Jul 18 18:46:30 CEST 2001 Richard Henderson <rth@cygnus.com>
5622 Jan Hubicka <jh@suse.cz>
5624 * flow.c (redirect_edge_and_branch): Bail out on complex edges.
5625 (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
5626 * jump.c (mark_jump_label): Do not forward branches.
5628 Wed Jul 18 18:35:01 CEST 2001 Jan Hubicka <jh@suse.cz>
5630 * cse.c (delete_trivially_dead_insns): Delete the libcall block
5631 when return value is unused.
5633 Wed Jul 18 18:28:16 CEST 2001 Jan Hubicka <jh@suse.cz>
5635 * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
5637 Wed Jul 18 12:05:29 2001 Nicola Pero <n.pero@mi.flashnet.it>
5639 * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
5640 on error. We can't blindly return the result of
5641 pthread_mutex_trylock because it returns a positive number on
5642 error, while we must return -1 on error.
5643 (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
5645 Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
5647 2001-07-18 Andreas Jaeger <aj@suse.de>
5649 * integrate.c (output_inline_function): Correct type of debug_hooks.
5651 2001-07-18 Toon Moene <toon@moene.indiv.nluug.nl>
5653 * combine.c (combine_simplify_rtx): DIV can be treated
5654 associatively for floats if unsafe math optimisations are enabled.
5656 2001-07-17 Richard Henderson <rth@redhat.com>
5658 * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
5660 2001-07-17 Richard Henderson <rth@redhat.com>
5662 * calls.c (prepare_call_address): New parameter SIBCALLP. If true,
5663 don't force the function address into a register.
5664 (expand_call, emit_library_call_value_1): Update callers.
5665 * builtins.c (expand_builtin_apply): Likewise.
5666 * expr.h (prepare_call_address): Update decl.
5668 2001-07-17 Chandrakala Chavva <cchavva@redhat.com>
5670 * config.gcc: For *-*-chorusos triplet, get chorus.h file from
5672 * config/i386/chorus.h: Move up.
5673 * config/sparc/chorus.h: Likewise.
5674 * config/rs6000/chorus.h: Likewise.
5675 * config/chorus.h: Moved here.
5677 2001-07-17 Andreas Schwab <schwab@suse.de>
5679 * configure.in (assembler eh_frame optimization): Handle big
5681 * configure: Regenerated.
5683 Tue Jul 17 23:43:31 CEST 2001 Jan Hubicka <jh@suse.cz>
5685 * expr.c (epxand_expr): Convert divisions into multiplications by
5686 reciprocals if -ffast-math.
5688 2001-07-17 Neil Booth <neil@daikokuya.demon.co.uk>
5690 * dbxout.c (dbxout_really_begin_function): Rename to
5691 dbxout_begin_function.
5692 (dbx_debug_hooks, xcoff_debug_hooks): Update.
5693 (dbxout_begin_function): Remove.
5694 (dbxout_function): Update.
5695 (dbxout_source_line): Update prototype.
5696 * dbxout.h (dbxout_begin_function): Remove.
5697 * debug.c (do_nothing_debug_hooks): Update.
5698 (debug_nothing_tree): Update.
5699 (debug_nothing_charstar_rtx): Remove.
5700 * debug.h (union tree_node): Declare.
5701 (struct rtx_def): Remove.
5702 (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
5703 begin_function. Change source_line prototype.
5704 (debug_nothing_tree): New.
5705 (debug_nothing_charstar_rtx): Delete.
5706 (dwarf2out_begin_prologue): Moved from ...
5708 * dwarf2out.c (dwarf2_debug_hooks): Update.
5709 (dwarf2out_begin_prologue): Update prototype. If genuine dwarf2
5710 debug info, call dwarf2out_source_line.
5711 (dwarf2out_souce_line): Update prototype.
5712 * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
5713 Change prototype, make static.
5714 (dwarfout_source_line): Update prototype.
5715 (dwarf_debug_hooks): Update.
5716 * dwarfout.h (dwarfout_begin_function): Remove.
5717 * final.c (final_start_function, final_scan_insn): Use appropriate
5718 debug hooks, update to use notice_source_line.
5719 (output_source_line): Rename notice_source_line. Don't call the
5720 source_line debug hook.
5721 * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
5722 make static, update prototype.
5723 (sdbout_mark_begin_function): Rename sdbout_begin_function, update
5725 (sdbout_end_prologue): New.
5726 (sdbout_source_line): Update prototype.
5727 (sdbout_debug_hooks): Update.
5728 (sdbout_symbol): Remove unused var.
5729 * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
5731 * varasm.c: Include debug.h.
5732 (assemble_start_function): Use begin_function debug_hook.
5733 * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
5734 update with prototype.
5735 (xcoffout_source_line): Update prototype.
5736 * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
5738 (xcoffout_source_line): Update prototype.
5740 2001-07-17 Richard Henderson <rth@redhat.com>
5742 * c-typeck.c (build_binary_op): Do not shorten unsigned
5743 right shift after sign extension.
5745 Tue Jul 17 16:56:05 CEST 2001 Jan Hubicka <jh@suse.cz>
5747 * combine.c (combine_simplify_rtx): Attempt to simplify
5748 a*(b/c) as (a*b)/c for floats in unsafe_math mode.
5750 * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
5751 (simplify_binary_operation, simplify_unary_operation,
5752 simplify_relational_operation): Use it.
5754 * combine.c (combine_simplify_rtx): Don't do associative law
5755 on divisions; allow associative law on floats.
5757 2001-07-17 H.J. Lu <hjl@gnu.org>
5758 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5760 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
5761 ASM_OUTPUT_WEAK_ALIAS are defined.
5762 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
5763 * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
5765 * config/mips/iris5.h: ... here.
5766 (HANDLE_SYSV_PRAGMA): Defined as 1.
5767 * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
5768 * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
5771 2001-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
5773 * c-parse.in (all_prefix_attributes): New variable.
5774 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
5775 (maybe_resetattrs): New production.
5776 (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
5777 maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
5778 notype_initdcl, nested_function, notype_nested_function,
5779 component_decl, components, components_notype,
5780 component_declarator, component_notype_declarator,
5781 absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
5782 ivars, mydecl, myparm): Update. Avoid prefix attributes just
5783 after a comma being applied to more than one declarator.
5784 * doc/extend.texi (Attribute Syntax): Update. Remove
5785 documentation of bugs that are no longer present.
5787 2001-07-13 Eric Christopher <echristo@redhat.com>
5789 * config/mips/mips.h: Change TUNE_MIPS* options to use
5791 (EXTRA_SPECS): Add cc1_cpu_spec.
5792 * config/mips/mips.md (muldf3): Fix typo.
5794 2001-07-16 Richard Henderson <rth@redhat.com>
5796 * config/m68k/m68k.c: Include expr.h and reload.h.
5797 (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
5798 [general int]: Use HOST_WIDE_INT_PRINT_DEC.
5800 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
5801 Richard Henderson <rth@redhat.com>
5803 * cse.c (set_live_p): Take INSN argument for cc0; update callers.
5804 (insn_live_p): Fix fall off end of function.
5805 (dead_libcall_p): Remove COUNTS argument; update callers.
5806 (delete_trivially_dead_insns): Remove unused variables.
5808 2001-07-17 Andreas Jaeger <aj@suse.de>
5810 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
5813 * lcm.c (optimize_mode_switching): Avoid warning for unused
5814 variable if !NORMAL_MODE.
5816 * flow.c (try_crossjump_to_edge): Remove unused variable.
5818 2001-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
5820 * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
5821 atexit declaration in stdlib.h.
5823 2001-07-16 Richard Begg <Richard.Begg@colesmyer.com.au>
5825 * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
5827 Mon Jul 16 22:48:00 CEST 2001 Jan Hubicka <jh@suse.cz>
5829 * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
5830 * except.c (finish_eh_generation): Update call of cleanup_cfg;
5831 do rebuild_jump_labels instead of jump_optimize
5832 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
5833 * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
5834 * flow.c (try_optimize_cfg): Remove unneeded code_labels.
5836 * flow.c: Include timevar.h
5837 (find_basic_block): Push/pop timevar;
5838 (cleanup_cfg): Likewise.
5839 * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
5840 * Makefile: Add dependencies on timevar.h
5842 * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
5843 (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
5845 * rtl.h (delete_trivially_dead_insns): Add new parameter.
5846 * toplev.c (rest_of_compilation): Update calls.
5847 * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
5848 (delete_trivially_dead_insns): ... here; accept new argument
5849 preserve_basic_blocks; preserve basic blocks if set.
5851 * reg-stack.c (stack_regs_mentioned): Return 0 if
5852 stack_regs_mentioned_data is not initialized.
5853 (reg_to_stack): Make stack_regs_mentioned survive after the
5854 reg-stack is completted; do not call cleanup_cfg.
5855 * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
5856 make cleanup_cfg after bb-reorder to output to debug file.
5858 2001-07-16 Richard Henderson <rth@redhat.com>
5860 * regclass.c (init_reg_sets): Use only 32 bits per initializer
5861 from int_reg_class_contents.
5863 2001-07-16 Richard Henderson <rth@redhat.com>
5865 * hard-reg-set.h (regs_invalidated_by_call): Declare.
5866 * regclass.c (regs_invalidated_by_call): Move from cse.c.
5867 (init_reg_sets_1): Move initialization from cse_main.
5868 * cse.c (regs_invalidated_by_call): Move to regclass.c.
5869 (cse_main): Move its initialization also.
5870 * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
5871 * flow.c (propagate_one_insn): Likewise.
5872 * gcse.c (compute_hash_table): Likewise.
5873 (compute_kill_rd, compute_store_table): Likewise.
5874 * sched-deps.c (sched_analyze_1): Likewise.
5876 Mon Jul 16 18:07:07 2001 J"orn Rennecke <amylaar@redhat.com>
5878 * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
5881 2001-07-16 Steve Ellcey <sje@cup.hp.com>
5883 * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
5884 in if statement so we don't access undefined memory.
5886 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
5888 * gcse.c: Update comment at top.
5889 Update comment on mem handling.
5890 mem_last_set, mem_first_set, mem_set_in_block: gone.
5891 Declaration of reg_set_info: gone.
5892 (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
5893 pointless with load_killed_in_block_p (they are *more*
5894 conservative then it, not less, and less accurate).
5895 (oprs_not_set_p): Ditto.
5896 (alloc_gcse_mem): Don't allocate mem_set_in_block
5897 (free_gcse_mem): Don't free it, either.
5898 (record_last_mem_set_info): Update comment in front, remove
5899 mem_*set_* stuff. Note the reason we don't handle stores directly
5901 (compute_hash_table): Update comments to reflect reality. Remove
5902 mem_*set_* references.
5903 (reset_opr_set_tables): Remove mem_*set_* references.
5905 (mark_set): Ditto. Also remove double sets of bitmaps for REG's.
5906 (mark_clobber): Ditto (on both parts, we double set here too).
5907 (expr_killed_p): Remove mem_set_in_block test.
5908 (compute_transp): Remove mem_set_in_block test.
5910 * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
5911 of edge, and removal of phi alternative to dump file.
5912 (ssa_ccp_substitute_constants): Add note about register now being
5913 constant, and which uses were replaced in what insns to dump file.
5915 2001-07-16 Andreas Jaeger <aj@suse.de>
5917 * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
5918 variables of type HOST_WIDEST_INT.
5920 * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
5921 (__bb_exit_func): Correct type of count_max to avoid overflow.
5922 (num_digits): Handle long long argument.
5924 * combine.c (gen_lowpart_for_combine): Remove unused variable.
5926 2001-07-16 Neil Booth <neil@cat.daikokuya.demon.co.uk>
5928 * output.h (sdb_begin_function_line): Restore as an extern
5930 * sdbout.c (sdb_begin_function_line): Make extern.
5932 2001-07-15 Richard Henderson <rth@redhat.com>
5934 * machmode.def (Pmode): Redefine if GENERATOR_FILE.
5935 * genrecog.c (maybe_both_true_mode): New.
5936 (maybe_both_true_2): Use it.
5937 (write_switch): Don't put Pmode in a switch.
5938 * rtl.c (mode arrays): Don't explicitly size them.
5940 Sun Jul 15 14:07:36 CEST 2001 Jan Hubicka <jh@suse.cz>
5942 * toplev.c (rest_of_compilation): Fix register_life_up_to_date
5943 handling; move unconditional splitting before mode switching.
5945 * i386.md (type): Add fistp type.
5946 (i387, length_attr, scheduling definitions): Handle this type.
5947 (fix_trunc?f?i2): Revamp to use mode switching.
5948 (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
5949 * i386.h (fp_cw_mode): New enum
5950 (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
5951 MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
5953 Sun Jul 15 12:53:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5955 * Makefile.in (integrate.o): Add debug.h.
5956 * integrate.c (debug.h): Add.
5957 (output_inline_function): Save, reset, and restore debug_hooks.
5959 2001-07-15 Richard Henderson <rth@redhat.com>
5961 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
5962 instead of COMPARE for the EQUIV expression.
5964 2001-07-15 Richard Henderson <rth@redhat.com>
5966 * flow.c (redirect_edge_and_branch_force): Initialize
5967 global_live_at_start and global_live_at_end.
5968 (allocate_bb_life_data): Export.
5969 * basic-block.h (allocate_bb_life_data): Declare.
5970 * toplev.c (rest_of_compilation): Call it.
5972 2001-07-15 Richard Henderson <rth@redhat.com>
5974 * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
5975 (alpha_tablejump_best_label): New.
5976 * config/alpha/alpha-protos.h: Declare them.
5977 * config/alpha/alpha.md: Use braced strings for code blocks.
5978 (tablejump_osf): Break out add with r29.
5979 (tablejump_osf_internal): Remove.
5980 (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
5981 use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
5983 Sun Jul 15 00:53:35 CEST 2001 Jan Hubicka <jh@suse.cz>
5985 * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
5988 * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
5990 * i386-protos.h (ix86_split_fp_branch): Update prototype.
5991 (ix86_fp_jump_nontrivial_p): New.
5992 * i386.md (fp_jcc_?): Update call of split_fp_branch;
5993 use ix86_fp_jump_nontrivial_p.
5994 * i386.c (ix86_fp_jump_nontrivial_p): New.
5995 (ix86_split_fp_branch): Accept code instead of rtx.
5996 (ix86_expand_compare): Expand comparison early in case
5997 doing so is resonably cheap.
5999 2001-07-15 Nick Clifton <nickc@cambridge.redhat.com>
6001 * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
6003 (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
6004 (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
6006 2001-07-15 Neil Booth <neil@daikokuya.demon.co.uk>
6008 * dbxout.c (dbxout_source_line): Make static, update prototype.
6009 (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
6010 (dbxout_init, dbxout_finish, dbxout_source_line,
6011 dbxout_begin_block, dbxout_end_block): Update for new prototypes.
6012 * dbxout.h (dbxout_source_line): Delete.
6013 * debug.c (debug_nothing_file, debug_nothing_file_int,
6014 debug_nothing_file_charstar_rtx): New.
6015 (do_nothing_debug_hooks): Update.
6016 (debug_nothing_void, debug_nothing_charstar_rtx,
6017 dwarf2out_end_epilogue): New.
6018 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
6019 * debug.h (struct rtx_def): Declare.
6020 (gcc_debug_hooks): New hooks source_line, end_epilogue
6022 (debug_nothing_void, debug_nothing_charstar_rtx,
6023 dwarf2out_end_epilogue): New.
6024 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
6025 * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
6026 (dwarf2_debug_hooks): Update.
6027 (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
6028 dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
6029 * dwarf2out.h (dwarf2out_source_line): Remove.
6030 * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
6031 Make static, update prototype.
6032 (dwarfout_init, dwarfout_finish, dwarfout_source_line,
6033 dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
6034 (dwarf_debug_hooks): Update.
6035 * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
6036 dwarfout_end_function): Remove.
6037 * final.c (profile_function): Use debug hooks for ending functions
6039 (output_source_line, final_end_function): Update prototype,
6041 (final_start_function, final_scan_insn): Update.
6042 * output.h (sdb_begin_function_line): Remove.
6043 (final_end_function): Update prototype.
6044 * sdbout.c (sdb_begin_function_line): Make static.
6045 (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
6046 (sdbout_source_line): New.
6047 (sdbout_end_epilogue, sdbout_end_function): Make static, update
6049 (sdb_debug_hooks): Update.
6050 (sdbout_init, sdbout_source_line,
6051 sdbout_begin_block, sdbout_end_block): Update for new prototypes.
6052 * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
6053 * toplev.c (compile_file, rest_of_compilation): Update.
6054 * tree.h (dwarf2out_end_epilogue): Move to debug.h.
6055 * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
6056 xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
6057 Update for prototype changes.
6058 * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
6059 xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
6061 2001-07-15 Richard Henderson <rth@redhat.com>
6063 * config/alpha/alpha.h (TARGET_ABI_OSF): New.
6064 (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
6065 * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
6066 * config/alpha/alpha.c: Likewise.
6067 * config/alpha/alpha.md: Likewise.
6068 * config/alpha/alpha32.h: Likewise.
6069 * config/alpha/vms.h: Likewise.
6072 2001-07-14 Richard Henderson <rth@redhat.com>
6074 * config/alpha/alpha.md: Use define_constants for unspec values.
6075 Substitute throughout.
6077 2001-07-14 Tim Josling <tej@melbpc.org.au>
6079 * tree.def (EXPON_EXPR) remove. Never supported anyway.
6081 2001-07-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
6083 * pa.md: Remove unused constraints from define_split's.
6085 2001-04-14 Richard Henderson <rth@redhat.com>
6087 * ifcvt.c (find_cond_trap): Test for exit block.
6089 Sun Jul 15 00:50:20 CEST 2001 Jan Hubicka <jh@suse.cz>
6091 Re-install recently reverted patch.
6092 * emit-rtl.c (try_split): Update mark_jump_label call.
6093 * flow.c (find_sub_basic_blocks): Likewise.
6094 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
6096 (mark_all_labels): Kill second parameter.
6097 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
6098 (rebuild_jump_labels, jump_optimize_minimal): Update call
6100 (jump_optimize_1): Kill crossjumping code.
6101 (mark_jump_label): Kill cross_jump parameter.
6102 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
6103 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
6104 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
6106 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
6108 (dump_file_info): Likewise.
6109 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
6110 reorganize passes to do reg-stack first, bb-reorder second.
6111 * invoke.texi (-d letters doc): Remove the jump2 pass.
6113 2001-07-14 Richard Henderson <rth@redhat.com>
6115 * ifcvt.c (find_cond_trap): New.
6116 (find_if_header): Call it.
6117 (merge_if_block): Relax existing jump sanity check.
6118 * jump.c (jump_optimize_1): Remove conditional trap handling.
6120 2001-07-14 Alan Modra <amodra@bigpond.net.au>
6122 * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
6124 (insn_refs_are_delayed): Correct comment.
6125 * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
6126 * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
6127 instead of r31. Make associated insn !TARGET_64BIT, and
6128 provide an additional 64-bit insn that clobbers r2.
6130 (udivsi3): Likewise.
6132 (umodsi3): Likewise.
6134 Sat Jul 14 02:58:38 CEST 2001 Jan Hubicka <jh@suse.cz>
6136 * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
6138 * flow.c (redirect_edge_and_branch_force, split_edge,
6139 try_crossjump_to_edge): Use set_block_for_new_insns.
6140 * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
6142 2001-07-13 H.J. Lu (hjl@gnu.org)
6144 * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
6147 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
6149 Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
6151 2001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
6153 * c-common.c (decl_attributes): Take a pointer to the node to
6154 which attributes are to be attached, and a flags argument.
6155 * c-common.h (enum attribute_flags): New.
6156 (decl_attributes): Update prototype.
6157 * c-decl.c (start_decl, push_parm_decl, finish_struct,
6158 finish_enum, start_function): Update calls to decl_attributes.
6159 * c-parse.in (component_declarator, component_notype_declarator,
6160 label): Update calls to decl_attributes.
6162 Fri Jul 13 23:04:00 2001 Denis Chertykov <denisc@overta.ru>
6164 * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
6165 * config/avr/avr.c (legitimate_address_p): Return value changed
6166 from letter to register classes. For better debugging.
6168 2001-07-13 Kazu Hirata <kazu@hxi.com>
6170 * jump.c (reversed_comparison_code_parts): Fix comment typos.
6172 2001-07-13 H.J. Lu (hjl@gnu.org)
6174 * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
6176 2001-07-13 Marc Espie <espie@cvs.openbsd.org>
6178 * config.gcc (*-*-openbsd*): Add fragment to compile libgcc
6179 correctly for shared configurations.
6180 * config/t-libgcc-pic: New.
6181 * config/{i386,m68k,sparc}/t-openbsd: New.
6182 * config/openbsd.h: Include cpu_spec in cpp_spec where needed.
6183 Support -shared. Support debugging libraries with -g.
6184 * config/i386/openbsd.h: Correct ASM_COMMENT_START. Ensure dwarf2
6185 frame information does not emit pointer diffs.
6186 * config/sparc/openbsd.h: Ensure dwarf2 frame information does not
6189 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
6191 Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
6193 2001-07-13 David Edelsohn <edelsohn@gnu.org>
6195 * combine.c (try_combine): Ensure const_int pow2 is positive.
6197 2001-07-13 Hartmut Penner <hpenner@de.ibm.com>
6199 * config.gcc: Add configuration for s/390.
6200 * config/s390/s390.c: New. Subroutines for code generation.
6201 * config/s390/s390.h: New. Definitions for s/390.
6202 * config/s390/s390-protos.h: New. Prototypes.
6203 * config/s390/linux.h: New. Definitions for linux for s/390.
6204 * config/s390/linux64.h: New. Definitions for linux for zSeries.
6205 * config/s390/t-linux: New. Makefile fragment.
6206 * config/s390/s390.md: New. Machine description for s/390 and zSeries.
6207 * config/s390/fixdfdi.h: New. Fix L_fix*di.
6209 Fri Jul 13 14:46:21 CEST 2001 Jan Hubicka <jh@suse.cz>
6211 * emit-rtl.c (try_split): Update mark_jump_label call.
6212 * flow.c (find_sub_basic_blocks): Likewise.
6213 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
6215 (mark_all_labels): Kill second parameter.
6216 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
6217 (rebuild_jump_labels, jump_optimize_minimal): Update call
6219 (jump_optimize_1): Kill crossjumping code.
6220 (mark_jump_label): Kill cross_jump parameter.
6221 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
6222 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
6223 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
6225 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
6227 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
6228 reorganize passes to do reg-stack first, bb-reorder second.
6229 * invoke.texi (-d letters doc): Remove the jump2 pass.
6231 2001-07-12 Steve Ellcey <sje@cup.hp.com>
6233 * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
6235 Thu Jul 12 17:57:16 CEST 2001 Jan Hubicka <jh@suse.cz>
6237 * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
6239 (verify_flow_info): Make diagnostics prettier.
6241 Thu Jul 12 16:48:54 CEST 2001 Jan Hubicka <jh@suse.cz>
6243 * flow.c (find_basic_blocks_1): Do not emit NOP after call.
6245 * flow.c (outgoing_edges_match): Return early if condition reversal
6248 2001-07-06 Richard Sandiford <rsandifo@redhat.com>
6250 * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
6251 (mips_move_2words): When splitting a move into two instructions,
6252 prefix the second address operand with '%D'.
6254 2001-07-12 Neil Booth <neil@daikokuya.demon.co.uk>
6256 * Makefile.in (final.o): Depend on debug.h.
6257 * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
6258 (dbx_debug_hooks): Add new hooks.
6259 (xcoff_debug_hooks): New.
6260 * debug.c (debug_nothing_file_int_int): New.
6261 (do_nothing_debug_hooks): Update.
6262 * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
6263 (debug_nothing_file_int_int): New.
6264 * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
6265 static, update prototype.
6266 (dwarf2_debug_hooks): Update.
6267 * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
6268 * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
6269 static, update prototype.
6270 (dwarf_debug_hooks): Update.
6271 * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
6272 * final.c: Include debug.h.
6273 (final_scan_insn): Use debug hooks when beginning and ending blocks.
6274 * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
6275 static, update prototype.
6276 (sdb_debug_hooks): Update.
6277 * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
6278 * toplev.c: Distinguish between xcoff and dbx.
6280 * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
6281 Call all debug hooks, not just dwarf ones.
6283 2001-07-11 Timothy Wall <twall@redhat.com>
6285 * config.gcc: Add configuration for AIX5/IA64.
6286 * config/ia64/aix.h: New. AIX5/IA64-specific configuration.
6287 * config/ia64/crt[in].asm: New. Generic static ctor/dtor
6288 support prefix/suffix code.
6289 * config/ia64/t-aix: New. Makefile fragment.
6290 * config/ia64/unwind-aix.c: New. Unwind table entry lookup.
6292 2001-07-11 Kazu Hirata <kazu@hxi.com>
6294 * recog.c (validate_change): Fix a comment typo.
6296 2001-07-11 Neil Booth <neil@daikokuya.demon.co.uk>
6298 * Makefile.in (c-lex.o): Wrap long lines. Depend on debug.h.
6299 * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
6301 * dbxout.c (dbx_debug_hooks): Add new hooks.
6302 (dbxout_start_new_source_file): Rename dbxout_start_source_file,
6304 (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
6306 * dbxout.h (dbxout_start_new_source_file,
6307 dbxout_resume_previous_source_file): Delete.
6308 * debug.c (do_nothing_debug_hooks): Add new hooks.
6309 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
6310 (debug_nothing_int_charstar, debug_nothing_int): New.
6311 * debug.h (gcc_debug_hooks): New hooks define, undef,
6312 start_source_file and end_source_file.
6313 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
6314 (debug_nothing_int_charstar, debug_nothing_int): New.
6315 * dwarf2out.c (dwarf2_debug_hooks): Add new hooks. Move into
6316 the conditionally compiled section.
6317 (dwarf2out_start_source_file, dwarf2out_end_source_file,
6318 dwarf2out_define, dwarf2out_undef): Make static.
6319 * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
6320 dwarf2out_define, dwarf2out_undef): Remove.
6321 * dwarfout.c (dwarf_debug_hooks): Add new hooks.
6322 (dwarfout_start_source_file, dwarfout_end_source_file,
6323 dwarfout_define, dwarfout_undef): Make static.
6324 (dwarfout_start_source_file_check,
6325 dwarfout_end_source_file_check): New.
6326 (dwarfout_define, dwarfout_finish): Update.
6327 * dwarfout.h (dwarfout_start_new_source_file,
6328 dwarfout_resume_previous_source_file, dwarfout_define,
6329 dwarfout_undef): Remove.
6330 * sdbout.c (sdb_debug_hooks): Add new hooks.
6331 (sdbout_start_new_source_file): Rename sdbout_start_source_file,
6333 (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
6334 make static, take an arg.
6335 * sdbout.h (sdbout_start_new_source_file,
6336 sdbout_resume_previous_source_file): Delete.
6337 * toplev.c (debug_start_source_file, debug_end_source_file,
6338 debug_define, debug_undef): Delete.
6339 * toplev.h (debug_start_source_file, debug_end_source_file,
6340 debug_define, debug_undef): Delete.
6342 * java/jcf-parse.c: Include debug.h.
6343 (parse_class_file): Update to use debug hooks directly.
6344 * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
6346 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6348 * alias.c (set_mem_alias_set): New function.
6349 * rtl.h (set_mem_alias_set): Declare it.
6350 * builtins.c (expand_builtin_return_addr): Call it instead of
6351 using MEM_ALIAS_SET accessor.
6352 (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
6353 (get_memory_rtx, expand_builtin_va_arg): Likewise.
6354 (expand_builtin_va_copy):Likewise.
6355 * caller-save.c (setup_save_areas): Likewise.
6356 * calls.c (compute_argument_addresses): Likewise.
6357 * explow.c (set_mem_attributes): Likewise.
6358 * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
6359 (expand_assignment, store_constructor_field, store_field): Likewise.
6360 (expand_expr_unaligned): Likewise.
6361 * function.c (assign_stack_temp_for_type): Likewise.
6362 (put_reg_into_stack, gen_mem_addressof): Likewise.
6363 * ifcvt.c (noce_try_cmove_arith): Likewise.
6364 * reload1.c (reload, alter_reg): Likewise.
6365 * config/alpha/alpha.c (get_aligned_mem): Likewise.
6366 (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
6367 (alpha_expand_unaligned_store): Likewise
6368 (alpha_expand_unaligned_load_words): Likewise.
6369 (alpha_expand_unaligned_store_words): Likewise.
6370 (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
6371 (alpha_expand_epilogue): Likewise.
6372 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6373 * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
6374 * config/i386/i386.c (legitimize_pic_address): Likewise.
6375 * config/i960/i960.c (setup_incoming_varargs): Likewise.
6376 * config/ia64/ia64.c (spill_restore_mem): Likewise.
6377 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6378 * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
6379 * config/mips/mips.c (mips_va_arg): Likewise.
6380 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
6381 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
6382 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
6383 (setup_incoming_varargs, rs6000_va_arg): Likewise.
6384 (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
6385 (rs6000_emit_epilogue): Likewise.
6386 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
6387 * config/sparc/sparc.c (sparc_va_arg): Likewise.
6388 * config/v850/v850.c (v850_va_arg): Likewise.
6390 Wed Jul 11 21:27:25 CEST 2001 Jan Hubicka <jh@suse.cz>
6392 * flow.c (merge_blocks_move_successor_nojumps): Do not crash
6393 when fallthru edge is present.
6394 (mege_blocks): Handle case where creation of jump insn
6397 * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
6398 CLEANUP_POST_REGSTACK): New constants.
6399 * except.c (finish_eh_generation): Update call of cleanup_cfg,
6400 * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
6401 * output.h (cleanup_cfg): Update prototype.
6402 * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
6403 * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
6404 cleanup_cfg call; kill missleading comment.
6405 * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
6406 * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
6407 parameter; control optimizations performed using it.
6408 (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
6409 try_crossjump_bb): New functions.
6411 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6413 * pa.c (pa_output_function_prologue): Delete prototype. Make function
6415 * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
6416 pa_output_function_prologue.
6417 * pa-protos.h (pa_output_function_prologue): New prototype.
6419 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6421 * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
6422 and low to get correct sign extension in low+high test.
6424 2001-07-11 Janis Johnson <janis@us.ibm.com>
6426 * gcov.c (arcdata): Use gcov_type to fix branch percentage
6427 for large hit count.
6429 * profile.c (branch_prob): Fix .bbg info for computed gotos
6432 2001-07-11 Mark Mitchell <mark@codesourcery.com>
6434 * stmt.c (parse_output_constraint): New function, split out
6436 (expand_asm_operands): ... here. Use parse_output_constraint.
6437 * tree.h (parse_output_constraint): Declare it.
6439 2001-07-11 Richard Henderson <rth@redhat.com>
6441 * bitmap.c: Comment some functions; fiddle whitespace.
6442 (bitmap_free): Don't export.
6443 (bitmap_element_allocate): Use memset.
6444 * bitmap.h (bitmap_free): Don't declare.
6446 2001-07-11 Daniel Berlin <dan@cgsoftware.com>
6448 * gcse.c, lcm.c, sched-deps.c:
6449 s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
6451 * flow.c (flow_loops_find): Free dom if we found no loops, since
6452 we aren't going to save it.
6454 * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
6457 Wed Jul 11 09:00:48 2001 Jeffrey A Law (law@cygnus.com)
6459 * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
6461 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6463 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
6464 #ifndef DWARF2_DEBUGGING_INFO.
6466 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
6468 * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
6470 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
6472 * config/mips/mips.c (gen_int_relational): Tell the caller not to
6473 reverse a branch if a NE comparison is implemented with GTU.
6475 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
6476 H.J. Lu <hjl@gnu.org>
6478 * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
6480 (call_internal2): Likewise.
6481 (call_value_internal1): Likewise.
6482 (call_value_internal2): Likewise.
6483 (call_value_multiple_internal1): Likewise.
6484 (call_value_multiple_internal2): Likewise.
6486 2001-07-10 Kazu Hirata <kazu@hxi.com>
6488 * calls.c (emit_library_call_value_1): Fix a comment typo.
6489 * dwarf2out.c (mem_loc_descriptor): Likewise.
6490 * config/i386/i386.c (ix86_expand_aligntest): Likewise.
6492 2001-07-11 David Billinghurst <David.Billinghurst@riotinto.com>
6494 * simplify-rtx.c (simplify_subreg): Fix typo in comment
6496 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6498 * recog.c (offsettable_address_p): Handle LO_SUM case.
6499 * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
6500 instead of plus_constant.
6502 2001-07-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6504 * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
6505 fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
6507 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6509 * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
6510 adjust_address_nv instead of plus_constant.
6512 2001-07-10 Neil Booth <neil@daikokuya.demon.co.uk>
6514 * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
6515 dwarf2out.o): Depend on debug.h, wrap long lines.
6516 * dbxout.c: Include debug.h.
6517 (dbx_debug_hooks): New.
6518 (dbxout_init): Make static, take just 2 args.
6519 (dbxout_finish): Make static.
6520 * dbxout.h (dbxout_init, dbxout_finish): Delete.
6521 * debug.c: New file.
6522 * debug.h: New file.
6523 * dwarf2out.c: Include debug.h.
6524 (dwarf2_debug_hooks): New.
6525 (dwarf2out_init): Make static.
6526 (dwarf2out_finish): Make static, take 2 args.
6527 * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
6528 * dwarfout.c: Include debug.h.
6529 (dwarf_debug_hooks): New.
6530 (dwarfout_init): Make static.
6531 (dwarfout_finish): Make static, take 2 args.
6532 * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
6533 * sdbout.c: Include debug.h.
6534 (sdb_debug_hooks): New.
6535 (sdbout_init): Make static, take 2 args.
6536 * sdbout.h (sdbout_init): Delete.
6537 * toplev.c: Include debug.h.
6539 (compile_file): Set deubg_hooks based on command line options.
6540 Use the hooks unconditionally rather than conditional compilation.
6542 Tue Jul 10 09:04:45 2001 Jeffrey A Law (law@cygnus.com)
6544 * ssa-ccp.c (first_phi_node): Remove. Replace uses with calls to
6545 first_insn_after_basic_block_note instead.
6547 * df.c (df_bb_refs_unlink): #if 0 out for now.
6549 2001-07-10 David Billinghurst <David.Billinghurst@riotinto.com
6551 * ssa.h: Add prototype for ssa_const_prop
6552 * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
6553 (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
6554 (ssa_fast_dce): Remove unused variable
6556 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6558 * diagnostic.c (finish_diagnostic): Rename to
6559 diagnostic_finish. Make it take an 'output_buffer *'. Adjust
6562 2001-07-10 Jason Merrill <jason_merrill@redhat.com>
6564 * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
6567 * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
6568 (dump_file): Only pad the demangled name with spaces if the
6569 mangled name was padded with spaces.
6571 2001-07-10 Bernd Schmidt <bernds@redhat.com>
6573 * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
6576 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6578 * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
6579 extraction if no direct load if either EXPAND_CONST_ADDRESS or
6582 * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
6583 whether can put offset inside LO_SUM to check mode alignment, not size.
6585 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6587 * doc/tm.texi (Misc): Fix thinko.
6589 2001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
6591 * regmove.c (replace_in_call_usage): Fix warnings.
6592 * sched-deps.c (add_dependence): Fix warnings.
6593 * simplify-rtx.c (simplify_subreg): Likewise.
6594 Return NULL_RTX instead of NULL.
6596 * reg-stack.c (emit_swap_insn): Eliminate warnings.
6597 (subst_asm_stack_regs): Likewise.
6599 * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
6602 * dwarf2out.c (output_call_frame_info): Declare i as int.
6603 (build_abbrev_table): Declare n_alloc as int.
6604 (dwarf2out_finish): Initialize die.
6605 * except.c: Declare sjlj_funcdef_number as unsigned.
6606 (connect_post_landing_pads): Declare j as unsigned.
6607 (convert_to_eh_region_ranges): Initialize call_site.
6608 (output_function_exception_table): Initialize tt_format_size.
6609 * expr.c (move_by_pieces_1): Initialize to1.
6610 (store_constructor): Initialize minelt and maxelt.
6611 * flow.c (mark_regs_live_at_end): Declare i as unsigned.
6612 * function.c (instantiate_decls): Avoid signed/unsigned warning.
6614 * c-decl.c (combine_parm_decls): Unused, remove.
6615 * c-tree.h: Remove prototype for combine_parm_decls.
6617 * reload.c (push_reload): Fix warning.
6618 (regno_clobbered_p): Likewise.
6619 * reload1.c (replace_pseudos_in_call_usage): Likewise.
6620 (reload_combine): Likewise.
6622 * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
6623 * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
6625 * bitmap.c (bitmap_operation): Change user.
6626 * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
6628 2001-07-10 Eric Christopher <echristo@redhat.com>
6630 * config/mips/mips.c (override_options): Fix typo.
6632 2001-07-09 Stan Shebs <shebs@apple.com>
6634 * target.h (struct gcc_target): New fields init_builtins and
6636 * target-def.h (TARGET_INIT_BUILTINS): New macro.
6637 (TARGET_EXPAND_BUILTIN): New macro.
6638 (TARGET_INITIALIZER): Add them.
6639 * builtins.c: Include target.h.
6640 (expand_builtin): Use targetm.expand_builtin.
6641 (default_init_builtins): New function.
6642 (default_expand_builtin): New function.
6643 * expr.h (default_init_builtins): Declare.
6644 (default_expand_builtin): Declare.
6645 * c-common.c (c_common_nodes_and_builtins): Use
6646 targetm.init_builtins.
6647 * defaults.h (MD_INIT_BUILTINS): Remove.
6648 * Makefile.in (builtins.o): Depend on target.h.
6650 * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
6651 (TARGET_EXPAND_BUILTIN): Define.
6652 * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
6653 (MD_EXPAND_BUILTIN): Remove.
6655 * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
6656 (TARGET_EXPAND_BUILTIN): Define.
6657 (c4x_init_builtins): Make endlink arg a local.
6658 (c4x_print_operand): Fix typos in adjust_address usages.
6659 * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
6660 * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
6661 (MD_EXPAND_BUILTIN): Remove.
6663 * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
6664 (TARGET_EXPAND_BUILTIN): Define.
6665 (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
6666 (ix86_init_builtins): Call new function only if TARGET_MMX.
6667 * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
6668 * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
6669 (MD_EXPAND_BUILTIN): Remove.
6671 * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
6672 (TARGET_EXPAND_BUILTIN): Define.
6673 * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
6674 (MD_EXPAND_BUILTIN): Remove.
6676 * doc/tm.texi: Document these changes.
6678 2001-07-09 Diego Novillo <dnovillo@redhat.com>
6680 * basic-block.h (tree_node): Forward declare if needed.
6681 (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
6682 (BLOCK_HEAD_TREE): Define.
6683 (BLOCK_END_TREE): Define.
6684 (struct loops): Rename field 'tree' to 'tree_root'.
6685 * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
6687 (flow_loops_tree_build): Rename reference to field 'tree' to
6689 (flow_loops_level_compute): Ditto.
6690 * predict.c (estimate_bb_frequencies): Ditto.
6691 * tree.h (struct tree_common): Add field 'aux'.
6693 2001-07-09 Stan Shebs <shebs@apple.com>
6695 * config/darwin.c (darwin_encode_section_info): Don't mark any
6696 DECL_EXTERNAL node as defined.
6698 2001-07-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
6700 * pa.c (pa_init_machine_status, pa_mark_machine_status,
6701 pa_free_machine_status, hppa_init_pic_save): Delete.
6702 (hppa_pic_save_rtx): New. Use get_hard_reg_initial_val.
6703 (hppa_profile_hook): Use hppa_pic_save_rtx.
6704 * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
6705 hppa_init_pic_save): Delete.
6706 (hppa_pic_save_rtx): Declare.
6707 * pa.md (call, call_value, sibcall, sibcall_value,
6708 builtin_setjmp_receiver): Use hppa_pic_save_rtx.
6710 2001-07-09 Kazu Hirata <kazu@hxi.com>
6712 * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
6713 * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
6715 2001-07-09 Andreas Jaeger <aj@suse.de>
6717 * output.h: Add declaration of final_forward_branch_p.
6719 * config/i386/i386.c (output_fix_trunc): Remove unused variable.
6721 * varray.c: Include errors.h for internal_error and trim_filename
6724 * Makefile.in (varray.o): Add errors.h.
6726 2001-07-09 Toon Moene <toon@moene.indiv.nluug.nl>
6728 * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
6729 * optabs.c (have_add2_insn): Check whether the add insn chosen
6730 really accepts the operands. (have_sub2_insn): Ditto for sub insn.
6731 * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
6733 Mon Jul 9 13:26:40 2001 Jeffrey A Law (law@cygnus.com)
6735 * Makefile.in (OBJS): Add ssa-ccp.o
6736 (ssa-ccp.o): Add dependencies.
6737 * toplev.c (DFI_ssa_ccp): New dump file enum.
6738 (dump_file): Add entry for dumping after SSA CCP.
6739 (flag_ssa_ccp): New flag variable.
6740 (f_options): Add -fssa-ccp.
6741 (rest_of_compilation): Run SSA CCP if requested.
6742 * timevar.def (TV_SSA_CCP): New timevar.
6743 * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
6744 * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
6745 Fix minor typo in SSA DCE documentation.
6746 * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
6747 Add documentation for new dump option. Renumber dump files
6750 Mon Jul 9 21:36:00 CEST 2001 Jan Hubicka <jh@suse.cz>
6752 * emit-rtl.c (gen_highpart_mode): New.
6753 * rtl.h (gen_highpart_mode): Declare.
6754 * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
6755 operand can be VOIDmode constant.
6757 Mon Jul 9 17:23:10 CEST 2001 Jan Hubicka <jh@suse.cz>
6759 * flow.c (redirect_edge_and_branch_force): New.
6760 (can_fallthru): Ensure that basic blocks are succeeding.
6761 (try_optimize_cfg): Do not delete basic block if it is the last one.
6763 * flow.c (try_redirect_by_replacing_jump): Do not remove
6764 jumps with side effects, unlink chain on fallthru edge;
6765 set block for new jump instruction; avoid basic block to
6766 over by line number note.
6768 * flow.c (try_simplify_condjump): Verify that the condjump
6769 is not always falling trought.
6772 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
6774 * flow.c (forwarder_block_p): Fix for fallthru blocks.
6775 (try_redirect_by_replacing_jump): Update properly the count
6776 and frequency information.
6778 Mon Jul 9 06:41:07 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6780 * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
6781 address that is a LO_SUM specially.
6782 * explow.c (plus_constant_wide, case LO_SUM): Deleted.
6784 * c-lang.c (start_cdtor): Remove extra parameter from start_function.
6786 * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
6787 (operand_subword): Use them.
6788 (change_address_1): Renamed from change_address; new arg VALIDATE.
6789 * expr.h: Reflect above changes; change_address now macro.
6790 * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
6792 * cselib.c (add_mem_for_addr): Likewise.
6793 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
6794 * regmove.c (try_apply_stack_adjustment): Likewise.
6795 * reload.c (push_reload, make_memloc): Likewise.
6796 * reload1.c (eliminate_regs): Likewise.
6797 * simplify-rtx.c (simplify_replace_rtx): Likewise.
6798 * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
6800 * combine.c (make_extraction, simplify_shift_const): Likewise.
6801 (gen_lowpart_for_combine): Likewise.
6802 * cse.c (gen_lowpart_if_possible): Likewise.
6803 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
6804 * expr.c (expand_expr, case COMPONENT_REF): Likewise.
6805 * optabs.c (gen_move_insn): Likewise.
6806 * reload1.c (alter_reg): Likewise.
6807 * simplify-rtx.c (simplify_subreg): Likewise.
6808 * stmt.c (expand_anon_union_decl): Likewise.
6809 * recog.c (validate_replace_rtx_1): Likewise.
6811 * Makefile.in (recog.o): Add $(EXPR_H).
6812 * explow.c (stabilize): Call replace_equiv_address.
6813 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
6814 * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
6816 2001-07-03 Andrew Haley <aph@redhat.com>
6818 * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
6819 the mode of the memory location.
6821 2001-07-09 Bo Thorsen <bo@suse.co.uk>
6823 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
6825 2001-07-09 Neil Booth <neil@daikokuya.demon.co.uk>
6827 * final.c (output_addr_const): Use target opening and
6828 closing parentheses.
6829 * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
6830 defaults, add to TARGET_ASM_OUT.
6831 * target.h (struct gcc_target): Add open_paren and close_paren.
6832 * doc/md.texi: Update.
6833 * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
6834 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
6835 TARGET_ASM_CLOSE_PAREN.
6836 * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
6838 * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
6840 * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
6841 * config/a29k/a29k.h: Similarly.
6842 * config/alpha/alpha.h: Similarly.
6843 * config/arc/arc.h: Similarly.
6844 * config/arm/aof.h: Similarly.
6845 * config/arm/aout.h: Similarly.
6846 * config/avr/avr.h: Similarly.
6847 * config/c4x/c4x.h: Similarly.
6848 * config/clipper/clipper.h: Similarly.
6849 * config/convex/convex.h: Similarly.
6850 * config/d30v/d30v.h: Similarly.
6851 * config/dsp16xx/dsp16xx.h: Similarly.
6852 * config/elxsi/elxsi.h: Similarly.
6853 * config/fr30/fr30.h: Similarly.
6854 * config/h8300/h8300.h: Similarly.
6855 * config/i370/i370.h: Similarly.
6856 * config/i386/i386.h: Similarly.
6857 * config/i860/i860.h: Similarly.
6858 * config/i960/i960.h: Similarly.
6859 * config/ia64/ia64.h: Similarly.
6860 * config/m32r/m32r.h: Similarly.
6861 * config/m68hc11/m68hc11.h: Similarly.
6862 * config/m68k/m68k.h: Similarly.
6863 * config/m88k/m88k.h: Similarly.
6864 * config/mcore/mcore.h: Similarly.
6865 * config/mips/mips.h: Similarly.
6866 * config/mn10200/mn10200.h: Similarly.
6867 * config/mn10300/mn10300.h: Similarly.
6868 * config/ns32k/ns32k.h: Similarly.
6869 * config/pa/pa.h: Similarly.
6870 * config/pdp11/pdp11.h: Similarly.
6871 * config/pj/pj.h: Similarly.
6872 * config/romp/romp.h: Similarly.
6873 * config/rs6000/rs6000.h: Similarly.
6874 * config/sh/sh.h: Similarly.
6875 * config/sparc/sparc.h: Similarly.
6876 * config/v850/v850.h: Similarly.
6877 * config/vax/vax.h: Similarly.
6878 * config/we32k/we32k.h: Similarly.
6880 2001-07-09 Joseph S. Myers <jsm28@cam.ac.uk>
6882 * doc/c-tree.texi: Document representation of attributes.
6884 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
6886 * doc/tm.texi: Update some places for the rename of target to
6889 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
6891 * target.h (struct gcc_target): Add insert_attributes.
6892 * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
6893 (TARGET_INITIALIZER): Update.
6894 * tree.c, tree.h (default_insert_attributes): New function.
6895 Update comments on other default functions to refer to targetm,
6897 * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
6898 TARGET_INSERT_ATTRIBUTES.
6899 (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
6900 * c-common.c (decl_attributes): Use targetm.insert_attributes.
6901 Don't use PRAGMA_INSERT_ATTRIBUTES.
6902 * Makefile.in (c-common.o): Depend on $(TARGET_H).
6903 * c-decl.c (start_decl, start_function): Don't call
6904 SET_DEFAULT_DECL_ATTRIBUTES.
6905 * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
6906 * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
6908 * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
6909 (c4x_check_attribute): Avoid modifying attribute list itself.
6910 (c4x_set_default_attributes): Rename to c4x_insert_attributes.
6912 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
6913 * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
6915 * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
6916 (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
6918 * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
6919 * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
6921 * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
6922 (v850_set_default_decl_attr): Rename to v850_insert_attributes.
6923 Adjust parameters. Make static.
6925 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
6927 * c-common.c (decl_attributes): Only take a single attributes
6929 * c-common.h (decl_attributes): Update prototype.
6930 * c-decl.c (start_decl, start_function): Only take a single
6931 attributes parameter. Update calls to decl_attributes.
6932 (finish_struct, finish_enum): Update calls to decl_attributes.
6933 (push_parm_decl): Expect unified list of attributes. Update call
6935 * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
6936 notype_nested_function, component_declarator,
6937 component_notype_declarator, label): Update calls to
6939 (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
6940 lists that are passed to push_parm_decl.
6941 * c-tree.h (start_function, start_decl): Update prototypes.
6942 * config/sh/sh-protos.h, config/sh/sh.c
6943 (sh_pragma_insert_attributes): Only take a single attributes
6945 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
6946 * doc/tm.texi (INSERT_ATTRIBUTES): Update.
6947 * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
6948 build_module_descriptor, generate_static_references,
6949 generate_strings, build_selector_translation_table,
6950 generate_descriptor_table, generate_protocols,
6951 generate_ivars_list, generate_dispatch_table,
6952 generate_protocol_list, generate_category,
6953 generate_shared_structures, really_start_method, add_objc_decls,
6954 generate_classref_translation_entry): Update calls to start_decl
6956 (build_tmp_function_decl, start_method_def): Unify attribute lists
6957 that are passed to push_parm_decl.
6959 2001-07-08 Neil Booth <neil@daikokuya.demon.co.uk>
6961 * final.c (no_asm_to_stream): New.
6962 (final_scan_insn): Use target structures for prologue ends
6963 and epilogue starts.
6964 * output.h (no_asm_to_stream): New.
6965 * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
6966 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
6967 (TARGET_ASM_OUT): Update.
6968 * target.h (struct gcc_target): New members function_end_prologue
6969 and function_begin_epilogue.
6970 * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
6971 * config/alpha/alpha-protos.h (output_end_prologue): Delete.
6972 * config/alpha/alpha.c (output_end_prologue): Rename to
6973 alpha_output_function_end_prologue. Use in target struct
6975 * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
6976 * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
6977 * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
6978 ia64_output_function_end_prologue. Use in target struct
6980 (ia64_function_prologue, ia64_funciton_epilogue): Rename
6981 mistyped prototypes.
6982 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
6983 * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
6985 * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
6986 an use in target struct, make static.
6987 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
6990 2001-07-08 Richard Henderson <rth@redhat.com>
6992 * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
6994 2001-07-08 Richard Henderson <rth@redhat.com>
6996 * config/i386/i386.md: Remove constraints strings from define_split
6997 and define_peephole2 patterns.
6998 (eh_return_si, eh_return_di): Split eh_return_1 for modes.
6999 (eh_return): Use them.
7001 2001-07-08 Richard Henderson <rth@redhat.com>
7003 * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
7004 Document MD_FALLBACK_FRAME_STATE_FOR.
7006 2001-07-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7008 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
7009 Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
7011 * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
7013 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
7015 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
7016 of the label inside NAME as opposed to just the end of NAME.
7018 2001-07-07 Neil Booth <neil@daikokuya.demon.co.uk>
7020 * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
7021 * config/alpha/alpha.c (alpha_init_machine_status,
7022 alpha_mark_machine_status, alpha_free_machine_status): Delete.
7023 (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
7024 (vms_valid_decl_attribute_p): Make static, conditionally compile.
7025 * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
7027 2001-07-06 Stan Shebs <shebs@apple.com>
7029 * target.h (targetm): Rename global from "target", so as not to
7030 conflict with local variables.
7032 * c-typeck.c: Ditto.
7036 * cp/decl2.c: Ditto.
7037 * cp/typeck.c: Ditto.
7038 * 1750a/1750a.c: Ditto.
7039 * a29k/a29k.c: Ditto.
7043 * clipper/clipper.c: Ditto.
7044 * convex/convex.c: Ditto.
7045 * d30v/d30v.c: Ditto.
7046 * dsp16xx/dsp16xx.c: Ditto.
7047 * elxsi/elxsi.c: Ditto.
7048 * fr30/fr30.c: Ditto.
7049 * h8300/h8300.c: Ditto.
7050 * i370/i370.c: Ditto.
7051 * i386/i386.c: Ditto.
7052 * i860/i860.c: Ditto.
7053 * i960/i960.c: Ditto.
7054 * ia64/ia64.c: Ditto.
7055 * m32r/m32r.c: Ditto.
7056 * m68hc11/m68hc11.c: Ditto.
7057 * m68k/m68k.c: Ditto.
7058 * m88k/m88k.c: Ditto.
7059 * mips/mips.c: Ditto.
7060 * ns32k/ns32k.c: Ditto.
7062 * pdp11/pdp11.c: Ditto.
7063 * romp/romp.c: Ditto.
7064 * rs6000/rs6000.c: Ditto.
7066 * sparc/sparc.c: Ditto.
7068 * we32k/we32k.c: Ditto.
7069 * doc/tm.texi: Update the manual to match.
7071 2001-07-06 Richard Henderson <rth@redhat.com>
7073 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
7074 DWARF2_UNWIND_INFO not just whether it is defined.
7076 2001-07-06 Diego Novillo <dnovillo@redhat.com>
7078 * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
7079 call to simplify_binary_operation returns a new pattern.
7081 2001-07-06 Roman Lechtchinsky <rl@cs.tu-berlin.de>
7083 * glimits.h (__SHRT_MAX__): New.
7084 (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
7085 (SHRT_MAX): Define in terms of __SHRT_MAX__.
7087 2001-07-06 Jan van Male <jan.vanmale@fenk.wau.nl>
7089 * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
7092 2001-07-06 Richard Henderson <rth@redhat.com>
7094 * bitmap.c (bitmap_release_memory): Move adjacent to the
7095 allocation functions.
7096 (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
7097 the implementation. Binary search for the set bit.
7098 (bitmap_union_of_diff): Allocate the temporary on the stack
7099 instead of using xmalloc.
7101 2001-07-06 Richard Henderson <rth@redhat.com>
7103 * genrecog.c (validate_pattern): Warn for constraints in
7104 define_{expand,split,peephole2}. Remove strict_low_part
7105 before looking up match_dup.
7107 2001-07-06 DJ Delorie <dj@redhat.com>
7109 * doc/gcc.texi (Makefile): Rename to be a more general purpose
7110 chapter about various build hints and history. Add section
7111 talking about the various types of native and cross builds.
7113 2001-07-06 Neil Booth <neil@daikokuya.demon.co.uk>
7115 * Makefile.in (final.o): Depend on target.h.
7116 * final.c: Include target.h.
7117 (default_function_pro_epilogue): New.
7118 (final_start_function): Use target structure for function prologues.
7119 (final_end_function): Use target structure for function epilogues.
7120 * fold-const.c (real_hex_to_f): Constify s and p.
7121 * output.h (default_function_pro_epilogue): New.
7122 * real.h (real_hex_to_f): Update prototype.
7123 * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
7124 TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
7125 (TARGET_INITIALIZER): Update.
7126 * target.h (gcc_target): Add struct asm_out.
7127 * doc/tm.texi: Update.
7130 Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
7131 TARGET_ASM_FUNCTION_EPILOGUE. Move macro code to functions
7132 in cpu/cpu.c, or rename old functions consistently. Take
7133 a HOST_WIDE INT not an int as the SIZE parameter. Remove now
7134 redundant macros and prototypes. Make new functions static.
7136 * 1750a/1750a.c: Similarly.
7137 * 1750a/1750a.h: Similarly.
7138 * a29k/a29k-protos.h: Similarly.
7139 * a29k/a29k.c: Similarly.
7140 * a29k/a29k.h: Similarly.
7141 * arc/arc-protos.h: Similarly.
7142 * arc/arc.c: Similarly.
7143 * arc/arc.h: Similarly.
7144 * arm/arm-protos.h: Similarly.
7145 * arm/arm.c: Similarly.
7146 * arm/arm.h: Similarly.
7147 * avr/avr-protos.h: Similarly.
7148 * avr/avr.c: Similarly.
7149 * avr/avr.h: Similarly.
7150 * clipper/clipper-protos.h: Similarly.
7151 * clipper/clipper.c: Similarly.
7152 * clipper/clipper.h: Similarly.
7153 * convex/convex.c: Similarly.
7154 * convex/convex.h: Similarly.
7155 * d30v/d30v-protos.h: Similarly.
7156 * d30v/d30v.c: Similarly.
7157 * d30v/d30v.h: Similarly.
7158 * d30v/d30v.md: Similarly.
7159 * dsp16xx/dsp16xx-protos.h: Similarly.
7160 * dsp16xx/dsp16xx.c: Similarly.
7161 * dsp16xx/dsp16xx.h: Similarly.
7162 * elxsi/elxsi.c: Similarly.
7163 * elxsi/elxsi.h: Similarly.
7164 * fr30/fr30.c: Similarly.
7165 * fr30/fr30.md: Similarly.
7166 * h8300/h8300-protos.h: Similarly.
7167 * h8300/h8300.c: Similarly.
7168 * h8300/h8300.h: Similarly.
7169 * i370/i370-protos.h: Similarly.
7170 * i370/i370.c: Similarly.
7171 * i370/i370.h: Similarly.
7172 * i386/i386.c: Similarly.
7173 * i386/osf1elf.h: Similarly.
7174 * i386/osfrose.h: Similarly.
7175 * i860/i860-protos.h: Similarly.
7176 * i860/i860.c: Similarly.
7177 * i860/i860.h: Similarly.
7178 * i960/i960-protos.h: Similarly.
7179 * i960/i960.c: Similarly.
7180 * i960/i960.h: Similarly.
7181 * ia64/ia64-protos.h: Similarly.
7182 * ia64/ia64.c: Similarly.
7183 * ia64/ia64.h: Similarly.
7184 * m32r/m32r-protos.h: Similarly.
7185 * m32r/m32r.c: Similarly.
7186 * m32r/m32r.h: Similarly.
7187 * m68hc11/m68hc11-protos.h: Similarly.
7188 * m68hc11/m68hc11.c: Similarly.
7189 * m68hc11/m68hc11.h: Similarly.
7190 * m68k/crds.h: Similarly.
7191 * m68k/dpx2.h: Similarly.
7192 * m68k/m68k-protos.h: Similarly.
7193 * m68k/m68k.c: Similarly.
7194 * m68k/m68k.h: Similarly.
7195 * m68k/news.h: Similarly.
7196 * m88k/m88k-protos.h: Similarly.
7197 * m88k/m88k.c: Similarly.
7198 * m88k/m88k.h: Similarly.
7199 * mips/mips-protos.h: Similarly.
7200 * mips/mips.c: Similarly.
7201 * mips/mips.h: Similarly.
7202 * ns32k/merlin.h: Similarly.
7203 * ns32k/ns32k.c: Similarly.
7204 * ns32k/ns32k.h: Similarly.
7205 * ns32k/tek6000.h: Similarly.
7206 * pa/pa-protos.h: Similarly.
7207 * pa/pa.c: Similarly.
7208 * pa/pa.h: Similarly.
7209 * pdp11/2bsd.h: Similarly.
7210 * pdp11/pdp11-protos.h: Similarly.
7211 * pdp11/pdp11.c: Similarly.
7212 * pdp11/pdp11.h: Similarly.
7213 * romp/romp-protos.h: Similarly.
7214 * romp/romp.c: Similarly.
7215 * romp/romp.h: Similarly.
7216 * rs6000/rs6000-protos.h: Similarly.
7217 * rs6000/rs6000.c: Similarly.
7218 * rs6000/rs6000.h: Similarly.
7219 * rs6000/sysv4.h: Similarly.
7220 * sh/sh-protos.h: Similarly.
7221 * sh/sh.c: Similarly.
7222 * sh/sh.h: Similarly.
7223 * sparc/sparc-protos.h: Similarly.
7224 * sparc/sparc.c: Similarly.
7225 * sparc/sparc.h: Similarly.
7226 * vax/vax.c: Similarly.
7227 * vax/vax.h: Similarly.
7228 * vax/vms.h: Similarly.
7229 * we32k/we32k.c: Similarly.
7230 * we32k/we32k.h: Similarly.
7232 Fri Jul 6 11:47:59 2001 Jeffrey A Law (law@cygnus.com)
7234 * basic-block.h (first_insn_after_basic_block_note): Declare.
7235 * flow.c (first_insn_after_basic_block_note): Define. Moved
7237 * ssa.c (first_insn_after_basic_block_note): Remove.
7238 * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
7240 (ssa_eliminate_dead_code): Properly update the CFG and PHI
7241 nodes when we find a dead conditional branch. Insert BARRIERs
7242 after any blocks with no successors, but which do not have
7245 2001-07-06 Zack Weinberg <zackw@stanford.edu>
7247 * varray.c (varray_check_failed): Use internal_error.
7249 2001-07-05 Andrew Haley <aph@redhat.com>
7251 * Makefile.in (LIB2_DIVMOD_FUNCS): New.
7252 (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
7253 * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
7255 2001-07-02 Jason Merrill <jason_merrill@redhat.com>
7257 * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
7258 reference if the target constant is also a SYMBOL_REF.
7260 2001-07-05 Eric Christopher <echristo@redhat.com>
7262 * config/mips/mips.h (MASK_MIPS3900): Remove.
7263 (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
7264 MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
7265 (TARGET_MIPS3900): Change to use mips_arch.
7266 (TARGET_MIPS4000): New.
7267 (TARGET_MIPS4100): New.
7268 (TARGET_MIPS4300): New.
7269 (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
7270 (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
7272 (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
7273 (ISA_HAS_BRANCHLIKELY): To here.
7274 (CC1_CPU_SPEC): New.
7275 (CC1_SPEC): Use here. Remove 4650 and 3900 options.
7276 (mips_arch_string): Declare.
7277 (mips_arch): Declare.
7278 (TARGET_OPTIONS): Add -march and -mtune.
7280 * config/mips/mips.c (mips_arch_string): New.
7282 (override_options): Handle -march for codegen and -mtune
7283 for scheduling. Use mips_arch. Move tx39 target default here.
7284 (mips_parse_cpu): Move error message to override_options.
7286 * config/mips/r3900.h (TARGET_DEFAULT): Remove.
7288 * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
7290 * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
7291 (MIPS Options): Ditto. Change mcpu entry to historical text.
7293 2001-07-05 H.J. Lu (hjl@gnu.org)
7295 * config/mips/mips.c (mips_parse_cpu): New function to parse
7298 2001-07-05 Jim Wilson <wilson@redhat.com>
7300 * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
7301 * config/ia64/t-ia64: Likewise.
7302 (LIB1ASMFUNCS): Update comment.
7304 2001-07-05 David Edelsohn <edelsohn@gnu.org>
7306 * doc/install.texi (Install GCC: Binaries): Fix typo.
7308 2001-07-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7310 * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
7311 reference using the stack pointer, adjust it since we push Y
7313 ("*ashrsi3"): Likewise.
7314 ("*lshrsi3"): Likewise.
7316 2001-07-05 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7318 * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
7319 when -fomit-frame-pointer is used.
7321 2001-07-05 Jeffrey Oldham <oldham@codesourcery.com>
7323 * flow.c: Reverse Jan Hubicka's patch of 02July2001.
7324 (try_redirect_by_replacing_jump): Reverse updating properly the
7325 count and frequency information. Reverse removing cc0 setter.
7326 (forwarder_block_p): Reverse fixing for fallthru blocks.
7328 2001-07-05 DJ Delorie <dj@redhat.com>
7330 * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
7331 (translate_options): If the above is defined, use it to map
7332 given options to new options.
7333 * doc/tm.texi: Document it.
7335 2001-07-05 Brad Lucier <lucier@math.purdue.edu>
7336 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7338 * doc/invoke.texi (Optimize Options): Document that -fgcse may
7339 cause programs using computed gotos to run more slowly.
7341 2001-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7343 * doc/install.texi (Specific): Markup, spelling and typo fixes.
7345 Consistently require binutils 2.11.2, not prereleases.
7346 (Specific, decstation-*): Canonicalize as mips-dec-*.
7347 (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
7349 (Specific, m68k-altos): Removed reference to README.altos, deleted.
7350 (Specific, mips-*): Reword MIPS C compiler requirements.
7351 (Specific, powerpc*-*-*): New, mention --with-cpu once.
7352 (Specific, sunv5): Removed, obsolete.
7354 2001-07-05 Nathan Sidwell <nathan@codesourcery.com>
7356 * dwarf2out.c (output_loc_list): Use an all ones mask for
7357 .text asm output and don't rely on long long
7358 literals. Reformat some long lines.
7360 2001-07-05 Andreas Jaeger <aj@suse.de>
7362 * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
7365 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
7367 * dwarf2out.c (dwarf2out_define): Update comment.
7368 (dwarf2out_undef): Ditto.
7369 (dwarf2out_start_source_file): Ditto.
7370 (dwarf2out_end_source_file): Ditto.
7371 (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
7372 since we never call the start/end debug hook for the primary file.
7374 2001-07-04 Kazu Hirata <kazu@hxi.com>
7376 * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
7379 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
7381 * cppinit.c (remove_dup_dirs): Inform if a system include
7382 directory is being reordered.
7383 * doc/invoke.texi (Directory Options): GCC warns if you hide a
7385 * doc/cpp.texi (Search Paths): Likewise.
7386 * doc/gcc.texi (Interoperation): Remove information about
7389 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
7391 * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
7392 (VARRAY_TOP_CHAR_PTR): Likewise.
7394 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7396 * gcc.c (process_command): Don't assign elements of a const char*.
7398 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7400 * emit-rtl.c (change_address): Don't abort if invalid address while
7401 reload is in progress.
7403 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
7405 * c-lex.c (cb_file_change): Pass line number to
7406 debug_start_source_file.
7407 (cb_undefine): Pass correct line number to debug_undef.
7409 * toplev.c (debug_start_source_file): Add line number to
7410 parameters. Pass it along to dwarf2out_start_source_file.
7411 (decode_g_option): Stop resetting debug level back to normal when
7412 we change debug formats, unless the current level is
7413 none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
7416 * toplev.h (debug_start_source_file): Add line number to
7419 * dwarf2out.h (dwarf2out_start_source_file): Add line number to
7422 * dwarf2out.c (dwarf2out_start_source_file): Add line number to
7424 Output debug_macinfo data for starting file if requested.
7425 (dwarf2out_end_source_file): Output debug_macinfo data for ending
7427 (dwarf2out_define): Output debug_macinfo data for defining a macro
7429 (dwarf2out_undef): Output debug_macinfo data for undefining a
7431 (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
7432 (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
7433 (macinfo_section_label): New. DWARF2 macro info section label.
7434 (dwarf2out_init): If we want macro info, output the start label
7436 (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
7437 attribute to the compilation unit die pointing to the macro info.
7439 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
7441 * dwarf2out.c (new_loc_list): Move to inside #ifdef
7442 DWARF2_DEBUGGING_INFO.
7443 (add_loc_descr_to_loc_list): Ditto.
7444 (output_loc_list): Ditto.
7445 Also, fix thinko in curr not being initialized.
7446 (gen_internal_sym): Ditto.
7448 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7450 * emit-rtl.c (replace_equiv_address): New function.
7451 * expr.h (replace_equiv_address): New declaration.
7452 * explow.c (validize_mem): Call it instead of change_address and
7453 also call if -fforce-addr and address is constant.
7454 * expr.c: Replace more calls to change_address with adjust_address
7455 and/or replace_equiv_address or to validize_mem.
7456 * function.c, regmove.c, config/alpha/alpha.c: Likewise.
7457 * config/arm/arm.md, config/clipper/clipper.md: Likewise.
7458 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
7459 * config/i370/i370.md, config/i860/i860.md: Likewise.
7460 * config/i960/i960.md, config/mips/mips.c: Likewise.
7461 * config/mips/mips.md, config/pa/pa.md: Likewise.
7462 * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
7463 * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
7465 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7467 * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
7469 * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
7472 2001-07-04 Joseph S. Myers <jsm28@cam.ac.uk>
7474 * doc/include: New directory.
7475 * doc/fdl.texi: Move to doc/include/fdl.texi.
7476 * doc/texinfo.tex: Move to doc/include/texinfo.tex.
7477 * doc/include/funding.texi, doc/include/gpl.texi: New files.
7478 * doc/gcc.texi: Use funding.texi and gpl.texi.
7479 * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
7480 $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
7481 Update dependencies and use -I $(docdir)/include.
7483 2001-07-04 Anthony Green <green@redhat.com>
7485 * config/v850/t-v850 (v850-c.o): Add missing dependencies.
7487 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7489 * doc/install.texi (sparc64-*-*): Remove garbage.
7491 Wed Jul 4 09:07:44 2001 Jan van Male <jan.vanmale@fenk.wau.nl>
7493 * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
7494 Fix typo in last change to use adjust_address.
7496 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7498 * doc/install.texi (Specific): Update information for *-*-solaris*.
7500 Tue Jul 3 22:33:15 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7502 * explow.c (plus_constant_wide): Reinitialize Y for restart.
7504 2001-07-03 Stan Shebs <shebs@apple.com>
7506 * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
7507 case for flag_no_mach_text_sections.
7508 (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
7509 * config/darwin.c (flag_no_mach_text_sections): Remove.
7510 * config/darwin-protos.h (darwin_init_pragma): Remove decl.
7512 Tue Jul 3 15:35:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7514 * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
7515 and avoid checking for constant as first operand.
7516 * recog.c (find_constant_term_loc): No longer static.
7517 (adj_offettable_operand): Delete.
7518 * rtl.h (adj_offsettable_operand): Delete declaration.
7519 (find_constant_term): Add declaration.
7520 * caller-save.c: Replace calls to adj_offsettable_operand with calls
7522 * config/arm/arm.c, config/c4x/c4x.c: Likewise.
7523 * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
7524 * config/i386/i386.c, config/i386/i386.md: Likewise.
7525 * config/i860/i860.c, config/i960/i960.c: Likewise.
7526 * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
7527 * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
7528 * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
7529 * config/mips/mips.c, config/mips/mips.md: Likewise.
7530 * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
7531 * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
7532 * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
7533 * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
7534 * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
7535 * config/ns32k/ns32k.md: Likewise.
7537 2001-07-03 Zack Weinberg <zackw@stanford.edu>
7539 * rtl.c (copy_rtx): Handle 'T' format letter.
7540 * gensupport.c (collect_insn_data): Likewise.
7541 * print-rtl.c (print_rtx): Print 'T' slots like 's'.
7543 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
7545 * doc/invoke.texi (Directory Options): Specifiy range for <N> in
7546 -B option. Use 'dir' not 'foo' as example directory name.
7548 2001-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7550 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7551 Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
7553 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
7555 * doc/cppinternals.texi: Improve formatting and logical markup.
7557 2001-07-03 Andreas Jaeger <aj@suse.de>
7559 * Makefile.in (insn-recog.o): Add dependency on reload.h.
7561 * genrecog.c (write_header): Include reload.h for prototypes in
7564 2001-07-03 Neil Booth <neil@daikokuya.demon.co.uk>
7567 * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
7568 VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
7569 * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
7570 i386_pe_valid_type_attribute_p): Add.
7571 * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
7572 * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
7574 Mon Jul 2 21:52:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7576 * explow.c (plus_constant_wide, case LO_SUM): New case.
7577 (plus_constant_for_output_wide): Delete.
7578 * rtl.h (plus_constant_for_output): Delete.
7579 * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
7580 instead of plus_constant_for_output.
7581 * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
7582 * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
7583 * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
7584 * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
7585 * config/sparc/sparc.md: Likewise.
7586 Convert some change_address calls to adjust_address.
7588 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
7590 * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
7591 doc/rtl.texi, doc/tm.texi: Improve formatting. Improve
7592 documentation of -std and -Wwrite-strings.
7594 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
7596 * cse.c (canon_hash): Don't register registers in very small
7597 register classes, as extending their lifetime might cause
7600 Mon Jul 2 23:14:00 CEST 2001 Jan Hubicka <jh@suse.cz>
7602 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
7604 * flow.c (forwarder_block_p): Fix for fallthru blocks.
7605 (try_redirect_by_replacing_jump): Update properly the count
7606 and frequency information.
7608 Mon Jul 2 14:20:13 2001 Jeffrey A Law (law@cygnus.com)
7610 * toplev.c (dump_file_index): Move SSA dumps just after first
7612 (dump_file): Corresponding changes.
7613 (rest_of_compilation): Move SSA path to just after the first
7615 * doc/gcc.texi (Passes): Update due to movement of SSA path.
7616 * doc/invoke.texi: Update dump file #s as they were completely
7617 out of date with reality.
7619 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
7621 * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
7623 * expr.c (emit_move_insn_1): Deal with non-default
7626 * expr.c (emit_single_push_insn): Fix warning.
7628 2001-07-02 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
7630 * expr.c (emit_move_insn_1): Avoid modifying
7631 cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
7633 Mon Jul 2 15:33:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7635 * emit-rtl.c (adjust_address): New function.
7636 * expr.h (adjust_address): Add declaration.
7637 * builtins.c: Replace some calls to change_address with calls to it
7639 * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
7640 * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
7641 * config/arm/arm.c, config/convex/convex.c: Likewise.
7642 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
7643 * config/i386/i386.c, config/i386/i386.md: Likewise.
7644 * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
7645 * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
7646 * config/m88k/m88k.c, config/mips/mips.md: Likewise.
7647 * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
7648 * config/sh/sh.c, config/sparc/sparc.md: Likewise.
7650 2001-07-02 Jim Wilson <wilson@redhat.com>
7652 * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
7654 2001-07-02 Steve Ellcey <sje@cup.hp.com>
7656 * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
7657 * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
7659 2001-07-02 Zack Weinberg <zackw@stanford.edu>
7661 * cppinit.c (lang_defaults): New table.
7662 (set_lang): Just read from lang_defaults into the live options
7665 2001-07-02 Zack Weinberg <zackw@stanford.edu>
7667 * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
7668 * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
7669 * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
7671 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7673 * doc/install.texi: Various spelling and markup fixes.
7674 (Installing GCC): Component specific installation instructions are
7677 Warn about removing old install dir in the presence of shared libs.
7678 (Configuration): Invoke with options target to match configure
7680 Consistently refer to gas, gld pathnames.
7681 Invert --enable-multilib documentation.
7682 Remove references to old compiler versions.
7684 Mon Jul 2 12:50:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7686 * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
7688 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7690 * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
7692 (Specific, mips*-sgi-irix5): Note IDO download.
7693 Reworded MIPS C hints.
7694 Use GNU as instead of GAS.
7696 Removed SGI Freeware reference, IRIX 6 only.
7697 (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
7698 Note N64 library requirement/workaround.
7700 Complete list of structure passing bug victims.
7702 2001-07-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7704 * doc/install.texi: Remove CVS Id.
7706 2001-07-02 Andreas Jaeger <aj@suse.de>
7708 * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
7709 (find_inherently_necessary): Remove unused variable.
7711 2001-07-02 Nathan Sidwell <nathan@codesourcery.com>
7713 * c-common.h (TDI_inlined): New ast dump phase.
7714 (dump_flag_name): New function.
7715 * c-dump.c (dump_files): Add inlined phase.
7716 (dump_flag_name): Define.
7717 * doc/invoke.texi (-fdump-ast-inlined): Document.
7719 Mon Jul 2 06:29:36 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7721 * stor-layout.c (layout_decl): Revert change to handling of alignment
7724 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7726 * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
7729 2001-07-01 Geoffrey Keating <geoffk@redhat.com>
7731 * doc/tm.texi (FUNCTION_ARG): Document that the last call
7734 2001-07-01 Nathan Sidwell <nathan@codesourcery.com>
7736 * tlink.c (recompile_files): Remove COMPILER_PATH and
7737 LIBRARY_PATH from the environment.
7739 2001-07-01 Zack Weinberg <zackw@stanford.edu>
7741 * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
7742 RID_LAST_PQ. Move RID_FIRST_PQ down with the other FIRST/LAST
7744 (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
7746 * c-parse.in (OBJC_STRING): Kill.
7747 (objc_string): Decompose to [objc_string] '@' STRING.
7748 (reswords): Take the leading '@' off all the Objective C keywords.
7749 (objc_rid_sans_at): Kill.
7750 (init_reswords): Don't initialize it.
7751 (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
7752 (_yylex): Kill reconsider label. Look ahead one token after
7753 an '@'; if we get an identifier, check whether it's an
7754 Objective C @-keyword. If so, return the keyword. Otherwise,
7755 put back the token and return the '@' as a terminal.
7757 * cpplib.c (lex_macro_node): Remove unnecessary check for
7758 leading '@' on identifier. Clarify control flow and commentary.
7760 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7762 * cse.c (new_label_ref): Variable deleted.
7763 (insert): Remove set of new_label_ref.
7764 (check_for_label_ref): New function.
7765 (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
7767 See ChangeLog.5 for earlier changes.