OSDN Git Service

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