* final.c: Fix formatting.
[official-gcc.git] / gcc / ChangeLog
blob13d793746b66d1ce4ca7b1428641cace74b708de
1 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
3         * final.c: Fix formatting.
4         * fix-header.c: Likewise.
5         * flow.c: Likewise.
6         * fold-const.c: Likewise.
7         * function.c: Likewise.
9 2002-05-17  David S. Miller  <davem@redhat.com>
11         PR c/6689, PR optimization/6615
12         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
13         and make it a pointer to rtx.  Update comments.
14         (update_equiv_regs): When scanning for equivalences, record
15         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
16         it while making the equiv replacements.
18 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
22 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
24         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
25         when encoding visibility into SYMBOL_REF_FLAG.
27 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
29         * expr.c (force_operand): Fix reversed move.
31 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
33         * doc/install.texi (Testing): Mention two common DejaGnu warnings
34         that can be ignored.
36 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
38         * doc/install.texi (Final install): Recommend to install into a
39         "clean" target directory.
41 2002-05-17  Richard Henderson  <rth@redhat.com>
43         * config/ia64/ia64.md: Use braced strings instead of quoted strings
44         for code blocks.  Tidy whitespace.
46 2002-05-17  Richard Henderson  <rth@redhat.com>
48         * hooks.c (hook_tree_bool_false): New.
49         * hooks.h: Declare it.
50         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
51         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
52         * target.h (select_section, unique_section): New.
53         (in_small_data_p): New.
54         * varasm.c (resolve_unique_section): Use hooks instead of macros.
55         (variable_section, output_constant_def_contents): Likewise.
56         (default_select_section, default_unique_section): New.
57         (categorize_decl_for_section, default_elf_select_section): New.
58         * output.h: Declare them.
60         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
61         (TARGET_ASM_SELECT_SECTION): New.
62         (SELECT_SECTION): Move ...
63         * config/darwin.c (machopic_select_section): ... here.
64         * config/darwin-protos.h: Update.
66         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
67         (SELECT_SECTION): Move ...
68         * config/nextstep.c (nextstep_select_section): ... here.
69         * config/nextstep-protos.h: Update.
71         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
72         (TARGET_ASM_SELECT_SECTION): New.
73         * config/svr3.h (SELECT_SECTION): Remove.
75         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
76         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
77         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
78         (alpha_encode_section_info): Use it.
79         * config/alpha/alpha-protos.h: Update.
80         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
81         (SELECT_SECTION, UNIQUE_SECTION): Remove.
82         (TARGET_ASM_SELECT_SECTION): New.
83         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
85         * config/arm/pe.h (UNIQUE_SECTION): Remove.
86         (TARGET_ASM_UNIQUE_SECTION): New.
88         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
89         (avr_unique_section): Rename from unique_section; make static.
90         * config/avr/avr-protos.h: Update.
91         * config/avr/avr.h (UNIQUE_SECTION): Remove.
93         * config/c4x/c4x.h (SELECT_SECTION): Remove.
95         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
96         (TARGET_ASM_UNIQUE_SECTION): New.
97         * config/i386/i386-interix.h: Likewise.
98         * config/i386/win32.h: Likewise.
99         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
100         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
101         * config/i386/sco5.h (SELECT_SECTION): Remove.
102         (TARGET_ASM_SELECT_SECTION): New.
103         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
105         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
106         instead of SELECT_SECTION.
107         * config/m68k/dpx2.h: Likewise.
108         * config/rs6000/lynx.h: Likewise.
110         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
111         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
112         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
113         (ia64_in_small_data_p): New.
114         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
115         (ia64_aix_select_section, ia64_aix_unique_section): New.
116         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
117         (SELECT_SECTION, UNIQUE_SECTION): Remove.
119         * config/m32r/m32r.h (SELECT_SECTION): Remove.
120         (TARGET_ASM_SELECT_SECTION): New.
121         * config/m32r/m32r.c (m32r_select_section): Take align argument.
122         * config/m32r/m32r-protos.h: Update.
124         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
125         (SELECT_SECTION): Move ...
126         * config/m88k/m88k.c (m88k_select_section): ... here.
128         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
129         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
130         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
131         (mcore_unique_section): Make static.
132         * config/mcore/mcore-protos.h: Update.
134         * config/mips/elf.h (UNIQUE_SECTION): Remove.
135         (TARGET_ASM_UNIQUE_SECTION): New.
136         * config/mips/elf64.h: Likewise.
137         * config/mips/iris6gld.h: Likewise.
138         * config/mips/linux.h: Likewise.
139         * config/mips/mips-protos.h: Update.
140         * config/mips/mips.c (mips_select_section): Add align argument.
141         * config/mips/mips.h (SELECT_SECTION): Remove.
142         (TARGET_ASM_SELECT_SECTION): New.
144         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
145         * config/mmix/mmix.c (mmix_select_section): Remove.
146         (mmix_unique_section): Remove.
147         * config/mmix/mmix-protos.h: Update.
149         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
150         (SELECT_SECTION): Move ...
151         * config/pa/pa.c (pa_select_section): ... here.
152         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
154         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
155         from rs6000_select_section and make static.
156         (rs6000_elf_unique_section): Similarly.
157         (rs6000_xcoff_select_section): From xcoff.h.
158         (rs6000_xcoff_unique_section): Likewise.
159         * config/rs6000/rs6000-protos.h: Update.
160         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
161         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
162         * config/rs6000/xcoff.h: Likewise.
164         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
165         (SELECT_SECTION): Move ...
166         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
168         * config/v850/v850.h (SELECT_SECTION): Move ...
169         * config/v850/v850.c (v850_select_section): ... here.
170         (TARGET_ASM_SELECT_SECTION): New.
172         * config/vax/vms.h (SELECT_SECTION): Move ...
173         * config/vax/vax.c (vms_select_section): ... here.
174         (TARGET_ASM_SELECT_SECTION): New.
176         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
177         for the target hooks.
179 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
181         * config/arm/arm.c (emit_multi_reg_push): Do not set
182         RTX_FRAME_RELATED_P on the SEQUENCE.
184 2002-05-16  Richard Henderson  <rth@redhat.com>
186         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
187         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
189 2002-05-16  Richard Henderson  <rth@redhat.com>
191         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
193         * config/ia64/ia64.c (saveable_obstack): Do not declare.
195 2002-05-16  Richard Henderson  <rth@redhat.com>
197         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
198         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
199         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
200         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
201         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
202         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
203         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
204         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
205         Revert "Basic block renumbering removal", and two followup patches.
207 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
209         * lcm.c (optimize_mode_switching): Revert previous change.
211 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
213         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
214         with only extant block numbers.
216 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
218         * lcm.c (optimize_mode_switching): Fix typo.
220 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
222         * flow.c (calculate_global_regs_live): Queue blocks in program order.
224 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
226         * doc/install.texi (Configuration): Document PWDCMD.
228 2002-05-16  Dale Johannesen  <dalej@apple.com>
230         * combine.c (cant_combine_insn_p):  Reenable combinations
231         involving hard regs unless CLASS_LIKELY_SPILLED_P.
233 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
235         * c-common.c (cb_register_builtins): Handle more built-ins
236         here rather than in gcc.c specs.
237         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
238         (cpp_options): Pass -O flags even when only preprocessing.
239         * toplev.c (set_fast_math_flags): New prototype.
240         (fast_math_flags_set_p): New.
241         (set_no_fast_math_flags): Remove.
242         (decode_f_option): Update.
243         * toplev.h (set_fast_math_flags): Update.
244         (fast_math_flags_set_p): New.
245         (set_no_fast_math_flags): Remove.
246 config:
247         * c4x/c4x.c (c4x_override_options): Update.
249 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
251         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
252         Default-define here.
253         (builtin_define_with_value): Can now wrap the expansion in
254         quotation marks if such is wanted.
255         (cb_register_builtins): Update calls to builtin_define_with_value.
256         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
257         here.
258         (c_common_init): Set options->stdc_0_in_system_headers.
259         * c-lex.h: Update prototype of builtin_define_with_value.
260         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
261         and REGISTER_PREFIX.
263         * cppinit.c (VERS, ULP, C, X): Kill.
264         (builtin_array): Remove entries for __VERSION__,
265         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
266         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
267         a constant.
268         (init_builtins): Kill off a bunch of now-dead code.
269         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
270         -fno-leading-underscore.
271         (cpp_handle_option): Remove code to set user_label_prefix.
272         (cpp_post_options): Likewise.
274         * cpplib.h (struct cpp_options): Remove user_label_prefix.
275         (stdc_0_in_system_headers): New.
276         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
277         stdc_0_in_system_headers) too to decide the value of __STDC__.
279         * tradcpp.c (user_label_prefix): Kill.
280         (main): Remove code handling -f(no-)leading-underscore.
281         (initialize_builtins): Don't define __REGISTER_PREFIX__
282         or __USER_LABEL_PREFIX__.
283         (install_value): Wrap compound statement in dummy loop so the
284         macro works properly in an if statement.
287 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
289         * loop.h (struct loop_info): Add member has_prefetch.
290         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
291         (prescan_loop): Initialize has_prefetch.
292         (struct prefetch_info): Change prefetch_in_loop and
293         prefetch_before_loop from bit fields to ints.
294         (emit_prefetch_instructions): Several small fixes.
295         (check_dbra_loop): Don't reverse loop that uses prefetch.
297 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
299         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
300         * configure.in: Likewise.
301         * fixinc/check.tpl: Likewise.
302         * fixinc/fixinc.dgux: Likewise.
303         * fixinc/fixinc.svr4: Likewise.
304         * fixinc/fixinc.winnt: Likewise.
305         * fixinc/fixincl.sh: Likewise.
306         * fixproto: Likewise.
307         * configure: Regenerate.
309 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
311         Basic block renumbering removal:
312         * basic_block.h (struct basic_block_def): Renamed index to sindex,
313         added prev_bb and next_bb fields.
314         (n_basic_blocks): Renamed to num_basic_blocks.
315         (last_basic_block): New, index of last basic block.
316         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
317         traversing basic block chain.
318         (BLOCK_NUM): index -> sindex.
319         (create_basic_block_structure, create_basic_block): Declaration changed.
320         (debug_num2bb): Declare.
321         (expunge_block_nocompact): Declaration removed.
322         (link_block, unlink_block, compact_blocks): Declare.
323         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
324         * cfg.c (entry_exit_blocks): Initialize new fields.
325         (clear_edges, alloc_block, expunge_block, cached_make_edge,
326         redirect_edge_pred, dump_flow_info, dump_edge_info,
327         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
328         free_aux_for_edges): Modified.
329         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
330         (expunge_block_nocompact): Removed.
331         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
332         find_unreachable_blocks, create_edge_list, print_edge_list,
333         verify_edge_list, flow_edge_list_print, remove_fake_successors,
334         remove_fake_edges, flow_reverse_top_sort_order_compute,
335         flow_depth_first_order_compute, flow_preorder_transversal_compute,
336         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
337         flow_dfs_compute_reverse_execute): Modified.
338         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
339         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
340         Modified.
341         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
342         merge_blocks_move_predecessor_nojumps,
343         merge_blocks_move_successor_nojumps, merge_blocks,
344         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
345         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
346         * cfglayout.c (skip_insns_after_block, label_for_bb,
347         record_effective_endpoints, scope_to_insns_finalize,
348         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
349         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
350         cfg_layout_duplicate_bb): Modified.
351         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
352         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
353         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
354         flow_loops_find, flow_loop_outside_edge_p): Modified.
355         * cfgrtl.c (create_basic_block_structure, create_basic_block,
356         flow_delete_block, compute_bb_for_insn, split_block,
357         try_redirect_by_replacing_jump, redirect_edge_and_branch,
358         force_nonfallthru_and_redirect, tidy_fallthru_edge,
359         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
360         commit_edge_insertions, commit_edge_insertions_watch_calls,
361         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
362         purge_all_dead_edges): Modified.
363         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
364         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
365         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
366         Modified.
367         * conflict.c (conflict_graph_compute): Modified.
368         * df.c (FOR_ALL_BBS): Removed.
369         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
370         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
371         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
372         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
373         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
374         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
375         * final.c (compute_alignments, final_scan_insn): Modified.
376         * flow.c (verify_local_live_at_start, update_life_info,
377         update_life_info_in_dirty_blocks, free_basic_block_vars,
378         delete_noop_moves, calculate_global_regs_live,
379         initialize_uninitialized_subregs, allocate_bb_life_data,
380         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
381         mark_used_reg, count_or_remove_death_notes): Modified.
382         * function.c (thread_prologue_and_epilogue_insns): Modified.
383         * gcse.c (struct null_pointer_info): Change typo of current_block
384         to basic_block.
385         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
386         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
387         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
388         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
389         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
390         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
391         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
392         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
393         pre_delete, one_pre_gcse_pass, compute_transpout,
394         invalidate_nonnull_info, delete_null_pointer_checks_1,
395         free_code_hoist_mem, compute_code_hoist_vbeinout,
396         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
397         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
398         compute_store_table, build_store_vectors, insert_insn_start_bb,
399         insert_store, replace_store_insn, free_store_memory, store_motion):
400         Modified.
401         * global.c (global_alloc, global_conflicts, mark_elimination,
402         build_insn_chain): Modified.
403         * graph.c (print_rtl_graph_with_bb): Modified.
404         * haifa-sched.c (sched_init): Modified.
405         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
406         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
407         if_convert): Modified.
408         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
409         compute_insert_delete, pre_edge_lcm, compute_available,
410         compute_farthest, compute_nearerout, compute_rev_insert_delete,
411         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
412         Modified.
413         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
414         * loop.c (loop_dump_aux): Modified.
415         * predict.c (combine_predictions_for_insn, estimate_probability,
416         last_basic_block_p, process_note_prediction, process_note_predictions,
417         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
418         expensive_function_p, estimate_bb_frequencies,
419         compute_function_frequency): Modified.
420         * print-rtl.c (print_rtx): Modified.
421         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
422         get_exec_counts, compute_branch_probabilities, compute_checksum,
423         branch_prob, find_spanning_tree): Modified.
424         * recog.c (split_all_insns, peephole2_optimize): Modified.
425         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
426         convert_regs_1, convert_regs_2, convert_regs): Modified.
427         * regclass.c (scan_one_insn, regclass): Modified.
428         * regmove.c (mark_flags_life_zones, regmove_optimize,
429         combine_stack_adjustments): Modified.
430         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
431         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
432         * reorg.c (dbr_schedule): Modified.
433         * resource.c (find_basic_block, init_resource_info): Modified.
434         * sbitmap.c (sbitmap_intersection_of_succs,
435         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
436         sbitmap_union_of_preds): Modified.
437         * sched-deps.c (init_dependency_caches): Modified.
438         * sched-ebb.c (schedule_ebbs): Modified.
439         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
440         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
441         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
442         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
443         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
444         ssa_const_prop): Modified.
445         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
446         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
447         * ssa.c (remove_phi_alternative, find_evaluations,
448         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
449         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
450         make_regs_equivalent_over_bad_edges,
451         make_equivalent_phi_alternatives_equival,
452         compute_conservative_reg_partition,
453         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
454         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
455         Modified.
457 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
459         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
461 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
463         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
464         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
465         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
466         calling CONSTANT_POOL_ADDRESS_P.
467         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
468         to decide whether to define __arm__ or __thumb.
469         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
470         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
472 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
474         * config/arc/arc.h (CPP_PREDEFINES): Remove.
475         (CPP_SPEC): Update.
476         (TARGET_CPU_CPP_BUILTINS): New.
478 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
480         * cpphash.h (cpp_macro): Move here, and make expansion a union.
481         * cppmacro.c (cpp_macro): Remove.
482         (enter_macro_context, replace_args, warn_of_redefinition,
483         _cpp_create_definition, cpp_macro_definition): Update.
485 2002-05-16  Jason Merrill  <jason@redhat.com>
487         * config/mips/mips.c (mips_output_external): Don't do sdata
488         optimization for a variable with DECL_COMDAT set.
490 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
492         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
493         Cleanups for accepting modifiers on pointers.
494         Fix predicate typos.
495         Allow long pointers as well as int pointers.
497 2002-05-15  Richard Henderson  <rth@redhat.com>
499         * varasm.c (merge_weak): Remove special case for extern and common.
501 2002-05-15  Matt Hiller  <hiller@redhat.com>
503         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
504         XFAILing.
505         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
506         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
507         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
508         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
509         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
510         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
512 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
514         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
516 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
518         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
519         ("altivec_mfvscr"): Read from VSCR.
521         Add vscr sets for the following insns: altivec_vctuxs,
522         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
523         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
524         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
525         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
526         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
527         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
528         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
529         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
530         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
531         altivec_vsum2sws, altivec_vsumsws.
533         * config/rs6000/rs6000.h: Add VSCR fixed register.
534         (CALL_REALLY_USED_REGISTERS): Add vscr.
535         (CALL_USED_REGISTERS): Same.
536         (FIXED_REGISTERS): Same.
537         (REG_ALLOC_ORDER): Same.
538         (reg_class): Add VSCR_REGS.
539         (REG_CLASS_NAMES): Same.
540         (REG_CLASS_CONTENTS): Same.
541         (VSCR_REGNO): New.
542         (REGISTER_NAMES): Add vscr.
543         (DEBUG_REGISTER_NAMES): Same.
544         (ADDITIONAL_REGISTER_NAMES): Same.
545         (FIRST_PSEUDO_REGISTER): Increment.
546         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
548 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
550         * fold-const.c (fold): Fix a typo.
552 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
554         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
555         comparison against the highest or lowest integer value before
556         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
557         transformation and that of an unsigned comparison against 0
558         right after.
560 2002-05-15  Richard Henderson  <rth@redhat.com>
562         * varasm.c (merge_weak): Error for any weakening after definition.
563         Adjust weakening after use warning to catch more cases.
564         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
565         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
567 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
569         * invoke.texi (-malign-double): Re-add lost warning.
571         * i386-protos.h (x86_output_mi_thunk): Declare.
572         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
573         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
575         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
576         when flag_asynchronous_unwind_tables is set.
578         * flags.h (flag_reorder_functions): Declare.
579         * function.c (prepare_function_start): Initialize frequnecy.
580         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
581         * Makefile.in (predict.o): Add dependency on target.h and params.h
582         * defaults.h (HOT_TEXT_SECTION_NAME,
583         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
584         * predict.c (choose_function_section): New function.
585         (estimate_bb_frequencies): Use it.
586         * toplev.c (flag_reorder_functions): New global variable.
587         (lang_independent_options): New.
588         (parse_options_and_default_flags): Set.
589         * varasm.c (assemble_start_function): Bypass functdion alignment
590         for never executed functions.
591         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
592         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
593         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
594         Document.
596         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
598         * predict.c: Inlude profile.h
599         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
600         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
601         Use the information about maximal counter in the program.
603         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
605         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
606         probably_never_executed_bb_p): New functions.
607         * cfgcleanup.c (outgoing_edges_match): Use them.
608         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
609         (maybe_hot_bb_p, probably_cold_bb_p,
610         probably_never_executed_bb_p): New functions.
612         * function.h (function): Add new field function_frequency.
613         * predict.c (compute_function_frequency): New function.
614         (estimate_probability): Call it.
616 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
618         PR optimization/5172, optimization/5200
619         * gcse.c (gcse_main): Disable store_motion.
621 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
623         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
624         (c_common_nodes_and_builtins): Use it.
625         (builtin_define_with_value): New function.
626         (cb_register_builtins): Define __SIZE_TYPE__,
627         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
628         using builtin_define_with_value.  Use consistent notation when
629         defining __GXX_WEAK__.
630         (WCHAR_TYPE_SIZE): Don't redefine.
631         (combine_strings): Don't use WCHAR_TYPE_SIZE.
633         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
634         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
635         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
636         * tradcpp.c (initialize_builtins): Likewise.
637         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
639         * c-lex.h (builtin_define_with_value): Prototype.
640         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
641         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
642         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
644         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
645         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
646         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
647         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
648         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
649         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
650         config/sparc/sol2-bi.h, config/sparc/sparc.h:
651         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
652         to __SIZE_TYPE__ etc from all spec strings. When this makes
653         extra specs empty, delete them.
655 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
657         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
658         for PA8000 or generating dwarf2 call frame information.
659         (output_call): Remove DO_FRAME_NOTES check from return pointer
660         optimization.
661         (following_call): Return 0 when scheduling for PA8000 or generating
662         dwarf2 call frame information.  Revise comment.
664 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
666 config/alpha:
667         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
668         and __IEEE_FP_INEXACT as appropriate.
669         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
670         (CPP_SPEC): Remove ieee defines.
671         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
673 2002-05-14  Richard Henderson  <rth@redhat.com>
675         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
676         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
678 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
680         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
681         (CPP_SPEC): Update.
682         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
683         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
684         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
685         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
686         (EXTRA_SPECS): Update.
687         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
688         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
689         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
690         define TARGET_OS_CPP_BUILTINS if necessary.
692 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
694         * gcc.c (cpp_options): Must pass -m* and -f* options
695         to the front end even when only preprocessing.
696         (cc1_options): Remove redundant -lang-c.
697         * tradcpp.c (main): Ignore -m options.
698 objc:
699         * lang-specs.h: Similarly.
701 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
703         * genautomata.c (transform_3): Add code for transformation
704         `(A,B,...)+C -> A+C,B,...'.
706 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
708         * final.c (end_final): Do not output profile_arcs constructor, when
709         no functions are instrumented.
711 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
713         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
715 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
717         * doc/install.texi: Remove special markup originally required for
718         HTML generation with texi2html.
720 2002-05-14  Andreas Schwab  <schwab@suse.de>
722         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
723         SELECT_SECTION.
724         (UNIQUE_SECTION): Define to get small data correctly.
726         * varasm.c (resolve_unique_section): Add third parameter
727         flag_function_or_data_sections and use it instead of
728         flag_function_sections.
729         (assemble_start_function): Pass flag_function_sections.
730         (asm_emit_uninitialised): Pass flag_data_sections.
731         (assemble_variable): Likewise.
733 2002-05-14  Richard Henderson  <rth@redhat.com>
735         * config/i386/i386.md: Use define_constants for unspec numbers.
736         * config/i386/i386.c: Likewise.
738 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
740         * doc/contrib.texi: Update my entry.
742 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
744         * fixinc/inclhack.def (winidss_valist): Limit applicability.
745         * fixinc/fixincl.x: Regenerated.
746         * fixinc/tests/base/math.h: Update.
747         * fixinc/tests/base/testing.h: Likewise.
749 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
751         * genattr.c (gen_attr): Don't emit a comma after the last
752         enumerator.
754 2002-05-13  Richard Henderson  <rth@redhat.com>
756         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
757         by non-local gotos.
758         * recog.c (peephole2_optimize): Likewise.
760 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
762         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
763         input to O_BINARY.
765 2002-05-13  Jeffrey A Law  (law@redhat.com)
767         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
768         Update prototype and callers.
769         (propagate_one_insn): Stack pointer adjustments kill MEMs on
770         the mem_set_list which reference the stack pointer, as do
771         calls to constant functions as they may clobber outgoing
772         argument space.
774         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
776         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
777         (ia32_multipass_dfa_lookahead): New function.
779 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
781         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
782         (translate_options): Remove 'V'.
783         (process_command): Similarly.
784 doc:
785         * invoke.texi: Remove documentation of 'V'.
787 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
789         * config/s390/linux.h: Revert 2002-04-22 changes.
791 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
793         * config/fr30/fr30.md: Only allow splits of immediate loads
794         if the destination is a register.
796 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
798         * Makefile.in (c-common.o, cppinit.o): Update.
799         * c-common.c: Include except.h.
800         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
801         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
802         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
803         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
804         CPP_PREDEFINES): Handle here.
805 config:
806         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
807         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
808         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
809         TARGET_OS_CPP_BUILTINS.
810         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
811         (CPP_SPEC, EXTRA_SPECS): Update.
812         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
813         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
814         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
815         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
816         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
817 doc:
818         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
819         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
821 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
823         * emit-rtl.c (global_rtl): Update comment.
824         (const_double_htab, const_double_htab_hash,
825         const_double_htab_hash, lookup_const_double): New.
826         (const_int_htab_hash, const_int_htab_eq): Remove const
827         qualifiers, which cause tons of warnings with RTL checking on.
828         (gen_rtx_CONST_DOUBLE): Deleted.
829         (const_double_from_real_value): New function - bears some
830         resemblance to the former immed_real_const_1.
831         (immed_double_const): Moved here from varasm.c and
832         simplified.
833         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
834         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
835         (gen_rtx): Use immed_double_const.
836         (init_emit_once): Initialize the const_double_htab.  Use
837         REAL_VALUE_FROM_INT where possible.  Can now use
838         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
839         * varasm.c (struct varasm_status): Remove x_const_double_chain.
840         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
841         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
842         (init_varasm_status, mark_varasm_status): Don't touch
843         x_const_double_chain.
845         * output.h: Delete prototype for clear_const_double_mem.
846         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
847         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
848         const_double_from_real_value, not immed_real_const_1, and use
849         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
850         CONST_DOUBLE_ATOF.
851         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
852         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
853         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
854         (gen_rtx_REG): Second arg is unsigned.
856         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
857         (excluded_rtx): New, return true for CONST_DOUBLE.
858         (genmacro): Write nothing for excluded codes.
859         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
860         * expr.c (expand_expr): Likewise.
861         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
862         CONST_DOUBLE_CHAIN.
863         * toplev.c (rest_of_compilation): Don't call
864         clear_const_double_mem.
866         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
867         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
868         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
869         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
870         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
871         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
872         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
873         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
875 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
877         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
879 2002-05-12  Tom Tromey  <tromey@redhat.com>
881         * tree.h (copy_node): Don't mention TREE_PERMANENT.
883 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
885         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
886         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
887         * gensupport.h: Prototype new routines.
888         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
889         use of printf.
890         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
891         (next_comma_elt): Use scan_comma_elt.
893         * config/i386/i386.md: Use new attribute notation to break up
894         long lines in define_attr forms.
896 2002-05-12  Richard Henderson  <rth@redhat.com>
898         * expr.c (compress_float_constant): New.
899         (emit_move_insn): Use it.
900         (float_extend_from_mem): New.
901         (init_expr_once): Initialize it.
902         * real.c (exact_real_truncate): New.
904         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
905         dropped into memory; penalize for size.
906         (RTX_COSTS): FLOAT_EXTEND is free.
907         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
908         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
910 2002-05-12  Richard Henderson  <rth@redhat.com>
912         * profile.h (profile_info): Add missing extern to declaration.
913         * profile.c (profile_info): Define it.
915 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
917         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
918         used for DImode and TImode.
920 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
922         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
923         fake a newline.
925 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
927         * config/rs6000/rs6000.c (rs6000_default_long_calls,
928         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
929         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
930         (rs6000_override_options): Handle -m(no-)longcall.
931         (init_cumulative_args, output_mi_thunk): Check for both
932         longcall and shortcall attributes on the function.
933         (rs6000_attribute_table): Add "shortcall".
934         (rs6000_handle_longcall_attribute): Update comment.
935         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
936         altivec_expand_ternop_builtin): Add default clauses to switches
937         to silence warnings.
939         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
940         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
941         (TARGET_OPTIONS): Add longcall and no-longcall.
943         * config/rs6000/rs6000.md (call_nonlocal_sysv,
944         call_value_nonlocal_sysv): Split by alternatives.  One pair
945         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
946         the call cookie.  The other pair accepts only LR/CTR and has
947         no restriction.
949         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
950         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
951         tmake_file.
952         * config/rs6000/rs6000-c.c: New file.
953         * config/rs6000/t-rs6000-c-rule: New file.
954         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
955         Prototype rs6000_pragma_longcall.
957         * doc/extend.texi: Document shortcall attribute.
958         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
960 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
962         * reorg.c (dbr_schedule): Remove unnecessary test.
964 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
966         * i386.md (testsi to testqi spliters): New.
968         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
970         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
972         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
974         * basic-block.h: New flag EDGE_CAN_FALLTHRU
975         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
976         that can be made fallthru.
978         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
980         * cfglayout.c (cleanup_unconditional_jumps): New static function.
981         (cfg_layout_initialize): Use it.
983 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
985         * config/avr/avr.c (avr_mcu_types): Update supported devices.
986         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
987         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
989 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
991         * dbxout.c: Fix formatting.
992         * dependence.c: Likewise.
993         * df.c: Likewise.
994         * diagnostic.c: Likewise.
995         * doloop.c: Likewise.
996         * dominance.c: Likewise.
997         * doschk.c: Likewise.
998         * dwarf2asm.c: Likewise.
999         * dwarf2out.c: Likewise.
1000         * dwarfout.c: Likewise.
1002 2002-05-10  Richard Henderson  <rth@redhat.com>
1004         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
1005         Convert integers constants as needed.  Replace "nwords" field with
1006         "sizeof_bb".
1007         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
1008         * function.h: Fix typo in comment.
1009         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
1011 2002-05-10  Roger Sayle  <roger@eyesopen.com>
1013         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
1014         into the equivalent (signed char)c > 0.
1016 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
1018         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
1019         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
1020         (struct prefetch_info): Fix spelling of member bytes_accessed.
1021         (emit_prefetch_instructions): Make dump messages more regular;
1022         restructure code to add more dump messages; use new macros for
1023         heuristics. (There are no code generation changes in any of this).
1025 2002-05-10  David S. Miller  <davem@redhat.com>
1027         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
1028         (struct rtx_def): Update unchanging flag comment.
1029         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
1030         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
1031         to be handled to INSN too.
1032         (dbr_schedule): Likewise.
1033         * resource.c (next_insn_no_annul): Likewise.
1035         * cse.c (rtx_cost): Remove multiplication by power of 2 special
1036         casing.
1038 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1040         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
1041         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
1042         (possibly) work around broken /bin/sh.
1044 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1046         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
1047         . as N64/N32 libgcc_s.so subdirs.
1049 2002-05-10  David S. Miller  <davem@redhat.com>
1051         * config/sparc/sparc.md: Use define_constants for unspec numbers.
1053         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
1054         more accurately.
1055         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
1056         comment.
1057         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
1058         * doc/rtl.texi: Document these macros more accurately.
1059         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
1060         JUMP_INSNs and CALL_INSNs.
1061         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
1062         or INSN_FROM_TARGET_P if the code is appropriate.
1064 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1066         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
1067         before using SYMBOL_REF_FLAG (addr).
1069         * config/avr/avr-protos.h (avr_io_address_p): Declare.
1070         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
1071         Make non-static.  Update all callers.
1072         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
1073         New insns to clear/set/test a single bit in I/O address space.
1075 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1077         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
1079 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1081         * Makefile.in: Update.
1082         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
1083         builtin_define_std): New.
1084         (c_common_init): Register CPP builtins callback.
1085         * c-common.h (flag_iso, flag_undef): New.
1086         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
1087         * c-lex.c: Don't include target.h.
1088         (cb_register_builtins): Move to c-common.c.
1089         (init_c_lex): Don't register hook here.
1090         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
1091         (cpp_define, cpp_assert): Remove.
1092         * gcc.c (cc1_options): Pass -undef to front end.
1093         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
1094         (TARGET_INITIALIZER): Update.
1095         * target.h (struct cpp_reader): Don't predeclare.
1096         (struct gcc_target): Remove cpp builtin hook.
1097         * tree.c (default_register_cpp_builtins): Remove.
1098 doc:
1099         * tm.texi: Update.
1101 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1103         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
1105 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1107         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
1108         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
1110 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
1112         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
1113         * config/sparc/libgcc-sparc-glibc.ver: New file.
1114         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
1115         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
1117 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
1119         PR target/6429
1120         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
1121         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
1122         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
1123         base multilibs.
1124         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
1125         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
1126         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1127         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1129 2002-05-09  Richard Henderson  <rth@redhat.com>
1131         * config/ia64/ia64.md: Use define_constants for unspec numbers.
1132         * config/ia64/ia64.c: Likewise.
1134 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
1136         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
1137         (save_restore_insns): Likewise.
1138         (mips_expand_prologue, mips_expand_epilogue): Update callers.
1139         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
1141 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@cygnus.com)
1143         * athlon.md, k6.md, pentium.md, ppro.md): New files.
1144         * i386.md: Move scheduling information into new files.
1146         * i386.md (type attribute): Add "rotate" for rotate insns.
1147         (rotate insns): Set type to "rotate".
1148         (various attributes and function units): Treat rotate like shift.
1149         (pent_pair attribute): Only rotates by one bit position are
1150         pairable.
1151         (sbb insns): Explicitly set pent_pair attribute on a couple
1152         that were missing it.
1154 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
1156         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
1157         make sure that buffer starts on odd word address.
1158         (sh_va_arg): Skip odd fp registers when reading a double precision
1159         value.
1161 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1163         * tree.h (preserve_data, object_permanent_p, type_precision):
1164         Remove.
1166 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1168         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
1169         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
1170 doc:
1171         * cpp.texi: Update for removal of obsolete features.
1173 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
1174                           Jeffrey A Law  (law@redhat.com)
1176         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
1177         the DFA interface for Pentium processors.
1178         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
1179         (attr_pent_pair, ix86_pent_find_pair): Remove.
1180         (ix86_sched_reorder_pentium): Remove.
1181         (ix86_sched_reorder): Remove reordering for Pentium.
1182         * i386.md (Pentium scheduling): Rewrite using DFA description.
1184 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
1186         * cfganal.c (can_fallthru): Fix fast path.
1187         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
1188         with edges to the next block.
1190 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
1191                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
1193         * final.c (end_final): Use C trees to output data structures for profiling.
1195         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
1196         (profile.o): New dependency profile.h
1197         (final.o): New dependency profile.h
1198         * profile.h: New file. New global structure profile_info.
1199         * final.h (count_edges_instrumented_now): Declare.
1200         (current_function_cfg_checksum): Declare.
1201         (function_list): New structure.
1202         (functions_head, functions_tail): New static variables.
1203         (end_final): Emits more data, removed some -ax stuff.
1204         (final): Stores function names and chcksums.
1205         * gcov-io.h (__write_gcov_string): New function.
1206         (__read_gcov_string): New function.
1207         * gcov.c (read_profile): New function.
1208         (create_program_flow_graph): Uses read_profile instead of reading
1209         da_file.
1210         (read_files): Removed da_file checking, it's done by read_profile now.
1211         * libgcc2.c (bb_function_info): New structure.
1212         (bb): New field in structure, removed some -ax stuff.
1213         (__bb_exit_func): Changed structure of da_file.
1214         * profile.c (count_edges_instrumented_now): New global variable.
1215         (current_function_cfg_checksum): New global variable.
1216         (max_counter_in_program): New global variable.
1217         (get_exec_counts): New function.
1218         (compute_checksum): New function.
1219         (instrument_edges): Sets count_edges_instrumented_now.
1220         (compute_branch_probabilities): Uses get_exec_counts instead of
1221         reading da_file.
1222         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
1223         (init_branch_prob): Removed da_file checking, done in get_exec_counts
1224         now.
1225         (end_branch_prob): Removed da_file checking, done in get_exec_counts
1226         now.
1227         * gcov.texi: Updated information about gcov file format.
1229 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
1231         * sbitmap.c: Fix formatting.
1232         * scan.c: Likewise.
1233         * scan-decls.c: Likewise.
1234         * sched-deps.c: Likewise.
1235         * sched-ebb.c: Likewise.
1236         * sched-rgn.c: Likewise.
1237         * sched-vis.c: Likewise.
1238         * sdbout.c: Likewise.
1239         * sibcall.c: Likewise.
1240         * simplify-rtx.c: Likewise.
1241         * ssa.c: Likewise.
1242         * ssa-ccp.c: Likewise.
1243         * ssa-dce.c: Likewise.
1244         * stmt.c: Likewise.
1245         * stor-layout.c: Likewise.
1246         * stringpool.c: Likewise.
1248 2002-05-09  David S. Miller  <davem@redhat.com>
1250         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
1252 2002-05-07  David S. Miller  <davem@redhat.com>
1254         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
1255         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
1256         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
1257         library implementation clobbers the output before the inputs
1258         are fully consumed, use stack temporary for the output.
1260 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
1262         * config/netbsd.h (CPP_SPEC): Remove.
1263         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
1264         * config/i386/netbsd.h (CPP_SPEC): Define.
1265         * config/ns32k/netbsd.h (CPP_SPEC): Define.
1266         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
1267         * config/sparc/netbsd.h (CPP_SPEC): Define.
1268         * config/vax/netbsd.h (CPP_SPEC): Define.
1270 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
1272         * read-rtl.c: Fix formatting.
1273         * real.c: Likewise.
1274         * recog.c: Likewise.
1275         * regclass.c: Likewise.
1276         * regmove.c: Likewise.
1277         * reg-stack.c: Likewise.
1278         * reload1.c: Likewise.
1279         * reload.c: Likewise.
1280         * resource.c: Likewise.
1281         * rtlanal.c: Likewise.
1282         * rtl.c: Likewise.
1283         * rtl-error.c: Likewise.
1285 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1287         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
1288         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
1290 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
1292         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
1293         use __SSE2__ macro instead.
1294         * config/i386/xmmintrin.h: Likewise.
1296 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
1298         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
1299         and use it in all invocations of these macros.  Clean up comments.
1300         * rtl.c (rtl_check_failed_flag): Add an argument for the name
1301         of the flag access macro whose check failed.
1302         * doc/rtl.texi (Flags): Document additional flag uses.
1304 2002-05-08  Robert Spier <rspier@pobox.com>
1305             Neil Booth  <neil@daikokuya.demon.co.uk>
1307         PR preprocessor/6521
1308         * cppfiles.c (handle_missing_header): Don't do anything
1309         different for <> includes.
1310 doc:
1311         * cppopts.texi: Update documentation for -MG.
1313 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1315         * cpplex.c (cpp_interpret_charconst): Truncate as well as
1316         sign-extend.
1317 doc:
1318         * cpp.texi: Clarify multichar charconst valuation.
1320 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
1322         * doc/invoke.texi: Document -mwindiss option.
1324 2002-05-08  Jason Merrill  <jason@redhat.com>
1326         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
1328         * dwarf2out.c (gen_type_die): Abort on broken recursion.
1330         PR c++/6381
1331         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
1332         REAL_CST.
1334 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
1336         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
1337         little-endian multilibs to override arm/thumb multilibs.
1338         Do not build hardware floating point multilibs, nor apcs-26
1339         multilibs for the Thumb.
1341 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
1343         PR c/6569.
1344         * varasm.c (mark_weak): New function.
1345         (merge_weak): Use it.  Do not call declare_weak.
1346         (declare_weak): Use merge_weak.
1348 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
1350         * cse.c (dead_libcall_p): Update counts.
1351         (delete_trivially_dead_insns): Update call of dead_libcall_p.
1353 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
1355         * cfglayout.c (function_tail_eff_head): Rename to ...
1356         (function_footer): ... this one.
1357         (unlink_insn_chain): New functions.
1358         (label_for_bb): Only call block_label and emit debug message.
1359         (record_effective_endpoints): Actually unlink the headers and footers.
1360         (fixup_reorder_cahin): Re-insert the unlinked sequences.
1361         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
1362         * cfglayout.h (struct reorder_block_def): New fields footer/header;
1363         remove eff_head/eff_end.
1364         * rtl.h (set_first_insn): Declare.
1365         * emit-rtl.c (set_first_insn): New function.
1367         * cfglayout.c (fixup_reorder_chain): Dump duplicated
1368         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1369         cfg_layout_duplicate_bb): New global function.
1370         (duplicate_insn_chain): New static function.
1371         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1372         cfg_layout_duplicate_bb): Declare.
1373         (struct reorder_block_def): Add "original" field.
1374         * emit-rtl.c (emit_copy_of_insn_after): New function.
1375         * rtl.h (emit_copy_of_insn_after): Declare.
1377         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
1378         (fixup_reorder_chain): properly handle edges to exit block.
1380 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1381                                Jan Hubicka  <jh@suse.cz>
1383         * basic-block.h (note_prediction_to_br_prob): declare.
1384         * c-semantics.c: Inlucde predit.h
1385         (expand_stmt): predict GOTO_STMT as not taken.
1386         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
1387         (cleanup_cfg): Do not free tail_recursion_list.
1388         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
1389         (flow_delete_block): Kill predictions past end of basic block.
1390         * output.h (delete_unreachable_blocks): Declare.
1391         * predict.c (predicted_by_p, process_note_predictions,
1392         process_note_prediction, last_block_p): New function.
1393         (estimate_probability): Bypass loop on PRED_CONTINUE;
1394         do not handle noreturn heuristics; kill PRED_RETURN; add
1395         PRED_EARLY_RETURN.
1396         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
1397         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
1398         * predict.h (IS_TAKEN): New constant.
1399         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
1400         * rtl.c (NOTE_INSN_PREDICTION): New.
1401         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
1402         New macro.
1403         (insn_note): add NOTE_INSN_PREDICTION.
1404         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
1405         CFG; free tail_recursion_label_list.
1406         * stmt.c: Include predict.h;
1407         (return_prediction): New.
1408         (expand_value_return): Use it.
1409         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
1411 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
1413         * config/mips/mips.md: Name the unspecs with define_constant.
1414         (*HILO_delay): Rename to 'hilo_delay' (no star).
1415         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
1416         (reload_outdi, reload_outsi): Likewise.
1418 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
1420         * toplev.c: Fix formatting.
1422 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
1424         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
1425         * configure.in (ac_rtlflag_checking): New.
1426         * doc/install.texi (--enable-checking): Document RTL flag checking.
1428 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1430         * c-common.c (c_common_init): Set options->unsigned_wchar.
1431         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
1432         group target dependencies.
1433         (init_builtins, cpp_handle_option): Update.
1434         * cpplex.c (cpp_interpret_charconst): Update.
1435         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
1436         signed_char to unsigned_char, group target dependencies.
1437         * defaults.h (WCHAR_UNSIGNED): Remove.
1438         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
1439 config:
1440         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
1441         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
1442         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
1443         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
1444         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
1445 doc:
1446         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
1448 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
1450         * fixinc/inclhack.def (windiss_math1): New fix.
1451         (windiss_math2): Likewise.
1452         (windiss_valist): Likewise.
1453         * fixinc/fixincl.x: Regenerated.
1455 2002-05-07  Andreas Jaeger  <aj@suse.de>
1457         * genautomata.c (output_internal_min_issue_delay_func): Add
1458         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
1459         (output_internal_trans_func): Likewise.
1461 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
1463         * pa.c (hppa_profile_hook): Use force_reg to get the address
1464         of the profile hook into an appropriate pseudo register.
1466 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
1468         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
1469         (LINK_START_SPEC): Handle it.
1470         (LINK_OS_SPEC): Likewise.
1471         (CPP_SPEC): Likewise.
1472         (STARTFILE_SPEC): Likewise.
1473         (LIB_SPEC): Likewise.
1474         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
1475         all platforms.
1476         (CRTSAVRES_DEFAULT_SPEC): New macro.
1477         (LIB_WINDISS_SPEC): New macro.
1478         (CPP_OS_WINDISS_SPEC): Likewise.
1479         (STARTFILE_WINDISS_SPEC): Likewise.
1480         (ENDFILE_WINDISS_SPEC): Likewise.
1481         (LINK_START_WINDISS_SPEC): Likewise.
1482         (LINK_OS_WINDISS_SPEC): Likewise.
1483         * config/rs6000/windiss.h: New file.
1485 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
1487         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
1489 2002-05-06  David S. Miller  <davem@redhat.com>
1491         * config/sparc/sparc.md (shift insns): Do not mask off
1492         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
1493         take care of it.
1495 2002-05-06  Richard Henderson  <rth@redhat.com>
1497         PR c++/6212
1498         * expr.c (highest_pow2_factor_for_type): New.
1499         (expand_assignment): Use it.
1501 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
1503         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
1504         unspec_volatile.
1505         ("altivec_mfvscr"): Same.
1507 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
1509         * rtl.h (struct rtx_def): Update comments.
1510         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
1511         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
1512         RTL_FLAG_CHECK macros with list of expected RTL codes.
1513         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
1514         (rtl_check_failed_flag): New.
1515         * reload1.c (reload): Use REG macro before changing rtx to MEM.
1516         (reload_cse_noop_set_p): Check rtx code before using access macro.
1517         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
1518         before using access macro.
1520 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
1522         * doc/rtl.texi (Flags): Update to reflect current usage.
1524 2002-05-06  Roger Sayle  <roger@eyesopen.com>
1526         PR opt/3995
1527         * fold-const.c (sign_bit_p): New function.
1528         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
1529         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1530         Reapply fold when converting (A & C) == C into (A & C) != 0.
1531         (fold_binary_op_with_conditional_arg): Fix typo in comment.
1533 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1535         * c-common.c (warn_multichar): New.
1536         (c_common_init): Set CPP's warn_multichar.
1537         * c-common.h (warn_multichar): New.
1538         * c-decl.c (warn_multichar): Remove.
1539         * c-lex.c (lex_charconst): Update.
1540         * c-tree.h (warn_multichar): Remove.
1541         * cppexp.c (eval_token): Sign-extend charconst value.
1542         * cppinit.c (cpp_create_reader): Set warn_multichar.
1543         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
1544         each character.  Update prototype.  Sign-extend the result.
1545         * cpplib.h: Fix conditions.
1546         (struct cpp_options): Add new warning flag.
1547         (cpp_interpret_charconst): Update prototype.
1548 doc:
1549         * cpp.texi: Update documentation.
1551 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
1553         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
1554         Fix typo in usage of allof instead of unit.
1556 2002-05-06  Richard Henderson  <rth@redhat.com>
1558         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
1559         and any jump or call for IN.
1561 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
1563         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
1564         -msse2.
1565         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
1567 2002-05-06  Roger Sayle  <roger@eyesopen.com>
1569         * fold-const.c (lshift-double): Cast the high word to an unsigned
1570         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
1571         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
1572         avoid compiler warning.  (fold): Remove redundant code from
1573         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
1575 2002-05-06  Jeff Law  <law@redhat.com>
1577         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
1578         * pa.c (pa_adjust_cost): Remove all true dependency cost
1579         adjustments.  Also remove support for non-DFA scheduling.
1580         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
1581         to adjust true dependency costs.  Update various comments.
1582         (7100lc, 7200, 7300 scheduling): Simplify by combining the
1583         FP ALU & MPY units into a single unit.
1585 2002-05-06  Catherine Moore  <clm@redhat.com>
1587         * config/v850/v850.c (compute_register_save_size): Make sure
1588         to count all of the registers that will be saved.
1590 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
1592         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
1594 2002-05-06  David S. Miller  <davem@redhat.com>
1596         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
1597         allow result to overlap input operands in memory.
1599 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
1601 doc:
1602         * cpp.texi: Update multichar charconst docs.
1604 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
1606         * cpplex.c (cpp_interpret_charconst): Sign-extend each
1607         character.  Don't ignore excess characters.  Treat
1608         multicharacter character constants as signed.
1609         (cpp_parse_escape): Clarify diagnostic.
1611 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
1613         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
1614         use add instead of shift.
1615         (ashldi3_sp64): Likewise.
1616         (ashlsi3_const1, ashldi3_const1): Remove.
1617         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
1618         * config/sparc/sparc.c (const1_operand): New.
1620 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
1622         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
1624 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
1626         PR target/6561
1627         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
1629 2002-05-05  Richard Henderson  <rth@redhat.com>
1631         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
1632         memory latency adjustments.
1633         (alpha_variable_issue): Remove.
1634         (alpha_use_dfa_pipeline_interface): New.
1635         (alpha_multipass_dfa_lookahead): New.
1636         * config/alpha/alpha.md: Remove define_function_unit scheduling;
1637         include new dfa scheduling.
1638         (attr type): Add none.
1639         (blockage): Use it.
1640         * config/alpha/ev4.md: New.
1641         * config/alpha/ev5.md: New.
1642         * config/alpha/ev6.md: New.
1644 2002-05-05  David S. Miller  <davem@redhat.com>
1646         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
1648 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
1650         * cse.c: Fix formatting.
1651         * emit-rtl.c: Likewise.
1653 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
1655         * genautomata.c (initiate_states): Add additional guard to
1656         initialize `units_array'.
1658 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
1660         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
1661         process_unit_to_form_the_same_automaton_unit_lists,
1662         form_the_same_automaton_unit_lists
1663         check_unit_distributions_to_automata): New prototypes and
1664         functions.
1665         (check_automata): Rename it into `check_automata_insn_issues'.
1666         (unit_decl): New fields `the_same_automaton_unit' and
1667         `the_same_automaton_message_reported_p'.
1668         (unit_decl_t): New typedef.
1669         (the_same_automaton_lists): New gloval variable.
1670         (unit_regexp, unit_set_el, units_array, units_cmp,
1671         output_get_cpu_unit_code_func): Use the typedef.
1672         (evaluate_max_reserv_cycles): Increment
1673         `description->max_insn_reserv_cycles'.
1674         (initiate_states): Don't increment `max_cycles_num'.
1675         (transform_insn_regexps): Move code around transformation of
1676         regexps from `generate'.
1677         (generate): Remove call of `transform_insn_regexps'.
1678         (expand_automata): Call `transform_insn_regexps' and
1679         `check_unit_distributions_to_automata'.  Check errors before
1680         `generate'.
1682         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
1683         automaton `ultrasparc3_1'.
1685 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1687         * c-common.c (c_common_init): Set up CPP arithmetic.
1688         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
1689         something reasonable for the host.
1690         (sanity_checks): Add checks.
1691         (cpp_read_main_file): Call sanity_checks() from here...
1692         (cpp_post_options): ... not here.
1693         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
1694         * cpplib.h (struct cpp_options): New member int_precision.
1696 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1698         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
1700 2002-05-04  David S. Miller  <davem@redhat.com>
1702         * config/sparc/linux.h, config/sparc/linux64.h
1703         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
1705         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
1706         more RTX codes.
1707         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
1709         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
1710         of SETs.
1712 2002-05-05  Tim Josling  <tej@melbpc.org.au>
1714         * treelang; New directory for new sample language treelang.
1716 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1718         * Makefile.in (c-lex.o): Update.
1719         * c-lex.c: Include target.h.
1720         (cb_register_builtins): New.
1721         (init_c_lex): Set builtins callback.
1722         * c-lex.h (cpp_define, cpp_assert): New prototypes.
1723         * cppinit.c (init_builtins): Use callback, including for
1724         GXX_WEAK.
1725         * cpplib.h (struct cpp_callbacks): New member.
1726         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
1727         (TARGET_INITIALIZER): Update.
1728         * target.h (struct gcc_target): New hook.
1729         * tree.c (default_register_cpp_builtins): New.
1730         * tree.h (default_register_cpp_builtins): New.
1731 doc:
1732         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
1734 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1736         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
1737         (cpp_post_options): Move sanity checks to...
1738         (sanity_checks): New.
1739         * cpplex.c (maybe_read_ucs): Fix prototype.
1740         (parse_string, cpp_parse_escape): Cast for %c format specifier.
1741         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
1742         if necessary.
1744 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
1746         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
1747         builtins.  Use V2DI patterns instead of TI for logical operations.
1748         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
1749         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
1750         (ix86_expand_builtins): Change the pattern used for movntdq.
1751         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
1752         sse2_nandv2di3): New patterns.
1753         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
1754         on operands.
1755         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
1756         (cvtdq2pd): Correct mode on operand 1.
1757         (sse2_umulsidi3): Describe without unspec.
1758         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
1759         machine modes.
1760         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
1761         (ashlv2di3): Likewise, from sse2_ashlv2di3.
1762         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
1763         ashlv4si3, ashlv2di3): Use SImode for shift count.
1764         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
1765         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
1766         New patterns.
1767         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
1768         New typedefs.
1769         (__m128i, __m128d): New macros.
1770         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
1771         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
1772         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
1773         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
1774         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
1775         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
1776         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
1777         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
1778         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
1779         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
1780         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
1781         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
1782         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
1783         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
1784         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
1785         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
1786         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
1787         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
1788         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
1789         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
1790         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
1791         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
1792         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
1793         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
1794         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
1795         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
1796         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
1797         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
1798         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
1799         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
1800         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
1801         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
1802         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
1803         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
1804         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
1805         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
1806         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
1807         functions.
1808         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
1809         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
1811 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
1813         * dwarf2out.c: Fix formatting.
1814         * varasm.c: Likewise.
1816 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
1818         PR c/6543
1819         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
1820         clobber and use result as temporary value.
1822 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
1824         * expr.c (force_operand): Use expand_simple_* to handle more
1825         cases.
1827 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1829         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
1830         and sign-extension.
1831         (lex_charconst): Update for change in prototype of
1832         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
1833         appropriately.
1834         * cpphash.h (BITS_PER_CPPCHAR_T): New.
1835         * cppinit.c (cpp_create_reader): Initialize them for no
1836         change in semantics.
1837         (cpp_post_options): Add sanity checks.
1838         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
1839         and truncation issues.  Calculate in type cppchar_t.
1840         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
1841         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
1842         run-time dependent precision correctly.  Return whether the
1843         result is signed or not.
1844         * cpplib.c (dequote_string): Use cppchar_t; update.
1845         * cpplib.h (cppchar_signed_t): New.
1846         struct cpp_options): New precision members.
1847         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
1848         * cppexp.c (eval_token): Update.
1850 2002-05-03  David S. Miller  <davem@redhat.com>
1852         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
1853         * config/sparc/sparc.c (sparc_rtx_costs): New function
1854         implementing RTX_COSTS and CONST_COSTS.
1855         * config/sparc/sparc.h (CONST_COSTS): Delete.
1856         (RTX_COSTS_CASES): Define.
1857         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
1858         the work.
1860         * config/sparc/sparc.md (DFA schedulers): Split out...
1861         * config/sparc/cypress.md, config/sparc/hypersparc.md,
1862         config/sparc/sparclet.md, config/sparc/supersparc.md,
1863         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
1865         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
1866         checks on it, always defined for Sparc.
1868         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
1869         Tweak, and add more detailed comments.
1871 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
1873         * Re-apply patch accidentally reverted with
1874         DFA scheduler merge: remove all rules and variables to slurp
1875         source files out of libiberty and rebuild them with HOST_CC.
1876         ($(HOST_PREFIX_1)varray.o): New rule.
1877         (genattrtab rule): Word wrap.
1879 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
1881         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
1882         (CPP_SUBTARGET_SPEC): Define.
1883         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
1884         cpp_subtarget specs.
1885         (CPP_SPEC): Redefine to include %(cpp_subtarget).
1887 2002-05-03  David S. Miller  <davem@redhat.com>
1889         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
1890         * target.h (struct gcc_target): Delete cycle_display member.
1892         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
1893         (rtx_needs_barrier): Delete reference to cycle_display unspec.
1894         (ia64_sched_reorder2): Mention need for cycle display handling
1895         once such notes exist.
1897 2002-05-03  Richard Henderson  <rth@redhat.com>
1899         * real.c (etoasc): Strip most trailing zeros for clarity.
1900         * sched-vis.c: Include real.h.
1901         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
1902         * Makefile.in (sched-vis.o): Add real.h.
1904 2002-05-03  David S. Miller  <davem@redhat.com>
1906         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
1907         no longer needed.
1909 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
1911         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
1912         when we get an out of range literal.
1913         (altivec_expand_ternop_builtin): Same.
1914         (altivec_expand_unop_builtin): Same.
1915         (altivec_expand_builtin): Same, for dss.
1916         (altivec_expand_builtin): Use trees instead of rtl when
1917         determining literal argument validity.
1919 2002-05-03  David S. Miller  <davem@redhat.com>
1921         Delete cycle display scheduling hook.
1922         * config/ia64/ia64.c (ia64_cycle_display,
1923         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
1924         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
1925         and use emit_insn_before instead of ia64_emit_insn_before.
1926         * config/ia64/ia64.md (unspec usage): Delete cycle display.
1927         (cycle_display): Delete insn pattern.
1928         * config/sparc/sparc.md (unspec usage): Delete cycle display.
1929         (cycle_display): Delete insn pattern.
1930         * config/sparc/sparc.c (sparc_cycle_display,
1931         TARGET_SCHED_CYCLE_DISPLAY): Delete.
1932         * doc/md.texi (cycle_display): Don't mention.
1933         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
1935 2002-05-03  Richard Henderson  <rth@redhat.com>
1937         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
1938         * recog.h: Declare them.
1940         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
1941         * config/sparc/sparc.md: Use store_data_bypass_p instead.
1942         * config/sparc/sparc-protos.h: Update.
1944 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
1946         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
1947         -D__arch64__.  Add -D_LP64.
1948         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
1949         from sparc.h.
1950         (CPP_ARCH64_SPEC): Likewise.
1951         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
1952         (NO_BUILTIN_SIZE_TYPE): Undef.
1954 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
1956         * genautomata.c (min_issue_delay_pass_states): Change return type
1957         in the prototype.
1958         (min_issue_delay_pass_states): Change the algorithm.
1959         (min_issue_delay): Set up min_insn_issue_delay for the state.
1960         (output_min_issue_delay_table): Interchange the nested loops and
1961         and initiate min_insn_issue_delay for states.
1963 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
1965         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
1966         jump is simplejump.
1968 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
1970         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
1971         sequence.
1973 2002-05-03  Richard Henderson  <rth@redhat.com>
1975         PR opt/6534
1976         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1977         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
1978         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
1979         code before JUMP, not EARLIEST.
1981 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
1983         * c-format.c (check_format_info_main): Don't check for presence of
1984         parameter for * width until after operand number has been read,
1985         and only check for it if format parameters are available.
1986         Fixes PR c/6547.
1988 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
1990         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
1991         (LINK_SPEC): Undef before defining.
1993 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
1995         PR preprocessor/6489
1996         * tradcpp.c (fixup_newlines): New.
1997         (main, finclude): Use it.
1999 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
2001         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
2002         * config/mips/mips.c (mips_unique_section): Strip encoding from
2003         decl name.
2005 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
2007         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
2008         mode.
2010 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2012         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
2013         (Specific): Removed buildstats references.
2014         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
2015         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
2016         Accomodate Solaris versions beyond 8.
2017         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
2018         (Specific, *-*-solaris2.8): Removed, obsolete.
2020 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
2022         PR target/6542
2023         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
2024         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
2025         fill leaf_reg_remap with identity.
2026         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
2028 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
2030         * config/h8300/crti.asm: Remove trailing spaces.
2031         * config/h8300/h8300.c: Likewise.
2032         * config/h8300/lib1funcs.asm: Likewise.
2034 2002-05-02  Jason Merrill  <jason@redhat.com>
2036         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
2037         * c-decl.c (c_init_decl_processing): Use it.
2038         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
2039         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
2040         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
2042 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
2044         * regrename.c: Fix formatting.
2045         * tree.c: Likewise.
2047 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
2049         * i386.md (attribute memory): Handle compares properly.
2051 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
2053         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
2054         to none.
2056 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
2058         * function.c: Fix formatting.
2060 2002-05-02  Jan Hubicka  <jh@suse.cz>
2062         * haifa-sched.c (schedule_insn): Print table of instructions and
2063         reservations.
2064         (sched_block): Do not print ready list at verbosity level 1.
2065         * sched-vis.c (print_insn): Make global.
2066         * sched-ebb.c (ebb_print_insn): Rename from...
2067         (print_insn): ... this one.
2068         * sched-int.h (print_insn): Declare
2070 2002-05-02  Richard Henderson  <rth@redhat.com>
2072         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
2073         emitted by cycle_display.
2075 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
2077         * doc/install.texi (*-*-freebsd*): Update to latest status.
2079 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
2081         PR target/6540
2082         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
2083         * config/float-sparc.h: Assume 128-bit long double if
2084         __LONG_DOUBLE_128__ is defined.
2086 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
2088         * genattrtab.c (write_function_unit_info): Add a dummy element
2089         when num_units == 0.
2091 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2093         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
2094         TYPE_MODE (double_type_node) instead of DFmode.
2096 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
2098         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
2099         jumps post reload.
2100         * toplev.c (rest_of_compilation): Revert Richard's patch.
2102 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2104         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
2106 2002-05-02  Catherine Moore  <clm@redhat.com>
2108         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
2110 2002-05-02  Kazu Hirata  <kazu@hxi.com>
2112         * combine.c: Fix comment typos.
2113         * expr.c: Likewise.
2114         * genautomata.c: Likewise.
2115         * stmt.c: Likewise.
2116         * tree.h: Likewise.
2118 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
2120         * doc/install.texi: State GNAT version requirements.
2122 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
2124         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
2125         of the frame pointer or arg pointer register which strict register
2126         checking is not enabled.
2128 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
2130         * gcc.dg/altivec-8.c: New.
2132         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
2133         PRE_INC and PRE_DEC for altivec modes.
2135 2002-05-01  Bruce Korb  <bkorb@gnu.org>
2137         * fixinc/check.tpl(set-writable): make sure the function exists first
2138         * fixinc/inclhack.def(alpha_assert): fix test_text
2139         * fixinc/tests/base/assert.h: add in missing result
2141 2002-05-01  Jeff Law  <law@redhat.com>
2143         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
2144         'T' constraint.
2146 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
2148         * dbxout.c (dbxout_type): Emit size information for range types,
2149         as well, but only when using GDB extensions.
2151 2002-05-01  Richard Henderson  <rth@redhat.com>
2153         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
2154         target-independent gnu binutils date test.
2156 2002-05-01  Richard Henderson  <rth@redhat.com>
2158         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
2159         info before expunging the block.
2161 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
2163         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
2164         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
2165         -M -or -MM is in effect.
2167 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
2169         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
2170         A29k configurations.
2171         * doc/install.texi: Update to match.
2173 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2175         PR bootstrap/6514
2176         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
2177         for duplicates. Always loop over whole list.
2179 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2181         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
2183 2002-05-01      Joel Sherrill <joel@OARcorp.com>
2185         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
2186         support routines.
2188 2002-05-01      Joel Sherrill <joel@OARcorp.com>
2190         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
2192 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
2194         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
2195         (nabs_nopower): Same.
2196         (floatdisf2): New pattern.
2197         (absdi2): Convert to define_insn_and_split.
2198         (nabsdi2): Same.
2199         (trunctfsf2): Same.
2200         (floatditf2): Same.
2201         (floatsitf2): Same.
2202         (fix_trunctfdi2): Same.
2203         (fix_trunctfsi2): Same.
2205 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
2207         * doc/install.texi: Update Texinfo version requirement
2208         documentation.
2210 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
2212         PR target/6512, PR target/5628
2213         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
2214         when memory is not aligned.
2215         (movdf_insn_v9only_vis): Likewise.
2216         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
2217         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
2218         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
2220 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
2222         * gcc.dg/altivec-7.c: New.
2224         * config/rs6000/altivec.h: Cleanup.
2226 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
2228         * doc/invoke.texi (Option Summary): Add -mvrsave=.
2229         (RS/6000 and PowerPC Options): Document -mvrsave=.
2231         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
2232         (rs6000_altivec_vrsave_string): Same.
2233         (rs6000_override_options): Call rs6000_parse_vrsave_option.
2234         (rs6000_parse_vrsave_option): New.
2235         (rs6000_stack_info): Only generate vrsave instructions when
2236         TARGET_ALTIVEC_VRSAVE.
2238         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
2239         (rs6000_altivec_vrsave_string): Define extern.
2240         (rs6000_altivec_vrsave): Same.
2241         (TARGET_ALTIVEC_VRSAVE): New.
2243 2002-04-30  Richard Henderson  <rth@redhat.com>
2245         PR opt/6516
2246         * toplev.c (rest_of_compilation): Don't run cross-jump before
2247         bb-reorder.
2249 2002-04-30  Tom Rix  <trix@redhat.com>
2251         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
2252         check which_alternative.
2254 2002-04-30  Kazu Hirata  <kazu@hxi.com>
2256         * cpplex.c: Fix comment formatting.
2257         * function.c: Likewise.
2258         * integrate.c: Likewise.
2259         * regrename.c: Likewise.
2260         * sibcall.c: Likewise.
2261         * simplify-rtx.c: Likewise.
2262         * tree-inline.c: Likewise.
2264 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2266         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
2267         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
2268         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
2269         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
2270         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
2271         * pa/x-ada: New file.  Define ADA_CFLAGS.
2273 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
2275         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
2276         from MMIX_LAST_REGISTER_FILE_REGNUM.
2277         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
2278         (struct machine_function): New member highest_saved_stack_register
2279         previously static variable in mmix.c.
2280         (MACHINE_DEPENDENT_REORG): Define.
2281         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
2282         (MMIX_OUTPUT_REGNO): New.
2283         (mmix_target_asm_function_prologue): Move calculation of last used
2284         saved-stack-register into...
2285         (mmix_machine_dependent_reorg): New function.  Update to also handle
2286         !TARGET_ABI_GNU.
2287         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
2288         register names, simplify somewhat by new variable regno.
2289         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
2290         register.
2291         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
2292         emitting register names.
2293         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
2294         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
2295         Remove fixed FIXME.
2296         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
2297         Declare.
2299         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
2301 2002-04-30  Richard Henderson  <rth@redhat.com>
2303         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
2304         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
2305         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
2306         emit_tfmode_cvt): New.
2307         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
2308         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
2309         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
2310         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
2311         * config/sparc/sparc-protos.h: Update.
2313 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
2315         * install.texi (Final install): Add to the list of info to include
2316         in a report of a successful bootstrap, and add link to 3.1 list.
2318 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
2320         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
2321         (mode): Add vector modes
2322         (i387): Kill attribute.
2323         (unit): New attribute.
2324         (length_immediate): Grok new types.
2325         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
2326         (modrm): Use "unit".
2327         (memory): Handle MMX/SSE properly.
2328         (scheduling descriptions): Kill uses of fop1.
2329         (sse, mmx, fp patterns): Set type and mode properly.
2331 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@cygnus.com)
2333         * pa.c (override_options): Default to PA8000 scheduling.
2334         * doc/invoke.texi (HP-PA options): Mention newly added 7300
2335         scheduling parameter.
2337         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
2338         handling of double precision multiplies.
2340         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
2341         fpdiv and fpsqrt instructions.
2342         (7200 & 7300 scheduling): Fix typo in handling of
2343         store-load and store-store penalties.
2345 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2347         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
2348         mips.  Add two missing commas.
2350 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
2352         * doc/contrib.texi (Contributors): Update Paolo Carlini's
2353         and Benjamin Kosnik's entries.
2355 2002-04-29  David S. Miller  <davem@redhat.com>
2357         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
2358         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
2359         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
2360         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
2362 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2364         * combine.c (find_split_point): Use gen_int_mode.
2366 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
2368         Merging code from dfa-branch:
2370         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
2372         * genautomata.c (output_reserv_sets): Fix typo.
2374         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
2376         * genautomata.c (output_reserv_sets): Remove
2377         next_cycle_output_flag.
2379         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
2381         * sched-rgn.c (init_ready_list): Make the DFA code handle
2382         USE/CLOBBER insns in the same way as the traditional
2383         scheduler.
2384         (new_ready): Similarly..
2386         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
2388         * haifa-sched.c (schedule_block): Change the DFA state only after
2389         issuing insn.
2391         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
2393         * pa.c (hppa_use_dfa_pipeline_interface): New function.
2394         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
2395         (override_options): Add PA7300 scheduling support.
2396         (pa_adjust_cost): Update various comments.  Properly
2397         handle anti and output dependencies when using the
2398         DFA scheduler.
2399         (pa_issue_rate): Add PA7300 scheduling support.
2400         (pa_can_combine_p): Call extract_insn before calling
2401         constrain_operands (taken from mainline tree).
2402         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
2403         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
2404         descriptions using DFA descriptions.  Add PA7300
2405         scheduling support.
2407         2002-03-30  David S. Miller  <davem@redhat.com>
2409         Add UltraSPARC-III DFA scheduling support.
2410         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
2411         Update FP conditional move on register insn patterns to use it, as
2412         appropriate.
2413         (define_attr cpu): Add ultrasparc3.
2414         (define_attr us3load_type): New, update integer load patterns to
2415         set it, as appropriate.
2416         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
2417         (rest): Add UltraSPARC3 scheduling description.
2418         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
2419         (PROCESSOR_ULTRASPARC3): New.
2420         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
2421         ({ASM,CPP}_CPU_SPEC): Likewise.
2422         (REGISTER_MOVE_COST): Likewise.
2423         (RTX_COSTS): Likewise.
2424         * config/sparc/sparc.c (sparc_override_options,
2425         sparc_initialize_trampoline, sparc64_initialize_trampoline,
2426         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2427         sparc_issue_rate): Likewise.
2428         * config/sparc/sol2.h: Likewise.
2429         * config/sparc/sol2-sld-64.h: Likewise.
2430         * config/sparc/linux64.h: Likewise.
2432         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
2434         * doc/md.texi: Add comments about usage the latency time for the
2435         different dependencies and about case when two or more conditions
2436         in different define_insn_reservations returns TRUE for an insn.
2438         * doc/md.texi: Add reference for automaton based pipeline
2439         description.
2441         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
2443         * doc/passes.texi: Add missed information about genattrtab.
2445         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
2447         * genautomata.c (output_automata_list_transition_code): Check
2448         automata_list on NULL.
2450         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
2452         * genautomata.c (output_insn_code_cases,
2453         output_automata_list_min_issue_delay_code,
2454         output_automata_list_transition_code,
2455         output_automata_list_state_alts_code): Comment the functions.
2457         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
2459         * genautomata.c (automata_list_el_t): New typedef.
2460         (get_free_automata_list_el,free_automata_list_el,
2461         free_automata_list, automata_list_hash, automata_list_eq_p,
2462         initiate_automata_lists, automata_list_start, automata_list_add,
2463         automata_list_finish, finish_automata_lists,
2464         output_insn_code_cases, output_automata_list_min_issue_delay_code,
2465         output_automata_list_transition_code,
2466         output_automata_list_state_alts_code, add_automaton_state,
2467         form_important_insn_automata_lists): New functions and prototypes.
2468         (insn_reserv_decl): Add members important_automata_list and
2469         processed_p.
2470         (ainsn): Add members important_p.
2471         (automata_list_el): New structure.
2472         (first_free_automata_list_el, current_automata_list,
2473         automata_list_table): New global variables.
2474         (create_ainsns): Initiate member important_p.
2475         (output_internal_min_issue_delay_func): Generate the switch and
2476         call output_insn_code_cases.
2477         (output_internal_trans_func, output_internal_state_alts_func):
2478         Ditto.
2479         (generate): Call initiate_automata_lists.
2480         (automaton_states): New global variable.
2481         (expand_automata): Call form_important_insn_automata_lists.
2482         (write_automata): Call finish_automata_lists.
2484         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
2486         * genautomata.c (add_excls, add_presence_absence): Check that
2487         cpu units in the sets belong the same automaton.
2489         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
2490         about that cpu units in the sets belong the same automaton.
2492         * doc/md.texi: Ditto.
2494         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
2495                     Nitin Gupta  <niting@noida.hcltech.com>
2497         * config/sh/sh.c (sh_use_dfa_interface): New function.
2499         (sh_issue_rate): New Function.
2500         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
2501         TARGET_SCHED_ISSUE_RATE: define.
2503         * config/sh/sh.md: Add DFA based pipeline description for SH4.
2505         (define_attr insn_class): New attribute used for DFA
2506          scheduling.
2507         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
2508         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
2509          cmpeqdi_t): Likewise.
2511         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
2512          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
2513          ex_group.
2514         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
2516         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
2518         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
2519         break.
2521         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
2523         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
2524         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
2525         necessary.
2526         (output_dfa_start_func): Initiate new variable insn_codes_length,
2527         (write_automata): Output definition of the new variable.
2529         2001-10-02  David S. Miller  <davem@redhat.com>
2531         * haifa-sched.c (advance_one_cycle): New function.
2532         (schedule_block): Use it.
2533         (queue_to_ready): Use it, and also make sure to advance the DFA
2534         state on all stall cycles, not just those where insn_queue links
2535         are found.
2537         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
2539         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
2540         non-zero if the highest-priority instruction could be scheduled.
2541         (choose_ready): Remove last argument from max_issue call.
2543         2001-09-28  David S. Miller  <davem@redhat.com>
2545         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
2546         ultrasparc and 3 for other multi-issue sparcs.
2548         2001-09-27  David S. Miller  <davem@redhat.com>
2550         * config/sparc/sparc.md (cycle_display): New pattern.
2551         * config/sparc/sparc.c (sparc_cycle_display): New.
2552         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
2554         2001-09-25  David S. Miller  <davem@redhat.com>
2556         Convert all of Sparc scheduling to DFA
2557         * config/sparc/sparc.md: Kill all define_function_unit
2558         directives and replace with DFA equivalent.
2559         * config/sparc/sparc.c (ultrasparc_adjust_cost,
2560         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
2561         ultra_fpmode_conflict_exists, ultra_find_type,
2562         ultra_build_types_avail, ultra_flush_pipeline,
2563         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
2564         ultrasparc_variable_issue, ultrasparc_sched_init,
2565         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
2566         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
2567         ultra_cur_hist, ultra_cycles_elapsed): Kill.
2568         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2569         ultrasparc_store_bypass_p): New.
2570         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
2571         Declare.
2573         2001-09-24  David S. Miller  <davem@redhat.com>
2575         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
2576         ready->vec[foo] not ready[foo].
2578         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
2580         * doc/md.texi: Correct examples for define_insn_reservations
2581         `mult' and `div'.
2583         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
2585         * genautomata.c (create_automata): Print message about creation of
2586         each automaton.
2587         (generate): Remove printing meease about creation of
2588         automata.
2590         2001-09-05  David S. Miller  <davem@redhat.com>
2592         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
2593         * config/sparc/linux64.h: Likewise.
2595         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
2597         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
2598         schedule_block, sched_init, sched_finish): Add missed calls of
2599         use_dfa_pipeline_interface.
2601         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
2602         Ditto.
2604         * sched-vis.c (get_visual_tbl_length): Ditto.
2606         2001-08-27  Richard Henderson  <rth@redhat.com>
2608         * genattr.c (main): Emit state_t even when not doing scheduling.
2610         2001-08-27  Richard Henderson  <rth@redhat.com>
2612         * genautomata.c (expand_automata): Always create a description.
2614         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
2616         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
2617         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
2618         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
2619         RTL constructions.
2621         * genattr.c (main): New variable num_insn_reservations.  Increase
2622         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
2623         pipeline hazard recognizer interface.
2625         * genattrtab.h: New file.
2627         * genattrtab.c: Include genattrtab.h.
2628         (attr_printf, check_attr_test, make_internal_attr,
2629         make_numeric_value): Move protypes into genattrtab.h.  Define them
2630         as external.
2631         (num_dfa_decls): New global variable.
2632         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
2633         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
2634         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
2635         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
2637         * genautomata.c: New file.
2639         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
2641         * sched-int.h: (curr_state): Add the external definition for
2642         automaton pipeline interface.
2643         (haifa_insn_data): Add comments for members blockage and units.
2645         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2646         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2647         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2648         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2649         TARGET_SCHED_DFA_POST_CYCLE_INSN,
2650         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2651         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
2652         macros.
2653         (TARGET_SCHED): Use the new macros.
2655         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
2656         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
2657         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
2658         dfa_bubble): New members in gcc_target.sched.
2660         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
2661         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
2662         (insn_queue): Redefine it as pointer to array.
2663         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
2664         INSN_QUEUE_SIZE.
2665         (max_insn_queue_index_macro_value): New variable.
2666         (curr_state, dfa_state_size, ready_try): New varaibles for
2667         automaton interface.
2668         (ready_element, ready_remove, max_issue): New function prototypes
2669         for automaton interface.
2670         (choose_ready): New function prototype.
2671         (insn_unit, blockage_range): Add comments.
2672         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
2673         FUNCTION_UNITS_SIZE == 0.
2674         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
2675         actual_hazard, potential_hazard): Add comments.
2676         (insn_cost): Use cost -1 as undefined value.  Remove
2677         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
2678         pipeline interface.
2679         (ready_element, ready_remove): New functions for automaton
2680         interface.
2681         (schedule_insn): Add new code for automaton pipeline interface.
2682         (queue_to_ready): Add new code for automaton pipeline interface.
2683         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
2684         (debug_ready_list): Print newline when the queue is empty.
2685         (max_issue): New function for automaton pipeline interface.
2686         (choose_ready): New function.
2687         (schedule_block): Add new code for automaton pipeline interface.
2688         Print ready list before scheduling each insn.
2689         (sched_init): Add new code for automaton pipeline interface.
2690         Initiate insn cost by -1.
2691         (sched_finish): Free the current automaton state and finalize
2692         automaton pipeline interface.
2694         * sched-rgn.c: Include target.h.
2695         (init_ready_list, new_ready, debug_dependencies): Add new code for
2696         automaton pipeline interface.
2698         * sched-vis.c: Include target.h.
2699         (get_visual_tbl_length): Add code for automaton interface.
2700         (target_units, print_block_visualization):  Add comments.
2702         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
2703         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
2704         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
2705         (getruntime.o, genautomata.o): New entries.
2706         (genattrtab.o): Add new dependency file genattrtab.h.
2707         (genattrtab): Add new dependencies.  Link it with `libm.a'.
2708         (getruntime.o, hashtab.o): New entries for canadian cross.
2710         * doc/md.texi: Description of automaton based model.
2712         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
2713         Add comments.
2714         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2715         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2716         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2717         TARGET_SCHED_DFA_POST_CYCLE_INSN,
2718         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2719         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2720         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
2721         hook descriptions.
2722         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
2723         MAX_DFA_ISSUE_RATE): New macro descriptions.
2725         * doc/contrib.texi: Add dfa based scheduler contribution.
2727         * doc/gcc.texi: Add more information about genattrtab.
2729 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2731         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
2732         adjust_address_nv call.
2734 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
2736         * doc/install.texi (Testing): Provide additional information, and
2737         a stronger encouragement, for running the testsuites.
2739 2002-04-29  DJ Delorie  <dj@redhat.com>
2741         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
2742         given in upper case.
2744 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2746         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
2747         Solaris 2 <widec.h> if missing.
2748         * fixinc/fixincl.x: Regenerate.
2749         * fixinc/tests/base/widec.h: New file.
2751 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
2753         * toplev.c (f_options): Add "profile" switch so that
2754         -fno-profile can be used to disable -p.
2756 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
2758         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
2759         UV2DImode.
2760         * tree.c (build_common_tree_nodes_2): Likewise.
2761         * tree.h (enum tree_index): Likewise.
2762         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
2764         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
2765         entries.
2766         (init_mmx_sse_builtins): Initialize SSE2 builtins.
2767         (ix86_expand_builtin): Add support for SSE2 builtins.
2768         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
2769         (VALID_SSE_REG_MODE): Use it.
2770         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
2771         (enum ix86_builtins): Add SSE2 builtins.
2772         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
2773         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
2774         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
2775         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
2776         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
2777         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
2778         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
2779         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
2780         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
2781         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
2782         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
2783         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
2784         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
2785         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
2786         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
2787         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
2788         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
2789         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
2790         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
2791         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
2792         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
2793         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
2794         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
2795         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
2796         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
2797         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
2798         lfence_insn): New patterns.
2799         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
2800         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
2802 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
2804         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
2806 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2808         * doc/contrib.texi (Contributors): Add Paolo Carlini and
2809         Janis Johnson.
2810         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
2811         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
2812         and CPU instead of cpu.
2814 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
2816         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
2817         variables.
2818         (lang_independent_options): Add -fif-conversion, -fif-conversion2
2819         (rest_of_compilation): Do if conversion only when asked for.
2820         (parse_options_and_default_flags): Set new variables to 1 for -O1
2821         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
2823 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
2825         * i386.c (dbx64_register_map): Fix typo.
2827 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
2829         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
2830         real_one_half, real_bb_freq_max): New static variables.
2831         (debug_profile_bbauxs): Kill.
2832         (process_note_predictions): Kill unused variable.
2833         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
2834         volatile double.
2835         (propagate_freq): Use REAL_ARITHMETICS.
2836         (estimate_bb_frequencies): Likevise; init new static variables.
2837         * Makefile.in (predict.o): Add dependency on real.h
2839 2002-04-28  David S. Miller  <davem@redhat.com>
2841         PR target/6500
2842         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
2843         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
2844         several {reads,writes} instead.
2845         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
2846         Define.
2848 2002-04-27  David S. Miller  <davem@redhat.com>
2850         PR target/6494
2851         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
2852         of the stack bias.
2854         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
2855         including signal.h and sys/ucontext.h, not needed.
2857 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
2859         * varasm.c (output_constant_def): Correct test for not calling
2860         ENCODE_SECTION_INFO for INTEGER_CST.
2862 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2864         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
2865         keep most cases as function eval_token.
2866         (eval_token): New function.
2867         (_cpp_parse_expr): Read token here for improved diagnostics.
2868         Don't use op_as_text.  Detect bad ':' here.
2869         (reduce): Don't detect bad ':' here.
2870         (op_as_text): Remove.
2871         * cpphash.h (_cpp_test_assertion): Change prototype.
2872         * cpplib.c (_cpp_test_assertion): Change prototype.
2874 2002-04-28  Richard Henderson  <rth@redhat.com>
2876         PR c/5154
2877         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
2878         (ggc_mark_rtx_children): New.
2880 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
2882         PR target/6496
2883         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
2884         after call peepholes for UltraSPARC.
2885         (call + jump 64-bit peepholes): Remove.
2887 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2889         PR c/6497
2890         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
2891         result as temporary value.
2893 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
2895         PR c++/6396
2896         * toplev.c (rest_of_compilation): Only run regrename and copy
2897         propagation if optimizing.
2899 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
2901         PR optimization/6475
2902         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
2903         register of REGNO_DECL (i).
2904         * Makefile.in (reload1.o): Add $(TREE_H).
2906 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
2908         * cppexp.c (lex): Update to use state.skip_eval.
2909         (struct op): Remove prio and flags members.
2910         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
2911         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
2912         (LEFT_ASSOC): New macro.
2913         (optab): New table of operator priorities and flags.
2914         (SHIFT): Update.
2915         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
2916         malloc-ed parser stack.
2917         (reduce): New; reduce the operator stack.
2918         (_cpp_expand_op_stack): Expand the operator stack as necessary.
2919         * cpphash.h (struct op): Predeclare.
2920         (struct cpp_reader): New members op_stack, op_limit.
2921         (struct lexer_state): New member skip_eval.
2922         (_cpp_parse_expr): Update.
2923         (_cpp_expand_op_stack): New.
2924         * cpplib.c (do_if): Update.
2925         * cppinit.c (cpp_create_reader): Create op stack.
2926         (cpp_destroy): And destroy it.
2927         * cpplib.h (CPP_LAST_CPP_OP): Correct.
2928         (TTYPE_TABLE): Correct.
2930 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2932         PR c/6343
2933         * c-decl.c (duplicate_decls): Call merge_weak.
2934         * c-pragma.c (apply_pragma_weak): Warn about misuse.
2935         * output.h (merge_weak): Prototype merge_weak.
2936         * varasm.c (merge_weak): New function.
2937         (declare_weak): Make sure we don't give an error on VAR_DECLs.
2938         Mark RTL with SYMBOL_REF_WEAK.
2940 2002-04-27  Kurt Garloff <garloff@suse.de>
2942         * tree-inline.c (inlinable_function_p): Improve heuristics
2943         by using a smoother function to cut down allowable inlinable size.
2944         * param.def: Add parameters max-inline-insns-single,
2945         max-inline-slope, min-inline-insns that determine the exact
2946         shape of the above function.
2947         * param.h: Likewise.
2949 2002-04-26  Richard Henderson  <rth@redhat.com>
2951         * c-parse.in (malloced_yyss, malloced_yyvs): New.
2952         (yyoverflow): Re-add.  Set them.
2953         (free_parser_stacks): New.
2954         * c-common.h: Declare it.
2955         * c-lex.c (c_common_parse_file): Call it.
2957 2002-04-26  Richard Henderson  <rth@redhat.com>
2959         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
2960         for fallthru search.
2962 2002-04-26  Eric Christopher  <echristo@redhat.com>
2964         PR optimization/3700
2965         * config/mips/mips.c (mips_issue_rate): Define.  New function.
2966         (TARGET_SCHED_ISSUE_RATE): Use.
2968 2002-04-25  David S. Miller  <davem@redhat.com>
2970         PR target/6422
2971         * reorg.c (optimize_skip): Do not allow exception causing
2972         instructions to be considered for delay slots.
2973         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
2974         (relax_delay_slots): Do not try to consider exception causing
2975         instructions as redundant.
2977 2002-04-26  Richard Henderson  <rth@redhat.com>
2979         PR c/5225
2980         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
2982 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
2984         PR bootstrap/6445
2985         * config/i386/i386.md (untyped_call): Return the value in a float
2986         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
2987         TARGET_80387.
2989 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
2991         * tree.c (tree_int_cst_lt): Compare constants whose types differ
2992         in unsigned-ness correctly.
2994 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2996         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
2997         portable runtime model.
2999 2002-04-26  Richard Henderson  <rth@redhat.com>
3001         * c-parse.in (yyoverflow): Revert.
3003 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
3004             Richard Henderson  <rth@redhat.com>
3006         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
3007         result as temporary value.
3009 2002-04-26  Richard Henderson  <rth@redhat.com>
3011         PR c/3581
3012         * c-common.c (fix_string_type): Split out of ...
3013         (combine_strings): ... here.  Take a varray, not a tree list.
3014         (c_expand_builtin_printf): Use fix_string_type.
3015         * c-common.h: Update decls.
3016         * c-parse.in (string): Remove.  Update all uses to use STRING
3017         instead, and not call combine_strings.
3018         (yylexstring): New.
3019         (_yylex): Use it.
3020         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
3021         (build_asm_stmt): Likewise.
3022         * objc/objc-act.c (my_build_string): Use fix_string_type.
3023         (build_objc_string_object): Build varray for combine_strings.
3025 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
3027         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
3028         x86-64.
3030 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3032         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
3033         (HAVE_NO_R_OPERAND): Remove.
3034         (HAVE_VALUE): Remove.
3035         (op_to_prio): Update.
3036         (UNARY): Don't alter flags.
3037         (_cpp_parse_expr): want_value used to indicate whether
3038         a number or unary operator is expected next.  Distinguish
3039         unary and binary +/-.
3040         (op_as_text): Update for unary operators.
3042 2002-04-25  Richard Henderson  <rth@redhat.com>
3044         PR c/2161
3045         * c-parse.in (yyoverflow): New.
3047 2002-04-25  Richard Henderson  <rth@redhat.com>
3049         PR c/2098
3050         * c-common.c (shorten_compare): Simplfy conditions leading to
3051         the generation of a warning.
3053 2002-04-25  Richard Henderson  <rth@redhat.com>
3055         PR c/2035
3056         * expmed.c (extract_bit_field): Fall through to generic code rather
3057         than aborting on subreg special case.
3059 2002-04-25  David S. Miller  <davem@redhat.com>
3061         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
3062         for DECL being NULL.
3064 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
3066         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
3068 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
3070         * c-decl.c (grokdeclarator): Remove outdated ??? note
3071         on invalid declaration of flexible array members.
3073 2002-04-25  Richard Henderson  <rth@redhat.com>
3075         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
3077 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
3079         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
3080         needed by the compiler, even if they are used as global regs.
3082 2002-04-25  Matt Hiller  <hiller@redhat.com>
3084         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
3085         functions.
3086         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
3087         of the corresponding functions.
3088         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
3089         New prototypes.
3091 2002-04-25  Matt Hiller  <hiller@redhat.com>
3093         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
3095         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
3096         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
3097         registers, adjust comment accordingly.
3098         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
3099         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
3100         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
3101         for coprocessor registers.
3102         (ADDITIONAL_REGISTER_NAMES): Include
3103         ALL_COP_ADDITIONAL_REGISTER_NAMES.
3105         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
3106         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
3107         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
3108         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
3109         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
3111         (mips_char_to_class): Adjust comment to include coprocessor
3112         constraint letters.
3114         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
3115         New functions.
3116         (mips_reg_names, mips_regno_to_class): Include coprocessor
3117         information.
3118         (mips_sw_reg_names): Ditto, make non-static.
3119         (mips_move_1word): Handle moves to and from coprocessor registers.
3120         (mips_move_2words): Handle moves to and from coprocessor
3121         registers.
3122         (mips_class_max_nregs, mips_register_move_cost): Handle
3123         coprocessor register classes.
3124         (override_options): Initialize mips_char_to_class and
3125         mips_hard_regno_mode_ok properly for coprocessor registers.
3127         * config/mips/mips.md (movdi_internal, movdi_internal2,
3128         movsi_internal1, movsi_internal2): Add constraint-sets for
3129         coprocessor registers.
3130         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
3131         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
3132         isn't mips.
3133         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
3134         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
3135         isn't mips.
3136         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
3137         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
3138         isn't mips.
3139         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
3140         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
3141         isn't mips.
3143         * doc/tm.texi: Document feature.
3145 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3147         * integrate.c (function_attribute_inlinable_p): Simplify.
3148         Check the table pointer is not NULL.
3150 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
3152         * doc/c-tree.texi: Fix typo in introduction.
3154 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3156         * c-common.h (c_common_parse_file): Update.
3157         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3158         * c-lex.c (YYDEBUG): Get from c-lex.h.
3159         (c_common_parse_file): Update.
3160         * c-lex.h (YYDEBUG, yydebug): New.
3161         * c-parse.in (YYDEBUG): Get from c-lex.h.
3162         (c_set_yydebug): Remove.
3163         * c-tree.h (c_set_yydebug): Remove.
3164         * langhooks-def.h (lhd_do_nothing_i): New.
3165         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
3166         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
3167         * langhooks.c  (lhd_do_nothing_i): New.
3168         (lhd_set_yydebug): Remove.
3169         * langhooks.h (struct lang_hooks): Update.
3170         * toplev.c (set_yydebug): New.
3171         (compile_file): Update call to parse_file hook.
3172         (decode_d_option): Update.
3173 objc:
3174         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3176 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
3178         * loop.c (load_mems): Don't change the interface of called functions.
3180         * calls.c (expand_call): Take current_function_pretend_args_size
3181         into account when setting argblock for sibcalls.
3183 2002-04-24  Matt Hiller  <hiller@redhat.com>
3185         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
3186         * c-lex.c: Ditto.
3188         * cpplex.c (skip_line_comment): Process comment one multibyte
3189         character at a time rather than one char at a time, if
3190         appropriate.
3191         (parse_string): Process string one multibyte character at a time
3192         rather than one char at a time, if appropriate.
3193         * c-lex.c (lex_string): Lex and copy multibyte strings
3194         appropriately.
3195         * cpplib.h (cppchar_t): Change to unsigned.
3197 2002-04-24  Richard Henderson  <rth@redhat.com>
3199         PR c/3467
3200         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
3201         for c99.
3203 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
3205         * sh.c (sh_va_arg): If argument was passed by reference,
3206         dereference the pointer.
3208         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3210         * sh.md (divsi3_i4_media): Use match_operand for input values
3211         rather than hard registers.
3212         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
3213         unnecessarily through hard registers.  Keep copies of pseudo
3214         registers outside of the libcall sequence.
3216         * sh.md (casesi_shift_media): Add modes.
3218         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
3219         values in memory.
3221 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3223         * attribs.c (c_common_attribute_table): Move table and handlers
3224         to c-common.c.
3225         (format_attribute_table, lang_attribute_table,
3226         lang_attribute_common): Remove.
3227         (init_attributes): Replace NULL pointers with pointers to the
3228         empty table.
3229         (handle_packed_attribute, handle_nocommon_attribute,
3230         handle_common_attribute, handle_noreturn_attribute,
3231         handle_noinline_attribute, handle_always_inline_attribute,
3232         handle_used_attribute, handle_unused_attribute,
3233         handle_const_attribute, handle_transparent_union_attribute,
3234         handle_constructor_attribute, handle_destructor_attribute,
3235         handle_mode_attribute, handle_section_attribute,
3236         handle_aligned_attribute, handle_weak_attribute,
3237         handle_alias_attribute, handle_visibility_attribute,
3238         handle_no_instrument_function_attribute, handle_malloc_attribute,
3239         handle_no_limit_stack_attribute, handle_pure_attribute,
3240         handle_deprecated_attribute, handle_vector_size_attribute,
3241         vector_size_helper): Move to c-common.c.
3242         * c-common.c (c_common_attribute_table,
3243         handle_packed_attribute, handle_nocommon_attribute,
3244         handle_common_attribute, handle_noreturn_attribute,
3245         handle_noinline_attribute, handle_always_inline_attribute,
3246         handle_used_attribute, handle_unused_attribute,
3247         handle_const_attribute, handle_transparent_union_attribute,
3248         handle_constructor_attribute, handle_destructor_attribute,
3249         handle_mode_attribute, handle_section_attribute,
3250         handle_aligned_attribute, handle_weak_attribute,
3251         handle_alias_attribute, handle_visibility_attribute,
3252         handle_no_instrument_function_attribute, handle_malloc_attribute,
3253         handle_no_limit_stack_attribute, handle_pure_attribute,
3254         handle_deprecated_attribute, handle_vector_size_attribute,
3255         vector_size_helper): Move from attribs.c.
3256         * c-common.h (c_common_attribute_table,
3257         c_common_format_attribute_table): New.
3258         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3259         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3260         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
3261         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
3262         (LANG_HOOKS_INITIALIZER): Update.
3263         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
3264         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
3265         * target.h: Update comment.
3266         * tree.c (default_target_attribute_table): Remove.
3267         * tree.h (default_target_attribute_table, format_attribute_table,
3268         lang_attribute_table, lang_attribute_common): Remove.
3269 objc:
3270         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3271         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3273 2002-04-24  Jason Merrill  <jason@redhat.com>
3275         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
3276         * dwarf2out.c (dwarf_attr_name): Support it.
3277         (gen_array_type_die): Emit it.
3278         (lookup_type_die): No special handling for VECTOR_TYPE.
3279         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
3281 2002-04-24  Richard Henderson  <rth@redhat.com>
3283         * config/mips/mips.md (movdi_usd): Renumber.
3285 2002-04-24  David S. Miller  <davem@redhat.com>
3287         PR target/6420
3288         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
3289         32-bit Sparc and current_function_returns_struct is true.
3291 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
3293         * loop.c (canonicalize_condition): Use gen_int_mode.
3295 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
3297         * config/rs6000/altivec.h: Cleanup file.  Add non individual
3298         variants.
3299         (vec_vaddubm): New.
3300         (vec_vadduhm): New.
3301         (vec_vadduwm): New.
3302         (vec_vaddfp): New.
3303         (vec_vaddcuw): New.
3304         (vec_vaddubs): New.
3305         (vec_vaddsbs): New.
3306         (vec_vadduhs): New.
3307         (vec_vadduws): New.
3308         (vec_vaddsws): New.
3309         (vec_vand): New.
3310         (vec_vandc): New.
3311         (vec_vavgub): New.
3312         (vec_vavgsb): New.
3313         (vec_vavguh): New.
3314         (vec_vavgsh): New.
3315         (vec_vavguw): New.
3316         (vec_vavgsw): New.
3317         (vec_vrfip): New.
3318         (vec_vcmpbfp): New.
3319         (vec_vcmpequb): New.
3320         (vec_vcmpequh): New.
3321         (vec_vcmpequw): New.
3322         (vec_vcmpeqfp): New.
3323         (vec_vcmpgefp): New.
3324         (vec_vcmpgtub): New.
3325         (vec_vcmpgtsb): New.
3326         (vec_vcmpgtuh): New.
3327         (vec_vcmpgtsh): New.
3328         (vec_vcmpgtuw): New.
3329         (vec_vcmpgtsw): New.
3330         (vec_vcmpgtfp): New.
3331         (vec_vcmpgefp): New.
3332         (vec_vcfux): New.
3333         (vec_vcfsx): New.
3334         (vec_vctsxs): New.
3335         (vec_vctuxs): New.
3336         (vec_vexptefp): New.
3337         (vec_vrfim): New.
3338         (vec_lvx): New.
3339         (vec_lvebx): New.
3340         (vec_lvehx): New.
3341         (vec_lde): Add vector float variant.
3342         (vec_lvewx): New.
3343         (vec_lvxl): New.
3344         (vec_vlogefp): New.
3345         (vec_vmaddfp): New.
3346         (vec_vmhaddshs): New.
3347         (vec_vmaxub): New.
3348         (vec_vmaxsb): New.
3349         (vec_vmaxuh): New.
3350         (vec_vmaxsh): New.
3351         (vec_vmaxuw): New.
3352         (vec_vmaxsw): New.
3353         (vec_vmaxsw): New.
3354         (vec_vmaxfp): New.
3355         (vec_vmrghb): New.
3356         (vec_vmrghh): New.
3357         (vec_vmrghw): New.
3358         (vec_vmrglb): New.
3359         (vec_vmrglh): New.
3360         (vec_vmrglw): New.
3361         (vec_vminub): New.
3362         (vec_vminsb): New.
3363         (vec_vminuh): New.
3364         (vec_vminsh): New.
3365         (vec_vminuw): New.
3366         (vec_vminsw): New.
3367         (vec_vminfp): New.
3368         (vec_vmladduhm): New.
3369         (vec_vmhraddshs): New.
3370         (vec_msumubm): New.
3371         (vec_vmsummbm): New.
3372         (vec_vmsumuhm): New.
3373         (vec_vmsumshm): New.
3374         (vec_vmsumuhs): New.
3375         (vec_vmsumshs): New.
3376         (vec_vmuleub): New.
3377         (vec_vmulesb): New.
3378         (vec_vmuleuh): New.
3379         (vec_vmulesh): New.
3380         (vec_vmuloub): New.
3381         (vec_mulosb): New.
3382         (vec_vmulouh): New.
3383         (vec_vmulosh): New.
3384         (vec_vnmsubfp): New.
3385         (vec_vnor): New.
3386         (vec_vor): New.
3387         (vec_vpkuhum): New.
3388         (vec_vpkuwum): New.
3389         (vec_vpkpx): New.
3390         (vec_vpkuhus): New.
3391         (vec_vpkshss): New.
3392         (vec_vpkuwus): New.
3393         (vec_vpkswss): New.
3394         (vec_vpkshus): New.
3395         (vec_vpkswus): New.
3396         (vec_vperm): New.
3397         (vec_vrefp): New.
3398         (vec_vrlb): New.
3399         (vec_vrlh): New.
3400         (vec_vrlw): New.
3401         (vec_vrfin): New.
3402         (vec_vrsqrtefp): New.
3403         (vec_vsel): New.
3404         (vec_vslb): New.
3405         (vec_vslh): New.
3406         (vec_vslw): New.
3407         (vec_vsldoi): New.
3408         (vec_vsl): New.
3409         (vec_vslo): New.
3410         (vec_vspltb): New.
3411         (vec_vsplth): New.
3412         (vec_vspltw): New.
3413         (vec_vspltisb): New.
3414         (vec_vspltish): New.
3415         (vec_vspltisw): New.
3416         (vec_vsrb): New.
3417         (vec_vsrh): New.
3418         (vec_vsrw): New.
3419         (vec_vsrab): New.
3420         (vec_vsrah): New.
3421         (vec_vsraw): New.
3422         (vec_vsr): New.
3423         (vec_vsro): New.
3424         (vec_stvx): New.
3425         (vec_stvebx): New.
3426         (vec_stvehx): New.
3427         (vec_stvewx): New.
3428         (vec_stvxl): New.
3429         (vec_vsububm): New.
3430         (vec_vsubuhm): New.
3431         (vec_vsubuwm): New.
3432         (vec_vsubfp): New.
3433         (vec_vsubcuw): New.
3434         (vec_vsububs): New.
3435         (vec_vsubsbs): New.
3436         (vec_vsubuhs): New.
3437         (vec_vsubshs): New.
3438         (vec_vsubuws): New.
3439         (vec_vsubsws): New.
3440         (vec_vsum4ubs): New.
3441         (vec_vsum4sbs): New.
3442         (vec_vsum4shs): New.
3443         (vec_vsum2sws): New.
3444         (vec_vsumsws): New.
3445         (vec_vrfiz): New.
3446         (vec_vupkhsb): New.
3447         (vec_vupkhpx): New.
3448         (vec_vupkhsh): New.
3449         (vec_vupklsb): New.
3450         (vec_vupklpx): New.
3451         (vec_vupklsh): New.
3452         (vec_vxor): New.
3454 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
3456         PR c/5430
3457         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
3458         added literals from substracted literals.
3459         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
3460         (fold) [associate]: Preserve MINUS_EXPR if needed.
3462 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
3464         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
3465         are obsoleted.
3467 2002-04-23  Tom Tromey  <tromey@redhat.com>
3469         * gcc.c: Added --resource.  For PR java/6314.
3471 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
3473         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
3474         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
3475         these libraries.
3477 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
3479         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
3481 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
3483         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
3484         workaround.
3485         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
3486         (ix86_expand_clrstr): Fix typo.
3487         * loop.c (gen_load_of_final_value): New.
3488         (loop_givs_rescan, strength_reduce, check_dbra_loop):
3489         Use it.
3491 2002-04-23  Roger Sayle  <roger@eyesopen.com>
3493         * builtins.c (builtin_memset_gen_str): New function.
3494         (expand_builtin_memset): Optimize the case of constant length, but
3495         unknown value.
3497 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
3499         * config/rs6000/altivec.h (vec_step): Remove extraneous
3500         parentheses.
3501         (vec_ctu): Cast return.
3503 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
3505         PR target/6413
3506         * function.h: (struct function): Add profile_label_no field.
3507         (current_function_profile_label_no): Define.
3508         * function.c: (profile_label_no): New static var.
3509         (expand_function_start): Increment it, and copy to
3510         current_function_profile_label_no.
3511         * output.h (profile_label_no): Delete.
3512         * final.c (profile_label_no): Delete.
3513         (profile_function): Use current_function_profile_label_no.
3514         (final_end_function): Don't increment profile_label_no here.
3515         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
3516         profile_label_no with current_function_profile_label_no.
3517         * config/pa/pa.c (current_function_number): Delete.
3518         (pa_output_function_prologue): Don't output profile label here.
3519         (hppa_profile_hook): Use label_no param rather than
3520         current_function_number.
3521         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
3522         * config/pa/pa.h: .. here.
3523         (FUNCTION_PROFILER): Output profile label here.
3525 2002-04-22  Eric Christopher  <echristo@redhat.com>
3527         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
3528         patch of 2002-04-09 due to binutils issues.
3529         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
3531 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
3533         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
3534         constraint to 'o' for m=r and r=m alternatives.
3535         ("*movv8hi_internal1"): Same.
3536         ("*movv16qi_internal1"): Same.
3537         ("*movv4sf_internal1"): Same.
3539 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
3541         * rtl.h (RTX_FLAG): New macro.
3542         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
3543         * final.c (alter_subreg): Use macro to access rtx flag.
3544         * integrate.c (copy_rtx_and_substitute): Use new access macro.
3545         * print-rtl.c (print_rtx): Use new access macro.
3547         * cse.c (insert): Check rtx code before accessing flag.
3549         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
3550         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
3551         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
3552         convert_const_symbol_ref, make_canonical, make_alternative_compare,
3553         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
3554         simplify_test_exp, optimize_attrs, simplify_by_exploding,
3555         find_and_mark_used_attributes, unmark_used_attributes,
3556         add_values_to_cover, simplify_with_current_value,
3557         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
3558         copy_rtx_unchanging, main): Use new access macros.
3560 2002-04-22  Tom Rix  <trix@redhat.com>
3562         * expmed.c (init_expmed): Generate shifted constant once.
3564 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
3566         * c-lex.c (lex_charconst): Call convert to get constant in
3567         proper type; don't just smash the type field.
3568         Fixes PR c/6300.
3570         * config.gcc: Add list of obsolete configurations.  Disallow
3571         building these without --enable-obsolete.
3572         * doc/install.texi: Document --enable-obsolete and obsoletion
3573         policy.  Mention obsoletion of individual targets in
3574         appropriate places.
3576 2002-04-22  Richard Henderson  <rth@redhat.com>
3578         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
3580 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
3582         PR f/6138.
3583         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
3584         (walk_fixup_memory_subreg): Likewise.
3585         (fixup_var_refs_insn): Adjust accordingly.
3586         (fixup_var_refs_1): Likewise.
3588 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
3590         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
3591         LIBPATH_ARCH64_SPEC): Define.
3592         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
3593         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
3594         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
3595         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
3597 2002-04-22      Joel Sherrill <joel@OARcorp.com>
3599         * gthr-rtems.h: Correct prototypes to remove warnings.
3601 2002-04-22  Richard Henderson  <rth@redhat.com>
3603         PR c/6344
3604         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
3606         * gcse.c (free_insn_expr_list_list): New.
3607         (clear_modify_mem_tables): Use it.  Fix bit set usage.
3608         (canon_list_insert): Use EXPR_LISTs for expressions.
3609         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
3611 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3613         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
3614         file change and include code to _cpp_pop_buffer.
3615         * cpphash.h (struct pending_option): Predeclare.
3616         (struct cpp_reader): New member next_include_file.
3617         (_cpp_pop_file_buffer): Update.
3618         (_cpp_push_next_buffer): Update, rename.
3619         * cppinit.c (cpp_destroy): Free include chain and pending here.
3620         (cpp_finish_options): Simplify.
3621         (_cpp_push_next_buffer): Rename and clean up.
3622         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
3623         Clarify.
3624         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
3626 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
3628         * config/rs6000/altivec.h (vec_xor): Add variant for both args
3629         being vector signed int.
3630         (vec_andc): Same.
3631         (vec_xor): Add variant for both args being vector signed char.
3632         Remove redundant variant.
3633         (vec_andc): Same.
3635 2002-04-21  David S. Miller  <davem@redhat.com>
3637         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
3638         compare mode in output RTL.
3640 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
3642         * config/rs6000/rs6000.c (rs6000_override_options): Correct
3643         style and formatting of previous patch.
3645 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
3647         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
3648         flag_pic for ABI_AIX.
3650 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3652         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
3653         * cppfiles.c (read_include_file): Similarly.
3654         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
3655         uxstrdup ustrchr, ufputs): Similarly.
3656         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
3657         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
3658         cpp_ideq, parse_identifier, parse_number): Similarly.
3659         * cpplib.c (struct directive, dequote_string, D, run_directive,
3660         cpp_push_buffer): Similarly.
3661         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
3662         _cpp_create_definition, check_trad_stringification,
3663         cpp_macro_definition): Similarly.
3665 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3667         * cppmacro.c (funlike_invocation_p): Don't step back
3668         over CPP_EOF.
3670 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
3672         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
3673         labelno.
3675 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
3677         * doc/invoke.texi: Remove Chill references.
3678         * doc/gcc.texi: Update last modified date.
3680 2002-04-20  Kazu Hirata  <kazu@hxi.com>
3682         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
3683         push and pop.  Replace add.l with add.w.
3685 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3687         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
3688         multiply instructions for H8/300H case.
3690 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3692         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
3693         Bum three instructions from each routine.
3695 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3697         * Makefile.in: Update.
3698         * decl.c (push_c_function_context, pop_c_function_context,
3699         mark_c_function_context): Rename for consistency.
3700         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
3701         * c-tree.h (push_c_function_context, pop_c_function_context,
3702         mark_c_function_context): Rename for consistency.
3703         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3704         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3705         * function.c (init_lang_status, save_lang_status,
3706         restore_lang_status, mark_lang_status, free_lang_status):
3707         Move to langhooks.h.
3708         (push_function_context_to, pop_function_context_from,
3709         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
3710         Update.
3711         * function.h (init_lang_status, save_lang_status,
3712         restore_lang_status, mark_lang_status, free_lang_status):
3713         Move to langhooks.h.
3714         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
3715         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
3716         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
3717         LANG_HOOKS_FUNCTION_INITIALIZER): New.
3718         (LANG_HOOKS_INITIALIZER): Update.
3719         (lhd_do_nothing_f): New.
3720         * langhooks.h (struct lang_hooks_for_functions): New.
3721         (struct lang_hooks): New hooks.
3722         * langhooks.c (lhd_do_nothing_f): New.
3723 objc:
3724         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3725         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3727 2002-04-19  David S. Miller  <davem@redhat.com>
3729         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
3730         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
3732 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
3734         PR optimization/3756
3735         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
3736         x = ((int) y < 0) ? cst1 : cst2.
3738 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
3740         PR c/6358
3741         * function.c: Reapply patch for c/6358.
3742         (expand_function_end): Copy decl_rtl's mode, not
3743         current_function_return_rtx mode.
3745 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
3747         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
3748         targets.
3750 2002-04-19  Tom Tromey  <tromey@redhat.com>
3752         * doc/install.texi (Specific): Update status of Solaris 2.8.
3753         For PR libgcj/6158.
3755 2002-04-19  Andreas Schwab  <schwab@suse.de>
3757         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
3758         (PUT_REAL): Restore old definition.
3760 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
3761             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3763         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
3764         binutils 2.11.2 and higher generate smaller binaries than Sun's
3765         native tools.
3767 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
3769         PR c++/6352
3770         * toplev.c (rest_of_compilation): Do not defer functions for which
3771         TREE_SYMBOL_REFERENCED has already been set.
3773 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
3775         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
3776         alternative.
3778 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
3780         * builtins.c: Include langhooks.h.
3781         (lang_type_promotes_to): Remove.
3782         (expand_builtin_va_arg): Use new hook.
3783         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
3784         (simple_type_promotes_to): Move to c-typeck.c.
3785         * c-common.h (simple_type_promotes_to): Remove.
3786         * c-decl.c (duplicate_decls, grokdeclarator): Update.
3787         * c-format.c: Include langhooks.h.
3788         (check_format_types): Update.
3789         * c-tree.h (c_type_promotes_to): New.
3790         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
3791         (type_lists_compatible_p): Update.
3792         * langhooks-def.h (lhd_type_promotes_to): New.
3793         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
3794         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3795         * langhooks.c (lhd_type_promotes_to): New.
3796         * langhooks.h (struct lang_hooks_for_types): New hook.
3797         * tree.h (lang_type_promotes_to): Remove.
3798 objc:
3799         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
3801 2002-04-18  Richard Henderson  <rth@redhat.com>
3803         * function.c: Revert patch for c/6358.
3805 2002-04-18  Richard Henderson  <rth@redhat.com>
3807         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
3808         blocks.  Handle multiple references to the TRAP block.  Handle
3809         non-adjacent THEN and OTHER blocks.
3811 2002-04-18  Richard Henderson  <rth@redhat.com>
3813         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
3814         crash with no type for by-mode libcalls.
3816         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
3818 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
3820         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
3821         __xtensa_nonlocal_goto): Use a syscall instructions to flush
3822         the register windows.
3824 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
3826         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
3827         appropriate.  Document need for extended precision even when
3828         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
3829         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
3830         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
3831         instead of relying on later syntax error when REAL_WIDTH > 5.
3832         * real.c: Define NE based only on whether or not we have a
3833         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
3834         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
3835         define GET_REAL and PUT_REAL as simple memcpy operations; no
3836         need to byteswap or round.
3837         Use #error instead of #ifdef-ing out the entire file, for
3838         prompt error detection.
3840         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
3842 2002-04-18  David S. Miller  <davem@redhat.com>
3844         * config/sparc/sparc.h (BRANCH_COST): Define.
3846         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
3847         does it.
3849 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
3851         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
3852         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
3853         propagate_block calls after relaxation loop using new variable
3854         stabilized_prop_flags.
3856 2002-04-18  Richard Henderson  <rth@redhat.com>
3858         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
3859         (ia64_va_arg): Expect variable sized types by reference.
3860         * config/ia64/ia64-protos.h: Update.
3861         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
3862         ia64_function_arg_pass_by_reference.
3864 2002-04-18  Richard Henderson  <rth@redhat.com>
3866         * ifcvt.c: Include except.h.
3867         (block_has_only_trap): Break out from find_cond_trap.
3868         (find_cond_trap): Use it.  Always delete the trap block.
3869         (merge_if_block): Allow then block null.  Be less simplistic about
3870         what insns can end a block.
3871         * Makefile.in (ifcvt.o): Depend on except.h.
3873         * config/ia64/ia64.md (trap, conditional_trap): New.
3875 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
3877         PR c/6358
3878         * function.c (assign_parms): Assign hard current_function_return_rtx
3879         register here...
3880         (expand_function_end): ...not here.
3882 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
3884         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3885         * c-tree.h (c_incomplete_type_error): New.
3886         * c-typeck.c (require_complete_type, build_component_ref): Update.
3887         (incomplete_type_error): Rename.
3888         * langhooks-def.h (lhd_incomplete_type_error): New.
3889         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
3890         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3891         * langhooks.c (lhd_incomplete_type_error): New.
3892         * langhooks.h (struct lang_hooks_for_types): New hook.
3893         * tree.c (size_in_bytes): Use new hook.
3894         * tree.h (incomplete_type_error): Remove.
3895 objc:
3896         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3898 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
3900         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
3901         TARGET_FLOAT_FORMAT blocks.
3903 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3905         * doc/install.texi (Downloading the source): Do not mention Chill
3906         any longer, but mention Ada.
3907         (Configuration): Do not mention Chill any longer.
3909 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
3911         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
3913 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
3915         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
3916         in last patch.
3918 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
3920         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
3921         instead of unsigned_type.
3923 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
3925         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
3926         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
3927         later.
3929 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
3931         * attribs.c (vector_type_node_list): New static variable.
3932         (handle_vector_size_attribute): Use it to avoid generating a
3933         new type node each time we are called.
3935         * combine.c (subst): Avoid trying to make a vector mode subreg of
3936         an integer constant.
3937         (gen_lowpart_for_combine): Likewise.
3939 2002-04-18  Roger Sayle  <roger@eyesopen.com>
3940             Jakub Jelinek  <jakub@redhat.com>
3942         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
3943         for integer constant c (if x has unsigned type or sign bit is not
3944         set in c).  This folds the zero/sign extension into the bit-wise and
3945         operation.
3947 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
3949         PR middle-end/6205
3950         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
3951         otherwise xorps.
3953 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
3955         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
3957 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
3959         * gcc.c (read_specs): Detect and fail if an attempt is made to
3960         rename a spec string to an already existing string.
3962 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
3964         * config/s390/s390.c (legitimize_pic_address): Do not generate
3965         illegal address constant without CONST.
3967 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3969         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
3970         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
3972 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
3974         PR optimization/6305
3975         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
3976         to make sure previous reloads are taken into account.  Generate
3977         better code if one operand is an in-range immediate constant.
3979 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
3981         * doc/install.texi (Building): libgcj requires GNU make.
3983 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
3985         PR bootstrap/6315
3986         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
3987         even if hard quad and register is not floating.
3988         (movtf reg<-mem split): Disallow splitting if hard quad and
3989         register is floating.
3990         (movtf mem<-reg split): Likewise.
3991         * config/sparc/sparc.c (fp_register_operand): New predicate.
3992         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
3994 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
3996         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
3997         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
3998         (unprotoize.o): Ditto.  Build from protoize.c.  Define
3999         UNPROTOIZE on command line.
4000         * protoize.c: Include cppdefault.h.  Delete include_defaults.
4001         (in_system_include_dir): Use cpp_include_defaults (defined in
4002         cppdefault.o).
4003         * unprotoize.c: Delete file.
4005 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
4007         * config/rs6000/altivec.h (vec_ld): Add array variants.
4008         (vec_lde): Same.
4009         (vec_ldl): Same.
4011 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
4012             Aldy Hernandez <aldyh@redhat.com>
4014         * config/rs6000/altivec.h: Define __ALTIVEC__.
4015         (bool): New.
4016         (__pixel): New.
4017         (pixel): New.
4018         (vec_cfux): New.
4019         (vec_vmaddfp): New.
4020         (vec_vsldoi): New.
4021         Add parentheses to all macro arguments.
4023 2002-04-16  Richard Henderson  <rth@redhat.com>
4025         PR c++/6320
4026         * except.c (remove_eh_handler): Insert inner regions at beginning
4027         of sibling chain.  Refactor expressions.
4029 2002-04-16  Richard Henderson  <rth@redhat.com>
4031         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
4032         * config/sparc/sol2-gas-bi.h: New file.
4033         * config.gcc (sparc*-solaris): Add it as needed.
4034         * configure.in (AS_SPARC64_FLAG): Remove check.
4035         * config.in, configure: Regenerate.
4037         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
4039 2002-04-16  Richard Henderson  <rth@redhat.com>
4041         * config/mips/mips.c (override_options): Don't override N32 for
4042         a 64-bit ISA.
4044         PR 6202
4045         * config/mips/mips.md (can_delay): Split out of existing define_delays.
4046         (HILO_delay): Set can_delay false.
4048 2002-04-16  Dale Johannesen <dalej@apple.com>
4050         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
4051         instruction addresses.
4052         (rs6000_output_function_epilogue): Likewise.
4054 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
4056         * c-parse.in (poplevel, compstmt_start,
4057         compstmt_primary_start): Add ending ';', in accordance
4058         with POSIX.
4060 2002-04-16  Richard Henderson  <rth@redhat.com>
4062         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
4063         Adjust tm_file order to get TARGET_DEFAULT set properly.
4064         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
4065         * doc/install.texi (sparc-solaris): Update.
4067 2002-04-16  Dale Johannesen <dalej@apple.com>
4069         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
4070         comparison operands do not match each other or if modes of
4071         conditions do not match result.
4073 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
4075         PR target/6305
4076         * config/s390/s390.md (mulsidi3): Set both subregs of the
4077         multiword register.
4079 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
4081         * config/rs6000/altivec.h (vec_addc): Type check.
4083 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
4085         PR middle-end/6279
4086         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
4088         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
4090 2002-04-15  Richard Henderson  <rth@redhat.com>
4092         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
4093         call_really_used_regs too.
4095 2002-04-15  Richard Henderson  <rth@redhat.com>
4097         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
4099 2002-04-15  David S. Miller  <davem@redhat.com>
4101         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
4102         as being CLOBBERed.
4104 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
4106         PR c/6290
4107         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
4108         CONST_VECTOR is { 0, ... 0 }.
4110 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
4112         * doc/install.texi (Installing GCC: Configuration): Clarify
4113         the only supported ways to configure gcc.
4115 2002-04-15  Roland McGrath  <roland@frob.com>
4117         * config.gcc (alpha*-*-gnu*): New target configuration.
4118         * config/alpha/gnu.h: New file for it.
4119         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
4121 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
4123         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
4124         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
4125         * tree.h (expand_start_stmt_expr): Update prototype.
4126         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
4127         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
4128         on the STMT_EXPR created for the inline function.
4130 2002-04-15  Richard Henderson  <rth@redhat.com>
4132         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
4133         config/i386/linux-aout.h, config/i386/linux-oldld.h,
4134         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
4135         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
4136         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
4137         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
4138         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
4139         Define __gnu_linux__, not gnu_linux.
4140         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
4142 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
4144         Remove Chill front end.
4145         * gcc.c (default_compilers): Remove Chill entries.
4146         * ch: Remove directory.
4147         * doc/frontends.texi: Remove information about Chill.
4148         * doc/sourcebuild.texi: Likewise.
4149         * doc/standards.texi: Likewise.
4151 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
4153         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
4154         (LONGLONG_STANDALONE): Define.
4156 2002-04-15  David S. Miller  <davem@redhat.com>
4158         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
4159         Call emit_library_call with LCT_NORMAL.
4160         (sparc_initialize_trampoline): Use LCT_foo instead of
4161         magic constant in emit_library_call invocations.
4162         (sparc64_initialize_trampoline): Likewise.
4163         (sparc_profile_hook): Likewise.
4164         * config/sparc/sparc.md: Likewise.
4166         * config/sparc/sparc.c (sparc_extra_constraint_check):
4167         Fix type of argument 'c'.
4168         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
4169         Likewise.
4171 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
4173         * diagnostic.h (output_buffer_state): Redefine.
4174         (output_format_decoder): New macro.
4175         (output_prefixing_rule): Likewise.
4176         (output_line_cutoff): Likewise.
4177         (diagnostic_format_decoder): Adjust.
4178         (diagnostic_prefixing_rule): Likewise.
4179         (diagnostic_line_cutoff): Likewise.
4180         (diagnostic_state): Likewise.
4181         (diagnostic_kind_count): Likewise.
4182         (diagnostic_buffer): Now a macro.
4184         * diagnostic.c (diagnostic_buffer): Remove definition.
4185         (output_is_line_wrapping): Adjust.
4186         (set_real_maximum_length): Likewise.
4187         (output_set_maximum_length): Likewise.
4188         (init_output_buffer): Likewise.
4189         (lhd_print_error_function): Likewise.
4190         (output_do_verbatim): Likewise.
4192 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
4194         * cpperror.c (print_location): Don't print include chain
4195         if line == 0.
4196         (cpp_begin_message): Update to use DL_ macros.
4197         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4198         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4199         cpp_notice, cpp_notice_from_errno): Remove.
4200         (cpp_error, cpp_error_with_line): Update to take a diagnostic
4201         level.
4202         (cpp_errno): New.
4203         * cppexp.c (CPP_ICE): Remove.
4204         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
4205         lex, integer_overflow, _cpp_parse_expr): Update.
4206         * cppfiles.c (read_include_file, find_include_file,
4207         handle_missing_header, _cpp_read_file, remap_filename): Update.
4208         * cpphash.h (enum error_type): Remove.
4209         (_cpp_begin_message): Update.
4210         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
4211         cpp_handle_option, cpp_post_options): Update.
4212         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
4213         skip_whitespace, parse_identifier, parse_slow, parse_string,
4214         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
4215         cpp_interpret_charconst): Update.
4216         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
4217         lex_macro_node, do_undef, glue_header_name, parse_include,
4218         do_include_common, read_flag, do_line, do_linemarker, do_ident,
4219         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
4220         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
4221         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
4222         _cpp_pop_buffer, do_diagnostic): Update.
4223         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
4224         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
4225         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4226         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4227         cpp_notice, cpp_notice_from_errno): Remove.
4228         (cpp_error, cpp_error_with_line): Update to take a diagnostic
4229         level.
4230         (cpp_errno): New.
4231         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
4232         collect_args, enter_macro_context, save_parameter, parse_params,
4233         _cpp_create_definition, check_trad_stringification,
4234         cpp_macro_definition): Update.
4235         * cppmain.c (cpp_preprocess_file): Update.
4236         * fix-header.c (read_scan_file): Update.
4238 2002-04-14  Andreas Schwab  <schwab@suse.de>
4240         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
4242 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
4244         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
4246 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
4248         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
4249         not gnu_hurd.
4251 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
4253         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
4255 2002-04-13      Joel Sherrill <joel@OARcorp.com>
4257         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
4258         sparc-elf and sparc-rtems targets.
4260 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
4262         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
4263         defined, and __gnu_hurd__ wherever __GNU__ is defined.
4264         * arm/linux-elf.h: Likewise.
4265         * cris/aout.h: Likewise.
4266         * cris/linux.h: Likewise.
4267         * i370/linux.h: Likewise.
4268         * i386/gnu.h: Likewise.
4269         * i386/linux-aout.h: Likewise.
4270         * i386/linux-oldld.h: Likewise.
4271         * i386/linux.h: Likewise.
4272         * i386/linux64.h: Likewise.
4273         * ia64/linux.h: Likewise.
4274         * m68k/linux-aout.h: Likewise.
4275         * m68k/linux.h: Likewise.
4276         * mips/linux.h: Likewise.
4277         * pa/pa-linux.h: Likewise.
4278         * pj/linux.h: Likewise.
4279         * rs6000/sysv4.h: Likewise.
4280         * s390/linux.h: Likewise.
4281         * sh/linux.h: Likewise.
4282         * sparc/linux-aout.h: Likewise.
4283         * sparc/linux.h: Likewise.
4284         * sparc/linux64.h: Likewise.
4285         * xtensa/linux.h: Likewise.
4287 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
4289         * stmt.c (check_unique_operand_names): Expect operand names to
4290         be strings rather than identifiers.  Use simple_cst_equal to
4291         compare them.
4292         (resolve_operand_name_1): Make same identifier to string change here.
4293         * c-parse.in (asm_operand): Convert a named operand into a string.
4294         * cp/parse.y (asm_operand): Likewise.
4296 2002-04-13  Andreas Schwab  <schwab@suse.de>
4298         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
4300 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
4302         Revert these changes:
4304         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
4306         PR c++/5571
4307         * stor-layout.c (layout_decl): Reset the RTL for the decl.
4309 2002-04-12  Richard Henderson  <rth@redhat.com>
4311         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
4312         (sparc*-*-solaris): Clean up header files.
4313         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
4314         and plan on generating 64-bit code.
4315         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
4316         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
4317         * config/sparc/sol2-sld-64.h: Rename ...
4318         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
4319         for AS_SPARC64_FLAG not defined.
4320         * config/sparc/sol2-gld-bi.h: New.
4321         * config/sparc/sol2-sld.h: Remove.
4322         * config/sparc/sol26-sld.h: New.
4323         * config/sparc/sol2.h: Tidy comments.
4324         * doc/install.texi: Document sparc-solaris configury changes.
4326 2002-04-12  Richard Henderson  <rth@redhat.com>
4328         * recog.c (offsettable_address_p): Match the logic in adjust_address.
4330         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
4331         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
4333 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4335         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
4337 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
4339         * pa.c (pa_can_combine_p): Call extract_insn before calling
4340         constrain_operands.
4342 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
4344         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
4345         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
4346         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
4347         (CPP_PREDEFINES): Handle __declspec.
4348         * config/i386/t-interix (USER_H): Remove.
4350 2002-04-12  DJ Delorie  <dj@redhat.com>
4352         * integrate.c (compare_blocks): Make comparisons safe for when
4353         sizeof(int) < sizeof(char *).
4354         (find_block): Likewise.
4356 2002-04-12  Jan Hubicka  <jh@suse.cz>
4357             David Edelsohn  <edelsohn@gnu.org>
4359         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
4360         registers.
4361         (symbol_ref_operand): New.
4362         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
4363         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
4365 2002-04-12  Andreas Schwab  <schwab@suse.de>
4367         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
4368         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
4369         overrides the definition in config/svr4.h.
4371 2002-04-12      Eric Norum <eric.norum@usask.ca>
4373         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
4374         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
4375         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
4376         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
4377         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
4378         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
4379         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
4380         definitions to config/rtems.h and make the targets more similar.
4382 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4384         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
4385         POINTERS_EXTEND_UNSIGNED.
4386         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
4387         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
4389         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
4390         not specified.
4392 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
4394         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
4395         depends on TARGET_SHMEDIA, not TARGET_SH5.
4397 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
4399         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
4400         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
4402 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
4404         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
4405         no r0 clobber.
4407 2002-04-12  Andreas Schwab  <schwab@suse.de>
4409         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
4411 2002-04-12  Richard Henderson  <rth@redhat.com>
4413         PR bootstrap/4191
4414         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
4416         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
4417         modes spanning multiple hard regs.
4419         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
4421 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4423         * pa.c (pa_output_function_prologue): Don't accumulate the total
4424         number of code bytes when using TARGET_64BIT, or gas, SOM and not
4425         the portable runtime.
4426         (output_deferred_plabels): Handle 64bit plabels.
4427         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
4428         generating pic code using the GAS assembler for object formats that
4429         are not SOM (ie., ELF32 and ELF64).
4430         (output_millicode_call): Check attribute type if attribute length is 28.
4431         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
4432         dbr_sequence_length once.
4433         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
4434         dbr_sequence_length once.
4435         * pa.h (TARGET_SOM): Define if not defined.
4436         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
4437         with GAS and not SOM.
4438         (jump, call_internal_reg, call_value_internal_reg): Likewise.
4439         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
4441 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
4443         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
4444         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
4445         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
4446         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
4447         elfos.h and dbxelf.h values are fine now.
4448         * config/i386/freebsd.h, config/alpha/freebsd.h
4449         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
4451 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
4453         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
4454         or set Acpu or Amachine.  Reformat.
4455         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4456         define.
4457         (LINK_SPEC): Do not need to undef.
4458         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
4459         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
4460         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4461         define.
4462         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
4463         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
4464         (LINK_SPEC): Do not need to undef.
4465         (DONT_USE_BUILTIN_SETJMP): Do not define.
4466         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
4467         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
4468         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
4469         Remove trailing spaces.
4470         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
4471         __ELF__, or set Acpu or Amachine.  Reformat.
4472         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4473         define.
4475 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
4477         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
4478         all other *-*-freebsd* targets.
4480 2002-04-11  Richard Henderson  <rth@redhat.com>
4482         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
4484 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
4486         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
4487         Include {cpu}/{cpu}.h thru tm_file.
4488         (alpha*-*-linux*ecoff): Remove target.
4489         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
4490         (LINK_SPEC): Remove, is not OS independent.
4491         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
4492         (LINK_SPEC): Do not need to #undef any longer.
4493         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
4494         any longer.
4495         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
4496         __ELF__.
4497         (LINK_SPEC): Moved here from alpha/elf.h.
4498         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
4499         SUB_CPP_PREDEFINES.
4500         * config/alpha/linux-ecoff.h: Remove.
4501         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
4502         (CPP_SPEC): Define _POSIX_SOURCE as needed.
4503         (CPP_SUBTARGET_SPEC): Do not define.
4504         (LINK_SPEC): Do not need to #undef any longer.
4505         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
4506         * config/alpha/vms.h: Likewise.
4508 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
4510         * doc/extend.texi: Remove old claim that typedefs cannot have
4511         an alignment attribute.
4513 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
4515         PR optimization/6177
4516         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
4517         bitpos is 0 and bitsize CONCAT size.
4519 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
4521         PR c/6223
4522         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
4524 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
4526         * config/alpha/freebsd.h: Minor reformatting.
4527         (CPP_SPEC): Define ELF and add cpp_subtarget.
4528         (ASM_SPEC): No longer needed.
4530 2002-04-11  Richard Henderson  <rth@redhat.com>
4532         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
4533         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
4534         (dimode mem/zero splitter): New.
4536 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
4538         * config/cris/cris.c (cris_override_options): Tweak error message
4539         for PIC not implemented.
4541         * config/cris/cris.h: Tweak comments related to parameter-passing.
4543         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
4545 2002-04-10  Richard Henderson  <rth@redhat.com>
4547         * except.c (add_ehl_entry): Allow duplicates after landing pad
4548         creation.
4550 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
4552         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
4554 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
4556         * c-decl.c (c_init_decl_processing): Move generation of
4557         decls for g77_integer_type_node and friends from here ...
4558         * c-common.c (c_common_nodes_and_builtins): ... to here.
4560 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
4562         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
4563         is only used as frame pointer when frame_pointer_needed is true.
4565 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
4567         PR target/817
4568         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
4569         for the fact that the pool entry uses two words.
4570         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
4571         1k bytes.
4572         (movdf_soft_insn): Similarly.
4573         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
4574         for the fact that the pool entry uses three words.
4576 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
4578         * config/mips/mips.c (mips_va_arg): When using the struct version
4579         of the EABI va_list, allow arguments in the register save area to
4580         take up less room than a stack argument.
4582 2002-04-10  Richard Henderson  <rth@redhat.com>
4584         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
4585         if EXPAND_INITIALIZER.
4587 2002-04-09  Richard Henderson  <rth@redhat.com>
4589         * config/alpha/alpha.md (movdi_er_maybe_g): New.
4590         * config/alpha/alpha.c (alpha_expand_mov): Use it.
4592 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
4594         PR optimization/6233
4595         * rtlanal.c (pure_call_p): New function.
4596         * rtl.h (pure_call_p): Declare.
4597         * loop.c (prescan_loop): Use it to set has_nonconst_call.
4598         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
4600 2002-04-09  Eric Christopher  <echristo@redhat.com>
4602         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
4603         information to .comm directive.
4605 2002-04-09  Richard Henderson  <rth@redhat.com>
4607         PR c/5078
4608         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
4610 2002-04-09  Richard Henderson  <rth@redhat.com>
4612         * basic-block.h (flow_delete_block_noexpunge): Declare.
4613         (expunge_block_nocompact): Declare.
4614         * cfg.c (expunge_block_nocompact): Split out from ...
4615         (expunge_block): ... here.
4616         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
4617         (flow_delete_block_noexpunge): Split out from ...
4618         (flow_delete_block): ... here.
4619         * cfgcleanup.c (delete_unreachable_blocks): Compact while
4620         removing dead blocks.
4621         * except.c (exception_handler_labels): Remove.
4622         (exception_handler_label_map): New.
4623         (struct eh_region): Add aka member.
4624         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
4625         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
4626         (for_each_eh_label, for_each_eh_label_1): New.
4627         (init_eh): Register exception_handler_label_map.
4628         (free_eh_status): Use free_region.
4629         (find_exception_handler_labels): Use the map, not the list.
4630         (remove_exception_handler_label): Likewise.
4631         (maybe_remove_eh_handler): Likewise.
4632         (remove_eh_handler): Use the region aka bitmap.
4633         * except.h (exception_handler_labels): Remove.
4634         (for_each_eh_label): Declare.
4635         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
4636         * loop.c (invalidate_loops_containing_label): New.
4637         (find_and_verify_loops): Use it.  Use for_each_eh_label.
4638         * sched-rgn.c (is_cfg_nonregular): Use
4639         current_function_has_exception_handlers.
4641 2002-04-09  Richard Henderson  <rth@redhat.com>
4643         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
4644         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
4645         Do not return changed status.
4646         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
4647         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
4648         New functions that do return changed status.
4649         * sbitmap.h: Update decls.
4650         * gcse.c, lcm.c: Use _cg functions as needed.
4652 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
4654         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
4655         (sh64-*-elf*, sh-*-rtemself*): Likewise.
4656         * config/sh/embed_bb.c: New file.
4657         * config/sh/embed-elf.h: New file.
4658         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
4659         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
4660         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4661         __PTRDIFF_TYPE__ .
4662         (SUBTARGET_CPP_PTR_SPEC): Don't define.
4663         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
4664         Add subtarget_asm_endian_spec.
4665         (ASM_SPEC): Use subtarget_asm_endian_spec.
4666         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
4667         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
4668         (WCHAR_UNSIGNED): Define.
4669         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
4670         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4671         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
4672         Fix value.
4673         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
4674         (sh_adjust_cost): Likewise.
4675         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4676         __PTRDIFF_TYPE__ .
4677         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
4678         (WCHAR_TYPE_SIZE): Likewise.
4679         (ASM_SPEC): Use subtarget_asm_endian_spec.
4680         (SH_ELF_WCHAR_TYPE): #undef/ #define.
4681         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
4682         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
4683         (MAX_WCHAR_TYPE_SIZE): Don't #define .
4684         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
4685         (USER_LABEL_PREFIX): Don't #undef /#define .
4686         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4687         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
4688         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
4689         (ASM_SPEC): Likewise.
4690         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
4691         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
4692         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
4693         (LIB2FUNCS_EXTRA): Define.
4694         * t-sh64 (LIB2FUNCS_EXTRA): Define.
4695         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
4696         (LIB1ASMFUNCS_CACHE): Define.
4697         (LIB2FUNCS_EXTRA): Redefine empty.
4699 2002-04-08  Richard Henderson  <rth@redhat.com>
4701         * reorg.c (get_branch_condition): Use reversed_comparison_code.
4703 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4705         * config/m68hc11/larith.asm (__map_data_section): Fix condition
4706         and optimize for size.
4707         (__do_global_ctors): Fix pointer comparison.
4708         (__do_global_dtors): Likewise.
4710 2002-04-09  David S. Miller  <davem@redhat.com>
4712         * config/sparc/sparc.c (sparc_extra_constraint_check): New
4713         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
4714         allow reloading pseudos.
4715         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
4716         * config/sparc/sparc-protos.h: Declare it.
4718         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
4719         unsigned comparison warning.
4720         (output_restore_regs): Mark leaf_function as unused.
4722 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4724         * expr.c (is_aligning_offset): New function.
4725         (expand_expr, case COMPONENT_EXPR): Call it.
4727 2002-04-08  David S. Miller  <davem@redhat.com>
4729         PR target/6082
4730         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
4732         Make init_priority work on Sparc when using GNU ld.
4733         * config/sparc/linux.h, config/sparc/linux64.h,
4734         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
4735         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
4736         * config/sparc/sol2-gld.h: New file to do the same.
4737         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
4738         sparc/sol2-gld.h to tm_file.
4740         PR optimization/4328
4741         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
4742         * doc/md.texi: Document it.
4743         * config/sparc/sparc.md (movdi_insn_sp64_novis,
4744         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
4745         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
4746         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
4747         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
4749 2002-04-08  Andreas Jaeger  <aj@suse.de>
4751         * stmt.c (expand_asm_operands): Revert last patch from Richard
4752         Henderson.
4754 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4756         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
4757         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
4759 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4761         * doc/contrib.texi (Contributors): Add David O'Brien.
4763 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
4765         * configure.in (auto-build.h): Use target_alias and build_alias
4766         when running configure.
4767         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
4768         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
4769         * configure: Regenerate.
4771 2002-04-07  David S. Miller  <davem@redhat.com>
4773         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
4775 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4777         PR 5933
4778         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
4779         generating 32-bit pic code.
4781 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
4783         * cppinit.c (cpp_create_reader): Initialize
4784         discard_comments_in_macro_exp.
4785         (COMMAND_LINE_OPTIONS): Add "-CC" option.
4786         (cpp_handle_option): Handle "-CC" option.
4787         * cpplex.c (save_comment): If saving a C++ comment in
4788         a directive, convert it to a C comment.
4789         (_cpp_lex_direct): Pass second comment start character to
4790         save_comment to indicate comment type.
4791         * cpplib.c (_cpp_handle_directive): If processing
4792         a "#define" directive and discard_comments_in_macro_exp
4793         is false,  re-enable saving of comments.
4794         (lex_macro_node): If discard_comments_in_macro_exp is false,
4795         discard any comments before the macro identifier.
4796         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
4797         member.
4798         * cppmacro.c (cpp_get_token): If expanding a macro while
4799         processing a directive, discard any comments we might encounter.
4800         (parse_params): If discard_comments_in_macro_exp is false,
4801         ignore comments in the macro parameter list.
4802         * gcc.c (cpp_unique_options): Add "-CC" option.
4803         (option_map): Map "--comments-in-macros" to "-CC".
4804         * doc/cppopts.texi: Document "-CC" option.
4805         * f/lang-specs.h: Add "-CC" option.
4806         * testsuite/gcc.dg/cpp/maccom1.c: New test.
4807         * testsuite/gcc.dg/cpp/maccom2.c: New test.
4808         * testsuite/gcc.dg/cpp/maccom3.c: New test.
4809         * testsuite/gcc.dg/cpp/maccom4.c: New test.
4810         * testsuite/gcc.dg/cpp/maccom5.c: New test.
4811         * testsuite/gcc.dg/cpp/maccom6.c: New test.
4813 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4815         PR middle-end/6180
4816         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
4818 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
4820         PR c++/5571
4821         * stor-layout.c (layout_decl): Reset the RTL for the decl.
4823         PR opt/5120
4824         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
4825         RTX_UNCHANGING_P for the functions arguments when a tail call
4826         is made.
4828 2002-04-06  Jason Merrill  <jason@redhat.com>
4830         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
4831         (parse_options_and_default_flags): Set them appropriately.
4832         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
4834 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
4836         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
4837         here.
4839         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
4840         semicolon.
4842         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
4843         types come in by-reference.  Fix typo in comment.
4845 2002-04-05  David S. Miller  <davem@redhat.com>
4847         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
4848         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
4849         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
4850         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
4852 2002-04-05  David S. Miller  <davem@redhat.com>
4854         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
4855         are not going to emit return instructions, emit at least a nop
4856         for the sake of sane backtraces.
4858 2002-04-05  Richard Henderson  <rth@redhat.com>
4860         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
4862 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
4864         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
4866 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
4868         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
4869         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
4870         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
4872 2002-04-05  Andreas Schwab  <schwab@suse.de>
4874         * c-convert.c: Include c-common.h.
4875         * Makefile.in (c-convert.o): Updated.
4877 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
4879         * mklibgcc.in: Use separate libgcc.map for each multilib.
4880         * Makefile.in (distclean): Don't remove libgcc.map here.
4882 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
4884         * Makefile.in (s-mlib): Handle --disable-multilib by separate
4885         genmultilib invocation.
4887 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
4889         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
4890         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
4891         to num_gprs for symmetry.
4892         * config/mips/mips.c: Adjust accordingly.
4894 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4896         * c-common.c (truthvalue_conversion): Rename, update.
4897         * c-common.h (c_common_truthvalue_conversion): New.
4898         * c-convert.c (convert): Update.
4899         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4900         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
4901         * c-typeck.c (build_binary_op, build_unary_op,
4902         build_conditional_expr): Update.
4903         * fold-const.c (constant_boolean_node, fold): Use langhook.
4904         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
4905         * langhooks.h (struct lang_hooks): New hook.
4906         * stmt.c (expand_decl_cleanup): Use langhook.
4907         * tree.h (truthvalue_conversion): Remove.
4908 objc:
4909         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4911 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
4913         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
4914         Add rules to make null object file.
4916 2002-04-04  Jim Blandy  <jimb@redhat.com>
4918         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
4919         macro formal parameter names.
4921 2002-04-04  David S. Miller  <davem@redhat.com>
4923         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
4925 2002-04-04  Richard Henderson  <rth@redhat.com>
4927         PR middle-end/5099
4928         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
4929         Support copies into and out of memory.  Don't accept allows_reg
4930         and allows_mem as gospel.
4932 2002-04-04  Richard Henderson  <rth@redhat.com>
4934         PR opt/6165
4935         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
4936         (write_dependence_p): Likewise.
4938 2002-04-04  Richard Henderson  <rth@redhat.com>
4940         * predict.c (estimate_bb_frequencies): Do frequency calculation
4941         with a volatile temporary.
4943 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
4945         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
4947 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
4949         PR c++/6119
4950         * final.c (final_start_function): Don't bump profile_label_no here...
4951         (final_end_function): ...but here.
4953 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
4955         * config/sparc/sparc.md (pic): New attribute.
4956         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
4957         into stack slots.
4958         (split after do_builtin_setjmp_setup): New.
4960 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
4962         PR fortran/6106
4963         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
4964         change.
4966 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
4968         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
4969         UNITS_PER_WORD for zero sized aggregates.
4971 2002-04-03  David S. Miller  <davem@redhat.com>
4973         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
4974         one-character spec for this, just use %(link_gcc_c_sequence).
4976 2002-04-03  David S. Miller  <davem@redhat.com>
4978         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
4979         handling.
4981 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4983         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
4984         (DWARF_FRAME_RETURN_COLUMN): Move.
4985         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4986         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
4987         * pa.c (except.h, predict.h): Include.
4988         (FRP): Delete.
4989         (store_reg_modify, set_reg_plus_d): Revise prototypes.
4990         (output_ascii): Add cast.
4991         (store_reg_modify): Revise to add frame notes.
4992         (set_reg_plus_d): Likewise.
4993         (compute_frame_size): Include space for eh data registers in frame if
4994         the current function calls eh_return.
4995         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
4996         function calls eh_return.  Save eh data registers if the current
4997         function calls eh_return.  Fix code to add frame notes.  Emit
4998         blockage to prevent insns with frame notes being scheduled in the
4999         delay slot of calls.
5000         (hppa_expand_epilogue): Restore eh data registers and do final stack
5001         adjustment if the current function calls eh_return.  Don't add frame
5002         notes.
5003         (output_call): Revise for change in length of call insn.  Don't do
5004         return pointer adjustment for an unconditional jump in the delay slot
5005         of a call when using frame notes.
5006         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
5007         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
5008         (ARG_POINTER_CFA_OFFSET): Define.
5009         * pa.md (return_external_pic): New pattern.
5010         (prologue): Correct formatting.  Use return_external_pic if current
5011         function calls eh_return.
5012         (call_internal_symref, call_value_internal_symref,
5013         sibcall_internal_symref, sibcall_value_internal_symref): Change default
5014         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
5015         respectively.
5016         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
5018         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
5019         list of targets to check using "nop" insn.
5020         * configure: Rebuilt.
5022 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
5024         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
5026 2002-04-03  David S. Miller  <davem@redhat.com>
5028         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
5029         library sequence passed to the linker.
5030         (LINK_COMMAND_SPEC): Use it.
5031         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
5032         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
5033         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5035 2002-04-03  Jason Merrill  <jason@redhat.com>
5037         * except.c (struct eh_status): Remove protect_list.
5038         (begin_protect_partials, end_protect_partials): Remove.
5039         (add_partial_entry): Remove.
5040         * except.h: Remove prototypes.
5042         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
5043         expand_decl_cleanup_eh.
5045         PR c++/5636
5046         * tree.h (CLEANUP_EH_ONLY): New macro.
5047         * stmt.c (expand_decl_cleanup_eh): New fn.
5048         (expand_cleanups): Check CLEANUP_EH_ONLY.
5049         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
5050         Use expand_decl_cleanup_eh.
5051         (expand_stmt): Adjust.
5052         * c-common.h: Adjust prototype.
5054 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
5056         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
5057         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
5058         (cris_target_asm_function_epilogue): Ditto.
5059         (cris_initial_frame_pointer_offset): Ditto.
5060         (cris_simple_epilogue): Ditto.
5061         (cris_expand_builtin_va_arg): Variable-size types come in
5062         by-reference.
5064 2002-04-03  David S. Miller  <davem@redhat.com>
5066         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
5067         little-endian.
5068         (set_fast_math): Correct 'fsr' type.
5070 2002-04-03  Richard Henderson  <rth@redhat.com>
5072         PR opt/3569
5073         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
5074         * toplev.c (check_global_declarations): Use it.
5075         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
5076         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5077         (LANG_HOOKS_DECLS): Add it.
5078         * langhooks.c (lhd_warn_unused_global_decl): New.
5079         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5080         * c-objc-common.c (c_warn_unused_global_decl): New.
5081         * c-tree.h (c_warn_unused_global_decl): Declare.
5082         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5084 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
5086         * langhooks-def.h (lhd_set_decl_assembler_name,
5087         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
5088         (LANG_HOOKS_INITIALIZER): Update.
5089         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
5090         * langhooks.h (struct lang_hooks): New hook.
5091         * tree.c (set_decl_assembler_name): Move to langhooks.c.
5092         (lang_set_decl_assembler_name): Remove.
5093         (init_obstacks): Don't set hook.
5094         (decl_assembler_name): New function.
5095         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
5096         (decl_assembler_name): New.
5097         (lang_set_decl_assembler_name): Remove.
5099 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
5101         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
5102         works properly with .hidden symbols.
5103         * configure: Rebuilt.
5104         * config.in: Rebuilt.
5105         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
5106         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
5107         properly with .hidden symbols.
5109 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
5111         PR middle-end/6102
5112         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
5113         USE argument.
5115 2002-04-03  Richard Henderson  <rth@redhat.com>
5117         PR opt/4120
5118         * sched-rgn.c (sets_likely_spilled): New.
5119         (sets_likely_spilled_1): New.
5120         (add_branch_dependences): Use it.
5122 2002-04-02  Richard Henderson  <rth@redhat.com>
5124         PR opt/4311
5125         * loop.h (LOOP_FIRST_PASS): New.
5126         * loop.c (strength_reduce): Mind it when deciding to unroll.
5127         * toplev.c (rest_of_compilation): Set it.
5129 2002-04-02  David S. Miller  <davem@redhat.com>
5131         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
5132         mems_ok_for_ldd_peep when the order of the loads being examined
5133         is reversed.
5134         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
5135         existing comment to increase comprehension of this situation.
5137 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
5139         * config/sh/sh.md: Don't use union real_extract.
5141 2002-04-02  Richard Henderson  <rth@redhat.com>
5143         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
5145 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
5147         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
5148         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
5149         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
5150         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
5151         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
5152         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
5153         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
5154         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
5155         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
5156         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
5157         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
5158         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
5159         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
5160         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
5161         Include as many configury headers via tm_file as possible.  This
5162         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
5163         * config/openbsd-oldgas.h: New file.
5164         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
5165         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
5166         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
5167         config/i386/i386-coff.h, config/i386/i386-interix.h,
5168         config/i386/iscdbx.h, config/i386/linux-aout.h,
5169         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
5170         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
5171         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
5172         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
5173         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
5174         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
5175         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
5176         config/i386/vxi386.h: Do not directly include configury headers.
5177         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
5178         Directly include configury headers that are no longer automatically
5179         included by the above headers.
5180         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
5181         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
5182         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
5183         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
5184         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
5185         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
5186         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
5187         (TARGET_VERSION): Define.
5188         * config/i386/beos-elf.h, config/i386/freebsd.h,
5189         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
5190         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
5191         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
5192         config/i386/sco5.h, config/i386/sysv4.h
5193         (TARGET_VERSION): Do not need to protect.
5194         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
5195         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
5196         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
5197         config/i386/i386-interix.h, config/i386/linux-aout.h,
5198         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
5199         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
5200         (YES_UNDERSCORES): Do not define - not needed.
5201         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
5202         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5203         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
5204         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
5205         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5206         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
5207         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
5208         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
5210 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
5211             Richard Henderson  <rth@redhat.com>
5213         PR c/5484
5214         * function.c (assign_temp): Accept either type or decl argument.
5215         Detect variables whose size is too large to fit into an integer.
5216         * stmt.c (expand_decl): Pass the decl, not the type.
5218 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
5220         * protoize.c: Match include directory usage with cppdefault.c.
5222 2002-04-03  Jeffrey A Law  (law@redhat.com)
5223             Hans-Peter Nilsson  <hp@bitrange.com>
5225         * combine.c (simplify_comparison): Avoid narrowing a comparison
5226         with a paradoxical subreg when doing so would drop signficant bits.
5228 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
5230         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
5231         if POINTERS_EXTEND_UNSIGNED is defined.
5233 2002-04-02  Richard Henderson  <rth@redhat.com>
5235         PR opt/3967
5236         * local-alloc.c (contains_replace_regs): LO_SUM may contain
5237         replace regs.
5239 2002-04-02  Richard Henderson  <rth@redhat.com>
5241         * doc/standards.texi: Document required freestanding libc entry points.
5243 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
5245         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
5246         associated splitter.  Remove MQ constraint.
5247         (ctrdi_internal4): Correct CCmode clobber.
5249 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5251         * milli64.S ($$dyncall): New function.
5252         * t-linux (LIB1ASMFUNCS): Revise module list.
5253         (LIB1ASMSRC): Use pa/milli64.S.
5255 2002-04-02  Richard Henderson  <rth@redhat.com>
5257         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
5258         rename solaris_sys_varargs_h.
5260 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5262         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
5263         the same mode as its component.
5265 2002-04-02  Richard Henderson  <rth@redhat.com>
5267         PR opt/190
5268         * final.c (this_is_asm_operands): Export.
5269         * output.h (this_is_asm_operands): Declare.
5270         * config/i386/i386.c (print_operand): Error odd asm operands.
5272 2002-04-02  Richard Henderson  <rth@redhat.com>
5274         PR opt/420
5275         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
5277 2002-04-01  Richard Henderson  <rth@redhat.com>
5279         PR target/1538
5280         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
5281         * fixinc/fixincl.x: Rebuild.
5283 2002-04-01  Richard Henderson  <rth@redhat.com>
5285         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
5286         (atomic_alloc, atomic_free): New.
5287         (SIZE, MASK_FOR, PTR_IN): New.
5288         (emergency_reg_state, emergency_reg_state_free): New.
5289         (emergency_labeled_state, emergency_labeled_state_free): New.
5290         (reg_state_alloced, labeled_state_alloced): New.
5291         (alloc_reg_state, free_reg_state): New.
5292         (alloc_label_state, free_label_state, free_label_states): New.
5293         (push, pop, dup_state_stack, free_state_stack): Use them.
5294         (desc_label_state): Likewise.
5295         (uw_frame_state_for): Free label states and state stack.
5296         (uw_update_reg_address): Eliminate warnings.
5298 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
5300         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
5301         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
5303 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
5305         * c-decl.c (grokdeclarator): Update.
5306         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5307         * c-tree.h (c_mark_addressable): New.
5308         * c-typeck.c (default_function_array_conversion, build_unary_op,
5309         build_array_ref, convert_for_assignment): Update.
5310         (mark_addressable): Rename.
5311         * calls.c (try_to_integrate, expand_call): Use langhook.
5312         * expr.c (expand_expr): Use langhook.
5313         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
5314         * langhooks.h (struct lang_hooks): New hook.
5315         * stmt.c (expand_asm_operands): Use langhook.
5316         * tree.h (mark_addressable): Remove.
5317 objc:
5318         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5320 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
5322         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
5323         in previous change.
5325 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
5327         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
5328         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
5330 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
5332         * c-common.c (unsigned_conversion_warning, convert_and_check,
5333         unsigned_type, signed_type, shorten_compare,
5334         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
5335         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
5336         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
5337         New.
5338         * c-decl.c (grokdeclarator): Update.
5339         * c-format.c (check_format_types): Update.
5340         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5341         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5342         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
5343         * convert.c (convert_to_integer): Use new hooks.
5344         * expmed.c (make_tree): Use new hooks.
5345         * expr.c (store_expr): Use new hooks.
5346         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
5347         all_ones_mask_p, unextend, fold): Use new hooks.
5348         * langhooks.h (struct lang_hooks_for_types): New hooks.
5349         * tree.h (signed_or_unsigned_type, signed_type,
5350         unsigned_type): Remove.
5351 objc:
5352         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5353         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5355 2002-03-31  Richard Henderson  <rth@redhat.com>
5357         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
5358         (desc_frgr_mem): Fix reference to f16-f31.
5360 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5362         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
5363         RTVEC_ELT): Const-ify.
5364         * varray.h (VARRAY_CHECK): Const-ify.
5365         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
5366         ggc_mark_rtvec, ggc_mark): Const-ify.
5368 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
5370         * diagnostic.c: Include langhooks-def.h.
5371         * Makefile.in (diagnostic.o): Update.
5373 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
5375         * c-common.c (c_unsafe_for_reeval): Rename.
5376         * c-common.h (c_unsafe_for_reeval): Rename.
5377         * c-decl.c (finish_incomplete_decl): Rename.
5378         (c_init_decl_processing): Don't set langhook.
5379         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5380         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5381         * c-objc-common.c (c_objc_common_init): Don't set langhook.
5382         * c-tree.h (finish_incomplete_decl): Rename.
5383         * langhooks-def.h (lhd_unsafe_for_reeval): New.
5384         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
5385         (LANG_HOOKS_INITIALIZER): Update.
5386         * langhooks.c (lhd_unsafe_For_reeval): New.
5387         * langhooks.h (struct langhooks): New hooks.
5388         * toplev.c (incomplete_decl_finalize_hook): Remove.
5389         (wrapup_global_declarations): Update.
5390         * tree.c (lang_unsafe_for_reeval): Remove.
5391         (unsafe_for_reeval): Update.
5392         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
5393         Remove.
5394 objc:
5395         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5396         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5398 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
5400         * diagnostic.c (print_error_function): Remove.
5401         (default_print_error_function): Rename.
5402         (report_error_function): Update.
5403         * diagnostic.h (print_error_function): Remove.
5404         (default_print_error_function): Remove.
5405         * langhooks-def.h (struct diagnostic_context): Predeclare.
5406         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
5407         (LANG_HOOKS_INITIALIZER): Update.
5408         * langhooks.h (struct diagnostic context): Predeclare.
5409         (struct lang_hooks): New hook.
5411 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5413         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
5414         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
5415         !flag_pic.
5416         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
5417         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
5418         of PIC_OFFSET_TABLE_REGNUM thruout.
5419         * config/rs6000/rs6000.md: Likewise.
5420         * config/rs6000/darwin.h: Likewise.
5422 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5424         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
5425         unsigned HOST_WIDE_INT, not unsigned int.
5427 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
5429         PR middle-end/6096, middle-end/6098, middle-end/6099
5430         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
5431         CODE_LABELs.
5432         (fill_slots_from_thread): Likewise.
5434 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
5436         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
5437         floating fields in float regs.
5438         (function_arg_record_value_2): Likewise.
5440 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
5442         * config/mmix/mmix.md (define_constants): Remove misleading
5443         FIXME.  Add MMIX_fp_rO_OFFSET.
5444         ("nonlocal_goto_receiver"): Don't have stack-frame address of
5445         saved rO as part of the pattern.  Remove FIXME.
5446         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
5447         here, at output-time.
5449 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
5451         PR middle-end/6100
5452         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
5453         REG_BR_PRED.
5454         (output_v9branch): Likewise.
5456 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
5458         * gcc.c: Revert previous patch for now.
5459         * config/i386/djgpp.h: Likewise.
5461 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
5463         * config/mmix/crti.asm (_init): Register _fini with atexit.
5464         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
5466 2002-03-31  Richard Henderson  <rth@redhat.com>
5468         PR target/3997
5469         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
5470         (ASM_OUTPUT_DEF_FROM_DECLS): New.
5472 2002-03-31  Richard Henderson  <rth@redhat.com>
5474         * libgcc2.c (__bb_exit_func): Make static.
5476         * config/alpha/alpha.md (trap): New.
5478 2002-03-31  Richard Henderson  <rth@redhat.com>
5480         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
5481         promoted argument types; build trap.
5482         (expand_builtin_trap): New.
5483         (expand_builtin): Use it.
5484         * stmt.c (expand_nl_goto_receivers): Likewise.
5485         * expr.h (expand_builtin_trap): Declare.
5486         * libfuncs.h (LTI_abort, abort_libfunc): New.
5487         * optabs.c (init_optabs): Init abort_libfunc.
5489 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
5491         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
5492         (LINK_COMMAND_SPEC): ... from here.
5493         (init_gcc_specs): Duplicate it here too, omitting
5494         shared_name in the second copy.
5495         (init_spec): Test for duplicate
5496         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
5498 2002-03-30  David S. Miller  <davem@redhat.com>
5500         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5501         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
5503 2002-03-30  Roger Sayle <roger@eyesopen.com>
5504             Richard Henderson  <rth@redhat.com>
5506         * regmove.c (combine_stack_adjustments_for_block): Avoid
5507         emitting a stack adjustment of zero bytes.  Let delete_insn
5508         update bb->head.
5510 2002-03-30  Richard Henderson  <rth@redhat.com>
5512         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
5513         (sparc_emitting_epilogue): New.
5514         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
5515         * config/sparc/sparc-protos.h: Update.
5516         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
5517         (TARGET_SWITCHES): Update.
5518         * config/sparc/sparc.md (return): Remove.
5519         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
5520         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
5521         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
5522         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5523         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
5524         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
5525         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
5526         Remove MASK_EPILOGUE.
5527         * doc/invoke.texi: Update.
5529 2002-03-30  Daniel Berlin  <dan@dberlin.org>
5531         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
5532         CPP will start the file for us.
5534 2002-03-30  Richard Henderson  <rth@redhat.com>
5536         PR target/5446
5537         * config/ia64/ia64.c (group_barrier_needed_p): Special case
5538         prologue_allocate_stack.
5539         (ia64_single_set): Use insn codes for recognition of special
5540         cases, not rtl matching.
5541         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
5543 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
5545         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
5547 2002-03-30  Richard Henderson  <rth@redhat.com>
5549         PR target/6032
5550         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
5551         or -fomit-frame-pointer with profiling.
5552         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5553         (FUNCTION_PROFILER): Do nothing.
5554         (PROFILE_HOOK): New.
5555         * config/sparc/sparc.c (sparc_override_options): Don't check
5556         code models for profiling.
5557         (sparc_function_profiler): Remove.
5558         (sparc_profile_hook): New.
5559         * config/sparc/sparc-protos.h: Update.
5561 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
5563         PR optimization/6086
5564         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
5565         of SUBREG of volatile MEM or because the MEM was mode dependent,
5566         return CLOBBER instead of unmodified SUBREG.
5568 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5570         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
5571         when not optimizing.
5573         * toplev.c (rest_of_compilation): Cann mark_constant_function
5574         only when optimizing.
5576         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
5577         are NULL.
5579         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
5580         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
5581         (try_optimize_cfg): clear all AUX fields.
5583         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
5584         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
5585         (ix86_address_cost): Be prepared for SUBREGed registers.
5586         (legitimate_address_p): Accept SUBREGed registers.
5588 2002-03-29  Richard Henderson  <rth@redhat.com>
5590         PR target/5672
5591         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
5593 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5595         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
5596         for aggregate and TFmode types.
5598 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
5600         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
5602 2002-03-29  Richard Henderson  <rth@redhat.com>
5604         PR target/5886
5605         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
5606         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
5608 2002-03-29  Richard Henderson  <rth@redhat.com>
5610         PR target/6041
5611         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
5612         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
5613         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
5614         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
5615         conditional.
5616         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
5618 2002-03-29  Dale Johannesen <dalej@apple.com>
5620         * loop.c (combine_movables): Do allow combination of pseudos.
5622 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
5624         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
5625         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
5626         No functional change except ...
5627         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
5628         * doc/install.texi (*-*-freebsd*): Document port configuration.
5630 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5632         * Makefile.in (convert.o, calls.o, expmed.o): Update.
5633         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
5634         Use new hooks.
5635         * builtin-types.def (BT_PTRMODE): Update.
5636         * c-common.c (type_for_size): Rename c_common_type_for_size.
5637         (type_for_mode): Similarly.
5638         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
5639         Use new hook.
5640         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
5641         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
5642         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
5643         Redefine.
5644         * c-typeck.c (common_type, comptypes, default_conversion):
5645         Use new hooks.
5646         * calls.c: Include langhooks.h.
5647         (emit_library_call_value_1): Use new hooks.  Avoid redundant
5648         calls.
5649         * convert.c: Include langhooks.h
5650         (convert_to_pointer, convert_to_integer): Use new hooks.
5651         * except.c (init_eh): Similarly.
5652         * expmed.c: Include langhooks.h.
5653         (expand_mult_add): Use new hooks.
5654         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
5655         try_casesi): Similarly.
5656         * fold-const.c (optimize_bit_field_compare, make_range,
5657         decode_field_reference, fold_truthop, fold): Similarly.
5658         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
5659         put_var_into_stack): Similarly.
5660         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
5661         LANG_HOOKS_TYPE_FOR_SIZE): New.
5662         (LANG_HOOKS_TYPES_INITIALIZER): Update.
5663         * langhooks.h (lang_hooks_for_types): New hooks.
5664         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
5665         * tree.c (get_unwidened, get_narrower): Similarly.
5666         * tree.h (type_for_mode, type_for_size): Remove.
5667         * varasm.c (force_const_mem): Use new hooks.
5668         * utils2.c (nonbinary_modular_operation): Update.
5669 objc:
5670         * objc-act.c (handle_impent): Update.
5671         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
5672         Redefine.
5674 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
5676         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
5677         * config/ia64/ia64.c (basereg_operand): New.
5678         * config/ia64/ia64-protos.h (basereg_operand): Declare.
5679         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
5681 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
5683         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
5684         unwind information when frame_pointer_needed.
5685         (mmix_assemble_integer): Tweak wording in comment.
5687 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5689         * Makefile.in (except.o): Update.
5690         * except.c: Include langhooks.h.
5691         (init_eh): Use langhook.
5692         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
5693         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
5694         (LANG_HOOKS_INITIALIZER): Update.
5695         * langhooks.h (lang_hooks_for_types): New.
5696         (struct lang_hooks): Add it.
5697         * tree.c (make_lang_type_fn, make_lang_type): Remove.
5698         * tree.h (make_lang_type_fn, make_lang_type): Remove.
5699 config:
5700         * alpha/alpha.c: Include langhooks.h.
5701         (alpha_build_va_list): Use langhook.
5702         * d30v/d30v.c: Include langhooks.h.
5703         (d30v_build_va_list): Use langhook.
5704         * i386/i386.c: Include langhooks.h.
5705         (ix86_build_va_list): Use langhook.
5706         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
5707         * s390/s390.c: Include langhooks.h.
5708         (s390_build_va_list): Use langhook.
5709         * stormy16/stormy16.c: Include langhooks.h.
5710         (stormy16_build_va_list): Use langhook.
5712 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
5714         PR c++/5964
5715         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
5716         attributes.
5717         (length): Compute variable length for branches/calls/jumps here.
5718         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
5719         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
5720         define branch_type attribute.
5721         (divsi3_sp32): Maximum length is 6 not 7.
5722         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
5723         call_address_untyped_struct_value_sp32,
5724         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
5725         * config/sparc/sparc.c (empty_delay_slot): New function.
5726         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
5727         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
5729 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
5731         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
5732         nonzero_bits if not needed.
5733         (nonzero_bits) [XOR]: Likewise.
5734         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
5735         reg_last_set_mode and mode are both MODE_INT, but not equal.
5736         (record_value_for_reg): Compute reg_last_set_nonzero_bits
5737         in nonzero_bits_mode for MODE_INT modes.
5739 2002-03-28  Richard Henderson  <rth@redhat.com>
5741         PR target/5715
5742         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
5743         to GAS.  Correct drift between alternatives.
5745 2002-03-28  Richard Henderson  <rth@redhat.com>
5747         PR target/6087
5748         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
5750 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
5752         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
5753         emulation to the linker.
5755 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
5757         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
5758         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
5760 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
5762         * combine.c (simplify_and_const_int): Make sure to apply mask
5763         when force_to_mode returns a constant integer.  PR3311.
5765 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5767         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
5769 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5771         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
5772         and Objective-C Dialect Options.
5774 2002-03-28  Richard Henderson  <rth@redhat.com>
5776         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
5777         comparison should be done vs !=0 not >0 return code.  Tidy cases.
5779 2002-03-28  Richard Henderson  <rth@redhat.com>
5781         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
5782         on to c_expand_body.
5783         * c-tree.h (finish_function): Update decl.
5784         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
5786 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
5788         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
5790 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
5792         * rtlanal.c: Include flags.h
5793         (may_trap_p): Do not mark FP operations if trapping
5794         if !flag_trapping_math
5795         * Makefile.in (rtlanal.o): Add dependency on flag.h
5796         * ifcvt.c (noce_operand_ok): Avoid the lameness.
5798 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
5800         * mips.md: Use dconst1, not 1.0, as first argument of
5801         REAL_VALUE_LDEXP.  Don't use union real_extract.
5803 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
5805         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
5806         rather than $target.  Heed program_prefix and
5807         program_transform_name.  Search for gas in cross-compiler case too.
5808         "test -x" rather than "test -f".
5809         (gcc_cv_ld): Likewise.
5810         (gcc_cv_nm): Heed program_prefix and program_transform_name.
5811         (gcc_cv_objdump): Likewise.
5812         * configure: Regenerate.
5814 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5816         * Makefile.in (attribs.o): Update.
5817         * attribs.c: Include langhooks.h.
5818         (decl_attributes): Use langhook.
5819         * c-decl.c (insert_default_attributes): Rename.
5820         * c-tree.h (c_insert_default_attributes): New.
5821         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
5822         (LANG_HOOKS_INITIALIZER): Update.
5823         * langhooks.h (struct lang_hooks): New hook.
5824         * tree.h (insert_default_attributes): Remove.
5825 objc:
5826         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
5828 2002-03-27  Andreas Schwab  <schwab@suse.de>
5830         * config/i386/i386.c (classify_argument): Also check for
5831         QUAL_UNION_TYPE.
5833 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5835         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
5836         any more.
5838 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
5840         * i960.md (ret): Set PC.
5841         (nonlocal_goto): Fix expander.
5842         * builtins.c (epxand_builin_longjmp): Check that we've emitted
5843         some jump or call.
5845 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
5847         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
5848         of libcall regions.
5850 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5852         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
5853         assigning to BLOCK_FOR_INSN directly.
5855 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
5857         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
5859 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5861         * c-common.c (c_expand_expr): Fix prototype.
5862         * c-common.h (c_expand_expr): Always declare, update.
5863         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5864         * c-objc-common.c (c_objc_common_init): No global hook.
5865         * expr.c (expand_expr): Use langhook.
5866         * expr.h (enum expand_modifier): Conditionally declare.
5867         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
5868         (LANG_HOOKS_INITIALIZER): Update.
5869         * langhooks.c (lhd_expand_expr): New.
5870         * langhooks.h (struct lang_hooks): New hook.
5871         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
5872         (lang_independent_init): Don't default hook.
5873 objc:
5874         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5876 2002-03-27  Richard Henderson  <rth@redhat.com>
5878         PR target/6054
5879         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
5880         TARGET_CONST_GP.  Simplify conditions.
5882 2002-03-27  Richard Henderson  <rth@redhat.com>
5884         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5885         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
5886         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
5888 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
5890         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
5891         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
5892         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
5893         Remove unnecessary masks.
5894         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
5895         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
5896         -mwindows, -mdll switches and their negations.
5898 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5900         * gcc-common.c (lang_mark_false_label_stack): Remove.
5901         * ggc.h (lang_mark_false_label_stack): Similarly.
5903 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
5905         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
5907         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
5908         or __rtems_ is defined.
5910 2002-03-26  Richard Henderson  <rth@redhat.com>
5912         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
5913         if a non-trivial load was emitted.
5914         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
5915         in high+extra+low case.
5917 2002-03-26  Richard Henderson  <rth@redhat.com>
5919         * config.gcc (sparc*-solaris): Use float_format=sparc.
5921 2002-03-26  Richard Henderson  <rth@redhat.com>
5923         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
5924         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
5925         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
5926         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
5927         (WINT_TYPE_SIZE): Fix at 32.
5929 2002-03-26  Richard Henderson  <rth@redhat.com>
5931         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
5932         until after eh landing pad generation.
5933         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
5934         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
5936 2002-03-26  Richard Henderson  <rth@redhat.com>
5938         * expr.h (ADD_PARM_SIZE): One more convert for INC.
5940 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
5942         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
5943         and warning switches.
5944         (cc1_options):  Likewise.
5946 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
5948         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
5949         Restore more of the signal context.  Set no_reg_stack_frame.
5950         * config/ia64/unwind-ia64.c (unw_state_record):
5951         Add no_reg_stack_frame, comments.
5952         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
5953         (uw_update_context): Adjust bsp when unwinding from leaf,
5954         but not signal frame.
5956 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
5958         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
5960 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
5962         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
5964 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
5966         PR target/5621
5967         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
5968         "Add a pool_range attribute", which was lost during the ARM/Thumb
5969         merge.
5971 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
5973         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
5974         a register into the MAC16 accumulator.
5976 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
5978         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
5979         (Warning Options): Document -Wswitch-enum.
5980         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
5981         -Wswitch.
5982         (warn_switch_enum): Define variables.
5983         * flags.h (warn_switch_enum): Declare variables.
5984         * stmt.c (expand_end_case_type): When warn_switch_enum /
5985         -Wswitch-enum, perform switch checks.
5986         Fix PR c/5044.
5988 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
5990         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
5991         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
5992         (reload_muladdsi_compare0_scratch): Delete.
5994 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
5996         * doc/install.texi (*-*-freebsd*): Update.
5998 2002-03-26  Richard Henderson  <rth@redhat.com>
6000         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
6001         (SUB_PARM_SIZE): Cast DEC to ssizetype.
6003         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
6004         types from the normal argument frame.
6006         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
6007         variable sized objects by reference.
6008         (sparc_va_arg): Receive them by reference too.
6010 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
6012         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
6013         code to not restoring global registers.
6015 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
6017         * Makefile.in (ggc-common.o): Update.
6018         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
6019         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6020         * c-tree.h (c_mark_tree): New.
6021         * ggc-common.c: Include langhooks.h.
6022         (gcc_mark_trees): Use new langhook.
6023         * ggc-callbacks.c: Delete file.
6024         * ggc.h (lang_mark_tree): Remove.
6025         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
6026         (LANG_HOOKS_INITIALIZER): Update.
6027         * langhooks.h (struct lang_hooks): New hook.
6028 objc:
6029         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6031 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
6033         * doc/cpp.texi: Exclude entire Top node from printed manual.
6034         Move option index after directive index.  Insert page breaks
6035         before GFDL and concept index.  Index environment variables
6036         with command line options.
6037         * doc/cppenv.texi: Use @vtable for environment variable list.
6038         Add paragraph explaining semantics of empty elements in path
6039         variables.  Exclude a cross-reference to Fishkill from the
6040         manpage.  Remove an unnecessary cross-reference of the entry
6041         right above the referer.  Don't use @anchor in text that goes
6042         into manpage.
6043         * doc/cppopts.texi: Cross-reference the environment variables
6044         section, not the specific environment variable, for consistency.
6046 2002-03-25  Richard Henderson  <rth@redhat.com>
6048         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
6049         anywhere in the block.  Don't refer to insns that have been
6050         removed from the chain.  Iterate backward through the new insns.
6051         Don't refer to edges that have been removed.
6053 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
6055         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
6056         test for overflow of constant.
6058 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
6060         PR target/2623
6061         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
6062         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
6063         these patterns on arm_archv4.
6065 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
6067         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
6068         int".
6070 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
6072         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
6073         float_handled, float_handler, float_signal, set_float_handler,
6074         and do_float_handler.  Set handler for SIGFPE to crash_signal.
6075         * toplev.h: Don't prototype do_float_handler.
6077         * c-lex.c: Fold parse_float into lex_number.  Make warning
6078         about portability of hex float constants more informative, and
6079         don't issue it on top of a syntax error.
6080         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
6081         their callers.
6082         * real.h: Define REAL_VALUE_ABS here...
6083         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
6084         simplify_unary_real, simplify_binary_real, and
6085         simplify_binary_is2orm1 into their callers.
6086         * tree.c: Fold build_real_from_int_cst_1 into caller.
6088         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
6090         * tsystem.h: Include float.h here...
6091         * libgcc2.c: ... not here.
6093 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
6095         Fixes for: PR bootstrap/3591, target/5676
6096         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
6097         defined.  Do not disable exceptions or rtti.
6098         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
6099         mcore.h.  Disable exceptions and rtti, since they are not
6100         supported by EPOC.
6102 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
6104         * c-decl.c (maybe_build_cleanup): Remove.
6105         * expr.c (expand_expr): Use langhook.
6106         * langhooks-def.h (lhd_return_null_tree,
6107         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
6108         (LANGHOOKS_INITIALIZER): Update.
6109         * langhooks.c (lhd_return_null_tree): New.
6110         * langhooks.h (struct lang_hooks): New hook.
6111         * tree-inline.c (initialize_inlined_parameters): Use langhook.
6112         * tree.h (maybe_build_cleanup): Remove.
6114 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
6116         * regrename.c (build_def_use): Move recog_memoized
6117         before extract_insn.
6119 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
6121         PR target/6043
6122         * expr.c (emit_group_store): Handle storing into CONCAT.
6124 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
6126         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
6127         corresponding MATCH_DUP.
6129 2002-03-24  Richard Henderson  <rth@redhat.com>
6131         * unroll.c (unroll_loop): Zero label_map.
6133         * gcse.c: Include except.h.
6134         * Makefile.in (gcse.o): Update.
6136 2002-03-24  Richard Henderson  <rth@redhat.com>
6138         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
6139         Do resolve_unique_section before shared data clause.
6141 2002-03-24  Richard Henderson  <rth@redhat.com>
6143         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
6145 2002-03-24  Richard Henderson  <rth@redhat.com>
6147         * recog.c (peephole2_optimize): Split blocks when EH insns are
6148         generated in the middle of a block.  Do global life update if
6149         zapped EH edges.
6151 2002-03-24  Richard Henderson  <rth@redhat.com>
6153         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
6155 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6157         preprocessor/3951
6158         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
6159         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
6160         (init_dependency_output): Don't make no_output decision here.
6162 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
6164         * stmt.c (check_for_full_enumeration_handling): Remove tests of
6165         warn_switch.  Update description.
6166         (expand_end_case_type): Call check_for_full_enumeration_handling
6167         when warn_switch.
6169 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6171         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
6172         (m68hc11_split_move): Call it to see if the source and destination
6173         operands use the same direction auto inc/dec mode, otherwise make the
6174         source an offsetable memory operand and generate an add.
6176 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6178         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
6179         register for operand 2.
6180         ("*subsi3_zero_extendqi"): Likewise.
6181         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
6182         bits so that it is compatible with a pop.
6183         ("*andhi3_gen"): Likewise.
6184         ("xorhi3"): Likewise.
6186 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6188         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
6189         -pedantic here...
6190         (cpp_post_options): ... not here.
6192 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6193             Aldy Hernandez  <aldyh@redhat.com>
6195         Removal of separate preprocessor cpp0.
6197         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
6198         cpp0, install-common): Update.
6199         * c-common.c (flag_preprocess_only): New.
6200         (c_common_init): Preprocess for -E.
6201         * c-common.h (flag_preprocess_only): New.
6202         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
6203         * c-objc-common.c (c_init_decl_processing): Exit quickly
6204         for NULL return from c_common_init.
6205         * cpplib.h (cpp_preprocess_file): New.
6206         * cppmain.c (main, general_init, pfile, progname): Remove.
6207         (do_preprocessing): Rename cpp_preprocess_file, don't call
6208         cpp_finish.  Don't close stdout here.
6209         (setup_callbacks): Update prototype.
6210         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
6211         Update.
6212         * tradcpp.c (main): Ignore -quiet.
6213 objc:
6214         * lang-specs.h (default_compilers): Preprocess with cc1obj.
6216 2002-03-24  Richard Henderson  <rth@redhat.com>
6218         PR optimization/5742
6219         * machmode.def: Add inner mode field to complex modes.
6220         * config/mips/mips.c (mips_function_value): Always define.  Add
6221         new argument to handle libcalls.
6222         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
6223         (FUNCTION_VALUE): Likewise.
6224         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
6225         * config/mips/mips-protos.h: Update.
6227 2002-03-23  Richard Henderson  <rth@redhat.com>
6229         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
6230         * config/sparc/sparc-protos.h: Update.
6231         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
6233 2002-03-23  Richard Henderson  <rth@redhat.com>
6235         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
6236         _start or _init begins the text segment.
6238 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
6240         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
6241         not HOST_WIDEST_INT.
6242         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
6244 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
6246         PR java/5489
6247         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
6248         operand argument to output_return_instruction.
6249         * arm.c (arm_print_operand, case 'd'): If the operand is
6250         const_true_rtx then just return.
6251         (arm_print_operand, case 'D'): If the operand is const_true_rtx
6252         then abort.
6254 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
6256         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
6257         (Warning Options): Document -Wswitch-default.
6258         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
6259         -Wswitch.
6260         (warn_switch_default): Define variable.
6261         (warn_switch): Update comment.
6262         * flags.h (warn_switch_default): Declare variable.
6263         (warn_switch): Update comment.
6264         * stmt.c (expand_end_case): Check for and, when
6265         warn_switch_no_default, warn of a missing default case.
6267 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
6269         * real.h (N): Special case 128 bit doubles.
6271         * combine.c (simplify_comparison): When widening modes, ignore
6272         sign extension on CONST_INTs.
6274 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
6276         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
6277         passed to adjust_address.  Fix comment formatting.
6280 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
6282         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
6283         Always make REAL_VALUE_TYPE a struct containing an array of
6284         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
6285         big it is.  Don't declare or use union real_extract.
6287         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
6288         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
6289         (print_operand), config/arm/arm.c (output_move_double),
6290         config/arm/arm.md (consttable_4, consttable_8),
6291         config/romp/romp.c (output_fpops), config/s390/s390.h
6292         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
6293         (xtensa_output_literal): Don't use union real_extract.
6295         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
6296         (sfmode_constant_to_ulong), config/ns32k/merlin.h
6297         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
6298         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
6299         (PRINT_OPERAND): Don't use local version of union
6300         real_extract.
6302         * config/convex/convex.c (check_float_value), config/vax/vax.c
6303         (vax_float_literal), config/m88k/m88k.md (divdf3),
6304         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
6305         config/pdp11/pdp11.c (output_move_quad): Don't do host
6306         arithmetic on target floating point quantities.
6308         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
6309         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
6311         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
6312         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
6314         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
6315         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
6316         INFINITY.
6317         * print-rtl.c (print_rtx): Disable code which needs
6318         floating-point emulator.
6319         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
6320         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
6321         depending on HOST_FLOAT_FORMAT to be defined properly.
6323         * config/1750a/1750a.c (get_double, float_label): Delete.
6324         (print_operand): Delete huge commented-out chunk.  Use
6325         REAL_VALUE_TO_DECIMAL.
6326         * config/1750a/1750a-protos.h: Delete prototypes of deleted
6327         functions.
6328         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
6329         IEEE_FLOAT_FORMAT.
6330         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
6331         Use REAL_VALUE_TO_DECIMAL as ELF version does.
6332         * config/m88k/m88k.c (real_power_of_2_operand,
6333         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
6334         real_extract out of the union; run the input through
6335         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
6336         from that into the union.
6337         * config/pdp11/pdp11.c (output_move_double): Rearrange
6338         parentheses to make automatic indenter happy.
6340         * doc/tm.texi (Cross-compilation): Rename node to "Floating
6341         Point" and rewrite to describe current situation.  Also adjust
6342         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
6343         match code.
6344         * doc/rtl.texi: Adjust cross reference.
6346 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
6348         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
6349         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
6350         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
6351         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
6352         prevent use of sp as a reload register.
6353         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
6354         non_acc_reg_operand.
6355         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
6356         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
6357         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
6358         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
6360 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6362         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
6363         * cpplex.c (unterminated): Delete.
6364         (parse_string): No string literal may extend over multiple
6365         lines.  Suppress the error when preprocessing assembly.
6366         * cppmain.c (scan_translation_unit): Strings are single-line.
6368         * doc/cpp.texi: Update to match.
6370 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
6372         PR optimization/5854
6373         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
6374         Shut up warnings.
6375         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
6376         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
6377         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
6378         const0 if scratch register was not allocated.
6379         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
6380         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
6381         with GEN_INT (...).
6382         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
6383         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
6384         with GEN_INT (...) everywhere.  Remove constraints in define_split
6385         patterns.
6386         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
6387         require scratch register for setting 0 into regs/non-pushable memory.
6389 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
6391         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
6392         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
6394 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
6396         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
6397         * cppinit.c (cpp_create_reader):  On by default.
6398         (cpp_handle_option):  Handle -W[no-]endif-labels.
6399         (cpp_post_options):  Also enable if -pedantic.
6400         * cpplib.c (do_else):  Use it.
6401         (do_endif):  Likewise.
6402         * doc/cppopts.texi:  Document new option.
6403         * doc/invoke.texi:  Document new option.
6405 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
6407         * config/i386/i386.c, config/i386/i386.md: Change all occurences
6408         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
6410 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
6412         * flow.c (calculate_global_regs_live): Clear aux fields of
6413         ENTRY and EXIT.
6415 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
6417         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
6418         REG or MEM subregs, pass rtx * instead of rtx to it.
6419         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
6420         rtx * instead of rtx to alter_subreg.
6421         * config/m32r/m32r.c (gen_split_move_double): Likewise.
6422         * config/pj/pj.c (pj_output_rval): Likewise.
6424 2002-03-22  Richard Henderson  <rth@redhat.com>
6426         PR target/3177
6427         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
6428         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
6429         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
6430         (ia64_expand_prologue): Look at int_regs, not words, for number
6431         of incomming int regs.
6433 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
6435         * expr.c (expand_expr): A RESULT_DECL is part of a call.
6437 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
6439         * toplev.c (flag_loop_optimize, flag_crossjumping):
6440         New static variables.
6441         (rest_of_compilation): Conditionalize crossjumping and
6442         loop optimizer.
6443         (parse_options_and_default_flags): Default loop_optimize and
6444         crossjumping.
6445         (lang_independent_options): Add -fcrossjumping and -floop-optimize
6446         * invoke.texi (crossjumping, loop-optimize): Document.
6448 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
6450         * real.c (eiisneg): Move outside #ifdef NANS.
6452 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
6454         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
6455         frequencies match; avoid match on different loop depths.
6456         (try_crossjump_to_bb): Kill tests that no longer brings time
6457         savings.
6458         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
6459         updating code.
6460         (split_edge): Likewise.
6462         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
6463         variable.
6465         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
6466         * cfgrtl.c: Include insn-config.h
6467         (split_block) Dirtify block in presence of conditional execution
6469 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
6471         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
6472         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
6473         (function_arg): Constify CUMULATIVE_ARGS.
6474         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
6475         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
6476         (UNITS_PER_DOUBLE): New macro.
6477         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
6478         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
6479         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
6480         fp_regs and stack_words.
6481         (EABI_FLOAT_VARARGS_P): New macro.
6482         * config/mips/mips.c (struct mips_arg_info): New.
6483         (mips_arg_info): New function.
6484         (function_arg_advance): Use it.  Add adjustment instructions here
6485         rather than in function_arg.
6486         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
6487         for VOIDmode at the beginning of the function.
6488         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
6489         (function_arg_pass_by_reference): Likewise.
6490         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
6491         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
6492         (mips_va_start): Likewise.  Use the new stack_words field of
6493         CUMULATIVE_ARGS to set up overflow area.  Reformat.
6494         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
6495         doubles and other types, aligning the overflow pointer for non-doubles
6496         too.  Remove some code duplication.  Replace hard-coded constants.
6498 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
6500         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
6501         (CLASS_UNITS): Undefine.
6502         (CLASS_MAX_NREGS): Use FP_INC.
6503         * config/mips/mips.c (compute_frame_size): Likewise.
6504         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
6506 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6508         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
6509         prototype, and handle lexing numbers and identifiers.
6510         (parse_identifier): Update to new form of parse_slow.
6511         (parse_number): Fast path only, use parse_slow otherwise.
6512         (_cpp_lex_direct): Update calls to parse_number.
6514 2002-03-21  DJ Delorie  <dj@redhat.com>
6516         * bb-reorder.c (make_reorder_chain_1): Protect against
6517         when redundant edges are omitted.
6518         * predict.c (dump_prediction): Likewise.
6520 2002-03-21  Richard Henderson  <rth@redhat.com>
6522         PR target/5996
6523         * fixinc/inclhack.def (solaris_stdio_tag): New.
6524         * fixinc/fixincl.x: Regenerate.
6526 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
6528         PR c/5597
6529         * c-typeck.c (process_init_element): Flag non-static
6530         initialization of a flexible array member as illegal.
6532 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
6534         * config/rs6000/t-linux64: New.
6535         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
6536         t-ppccomm.  Use t-rs6000 and t-linux64.
6537         (powerpc64-*-gnu* <tmake_file>): Likewise.
6538         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
6539         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
6540         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
6542 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
6544         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
6545         flag_really_no_inline instead of optimize == 0.
6547         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
6549         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
6551         * flags.h (flag_really_no_inline): New.
6553         * c-common.c (c_common_post_options): Initialize
6554         flag_really_no_inline.
6556         * toplev.c (flag_really_no_inline): New.
6558 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
6560         * config/avr/avr.md (length): Fix length computation for
6561         conditional branches.
6563 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6565         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
6566         sdbout.o, profile.o): Update.
6567         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
6568         langhook.
6569         * c-common.h (gettags): Move here from tree.h.
6570         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
6571         insert_block, getdecls, kept_level_p, global_bindings_p): New.
6572         * dbxout.c (dbxout_init): Use getdecls langhook.
6573         * expr.c (expand_expr): Use insert_block langhook.
6574         * fold-const.c: Include langhooks.h.
6575         (fold_range_test, fold_binary_op_with_conditional_arg,
6576         fold): Use global_bindings_p langhook.
6577         * integrate.c (expand_inline_function): Use insert_block langhook.
6578         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
6579         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
6580         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
6581         LANG_HOOKS_GETDECLS): New.
6582         (LANG_HOOKS_INITIALIZER): Update.
6583         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
6584         langhook.
6585         * langhooks.h (struct lang_hooks_for_decls): New.
6586         (struct lang_hooks): Update.
6587         * profile.c: Include langhooks.h.
6588         (output_func_start_profiler): Use new langhooks.
6589         * sdbout.c: Include langhooks.h.
6590         (sdbout_init, sdbout_finish): Use getdecls langhook.
6591         * stmt.c: Include langhooks.h.
6592         (expand_fixup, fixup_gotos): Use new langhooks.
6593         * stor-layout.c: Include langhooks.h.
6594         (variable_size): Use global_bindings_p langhook.
6595         * toplev.c (compile_file): Use getdecls langhook.
6596         * tree-inline.c (remap_block): Use insert_block langhook.
6597         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
6598         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
6600 2002-03-21  Richard Henderson  <rth@redhat.com>
6602         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
6603         constants in .data when -fpic.
6605 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6607         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
6608         where appropriate.
6610 2002-03-21  Tom Tromey  <tromey@redhat.com>
6612         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
6614 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6616         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
6618         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
6620 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
6621             Richard Henderson  <rth@redhat.com>
6623         PR c/5354
6624         * c-common.c (c_expand_expr): Preserve result of a statement
6625         expression if needed.
6627 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
6629         PR bootstrap/4195
6630         * genrecog.c (maybe_both_true_mode): Remove.
6631         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
6632         * machmode.def (Pmode): Likewise.
6634 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
6636         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
6637         (nonlocal_mentioned_p_1): New function.
6638         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
6639         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
6640         (mark_constant_function): Recognize pure functions.
6641         * rtl.h (global_reg_mentioned_p): New prototype.
6642         * rtlanal.c (global_reg_mentioned_p,
6643         global_reg_mentioned_p_1): New function.
6645 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6647         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
6648         UNIX assert.h.
6649         * fixinc/fixincl.x: Regenerate.
6651 2002-03-20  Jason Merrill  <jason@redhat.com>
6653         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
6655 2002-03-20  Michael Meissner  <meissner@redhat.com>
6657         * doc/invoke.texi (Optimize Options): Document that -O2 sets
6658         -fstrict-aliasing.
6660 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
6662         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
6663         ".literal_position" directive before the constant pool.
6665 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6667         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
6668         Add Craig Rodrigues.
6669         Add Brad Lucier to testers.
6671 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
6673         PR target/4792
6674         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
6675         to if_then_else.
6676         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
6677         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
6678         instead of insn_extract.
6680 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
6682         PR bootstrap/4192
6683         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
6685         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
6686         stmt if some case has been output.
6688 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
6690         PR c/5972
6691         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
6692         movsfcc_1, movdfcc_1): Add %O2.
6693         * config/i386/i386.c (print_operand): Handle %ON.
6694         Print . before float condition codes in Sun as cmov syntax.
6695         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
6696         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
6697         no longer true.
6699 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
6701         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
6702         return instruction if PC was popped.
6704 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
6706         * config/xtensa/xtensa.md: Remove unused type attributes.
6707         (adddi_carry, subddi_carry): Change type attribute to "multi".
6709 2002-03-19  Dale Johannesen  <dalej@apple.com>
6711         PR optimization/5999, middle-end/5731
6712         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
6713         multiplications by reciprocals.
6715 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6717         * Makefile.in: Update.
6718         * c-common.c: Include langhooks.h.
6719         (inline_forbidden_p): Use new hook.
6720         * diagnostic.c: Include langhooks.h.
6721         (format_with_decl, announce_function,
6722         default_print_error_function): Use new hook.
6723         * dwarf2out.c (dwarf2_name): Use new hook.
6724         * function.c: Include langhooks.h.
6725         (init_function_start): Use new hook.
6726         * langhooks-def.h (lhd_decl_printable_name): New.
6727         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
6728         (LANGHOOKS_INITIALIZER): Update.
6729         * langhooks.c (lhd_decl_printable_name): New.
6730         * langhooks.h (struct lang_hooks): New hook.
6731         * toplev.c (decl_name, decl_printable_name): Remove.
6732         (open_dump_file): Use new hook.
6733         (process_options): Remove old hook.
6734         * tree.h (decl_printable_name): Remove.
6735 objc:
6736         * objc-act.c (objc_init): Remove old hook.
6737         (objc_printable_name): Export.
6738         * objc-act.h (objc_printable_name): New.
6739         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
6741 2002-03-19  Jim Blandy  <jimb@redhat.com>
6743         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
6744         the start_source_file debug hook, not the current line number.
6746 2002-03-19  Richard Henderson  <rth@redhat.com>
6748         * flow.c (EH_USES): Provide default.
6749         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
6750         * doc/tm.texi (EH_USES): New.
6752         * config/ia64/ia64.c (ia64_eh_uses): New.
6753         * config/ia64/ia64-protos.h: Update.
6754         * config/ia64/ia64.h (EH_USES): New.
6756 2002-03-19  Richard Henderson  <rth@redhat.com>
6758         * varasm.c (output_constant_def): Fix stupid typo.
6760 2002-03-19  Richard Henderson  <rth@redhat.com>
6762         PR 5879
6763         * except.c (current_function_has_exception_handlers): New.
6764         * except.h: Declare it.
6765         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
6766         Combine tests that disable all sibcalls for the function.
6768 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
6770         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
6771         for INTEGER_CST.
6773 2002-03-19  Richard Henderson  <rth@redhat.com>
6775         PR 5977, 5991
6776         * config/ia64/ia64.c: Revert 2002-03-01 patch.
6777         * config/ia64/ia64.h (INIT_EXPANDERS): New.
6779 2002-03-19  Jim Blandy  <jimb@redhat.com>
6781         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
6782         name, even if the replacement list contains no tokens, as required
6783         by Dwarf.
6785 2002-03-19  Jason Merrill  <jason@redhat.com>
6787         * varasm.c (globalize_decl): Get the name from the RTL, not
6788         DECL_ASSEMBLER_NAME.
6790         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
6792 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
6794         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
6795         subdi_carry): Define.
6797 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
6799         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
6800         about -fpic/-fPIC if extra_warnings set.
6802 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
6804         * expr.c (expand_expr): Sign-extend CONST_INT generated from
6805         TREE_STRING_POINTER.
6806         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
6808 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6810         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
6811         in favor of SP if FRAME_POINTER_REQUIRED is false.
6813 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
6815         * emit-rtl.c (gen_int_mode): New function.
6816         * rtl.h: Prototype for it.
6817         * combine.c (make_extraction, simplify_comparison), expmed.c
6818         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
6819         (convert_modes, store_field), optabs.c (expand_fix),
6820         simplify-rtx.c (neg_const_int, simplify_unary_real),
6822         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
6823         Use it instead of GEN_INT (trunc_int_for_mode (...)).
6825 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
6827         PR c/5656
6828         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
6829         convert_parm_for_inlining.
6830         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
6831         Define.
6832         * langhooks-def.h: Likewise.
6833         * objc/objc-lang.c: Likewise.
6834         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
6835         function.
6836         * tree-inline.c (initialize_inlined_parameters):
6837         Call convert_parm_for_inlining lang hook if needed.
6838         * c-typeck.c (c_convert_parm_for_inlining): New function.
6839         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
6841 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
6843         * calls.c (precompute_arguments): Do not assume that temporaries
6844         can be destroyed after expanding the argument.
6845         (expand_call): Likewise.
6847 2002-03-15  Eric Christopher  <echristo@redhat.com>
6849         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
6850         Fix register preference on last change.
6851         * config/mips/mips.c (mips_return_in_memory): New function.
6852         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
6853         * config/mips/mips-protos.h: Declare.
6854         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
6855         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
6857 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
6859         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
6860         a register too.
6861         (anddi3, iorsi3): Likewise.
6863         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
6864         use %gprel for symbols that are going to be placed in linkonce
6865         sections.
6867         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
6868         RETURN_ADDRESS_POINTER_REGNUM to $ra.
6869         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
6870         not needed.  Disregard leaf_function_p().
6871         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
6872         mips16 frame pointer.
6873         * config/mips/mips.md (store ra): Only to small SP offsets.
6874         2001-08-22  Graham Stott  <grahams@redhat.com>
6875         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
6876         return a REG rtx for the return address register.
6878 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
6880         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
6881         constant-pool addresses as "mode-dependent".
6882         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
6884 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
6886         PR target/5740
6887         * expr.c (emit_group_load): Use extract_bit_field if
6888         needed for CONCAT arguments.
6890 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
6892         PR target/4863
6893         * arm.md (tablejump): Make this a define_expand.  For PIC add the
6894         offset to the base of the table.
6895         (thumb_tablejump): Matcher for Thumb tablejump insn.
6896         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
6897         as the difference of two labels.
6898         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6899         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
6900         tables in the code.
6901         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
6902         * arm.c (get_jump_table_size): If the table is not in the text
6903         section, return zero.
6905 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
6907         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
6908         of gen_rtx_SUBREG.
6909         (arm_reload_out_hi): Use gen_lowpart instead of
6910         gen_rtx_SUBREG to access QImode components.
6911         * config/arm/arm.md: Disable zero_extend split for QImode
6912         subregs in BIG_ENDIAN mode.
6913         (storehi_bigend): Match use of least significant byte.
6914         (storeinthi): Remove extraneous SUBREG.
6915         Add missing construction of operands[2].
6916         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
6917         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
6918         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
6920 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
6922         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
6923         any_operand.
6925 2002-03-17  Richard Henderson  <rth@redhat.com>
6927         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
6928         explicitly.
6930 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
6932         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
6933         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
6935 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6937         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
6939         * predict.c (estimate_bb_frequencies): Delete unused variables.
6941 2002-03-17  Richard Henderson  <rth@redhat.com>
6943         * config/ia64/ia64.c (ia64_attribute_table): Move before
6944         targetm definition.  Make static.
6946 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6948         * c-common.h (yyparse, c_common_parse_file): New.
6949         * c-lang.c: Include c-common.h.
6950         (LANG_HOOKS_PARSE_FILE): Redefine.
6951         * c-lex.c: Include c-common.h.
6952         (yyparse): Rename c_common_parse_file.  Call yyparse.
6953         * c-parse.in (yyparse): Remove macro.
6954         * c-tree.h (yyparse_1): Remove.
6955         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
6956         (LANG_HOOKS_INITIALIZER): Update.
6957         * langhooks.h (struct lang_hoooks): New hook parse_file.
6958         * toplev.c (compile_file): Use parse_file hook.
6959         * tree.h (yyparse): Remove.
6960         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
6962 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
6964         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
6965         float_truncate, not fix.
6966         ("*truncdfsf2_real"): Ditto.
6967         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
6969         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
6971 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
6973         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
6974         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
6975         where appropriate.  Make the second reference to
6976         leaf_function_p a function call, as intended.  Reindented.
6978         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
6979         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
6981         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
6982         add register to non-constant into sp.
6984         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
6985         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
6986         (mips16_gp_pseudo_rtx): Lose.
6987         (INIT_EXPANDERS): Deleted.
6988         * config/mips/mips.c (mips_init_machine_status): New.
6989         (mips_free_machine_status): New.
6990         (mips_mark_machine_status): New.
6991         (override_options): Set them.
6992         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
6993         (struct machine_function): ... new.  Replaced all references.
6994         (mips_add_gc_roots): Don't mark them.
6995         (embedded_pic_fnaddr_reg): New, extracted from...
6996         (embedded_pic_offset): ... here.
6997         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
6998         (movsi): Likewise.
7000 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7002         * cppinit.c: Revert -MD removal.
7004 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7006         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
7007         soft registers by default for 68HC12.
7008         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
7009         when compiling with -fomit-frame-pointer.
7010         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
7011         (expand_epilogue): Likewise.
7012         (m68hc11_gen_rotate): Use exg when rotating by 8.
7014 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7016         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
7017         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
7018         (splits): Remove unused add splits.
7019         ("*addhi3_68hc12"): Tune constraints.
7020         ("addhi_sp"): Try to use X instead of Y in all cases and if the
7021         constant fits in 8-bits and D is dead use abx/aby instructions.
7022         ("*addhi3"): Remove extern declaration of ix_reg.
7023         ("*subsi3"): Optimize and provide new split.
7024         ("subhi3"): Cleanup.
7025         ("*subhi3_sp"): Avoid saving X if we know it is dead.
7026         (arith splits): For 68hc12 save the address register on the stack
7027         and do the arithmetic operation with a pop.
7029 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7031         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
7032         allocating QImode in address registers.
7033         ("*movqi_m68hc11"): Likewise.
7035 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
7037         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
7039 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7041         * cppinit.c (print_help): Display -MD and -MMD.
7042         Don't display usage string.  Update assertion syntax and
7043         typo.
7044         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
7045         (cpp_handle_option): Update.
7047 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
7049         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
7050         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
7051         and define it so that regardless of target CPU size,
7052         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
7053         of "int" rather than "long."
7055 2002-03-15  Richard Henderson  <rth@redhat.com>
7057         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
7058         size as a tree.
7060 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7062         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
7063         ("tstqi" split): Avoid using memory for tstqi on address register.
7064         (splits): Remove constraints.
7065         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
7066         ("cmpdf", "cmpsf"): Remove since not used.
7067         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
7068         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
7070 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7072         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
7073         ("neghi2"): Tighten constraints.
7074         ("one_cmplsi2"): Optimize and simplify split.
7075         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
7077 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7079         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
7080         and split of AND operation to clear the upper bits.
7081         ("*logicalsi3_zextqi"): Likewise.
7082         ("*logicallhi3_zexthi_ashift8"): Likewise.
7083         ("*logicalsi3_silshr16"): Likewise.
7084         ("logicalsi3_silshl16"): Likewise.
7085         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
7087 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7089         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
7090         (m68hc11_indirect_p): New function.
7091         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
7092         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
7093         TARGET_M6812.
7094         (asm_print_register): Likewise.
7095         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
7096         (m68hc11_indirect_p): Declare.
7097         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
7098         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
7099         (TARGET_SWITCHES): New option -mrelax.
7100         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
7101         destination.
7102         ("iorsi3", "xorsi3"): Likewise.
7103         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
7104         ("*andhi3_mem"): New to handle destination in memory with bclr
7105         and a scratch register.
7106         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
7107         ("*andhi3_const"): New when operand2 is constant.
7108         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
7109         ("*andhi3_gen"): Cleanup of the old "andhi3".
7110         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
7111         ("xorqi3"): Update constraints.
7113 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7115         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
7116         for reg_equiv_memory_loc when the operand is a register that does
7117         not get a hard register (stack location).
7118         (tst_operand): After reload, accept all memory operand.
7119         (symbolic_memory_operand): Fix detection of symbolic references.
7120         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
7121         accept symbols and any constant.
7123 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7125         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
7126         note on the insn that sets the soft frame register.
7127         (must_parenthesize): ix and iy are also reserved names.
7128         (print_operand_address): One more place where parenthesis are required
7129         to avoid confusion with register names.
7130         (m68hc11_gen_movhi): Allow push of stack pointer.
7131         (m68hc11_check_z_replacement): Fix handling of parallel with a
7132         clobber.
7133         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
7134         the replacement register is.
7135         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
7136         and D8_REGS classes.
7137         (MODES_TIEABLE_P): All modes are tieable except QImode.
7139 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7141         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
7142         (___subdi3): Likewise.
7143         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
7144         (__map_data_section): Optimize 68hc11 case.
7146 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7148         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
7149         than a shift to avoid adding a register with itself.
7150         (m68hc11_memory_move_cost): Take into account NO_REGS.
7151         (m68hc11_register_move_cost): Update and use memory move cost
7152         for soft registers.
7153         (m68hc11_address_cost): Make cost of valid offset not 0 so that
7154         it gives more opportunities to cse to optimize.
7155         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
7156         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
7158 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
7160         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
7161         * c-common.def (CLEANUP_STMT): New tree node.
7162         * c-common.h (CLEANUP_DECL): New macro.
7163         (CLEANUP_EXPR): Likewise.
7164         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
7165         * expr.c (expand_expr): Tidy.
7166         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
7167         * tree-inline.c (initialize_inlined_parameters): Clean up
7168         new local variables.
7170 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
7172         PR bootstrap/4128
7173         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
7174         before movrXX only, use reg_overlap_mentioned_p.
7175         Only special case NE if just one insn can be generated.
7177 2002-03-15  Jason Merrill  <jason@redhat.com>
7179         * varasm.c (assemble_variable): Call resolve_unique_section before
7180         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
7181         of error_mark_node.
7183 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
7185         PR target/5170
7186         * arm.md (split pattern for thumb shiftable immediates): Add comment
7187         explaining non-obvious test.
7189 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
7191         PR target/5712
7192         * arm.md (movaddr, movaddr_insn): Delete.
7194 2002-03-15  Jason Merrill  <jason@redhat.com>
7196         * toplev.c (wrapup_global_declarations): Clarify variable handling.
7197         -fkeep-static-consts doesn't apply to comdats.
7199 2002-03-14  Richard Henderson  <rth@redhat.com>
7201         * c-decl.c: Include c-pragma.h.
7202         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
7203         (finish_function): Tidy.
7204         * c-pragma.c: Include c-common.h.
7205         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
7206         (handle_pragma_weak): Use them.
7207         (init_pragma): Register pending_weaks.
7208         * c-pragma.h (maybe_apply_pragma_weak): Declare.
7209         * print-tree.c (print_node): Print DECL_WEAK.
7210         * varasm.c (mark_weak_decls): Remove.
7211         (remove_from_pending_weak_list): Remove.
7212         (add_weak): Remove.
7213         (asm_emit_uninitialised): Call globalize_decl for weak commons.
7214         (weak_decls): Make a tree_list.
7215         (declare_weak): Cons weak_decls directly.
7216         (globalize_decl): Remove weak_decls elements directly.
7217         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
7218         symbols.  Don't pretend to handle aliases.
7219         (init_varasm_once): Update weak_decls registry.
7220         * Makefile.in: Update dependencies.
7222 2002-03-14  Richard Henderson  <rth@redhat.com>
7224         PR target/5312
7225         * config/ia64/ia64.c: Include tm_p.h last.
7226         (gen_nop_type): Remove duplicate definition.
7227         (cycle_end_fill_slots): Set sched_data for second L slot.
7228         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
7229         (nop_cycles_until): Fix typos.
7231 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
7233         PR optimization/5891
7234         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
7236 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
7238         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
7239           descriptors correctly.
7241 2002-03-14  Michael Meissner  <meissner@redhat.com>
7243         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
7244         100, allowing MAX_UNROLLED_INSNS to be overridden.
7246         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
7247         --param.
7249         * unroll.c (params.h): Include.
7250         (MAX_UNROLLED_INSNS): Delete, now in params.h.
7252         * doc/invoke.texi (--param max-unroll-insns): Document.
7254         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
7256 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
7258         * arm.md: Fix warnings about constraints in peepholes and splits.
7260 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
7262         * cpphash.h (struct lexer_state): Remove line_extension member.
7263         * cpplib.c (dequote_string, do_linemarker): New functions.
7264         (linemarker_dir): New data object.
7265         (DIRECTIVE_TABLE): No longer need to interpret #line in
7266         preprocessed source.  Delete obsolete comment about return
7267         values of handlers.
7268         (end_directive, directive_diagnostics, _cpp_handle_directive):
7269         Don't muck with line_extension.
7270         (directive_diagnostics): No need to issue warnings for
7271         linemarkers here.
7272         (_cpp_handle_directive): Issue warnings for linemarkers here,
7273         when appropriate.  Dispatch linemarkers to do_linemarker, not
7274         do_line.
7275         (do_line): Code to handle linemarkers split out to do_linemarker.
7276         Convert escape sequences in filename argument, both places.
7278         * cppmacro.c (quote_string): Rename cpp_quote_string and
7279         export.  All callers changed.
7280         * cpplib.h (cpp_quote_string): Prototype.
7281         * cppmain.c (print_line): Call cpp_quote_string on to_file
7282         before printing it.
7284         * doc/cpp.texi: Document that escapes are now interpreted in
7285         #line and in linemarkers, and that non-printing characters are
7286         converted to octal escapes when linemarkers are generated.
7288 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
7290         * emit-rtl.c (try_split): Use delete_insns.
7291         * recog.c (split_all_insns): Fix terminating condition.
7293 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
7294             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
7296         PR target/5828
7297         * arm.c (arm_output_epilogue): Fix floating-point register save
7298         adjustment when using a frame pointer.
7300 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
7302         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
7303         * config/mips/mips.c (compute_frame_size): Retrofit them here.
7304         (save_restore_insns, mips_expand_epilogue): And here.
7305         (build_mips16_call_stub): And here.
7306         (mips_function_value): Use the new macros to decide whether a single
7307         or complex float can be returned in floating-point registers.  Return
7308         a parallel rtx in the complex case.
7310 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
7312         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
7313         call after liveness analysis.
7315         * recog.c (split_insn): Use delete_insn_and_edges.
7317         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
7318         instructions to have branch prediction notes.
7319         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
7321 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
7323         * configure.in: Don't pass -Wno-long-long to a ADA compiler
7324         that doesn't support it.
7325         * configure: Regenerate.
7327 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7329         PR target/5626
7330         * config/sparc/sparc.md (normal_branch, inverted_branch,
7331         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
7332         inverted_fp_branch): Adjust calls to output_cbranch.
7333         Set length attribute.
7334         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
7335         output_v9branch.  Set length attribute.
7336         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
7337         predicates.
7338         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
7339         (output_cbranch): Likewise.  Handle far branches.
7340         (output_v9branch): Handle far branches.
7341         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
7342         Adjust prototypes.
7343         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
7344         noov_compare64_op predicates.
7346 2002-03-13  Jason Merrill  <jason@redhat.com>
7348         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
7349         into the function and constify it.
7350         * gthr-dce.h, gthr-solaris.h: Likewise.
7352 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
7354         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
7355         * config/rs6000/rs6000.c (rs6000_va_arg): Use
7356         std_expand_builtin_va_arg if not ABI_V4.
7358 2002-03-13  Jason Merrill  <jason@redhat.com>
7360         * varasm.c (globalize_decl): New fn.
7361         (assemble_start_function): Use it.
7362         (asm_emit_uninitialized): Use it.
7363         (assemble_alias): Use it.
7364         (assemble_variable): Use it.
7366 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
7368         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
7369         2002-03-12 internal visibility change.
7370         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
7371         visibility into SYMBOL_REF_FLAG.
7373 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
7375         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
7376         VOIDmode operand.  Add compile-time optimization for constant results.
7378 2002-03-12  Jason Merrill  <jason@redhat.com>
7380         * c-typeck.c (convert_for_assignment): Don't allow conversions
7381         between pointers and references.  Only allow lvalues to convert to
7382         reference.
7384 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
7386         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
7387         before prologue, to avoid scheduling problems.
7389 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7391         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
7392         (ELIMINABLE_REGS): Add sfp->sp.
7393         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
7395 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7397         PR optimization/5892
7398         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
7400 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7402         * loop.c (basic_induction_var): Don't call convert_modes if mode
7403         classes are different.
7405 2002-03-12  Richard Henderson  <rth@redhat.com>
7407         PR optimization/5901
7408         * function.c (reposition_prologue_and_epilogue_notes): Position
7409         the markers after/before the last/first insn not deleted.
7411 2002-03-12  Richard Henderson  <rth@redhat.com>
7413         PR optimization/5878
7414         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
7415         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
7416         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7418         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
7419         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
7420         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
7422         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
7423         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
7424         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
7425         also.  Don't set it if not flag_pic.
7426         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
7427         to be INVALID_REGNUM when not used.
7429 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
7431         * expmed.c (store_bit_field): Reset alias set for memory.
7432         (extract_bit_field): Same.
7434 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7436         * c-common.c (c_tree_code_type, c_tree_code_length,
7437         c_tree_code_name, add_c_tree_codes): Delete.
7438         * c-common.h (add_c_tree_codes): Delete.
7439         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
7440         Define.
7441         * c-objc-common.c (c_objc_common_init): Don't call
7442         add_c_tree_codes, instead set lang_unsafe_for_reeval.
7443         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
7444         objc_tree_code_name, add_objc_tree_codes): Delete.
7445         (objc_init): Don't call add_objc_tree_codes.
7446         * objc/objc-lang.c (tree_code_type, tree_code_length,
7447         tree_code_name): Define.
7448         * toplev.c (lang_independent_init): Don't set
7449         tree_code_length[IDENTIFIER_NODE].
7450         * tree.c (tree_code_type, tree_code_length, tree_code_name):
7451         Delete definitions, moved to language front-ends.
7452         * tree.def (IDENTIFIER_NODE): Hardwire the length.
7453         * tree.h (tree_code_type, tree_code_length, tree_code_name):
7454         Const-ify.
7455         (tree_code_length): Change type to unsigned char.
7457 2002-03-12  Richard Henderson  <rth@redhat.com>
7459         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
7460         internal visibility change.
7462 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7464         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
7465         validize_mem() instead of change_address to avoid clobbering
7466         memory attributes.
7468 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
7470         * c-lex.h (position_after_whitespace): Remove.
7472 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
7474         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
7475         (lex_string): Use unsigned char pointers.
7477 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
7479         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
7480         is not a valid memory_operand.
7482 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7484         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
7485         * config/xtensa/lib1funcs.asm: Fix copyright to include
7486         special case for libgcc files.
7487         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
7488         (__divsi3): Likewise.
7489         (__umodsi3): Likewise.
7490         (__modsi3): Likewise.
7491         * config/xtensa/lib2funcs.S: Fix copyright to include
7492         special case for libgcc files.
7494 2002-03-12  Tom Rix  <trix@redhat.com>
7496         * collect2.c (resolve_lib_name): Move outside of
7497         OBJECT_FORMAT_COFF ifdef.
7498         (ignore_library): Same.
7500 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7502         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
7504 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7506         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
7507         to function_section before writing out the constant pool.
7509 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
7511         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
7512         zero_constant.
7513         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
7515 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
7517         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
7518         (adddi3): Likewise.
7519         (movdf): Likewise.
7520         (movdi): Likewise.
7521         (cmpsi splitter): Likewise.
7522         (modsi3): Fail if <= 0.
7523         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
7524         redundant test when HOST_BITS_PER_WIDE_INT != 32.
7525         (reg_or_sub_cint64_operand): Likewise.
7526         (num_insns_constant_wide): Optimize sign extension.
7527         (rs6000_legitimize_address): Likewise.
7529 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
7531         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7532         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7534 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
7536         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
7537         address calculation.
7539 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
7541         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
7542         scratch register to DImode / TImode.
7543         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
7544         register used does not overlap the target.
7546 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7548         * Makefile.in (debug.o): Depend on debug.h.
7549         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
7550         * debug.c (do_nothing_debug_hooks): Likewise.
7551         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
7552         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
7553         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
7554         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
7555         * dwarfout.c (dwarf_debug_hooks): Likewise.
7556         * integrate.c (output_inline_function): Likewise.
7557         * objc/objc-act.c (synth_module_prologue): Likewise.
7558         * sdbout.c (sdb_debug_hooks): Likewise.
7559         * toplev.c (debug_hooks): Likewise.
7560         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7562 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7564         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
7565         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
7566         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
7567         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
7568         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
7569         * defaults.h (POINTER_SIZE): Define.
7570         * doc/tm.texi (POINTER_SIZE): Document default.
7572 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7574         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
7576 2002-03-11  Richard Henderson  <rth@redhat.com>
7578         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
7579         if rebuild_label_notes_after_reload.
7581 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
7583         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
7584         emit pic register load if "internal" visibility.
7585         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
7586         (cris_expand_builtin_va_arg): Do all computations on trees.
7588 2002-03-11  Richard Henderson  <rth@redhat.com>
7590         * rtlanal.c: Include recog.h.
7591         (keep_with_call_p): Fix thinko.
7592         * Makefile.in (rtlanal.o): Update dependencies.
7594 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
7596         * genflags.c (gen_insn): Use IS_VSPACE.
7597         * genoutput.c (output_insn_data): Likewise.
7598         (process_template): Likewise.
7600 2002-03-11  Richard Henderson  <rth@redhat.com>
7602         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
7604 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
7606         * Makefile.in: Update.
7607         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
7608         Update documentation.
7609         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
7610         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
7612 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
7614         * Makefile.in: Give texi2pod its input file as a command line
7615         argument, not on stdin.
7617 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
7618             Daniel Berlin  <dan@dberlin.org>
7620         C++ alias analysis improvement.
7621         * alias.c (record_component_aliases): Record aliases for base
7622         classes too.
7624 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
7626         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
7628 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
7630         * toplev.c (vms_fopen): Remove, not needed.
7632         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
7634         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
7636         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
7637         for FP, already done later.
7639         * toplev.c (debug_args): Add entry for VMS_DEBUG.
7640         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
7642 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
7644         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
7645         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
7646         LARGEST_EXPONENT_IS_NORMAL for the given mode.
7647         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
7648         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
7649         (ediv, emul, eldexp, esqrt): Likewise.
7650         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
7651         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
7652         (saturate): New function.
7653         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
7654         (make_nan): Use a saturation value instead of a NaN if
7655         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
7656         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
7657         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
7658         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
7659         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
7660         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
7661         !ROUND_TOWARDS_ZERO.
7662         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
7663         (ROUND_TOWARDS_ZERO): Document.
7665 2002-03-11  Andreas Jaeger  <aj@suse.de>
7667         * cfg.c (dump_flow_info): Remove unused variable.
7669 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
7671         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
7672         computations on trees.
7674 2002-03-10  Richard Henderson  <rth@redhat.com>
7676         PR 5693:
7677         * reload.c (copy_replacements_1): New.
7678         (copy_replacements): Use it to recurse through the rtx.
7680 2002-03-10  Richard Henderson  <rth@redhat.com>
7682         * loop.c (strength_reduce): Compute number of iterations as
7683         unsigned HOST_WIDE_INT.
7685 2002-03-10  Richard Henderson  <rth@redhat.com>
7687         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
7688         to move away from the end of the block.
7690 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
7692         PR preprocessor/5899
7693         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
7695 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7697         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
7699         * attribs.c (decl_attributes): Fix signed/unsigned warning.
7701 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
7703         * config/mmix/mmix.c: Improve comments.
7704         (mmix_target_asm_function_prologue): Drop variable
7705         empty_stack_frame.  Don't allocate unused slot above fp.
7706         (mmix_target_asm_function_epilogue): Mirror prologue changes.
7707         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
7708         brace in first column.
7709         (enum reg_class): Ditto.
7710         (FIRST_PARM_OFFSET): Now 0.
7711         (USER_LABEL_PREFIX): Remove #if 0:d definition.
7713 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7715         * combine.c (make_extraction): Fix error in last change.
7717 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7719         * c4x.c (c4x_fp_reglist): Const-ify.
7720         * cris.c (cris_print_operand): Likewise.
7721         * i386.c (ix86_va_arg): Likewise.
7722         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
7723         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
7724         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
7725         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
7726         * mcore.h (regno_reg_class): Likewise.
7727         * mips.c (gen_int_relational): Likewise.
7728         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
7729         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
7730         * pdp11.c (move_costs): Likewise.
7731         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
7732         * s390.c (s390_branch_condition_mnemonic, regclass_map):
7733         Likewise.
7734         * s390.h (regclass_map): Likewise.
7735         * sh.c (shift_amounts): Likewise.
7736         * sh.md (rotlsi3): Likewise.
7738 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
7740         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
7741         (ne0+5): Use new clobber to generate proper shift pattern.
7742         Patch by Michael Matz <matz@kde.org>.
7744 2002-03-09  Andreas Schwab  <schwab@suse.de>
7746         * gcc.c (validate_all_switches): Also handle `%W{...}'.
7748 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
7750         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
7752 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
7754         PR middle-end/5877
7755         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
7756         even for non-representable constants.
7758 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7760         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
7761         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
7762         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
7763         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
7764         (pop_function_context): Compute MAY_SHARE parameter for
7765         fixup_var_refs.
7766         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
7767         (gen_mem_addressof): Call fixup_var_refs with new parm.
7769         * combine.c (make_extraction): Don't make extension of CONST_INT.
7771 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
7773         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
7774         in o32 and o64 ABIs.
7775         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
7776         but getting fixed-size structs passed in registers regardless of
7777         padding in o32 and o64 ABIs.
7779         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
7780         offset before loading address of argument passed by transparent
7781         reference.
7783 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7785         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
7787 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
7789         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
7790         marker such that registers after it are saved.
7792 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7794         * sparc.c (arith_4096_operand): Fix error in last change.
7796 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
7798         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
7799         defaults for MEABI.
7801 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
7803         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
7804         vectors.
7806 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
7808         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
7810 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
7812         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
7813         removed; fix return value.
7814         * combine.c (combine_instructions): Dirtify blocks where we failed to
7815         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
7816         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
7818 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7820         * gcse.c (insert_insn_end_bb): Fix typo in last change.
7822 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
7824         * recog.c (peephole2_optimize): Re-distribute EH edges.
7826 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
7828         * expr.c (expand_expr): Use unsave lang hook.
7829         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
7830         (LANG_HOOKS_INITIALIZER): Update.
7831         * langhooks.h (struct lang_hooks): New hook unsave.
7832         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
7833         (unsave_expr_1): Remove unused lang_unsave_expr_now.
7834         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
7835         (unsave_expr_now): Remove.
7836         * tree.h (unsave_expr_now, lang_unsave,
7837         lang_unsave_expr_now): Remove.
7838         (lhd_unsave): New.
7840 2002-03-08  Andreas Jaeger  <aj@suse.de>
7842         * flow.c (propagate_block_delete_insn): Remove unused variable.
7844 2002-03-08  Kazu Hirata  <kazu@hxi.com>
7846         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
7847         insn length for memory load/store.
7849 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7851         * doc/install.texi (--with-libiconv-prefix): Document.
7853 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
7855         * doc/sourcebuild.texi: Fix typo.
7857 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
7859         PR c/3711
7860         * builtins.c (std_expand_builtin_va_arg): Do all computations on
7861         trees.
7863 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7865         * rtl.c (copy_most_rtx): Move from here ...
7866         * emit-rtl.c (copy_most_rtx): ... to here.
7868 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
7870         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
7871         SUBTARGET_CPP_SIZE_SPEC.
7872         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
7874         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
7876 2002-03-07  Matt Hiller  <hiller@redhat.com>
7878         * gensupport.c (first_dir_md_include): Renamed from include;
7879         change all references.
7880         (last_dir_md_include): Renamed from last_include; change all
7881         references.
7882         (init_md_reader): Unconditionally initialize base_dir whether or
7883         not filename is a relative path.
7885 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
7887         * config/fp-bit.c (_unord_f2): Compile it in even if
7888         US_SOFTWARE_GOFAST is enabled.
7890         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
7891         NULL_RTX.  Set all HFmode operations as NULL_RTX.
7892         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
7893         NULL_RTX, try reversing the comparison and the operands.
7895 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
7897         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
7898         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
7899         and MATCH_OP_DUP.
7901 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
7903         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
7905 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
7907         * basic-block.h (fixup_abnormal_edges): Declare.
7908         * reload1.c (fixup_abnormal_edges): New function.
7909         * reg-stack.c (convert_regs): Use it.
7911         * gcse.c (insert_insn_end_bb): Handle trapping insns.
7913         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
7915 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
7917         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
7918         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
7919         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
7920         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
7921         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
7922         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
7923         unless x and y could be infinite.
7924         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
7925         Check that the common type of both arguments is a real, even for
7926         targets without unordered comparisons.  Allow an integer argument
7927         to be compared against a real.
7928         (expand_tree_builtin): Use expand_unordered_cmp.
7929         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
7930         * cse.c (fold_rtx): Likewise.  Fix indentation.
7931         * fold-const.c (fold_real_zero_addition_p): New.
7932         (fold): Use it, and the new HONOR_... macros.
7933         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
7934         * jump.c (reversed_comparison_code_parts): After searching for
7935         the true comparison mode, use HONOR_NANS to decide whether it
7936         can be safely reversed.
7937         (reverse_condition_maybe_unordered): Remove IEEE check.
7938         * simplify-rtx.c (simplify_binary_operation): Use the new macros
7939         to decide which simplifications are valid.  Allow the following
7940         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
7941         and (a - -b) to (a + b).
7942         (simplify_relational_operation): Use HONOR_NANS.
7943         * doc/tm.texi: Document the MODE_HAS_... macros.
7945 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
7947         * combine.c (simplify_comparison): If simplifying a logical shift
7948         right and compare with constant, force the comparison to unsigned.
7950 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
7952         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
7954         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
7955         -mabi=no-altivec
7956         (alt_reg_names): Remove % for vrsave.
7958 2002-03-06  Richard Henderson  <rth@redhat.com>
7960         PR optimization/5844
7961         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
7962         if used indicates we've already emitted one copy of an operand.
7963         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
7964         (gen_split): Supply a non-null used.
7966 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
7968         * reload1.c (reload): Unshare all rtl after reload is done.
7970         * simplify-rtx.c (simplify_plus_minus): Do not abort,
7971         but simply fail if the expression is too complex to simplify.
7972         (simplify_gen_binary): Handle simplify_plus_minus failures.
7974 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
7976         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
7977         consistently call delete_trivially_dead_insns after CSE and GCSE;
7978         fix DFI_life dumping; do jump threading after liveness; do crossjumping
7979         after liveness2; update comment in last crossjumping.
7980         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
7982 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
7984         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
7985         after completing fast dead code elimination.
7987         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
7988         COMPARE operator.
7990 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
7992         * version.c:  Fix misplaced leading blanks on first line.
7994 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
7996         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
7998 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
8000         * cfgcleanup.c (mentions_nonequal_regs): New function.
8001         (thread_jump): Use it.
8002         * toplev.c (rest_of_compilation): Run jump threading after
8003         liveness.
8005 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8007         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
8008         patch.
8010 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
8012         * predict.c (estimate_bb_frequencies): Do not reload the
8013         frequencies from notes.
8015 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
8017         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
8018         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
8020         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
8021         delete_noop_moves): Return indeger.
8022         * flow.c (ndead): New variable.
8023         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
8024         BB argument; update callers.
8025         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
8026         (life_analysis): Do not call purge_all_dead_edges.
8027         (update_life_info): Return number of deleted insns; print statistics.
8028         (update_life_info_in_dirty_blocks): likewise.
8029         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
8030         return number of insns deleted.
8032         * cse.c: Include timevar.h
8033         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
8034         iterate until stabilizes; print statistics; return number of killed
8035         insns.
8036         * Makefile.in: (cse.o): Add timevar.h dependency
8037         * rtl.h (delete_trivially_dead_insns): New.
8038         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
8039         * toplev.c (rest_of_compilation): Update callers.
8041         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
8042         (try_optimize_cfg): Do not update liveness.
8043         (cleanup-cfg): Loop until try_optimize_cfg and dead code
8044         removal stabilizes; use delete_trivially_dead_insns.
8046         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
8048 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
8050         * cppmain.c (setup_callbacks): Disable #pragma and #ident
8051         callbacks when processing assembly language.
8053 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8055         * pa.h (ASM_FILE_END): Define.
8056         * som.h (ASM_FILE_END): Delete.
8058         * pa.c (function_arg): Don't pass floats in general registers in
8059         indirect calls if TARGET_ELF32.
8061 2002-03-05  Richard Henderson  <rth@redhat.com>
8063         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
8065 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
8067         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
8069 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
8071         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
8072         -r command line.  Don't hide any symbols if not building
8073         shared libgcc.
8075 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
8077         * cfg.c (dump_flow_info): Warn about profile mismatches.
8078         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
8079         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
8081 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
8083         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
8084         wide volatile memory by parts.
8086 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
8088         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
8089         is NULL.
8091 2002-03-05  Richard Henderson  <rth@redhat.com>
8093         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
8095 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
8097         * toplev.c (documented_lang_options): Document more
8098         language-specific options.
8099         * doc/invoke.texi (Warning Options): Correct documentation for
8100         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
8101         * c-decl.c (c_decode_option): Use a table to handle warning options.
8103 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
8105         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
8106         parameter to mmix_encode_section_info.
8107         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
8108         relocatably.  Always produce ELF, not mmo if linking relocatably.
8109         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
8110         first is non-zero, don't add symbol prefix.
8111         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
8112         prototype accordingly.
8114 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
8116         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
8118 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
8120         * configure.in: Increase required makeinfo version to 4.1.
8121         * configure: Regenerate.
8123 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
8125         * .cvsignore: Remove *.info* and genrtl*; these files are generated
8126         elsewhere now.
8128 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
8130         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
8131         * doc/invoke.texi: Fix @math uses.
8133 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
8135         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
8136         removal
8138 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
8140         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
8141         (powerpc-*-eabisimaltivec*): Same.
8143         * config/rs6000/t-ppcendian: New.
8145 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8147         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
8148         nonimmediate_src_operand and nonimmediate_lsrc_operand to
8149         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
8151 2002-03-03  Richard Henderson  <rth@redhat.com>
8153         * toplev.c (rest_of_decl_compilation): Revert last two changes.
8155 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
8157         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
8158         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
8159         tree.c, config/m68k/m68k.c:
8160         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
8161         REAL_ARITHMETIC blocks unconditional.  Delete some further
8162         #ifdef blocks predicated on REAL_ARITHMETIC.
8163         * flags.h, toplev.c: Delete remaining references to
8164         flag_pretend_float.
8166         * doc/invoke.texi: Remove documentation of -fpretend-float.
8167         * doc/tm.texi: Describe the various REAL_* macros as provided by
8168         real.h, not by the target configuration files.
8170         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
8171         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
8172         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8173         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
8174         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
8175         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
8176         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
8177         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
8178         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
8179         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
8180         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
8181         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8182         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
8183         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
8184         config/xtensa/xtensa.h:
8185         Do not define, undefine, or mention in comments any of
8186         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
8187         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
8188         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
8189         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
8190         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
8191         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
8192         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
8193         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
8194         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
8196 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8198         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
8199         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
8200         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
8201         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
8202         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
8203         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
8204         Delete.
8205         * defaults.h (BITS_PER_WORD): Define.
8206         * doc/tm.texi (BITS_PER_WORD): Document default value.
8208         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
8209         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
8210         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
8212 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8214         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
8215         lieu of explicit sizeof/sizeof.
8216         * i386.c (override_options, ix86_init_mmx_sse_builtins,
8217         ix86_expand_builtin): Likewise.
8218         * mips.c (mips_add_gc_roots): Likewise.
8219         * mmix.c (mmix_output_condition): Likewise.
8220         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
8221         altivec_init_builtins): Likewise.
8222         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
8223         * cppexp.c (Nsuff, parse_number): Likewise.
8224         * cppinit.c (builtin_array_end): Likewise.
8225         * gcc.c (n_default_compilers, process_command): Likewise.
8226         * genpreds.c (output_predicate_decls): Likewise.
8227         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
8228         * lcm.c (N_ENTITIES): Likewise.
8229         * stor-layout.c (set_sizetype): Likewise.
8231 2002-03-03  Richard Henderson  <rth@redhat.com>
8233         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
8234         for types or labels.
8236 2002-03-03  Richard Henderson  <rth@redhat.com>
8238         * c-decl.c (start_decl): Initialized variables are not common.
8240 2002-03-02  Per Bothner  <per@bothner.com>
8242         * gcc.c (option_map):  Suport new --bootclasspath option.
8243         --CLASSPATH is now just an alias for --classpath.
8245 2002-03-02  Richard Henderson  <rth@redhat.com>
8247         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
8248         load if "internal" visibility.
8249         * doc/extend.texi: Document visibility meanings.
8251 2002-03-02  Richard Henderson  <rth@redhat.com>
8253         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
8254         to functions as well.
8256 2002-03-02  Richard Henderson  <rth@redhat.com>
8258         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
8259         (handle_visibility_attribute): Don't call assemble_visibility.
8260         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
8261         without asmspec.  Invoke assemble_alias when needed.
8262         * varasm.c (maybe_assemble_visibility): New.
8263         (assemble_start_function, assemble_variable, assemble_alias): Use it.
8265 2002-03-02  Richard Henderson  <rth@redhat.com>
8267         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
8268         invoke ENCODE_SECTION_INFO with first call flag.
8270         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8271         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8272         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
8273         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
8274         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
8275         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
8276         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
8277         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
8278         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
8279         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
8280         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
8281         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
8282         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
8283         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
8284         config/mcore/mcore-protos.h, config/mcore/mcore.c,
8285         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
8286         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
8287         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
8288         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
8289         config/sh/sh.h, config/sparc/sparc.h,
8290         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
8291         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
8292         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
8293         FIRST argument.  As needed, examine it and do nothing.
8295         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
8296         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8297         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
8299         * config/arm/t-pe (pe.o): Add dependencies.
8301 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8303         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
8304         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
8305         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
8306         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
8307         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
8308         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
8309         * defaults.h (BITS_PER_UNIT): Define.
8310         * doc/tm.texi (BITS_PER_UNIT): Document default value.
8312 2002-03-02  Kazu Hirata  <kazu@hxi.com>
8314         * config/h8300/h8300-protos.h: Add a prototype for
8315         compute_a_shift_length.
8316         * config/h8300/h8300.c (h8300_asm_insn_count): New.
8317         (compute_a_shift_length): Likewise.
8318         (h8300_adjust_insn_length): Do not adjust insn length of shift
8319         insns.
8320         * config/h8300/h8300.md (anonymous shift patterns): Use
8321         compute_a_shift_length.
8323 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8325         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
8326         trunc_int_for_mode.
8328         * emit-rtl.c (offset_address): Call update_temp_slot_address.
8330 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8332         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
8333         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
8334         * flags.h (flag_zero_initialized_in_bss): Declare.
8335         * toplev.c (flag_zero_initialized_in_bss): New flag.
8336         (lang_independent_options): Add flag_zero_initialized_in_bss.
8337         * tree.c (initializer_zerop): New function.
8338         * tree.h (initializer_zerop): Declare.
8339         * varasm.c (assemble_variable): If we can emit bss, put zero
8340         initializers in the bss section.
8342 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
8344         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
8345         like more than one symbol per .weak directive.
8347 2002-03-01  Richard Henderson  <rth@redhat.com>
8349         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
8350         adjust argument_pointer by pretend_args_size.
8351         (ia64_va_start): Adjust va_start address by -pretend_args_size.
8353 2002-03-01  Kazu Hirata  <kazu@hxi.com>
8355         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
8357 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
8359         * toplev.c (rest_of_compilation): Delete dead jumptables before
8360         loop.
8361         * flow.c (delete_dead_jumptables): Make global.
8362         * rtl.h (delete_dead_jumptables): Declare.
8364 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
8366         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
8367         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
8368         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
8370 2002-03-01  Kazu Hirata  <kazu@hxi.com>
8372         * config/h8300/h8300-protos.h: Fix formatting.
8373         * config/h8300/h8300.c: Likewise.
8374         * config/h8300/h8300.h: Likewise.
8376 2002-03-01  Kazu Hirata  <kazu@hxi.com>
8378         * config/h8300/h8300.c (print_operand): Support 16-bit
8379         constant addresses.
8380         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
8382 2002-02-28  Richard Henderson  <rth@redhat.com>
8384         * expmed.c (store_bit_field): Prevent generation of CONCATs;
8385         pun complex values as integers; use gen_lowpart instead of
8386         gen_rtx_SUBREG.
8387         (extract_bit_field): Likewise.
8389 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
8390             David Edelsohn  <edelsohn@gnu.org>
8392         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
8393         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
8394         (SUPPORTS_WEAK): Likewise.
8395         * output.h (add_weak): Add tree param.
8396         * varasm.c (add_weak): Likewise.  Save decl.
8397         (struct weak_syms): Add decl field.
8398         (mark_weak_decls): New function.
8399         (init_varasm_once): ggc_add_root mark_weak_decls.
8400         (assemble_start_function): Use ASM_WEAKEN_DECL.
8401         (assemble_variable): Likewise.
8402         (assemble_alias): Likewise.
8403         (declare_weak): Pass decl to add_weak.
8404         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
8405         (remove_from_pending_weak_list): Declare and define for
8406         ASM_WEAKEN_DECL.
8407         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
8408         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
8409         * defaults.h (SUPPORTS_WEAK): Likewise.
8410         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8411         .weak for code sym.  Do emit .size for descriptor sym.
8412         (ASM_DECLARE_FUNCTION_SIZE): Define.
8413         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
8414         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
8415         .lglobl unless TARGET_XCOFF.  Formatting fixes.
8416         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8417         .weak for code sym.
8418         (HANDLE_PRAGMA_WEAK): Remove.
8419         (ASM_WEAKEN_LABEL): Remove.
8420         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
8422 2002-03-01  Jason Merrill  <jason@redhat.com>
8424         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
8425         (TARGET_EXPR_CLEANUP): New macro.
8427 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
8429         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
8430         to take ptr_extend into account as third type of extension.
8431         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
8432         fields used by SUBREG_PROMOTED_UNSIGNED_P.
8433         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
8434         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
8435         * calls.c (precompute_arguments): Use new macro.
8436         (expand_call): Ditto.
8437         * combine.c (nonzero_bits): Ditto.
8438         (record_promoted_value): Ditto.
8439         * expr.c (store_expr): Ditto.
8440         (expand_expr): Ditto.
8441         * function.c (assign_parms): Ditto.
8443 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
8445         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
8446         override -shared and -shared-libgcc.
8448 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
8450         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
8451         of "ultrasparc".
8452         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
8453         to be broken.
8455 2002-02-28  Richard Henderson  <rth@redhat.com>
8457         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
8458         4 cycle latency from MM producers.
8459         (ia64_internal_sched_reorder): Likewise with pipeline flush.
8461 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8463         * mklibgcc.in: Don't use GNU make extension.
8465 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
8467         * c-parse.in (STATIC): New terminal.
8468         (scspec): New non-terminal.  Update productions accordingly.
8469         (program): Remove bogus ifc / end ifc.
8470         (array_declarator): Simplify production using STATIC.
8472 2002-02-28  Jim Meyering  <meyering@lucent.com>
8474         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
8475         \a still means TARGET_BELL.
8477 2002-02-28  Richard Henderson  <rth@redhat.com>
8479         * haifa-sched.c (sched_emit_insn): New.
8480         (schedule_block): Use last_scheduled_insn to track last insn.
8481         * sched-int.h (sched_emit_insn): Prototype.
8482         * config/ia64/ia64.c (last_issued): Remove.
8483         (ia64_variable_issue): Don't set it.
8484         (nop_cycles_until): Use sched_emit_insn.
8486 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
8488         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
8489         extended constants.
8491 2002-02-28  Kazu Hirata  <kazu@hxi.com>
8493         * config/h8300/h8300.c: Fix formatting.
8494         * config/h8300/h8300.h: Likewise.
8496 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8498         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
8499         which may overwrite the high byte of the frame pointer.
8501 2002-02-28  Bo Thorsen  <bo@suse.de>
8503         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
8504         (STARTFILE_SPEC): Add 64 bit files.
8505         (ENDFILE_SPEC): Likewise.
8507 2002-02-28  Jason Merrill  <jason@redhat.com>
8509         * c-decl.c (finish_function): Only warn about missing return
8510         statement with -Wreturn-type.
8512 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8514         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
8516         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
8517         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
8519 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8521         * basic-block.h (BB_REACHABLE): Renumber.
8522         (BB_DIRTY, BB_NEW): New flags.
8523         (clear_bb_flags): Declare.
8524         (update_life_info_in_dirty_blocks): Declare.
8525         * cfg.c (clear_bb_flags): New function.
8526         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
8527         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
8528         reorder_insns, emit_insn_after): Mark block as dirty.
8529         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
8530         (update_life_info_in_dirty_blocks): New function.
8531         * recog.c (apply_change_group): Dirtify block.
8533         * cse.c (cse_insn): Reorder emitting of jump insn to keep
8534         cfg consistent.
8535         * gcse.c (delete_null_pointer_checks): Likewise.
8537         * toplev.c (dump_file_index): Move cse2 after bp,
8538         add DFI_null
8539         (dump_file_info): Similary.
8540         (rest_of_compilation): Avoid most of CFG rebuilds;
8541         do first if converision after null pointer checks, do cse2
8542         after branch prediction; avoid full liveness rebuild after
8543         initializing subregs.
8544         * invoke.texi (-d options): Document -du, renumber.
8546         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
8547         (notice_new_block): Do not set BB_UPDATE_LIFE.
8548         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
8549          merge_blocks_move_successor_nojumps, merge_blocks,
8550          try_crossjump_to_edge): Likewise.
8551         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
8552         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
8553         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
8554         (merge_of_block): Do not use life_data_ok.
8555         (find_if_case_1): Do not use SET_UPDATE_LIFE.
8556         (if_convert): Use BB_DIRTY mechanizm to update life.
8557         * lcm.c (optimize_mode_switching): Update
8558         update_life_info_in_dirty_blocks
8560 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
8562         * Makefile.in (integrate.o): Update.
8563         * c-decl.c (copy_lang_decl): Rename.
8564         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8565         * integrate.c: Include langhooks.h.
8566         (copy_decl_for_inlining): Update to use langhook.
8567         * langhooks-def.h (lhd_do_nothing_t,
8568         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
8569         (LANG_HOOKS_INITIALIZER): Update.
8570         * langhooks.c (lhd_do_nothing_t): New.
8571         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
8572         * tree.h (copy_lang_decl): Remove.
8573 objc:
8574         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8576 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
8578         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
8579         POST_DEC, and POST_MODIFY.
8581 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
8583         * c-typeck.c (digest_init): Remove unused parameter; all
8584         callers changed.
8586 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
8588         * expmed.c (expand_shift): Correctly test for low part of a
8589         subreg.
8591 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
8593         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
8594         insn UIDs with insn addresses.
8596 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
8598         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
8599         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
8600         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
8601         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
8602         gcc.c, toplev.c: Delete code implementing -traditional mode.
8604         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
8605         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
8606         Document removal of -traditional mode for compilation, and
8607         remove documentation only relevant to that mode.
8609         * config/nextstep.h, config/ptx4.h, config/svr4.h,
8610         config/convex/convex.h, config/d30v/d30v.h,
8611         config/i386/dgux.h, config/i386/osf1elf.h,
8612         config/i386/osfelf.h, config/i386/osfrose.h,
8613         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
8614         config/m68k/hp310.h, config/m88k/dgux.h,
8615         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
8616         config/m88k/m88k.h, config/m88k/openbsd.h,
8617         config/mips/abi64.h, config/mips/osfrose.h,
8618         config/mips/svr4-5.h, config/mips/svr4-t.h,
8619         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8620         config/stormy16/stormy16.h: Remove all references to
8621         -traditional from target specs.  Delete all mention of the
8622         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
8623         delete a couple of commented-out definitions of
8624         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
8625         to -traditional.
8627         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
8628         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
8630 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
8632         * mklibgcc.in: Don't use \n in a line subject to
8633         interpretation by echo.
8635 2002-02-27  Graham Stott  <grahams@redhat.com>
8637         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
8638         Constify NAME.
8640         * loop.c (prescan_loop): Handle PARALLEL.
8642         * unroll.c (loop_iterations): Return 0 if the add_val for
8643         a BIV is REG.
8645         * final.c (output_operand_lossage): Constify PFX_STR.
8647         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
8649 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
8651         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
8652         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
8654 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
8656         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8658 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8660         * cpplex.c (_cpp_lex_token): Handle directives in macro
8661         arguments.
8662         * cpplib.c (_cpp_handle_directive): Save and restore state
8663         if parsing macro args when entering a directive.
8664         * cppmacro.c (collect_args): No need to handle directives
8665         in macro arguments.
8666         (enter_macro_context, replace_args): Use the original macro
8667         definition in case it was redefined whilst collecting arguments.
8668 doc:
8669         * cpp.texi: Update.
8671 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
8673         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
8674         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
8675         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
8676         method on AIX.
8677         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
8678         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
8679         (load_toc_v4_PIC_2): Same.
8681 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
8683         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
8685 2002-02-26  Richard Henderson  <rth@redhat.com>
8687         * config/alpha/alpha.md (ashldi_se): Re-enable.
8689 2002-02-26  Richard Henderson  <rth@redhat.com>
8691         * config/alpha/alpha.c (alpha_encode_section_info): Examine
8692         MODULE_LOCAL_P; improve commentary.
8694 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
8696         * doc/cpp.texi: Clarify documentation of relationship between
8697         #line and #include.
8699 2002-02-26  Kazu Hirata  <kazu@hxi.com>
8701         * config/h8300/h8300-protos.h: Update the prototype for
8702         compute_logical_op_length.  Add the prototype for
8703         compute_logical_op_cc.
8704         * config/h8300/h8300.c (compute_logical_op_length): Figure out
8705         code from operands.
8706         (compute_logical_op_cc): New.
8707         * config/h8300/h8300.md: Combine all the logical op patterns
8708         in HImode and SImode.  Use compute_logical_op_cc.
8710 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
8712         * config/i386/i386.c (print_operand): Don't append ATT-style
8713         length suffixs to x87 opcodes when in Intel mode.
8715 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
8717         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
8718         (init_emit_once): Update calls.
8719         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
8720         (init_syntax_once): Prototype.
8722 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8724         * pa-linux.h (LIB_SPEC): Update definition.
8725         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8727 2002-02-26  Richard Henderson  <rth@redhat.com>
8729         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
8730         if we emitted a stop bit.
8732 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
8734         * configure.in (libgcc_visibility): Substitute.
8735         * configure: Rebuilt.
8736         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
8737         defined symbols .hidden.
8739 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
8741         * attribs.c (c_common_attribute_table): Add visibility.
8742         (handle_visibility_attribute): New function.
8743         * varasm.c (assemble_visibility): New function.
8744         * output.h (assemble_visibility): Add prototype.
8745         * tree.h (MODULE_LOCAL_P): Define.
8746         * crtstuff.c (__dso_handle): Use visibility attribute.
8747         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
8748         for MODULE_LOCAL_P symbols too.
8749         * config/ia64/ia64.c (ia64_encode_section_info): Handle
8750         MODULE_LOCAL_P symbols the same way as local symbols.
8751         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
8752         into .sdata/.sbss by the user.
8753         * doc/extend.texi (Function Attributes): Document visibility
8754         attribute.
8756 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
8758         PR debug/5770
8759         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
8760         STRING_CST initializer spanning the whole variable without
8761         embedded zeros.
8762         If expand_expr returned MEM, don't use it.
8764 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
8766         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
8767         generate a die for the lexical block.
8769 2002-02-26  Kazu Hirata  <kazu@hxi.com>
8771         * config/h8300/h8300-protos.h: Add a prototype for
8772         compute_logical_op_length.
8773         * config/h8300/h8300.c (compute_logical_op_length): New.
8774         * config/h8300/h8300.md (anonymous logical patterns): Use
8775         compute_logical_op_length for length.
8777 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
8779         * dwarf2out.c (modified_type_die): Do not call type_main_variant
8780         for vectors.
8781         (gen_type_die): Same.
8783         * attribs.c (handle_vector_size_attribute): Set debug information.
8785 2002-02-26  Daniel Egger  <degger@fhm.edu>
8787         * config/rs6000/rs6000.md: Swap define_insn attributes to
8788         fix incorrect generation of merge high instructions instead
8789         of merge low.
8791 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
8793         * c-typeck.c (really_start_incremental_init): Use
8794         bitsize_zero_node for vectors.
8796 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
8798         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
8799         ("*set_vrsave_internal"): Same.
8801 2002-02-25  Richard Henderson  <rth@redhat.com>
8803         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
8804         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
8806 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8808         PR target/5755
8809         * config/i386/i386.c (ix86_return_pops_args): Only pop
8810         fake structure return argument if it was passed on the stack.
8812 2002-02-25  Jason Merrill  <jason@redhat.com>
8814         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
8815         RESULT_DECL.
8817 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
8819         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
8820         link with shared_name only.
8821         * doc/invoke.texi (Link Options): Document new behavior.
8823 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
8825         * c-typeck.c (push_init_level): Handle vectors.
8827 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
8829         * config/sparc/sparc.c (const64_high_operand): Zero-extend
8830         operands of SPARC_SETHI_P.
8831         (input_operand): Likewise.
8832         (sparc_emit_set_const32): Likewise.
8833         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
8834         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
8835         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
8836         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
8837         (movdi_insn_sp64_vis): Likewise.
8838         (movdi split, movdf split): Use SETHI32.
8839         * doc/md.texi: Document SPARC constraints L, M and N.
8841 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
8843         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
8844         ("*set_vrsave_internal"): use mfspr for Darwin.
8846         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
8847         gen_get_vrsave_internal.
8849 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8851         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
8853 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8855         * cpplex.c (cpp_interpret_charconst): Get signedness or
8856         otherwise of wide character constants correct.
8857         * cppexp.c (lex): Get signedness of wide charconsts correct.
8859 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8861         * optabs.c (widen_operand): Only call convert_modes for
8862         promoted SUBREG if signedness matches.
8863         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
8865 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8867         * cpplib.c (glue_header_name): Use local buffer to build up
8868         header name.
8870 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8872         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
8874 2002-02-23  Kazu Hirata  <kazu@hxi.com>
8876         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
8877         H8/300[HS] separately.
8878         * config/h8300/h8300.md: Remove the early clobber constraint
8879         from bit field patterns.
8881 2002-02-23  Kazu Hirata  <kazu@hxi.com>
8883         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
8884         register_operand.
8885         (mulhisi3): Likewise.
8886         (umulqisi3): Likewise.
8887         (umulhisi3): Likewise.
8889 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8891         * cppinit.c (output_deps): Correct test for stdout output.
8892         (init_dependency_output): Cure warning.
8894 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8896         * expr.c (store_expr): When converting expression to promoted
8897         equivalent type, allow using SUBREG_REG of TARGET as the target
8898         of the expansion of EXP.
8899         * loop.c (basic_induction_var, case SUBREG): Always look inside.
8900         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
8901         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
8902         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
8903         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
8905 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
8907         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
8908         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
8909         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
8911 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
8913         PR optimization/5747
8914         * loop.c (scan_loop): Update reg info if move_movables created new
8915         pseudos.
8917 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
8919         * gcc.c (init_gcc_spec): Revert last change.
8921 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
8923         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
8924         gpc_reg_operand constraint.
8926 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
8928         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
8929         Simplify comparison of `low'.
8930         (add_operand): Fix formatting.
8931         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
8932         (mask_operand): Disallow mask to wrap in 64-bit mode.
8933         (rs6000_stack_info): Remove redundant test setting push_p.
8934         (output_toc): Fix formatting.
8935         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
8936         cc_reg_not_cr0_operand constraint.
8937         (booldi3, boolcdi3 splitters): Same.
8939 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
8941         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
8943 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
8945         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
8946         gcc invoked with -shared-libgcc.
8948 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
8950         PR c++/5748
8951         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
8952         decl if any of elements was TREE_USED.
8954 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
8956         * config/sparc/sol2.h: Don't include sys/mman.h.
8957         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
8958         (arith_4096_operand): Don't throw high bits away.
8959         (const64_operand): Take sign extension of CONST_INTs into account.
8960         (const64_high_operand, sparc_emit_set_const32): Likewise.
8961         (GEN_HIGHINT64): Likewise.
8962         (sparc_emit_set_const64_quick1): Likewise.
8963         (const64_is_2insns): Likewise.
8964         (print_operand): Use trunc_int_for_mode for sign extension.
8965         * config/sparc/sparc.h (SMALL_INT32): Likewise.
8966         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
8967         chars.  Assume CONST_INT is already properly sign-extended.
8968         (movdi split): Sign-extend each SImode part.
8969         (andsi3 split): Don't mask high bits off, so that result
8970         remains properly sign-extend.
8971         (iorsi3 split): Likewise.
8972         (xorsi3 split): Likewise.
8974 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
8976         * fold-const.c (fold): Fix typo in comments.
8978 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
8980         * Makefile.in (langhooks.o): Update dependencies.
8982 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
8984         * langhooks.c: Include flags.h.
8986 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
8988         * testsuite/gcc.dg/attr-alwaysinline.c: New.
8990         * c-common.c (c_common_post_options): Set inline trees by
8991         default.
8993         * doc/extend.texi (Function Attributes): Document always_inline
8994         attribute.
8995         Update documentation about inlining when not optimizing.
8997         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
8999         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
9000         unless DECL_ALWAYS_INLINE.
9002         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
9003         unless DECL_ALWAYS_INLINE.
9004         (c_disregard_inline_limits): Disregard if always_inline set.
9006         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
9007         Disregard if always_inline set.
9008         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
9009         unless DECL_ALWAYS_INLINE.
9011         * attribs.c (handle_always_inline_attribute): New.
9012         (c_common_attribute_table): Add always_inline.
9014         * config/rs6000/altivec.h: Add prototypes for builtins
9015         requiring the always_inline attribute.
9017 2002-02-21  Eric Christopher  <echristo@redhat.com>
9019         * expmed.c (store_bit_field): Try to simplify the subreg
9020         before generating a new one when when the mode size of
9021         value is less than maxmode.
9023 2002-02-21  Richard Henderson  <rth@redhat.com>
9025         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
9026         than gen_rtx_PLUS to form the sum.
9027         * explow.c (force_reg): Rearrange to not allocate new pseudo
9028         when force_operand returns a register.
9029         * expr.c (expand_assignment): Allow offset_rtx expansion to
9030         return a sum.  Do not force addresses into registers.
9031         (expand_expr): Likewise.
9032         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
9033         to canonicalize arithmetic that didn't simpify.
9034         (simplify_plus_minus): New argument force; update
9035         all callers.  Don't split CONST unless we can do something with it,
9036         and wouldn't lose the constness of the operands.
9038         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
9039         that we generated earlier.
9041 2002-02-21  Tom Tromey  <tromey@redhat.com>
9043         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9044         (output_line_info): Use constant `1', with a long explanatory
9045         comment.
9046         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
9048 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
9050         * jump.c (redirect_jump): If old label has no UID, don't try to
9051         delete it.
9053 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
9055         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
9056         If input is constant, do shifts at compile time.
9058 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
9060         * doc/extend.texi: Fix some more overfull hboxes.
9062 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9064         PR optimization/4994
9065         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
9066         register moves.
9068 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9070         PR c++/4574
9071         * expr.h (expand_and): Add mode argument.
9072         * expmed.c (expand_and): Add mode argument.
9073         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
9074         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
9075         * except.c (expand_builtin_extract_return_addr): Likewise.
9076         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9077         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9078         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
9079         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
9080         * config/c4x/c4x.md: Use GEN_INT (x) instead of
9081         gen_rtx (CONST_INT, VOIDmode, x).
9083 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9085         PR c/4697:
9086         * stmt.c (warn_if_unused_value): Move side effects test once more.
9088 2002-02-20  Torbjorn Granlund  <tege@swox.com>
9090         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
9091         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
9093 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
9095         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
9096         SUBREG or ZERO_EXTEND.
9098 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
9100         * sh.h (current_function_anonymous_args): Remove.
9101         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
9102         of current_function_varargs and current_function_stdarg is set.
9103         * sh.c (sh_expand_prologue): Check current_function_varargs /
9104         current_function_stdarg / TARGET_SH5 instead of
9105         current_function_anonymous_args.
9107         * sh64.h (TARGET_VERSION): Define.
9109 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
9111         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
9112         VRSAVE_REGNO on TARGET_ALTIVEC.
9114 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
9116         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
9117         bits of SImode const_int.
9118         (includes_rshift_p): Likewise.
9119         (print_operand): Call mask_operand and mask64_operand with correct
9120         mode.
9121         (rs6000_output_function_epilogue): Pad traceback table to word.
9122         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
9123         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
9124         mask64_operand with correct mode.
9125         (FUNCTION_ARG_REGNO_P): Correct parentheses.
9127 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
9129         PR debug/4461
9130         * varasm.c (get_pool_constant_mark): New.
9131         * rtl.h (get_pool_constant_mark): Add prototype.
9132         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
9133         be represented if it has not been output.
9135 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
9137         * combine.c (do_SUBST): Sanity check substitutions of
9138         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
9139         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
9140         CONST_INT into its operand.
9141         (known_cond): Likewise, for ZERO_EXTEND.
9142         * simplify-rtx.c (simplify_unary_operation): Fix condition to
9143         allow for simplification of wide modes.  Reject CONST_INTs in
9144         ZERO_EXTEND when their actual mode is not given.
9146 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
9148         * c-decl.c (pushdecl): If no global declaration is found for an
9149         extern declaration in block scope, try a limbo one.
9151 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
9153         PR c++/4401
9154         * c-common.c (pointer_int_sum): Moved from...
9155         * c-typeck.c (pointer_int_sum): ...here.
9156         * c-common.h (pointer_int_sum): Add prototype.
9158 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
9160         PR c++/5713
9161         * c-decl.c (duplicate_decls): Return 0 if issued error about
9162         redeclaration.
9164 2002-02-20  Roger Sayle  <roger@eyesopen.com>
9165             Jakub Jelinek  <jakub@redhat.com>
9167         PR c/4389
9168         * tree.c (host_integerp): Ensure that the constant integer is
9169         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
9170         when pos is zero or non-zero respectively.  Clarify comment.
9171         * c-format.c (check_format_info_recurse): Fix host_integerp
9172         usage; the pos argument should be zero when assigning to a
9173         signed HOST_WIDE_INT.
9175 2002-02-20  Richard Henderson  <rth@redhat.com>
9177         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
9178         of the operand, rather than assuming TImode.
9179         (ix86_expand_binop_builtin): Cope with commutative patterns
9180         using nonimmediate_operand for both operands.
9181         (ix86_expand_timode_binop_builtin): Likewise.
9182         (ix86_expand_store_builtin): Validate operand 1.
9183         (ix86_expand_unop1_builtin): Likewise.
9185 2002-02-20  Philip Blundell  <philb@gnu.org>
9187         PR 5705
9188         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
9190 2002-02-20  Richard Henderson  <rth@redhat.com>
9192         PR c/5615
9193         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
9195 2002-02-20  Tom Tromey  <tromey@redhat.com>
9197         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9198         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9199         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9200         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9201         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
9202         unconditionally.
9204 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
9206         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
9207           for (const_int 0) in X not just INTVAL.
9209 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
9211         * doc/extend.texi: Avoid or reduce overfull hboxes.
9213 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
9215         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
9216         operations if the field does not start at a mode boundary.
9218 2001-02-20      Joel Sherrill <joel@OARcorp.com>
9220         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
9221         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
9222         Also done for -Acpu and -Amachine.
9224 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9226         * cppinit.c (init_dependency_output): Take deps output file
9227         from -o if none given with -MF.  Suppress normal output.
9228         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
9229         * doc/cpp.texi, doc/invoke.texi: Update.
9231 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
9233         * toplev.c (output_quoted_string): Write unprintable
9234         characters with octal escapes.
9236 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
9238         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
9239         really_call_used[VRSAVE_REGNO] if not Altivec.
9241 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
9243         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
9244         MODE_MASK.
9245         (constant_pool_expr_1): Fix formatting.
9246         (rs6000_legitimize_reload_address): Likewise.
9248 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9250         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
9251         now that we have one.
9253 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
9255         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
9256         end of first block of bitfields (which was only seven bits);
9257         rename dummy to unused_1; remove comment which is no longer true.
9259 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
9261         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
9263 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
9265         PR 5399
9266         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
9267         if generating PIC.
9269         PR 5054
9270         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
9271         arm_is_longcall_p rather than inspecting call-type cookie
9272         directly.
9273         (call_value_insn) [TARGET_THUMB]: Likewise.
9275 2002-02-19  Graham Stott  <grahams@redhat.com>
9277         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
9279 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
9281         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
9282         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
9283         (FP_SAVE_INLINE): Delete.
9285         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
9286         * config/rs6000/eabi.asm: Remove ABI save restore routines.
9287         * config/rs6000/t-ppccomm: Build crtsavres.o.
9288         * config/rs6000/crtsavres.asm: New file.
9290 2002-02-19  Philip Blundell  <philb@gnu.org>
9292         * config/arm/arm.c (use_return_insn): Don't reject interrupt
9293         functions.
9294         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
9295         (output_return_instruction): Allow interrupt functions to return with
9296         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
9297         (arm_expand_prologue): Subtract 4 before stacking LR in an
9298         interrupt function.
9300 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
9302         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
9303         decl, not just FUNCTION_DECL.
9304         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
9305         (arm_assemble_integer): Likewise.
9306         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
9307         marked local.
9309 2002-02-19  matthew green  <mrg@eterna.com.au>
9311         * config.gcc (sparc-*-netbsdelf*): Enable target.
9312         (sparc64-*-netbsd*): New target.
9313         * config/sparc/netbsd-elf.h: New file.
9314         * config/sparc/t-netbsd64: New file.
9316 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
9318         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
9320 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
9322         * doc/invoke.texi: explicitly list the style guidelines that
9323         -Weffc++ checks for.
9325 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
9327         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
9329 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9331         PR other/5718
9332         * gcc.c (cpp_unique_options): Treat -o as indicating object file
9333         only if not -E.  If -E, pass -o through to the preprocessor.
9335 2002-02-19  Kazu Hirata  <kazu@hxi.com>
9337         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
9338         register number with an appropriate macro.
9340 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
9342         * doc/rtl.texi (Constants): Close @code tag.
9344 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
9346         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
9347         ("mmx_uavgv4hi3"): Same.
9348         ("pmulhrwv4hi3"): Same.
9350         * tree-inline.c (walk_tree): Handle vectors.
9352         * c-common.c (constant_expression_warning): Handle vectors.
9353         (overflow_warning): Same.
9355         * sched-deps.c (sched_analyze_2): Handle vectors.
9357         * rtlanal.c (rtx_unstable_p): Handle vectors.
9358         (rtx_varies_p): Same.
9359         (count_occurrences): Same.
9360         (regs_set_between_p): Same.
9361         (modified_between_p): Same.
9362         (modified_in_p): Same.
9363         (volatile_insn_p): Same.
9364         (volatile_refs_p): Same.
9365         (side_effects_p): Same.
9366         (may_trap_p): Same.
9367         (inequality_comparisons_p): Same.
9368         (replace_regs): Same.
9369         (computed_jump_p_1): Same.
9371         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
9372         argument.
9373         (inner_mode_array): New.
9374         (copy_rtx): Handle vectors.
9375         (copy_most_rtx): Same.
9376         (rtx_equal_p): Same.
9377         (get_mode_alignment): Adjust for vectors.
9379         * resource.c (mark_referenced_resources): Handle vectors.
9380         (mark_set_resources): Same.
9382         * reload1.c (eliminate_regs): Handle vectors.
9383         (elimination_effects): Same.
9384         (scan_paradoxical_subregs): Same.
9386         * reload.c (subst_reg_equivs): Handle vectors.
9388         * regrename.c (scan_rtx): Handle vectors.
9390         * regclass.c (reg_scan_mark_refs): Handle vectors.
9392         * recog.c (find_single_use_1): Handle vectors.
9394         * local-alloc.c (equiv_init_varies_p): Handle vectors.
9395         (contains_replace_regs): Same.
9396         (memref_referenced_p): Same.
9398         * integrate.c (copy_rtx_and_substitute): Handle vectors.
9399         (subst_constants): Same.
9401         * genattrtab.c (attr_copy_rtx): Handle vectors.
9402         (encode_units_mask): Same.
9403         (clear_struct_flag): Same.
9404         (count_sub_rtxs): Same.
9406         * gcse.c (want_to_gcse_p): Handle vectors.
9407         (oprs_unchanged_p): Same.
9408         (hash_expr_1): Same.
9409         (oprs_not_set_p): Same.
9410         (expr_killed_p): Same.
9411         (compute_transp): Same.
9412         (store_ops_ok): Same.
9414         * function.c (purge_addressof_1): Do not allow paradoxical subregs
9415         of vectors.
9416         (fixup_var_refs_1): Same.
9417         (instantiate_virtual_regs_1): Same.
9419         * fold-const.c (operand_equal_p): Handle vectors.
9420         (fold): Same.
9421         (rtl_expr_nonnegative_p): Same.
9423         * flow.c (mark_used_regs): Handle vectors.
9425         * df.c (df_uses_record): Handle vectors.
9427         * cselib.c (cselib_subst_to_values): Handle vectors.
9428         (cselib_mem_conflict_p): Same.
9429         (hash_rtx): Same.
9431         * cse.c (canon_reg): Handle vectors.
9432         (fold_rt): Same.
9433         (cse_process_notes): Same.
9434         (count_reg_usage): Same.
9435         (canon_hash): Same.
9437         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
9439         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
9441         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
9442         (gen_rtx): Handle CONST_VECTOR.
9443         (gen_const_vector_0): New.
9444         (copy_rtx_if_shared): CONST_VECTORs can be shared.
9445         (reset_used_flags): Same.
9446         (copy_insn_1): Same.
9447         (initializer_constant_valid_p): Handle VECTOR_CST.
9449         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
9451         * doc/rtl.texi (Constants): Document const_vector.
9452         (CONST0_RTX): Update for vectors.
9453         (RTL sharing): Same.
9455         * print-tree.c (print_node): Add case for VECTOR_CST.
9457         * tree.h (TREE_VECTOR_CST_ELTS): New.
9458         (struct tree_vector): New.
9459         (union tree_node): Add vector node.
9460         (build_vector): Add prototype.
9462         * tree.def (VECTOR_CST): New.
9464         * tree.c (build_vector): New.
9466         * expmed.c (make_tree): Handle CONST_VECTOR.
9468         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
9469         (CONST_VECTOR_ELT): New.
9470         (CONST_VECTOR_NUNITS): New.
9472         * machmode.h (GET_MODE_INNER): New.
9473         (DEF_MACHMODE): Accept 8th arg.
9475         * machmode.def: Add 8th argument for vector inner mode.
9476         Add inner vector modes for vectors.
9478         * rtl.def (VEC_CONST): Remove.
9479         (CONST_VECTOR): New.
9481         * expr.c (clear_storage): Allow vectors.
9482         (is_zeros_p): Handle VECTOR_CST.
9484         * varasm.c (output_constant_pool): Handle vectors.
9485         (rtx_const): Add veclo and vechi fields.
9486         (kind): Add RTX_VECTOR.
9487         (decode_rtx_const): Add case for vector.
9489         * config/rs6000/rs6000-protos.h: Add zero_constant.
9491         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
9492         constants.  Force easy vector constants into memory.
9493         (easy_vector_constant): New.
9494         (emit_easy_vector_constant): New.
9495         (rs6000_legitimize_reload_address): Do not generate bad reloads on
9496         darwin.
9498         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
9499         instruction does.
9500         ("altivec_lvxl"): Same.
9501         (altivec_lvebx): Same.
9502         (altivec_lvehx): Same.
9503         (altivec_lvewx): Same.
9504         ("*movv4si_const0"): New.
9505         ("*movv4sf_const0"): New.
9506         ("*movv8hi_const0"): New.
9507         ("*movv16qi_const0"): New.
9509 2002-02-18  Kazu Hirata  <kazu@hxi.com>
9511         * config/h8300/h8300.c (notice_update_cc): Use
9512         cc_status.value2.
9514 2002-02-18  Kazu Hirata  <kazu@hxi.com>
9516         * config/h8300/h8300.md (divmod patterns): Change the
9517         constraints for operands[1] to register_operand.
9519 2002-02-18  Kazu Hirata  <kazu@hxi.com>
9521         * config/h8300/h8300-protos.h: Remove the prototype for
9522         p_operand.
9523         * config/h8300/h8300.c (p_operand): Remove.
9524         * config/h8300/h8300.md: Replace p_operand with
9525         const_int_operand.
9527 2002-02-18 Philip Blundell <pb@nexus.co.uk>
9529         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
9530         comment.
9531         (output_return_instruction): Allow use of LDR to unstack
9532         return addresss even for interrupt handlers or when
9533         interworking.  If compiling for ARMv5, use interworking-safe
9534         return instructions by default.  Remove duplicated code and
9535         lengthy "strcat" sequences.
9537 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9539         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
9540         (LINK_EH_SPEC): Define.
9541         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
9543 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
9545         * config/s390/s390.c (s390_emit_prologue): Do not set the
9546         frame_related flag for call-clobbered registers.
9548 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
9550         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
9551         (construct_container): Fix handling of SSE operands.
9552         (ix86_expand_builtin): Fix handling of 64bit pointers.
9553         (mmx_maskmovq_rex): New pattern.
9555 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
9557         * regrename.c (kill_set_value): Handle subregs properly.
9559 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
9561         * objc/objc-act.c (handle_impent): Remove leading '*'
9562         from objc_class_name.
9564 2002-02-17  Richard Henderson  <rth@redhat.com>
9566         * config/alpha/alpha.c (some_small_symbolic_operand,
9567         some_small_symbolic_operand_1, split_small_symbolic_operand,
9568         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
9569         Handle small SYMBOL_REFs anywhere, not just inside memories.
9570         * config/alpha/alpha-protos.h: Update.
9571         * config/alpha/alpha.h (PREDICATE_CODES): Update.
9572         * config/alpha/alpha.md (small symbolic operand splitter): Update.
9574 2002-02-17  Roland McGrath  <roland@frob.com>
9576         * config.gcc (powerpc-*-gnu-gnualtivec*,
9577         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
9578         * config/rs6000/gnu.h: New file.
9579         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
9580         Grok "gnu" in rs6000_abi_name.
9581         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
9582         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
9583         Grok -mcall-gnu analogous to -mcall-linux et al.
9584         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9585         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
9586         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
9588 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
9590         PR c/3444:
9591         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
9592         shortening.
9594 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9596         * config/cris/cris.h: Undefine STARTFILE_SPEC and
9597         ENDFILE_SPEC before (re)defining them.
9599 2002-02-17  Kazu Hirata  <kazu@hxi.com>
9601         * config/h8300/h8300.c: Fix formatting.
9602         * config/h8300/h8300.h: Likewise.
9604 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9606         * doc/tm.texi: Explain why empty strings should not be
9607         marked for translation.
9609 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9611         * final.c (output_operand_lossage): Changed to accept
9612         printf style arguments. Change calls where necessary.
9613         * output.h (output_operand_lossage): Change declaration
9614         accordingly. Update copyright.
9615         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
9616         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
9617         Update copyright date where necessary.
9619         * config/i386/i386.c (print_operand): Likewise. Remove use of
9620         sprintf.
9622         * config/cris/cris.c (cris_operand_lossage): Likewise.
9623         Rename parameter so that exgettext recognizes it as
9624         translatable message.
9625         (LOSE_AND_RETURN): Rename parameter to msgid.
9627 2002-02-17  Kazu Hirata  <kazu@hxi.com>
9629         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
9630         hard coded register number with an appropriate macro.
9631         (HARD_REGNO_MODE_OK): Likewise.
9632         (ARG_POINTER_REGNUM): Likewise.
9633         (STATIC_CHAIN_REGNUM): Likewise.
9634         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
9635         * config/h8300/h8300.md (define_constants): Define more
9636         register numbers.
9638 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9640         * config/i386/i386.h: Don't mark empty strings for translation.
9642 2002-02-16  H.J. Lu <hjl@gnu.org>
9644         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
9646 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
9648         * cppinit.c (merge_include_chains): Check for brack being
9649         NULL before attempting to merge it with qtail.
9651 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
9653         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
9654         DBX_DEBUG.
9656 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9658         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
9660 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9662         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
9663         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
9664         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
9666 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9668         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
9669         now only if !TARGET_FIX.
9670         (*movsi_nt_vms_fix): New pattern.
9672 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
9674         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
9675         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
9676         (alpha_sa_mask, alpha_sa_size): Reflect above change.
9677         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
9678         (alpha_start_function, alpha_expand_epilogue): Likewise.
9679         (unicosmk_gen_dsib): Likewise.
9681 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9683         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
9685 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
9687         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
9688         check_and_change_labels, s390_final_chunkify): Delete.
9689         (s390_split_branches, s390_chunkify_pool): New functions.
9690         (s390_function_prologue): Call them.
9692         * config/s390/s390.h (S390_REL_MAX): Delete.
9693         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
9695         * config/s390/s390.md (cjump, icjump, jump): Fix length
9696         attribute calculation.
9699 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
9701         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
9702         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
9704 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9706         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
9707         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
9708         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
9710 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
9712         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
9714 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
9716         * reload.c (find_dummy_reload): Check that an output register
9717         is valid for its mode.
9719 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
9721         * combine.c (known_cond): After replacing the REG of a SUBREG, try
9722         to simplify it.
9724         * function.c (assign_parms): Demote promoted argument passed by
9725         transparent reference.
9727 2001-02-14      Joel Sherrill <joel@OARcorp.com>
9729         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
9730         -Acpu() and -Amachine() to eliminate warnings.
9732 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
9734         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
9736 2002-02-14  Kazu Hirata  <kazu@hxi.com>
9738         * config/h8300/h8300-protos.h: Update the prototype for
9739         const_costs.
9740         * config/h8300/h8300.c (const_costs): Treat SET as a little
9741         more expensive operation.
9742         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
9743         reference to const_costs.
9745 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
9747         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
9749 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
9751         PR c/5503:
9752         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
9753         use arguments from newtype.
9755 2002-02-13  Eric Christopher  <echristo@redhat.com>
9757         * config/mips/mips.c (override_options): Add check for march/mipsX
9758         on the same command line. Fix error message in cpu processing.
9759         Remove architecture and ISA checks.
9761 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
9763         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
9765         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
9767 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
9769         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
9770         alternatives.
9771         ("*movv8hi_internal1"): Same.
9772         ("*movv16qi_internal1"): Same.
9773         ("*movv4sf_internal1"): Same.
9775         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
9776         not push_reload for altivec modes.
9778 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
9780         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
9781         all RTEMS targets including removal of #includes from config/*/rtems*.h
9782         file and adding them to tm_file setting. Added xm_defines=POSIX to
9783         many targets.
9784         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
9785         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
9786         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
9787         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
9788         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
9789         config/m68k/rtemself.h: Ditto.
9790         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
9791         config/mips/rtems64.h: Ditto.
9792         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
9793         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
9794         Ditto.
9795         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
9796         config/sparc/rtemself.h: Ditto.
9797         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
9798         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
9799         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
9800         more like arm-elf.
9801         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
9802         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
9803         target made more similar to i386-elf.
9804         * config/i386/t-rtems-i386: Added soft float support and multilibs.
9805         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
9806         be similar to config/m68k/t-m68kelf.
9807         * gthr-rtems.h: Encapsulate with extern "C" for C++.
9809 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
9811         * regmove.c (kill_value): Handle subregs.
9813 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
9815         * i386.md (mul patterns): Allow memory operand to be first;
9816         add expanders where needed; fix constraints.
9817         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
9818         Allow memory operand to be the first.
9820         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
9821         operands.
9823 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9825         PR c/5681:
9826         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
9827         GET_MODE (x).
9829 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9831         PR optimization/5547:
9832         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
9833         all valid IA-32 address modes involving non-scaled %ebx and
9834         GOT/GOTOFF as displacement.
9836 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
9838         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
9839         after emitting ltorg insns.
9841         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
9842         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
9843         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
9844         *abssf2): Fix "op_type" attribute.
9846 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
9848         * mkconfig.sh: Avoid using a subshell redirect.
9849         ($output.T): Change to $(output)T.
9850         (ENABLE_NLS): Remove unneeded undef.
9852         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
9853         * config/alpha/x-vms (libsubdir): Define.
9855         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
9856         register frame procedures. Optimize retrieving context.
9858         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
9859         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
9860         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
9862 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9864         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
9865         Make same change as for find_base_value.
9867 2002-02-13  Kazu Hirata  <kazu@hxi.com>
9869         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
9870         of QImode and SImode.
9872 2002-02-13  Kazu Hirata  <kazu@hxi.com>
9874         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
9875         length computation of movsi.
9876         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
9878 2002-02-13  Kazu Hirata  <kazu@hxi.com>
9880         * config/h8300/h8300.md (subqi3): Tighten the predicate for
9881         operands[2] to register_operand.
9883 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
9885         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
9887 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
9889         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
9890         for altivec_lvx* and altivec_stvx*.
9891         ("*movv4si_internal"): Add constraint for loading from GPRs.
9892         ("*movv8hi_internal1"): Same.
9893         ("*movv16qi_internal1"): Same.
9894         ("*movv4sf_internal1"): Same.
9896         * config/rs6000/rs6000.c (altivec_register_operand): New.
9898         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
9899         altivec_register_operand.
9901 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
9903         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
9904         handle SYMBOL_REF.
9906 2002-02-13  Stan Shebs  <shebs@apple.com>
9908         * c-typeck.c (digest_init): Handle vectors.
9909         (really_start_incremental_init): Same.
9910         (pop_init_level): Same.
9911         (process_init_element): Same.
9913         * varasm.c (output_constant): Same.
9915         * expr.c (clear_storage): Same.
9916         (store_constructor): Same.
9918 2002-02-12  Eric Christopher  <echristo@redhat.com>
9920         * explow.c (hard_function_value): Add comment explaining
9921         signed/unsigned comparison.
9923 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
9925         * jump.c (never_reached_warning): Add finish argument.
9926         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
9927         real insn after end.
9928         * rtl.h (never_reached_warning): Adjust prototype.
9929         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
9930         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
9931         never_reached_warning.
9933 2002-02-12  Graham Stott  <grahams@redhat.com>
9935         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
9937 2002-02-12  Kazu Hirata  <kazu@hxi.com>
9939         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
9940         logical shifts on H8/300.
9941         (shift_alg_si): Improve several shifts on H8/300.
9942         (get_shift_alg): Likewise.
9944 2002-02-12  Graham Stott  <grahams@redhat.com>
9946         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
9948 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9950         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
9951         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
9953 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
9955         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
9956         non-CONST_INT through default_assemble_integer.
9957         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
9958         <case 8>: Abort for CONST_DOUBLE.
9960 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9962         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
9963         is specified.
9964         * config/pa/pa-linux.h (LIB_SPEC): Delete.
9965         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
9967 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
9969         * config/stormy16/stormy16.md (zero_extendqihi2): New.
9971 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
9973         * regrename.c (regrename_optimize): Don't accept a
9974         part-clobbered register if the replaced register is not part
9975         clobbered.
9977         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
9978         take padding into account when computing the argument value.
9980         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
9982         * combine.c (try_combine): Apply substitutions in
9983         CALL_INSN_FUNCTION_USAGE too.
9985 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
9987         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
9988         __builtin_altivec_abs*.
9989         (bdesc_abs): New.
9991         * config/rs6000/rs6000.h (rs6000_builtins): Add
9992         ALTIVEC_BUILTIN_ABS*.
9994         * config/rs6000/altivec.h: Use const char for builtins expecting
9995         literals.
9996         (vec_abs): New versions for C and C++.
9997         (vec_abss): Same.
9999 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10001         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
10002         using Pmode.
10004 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10006         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
10007         constant definition from h8300.md.
10008         (FRAME_POINTER_REGNUM): Likewise.
10009         * config/h8300/h8300.md (define_constants): Add FP_REG.
10011 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10013         * config/h8300/h8300.c (print_operand): Remove redundant code.
10015 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10017         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
10018         * config/h8300/h8300.c (byte_reg): Make it static.
10020 2002-02-10  Richard Henderson  <rth@redhat.com>
10022         PR c/5623
10023         * c-typeck.c (incomplete_type_error): Handle flexible array members.
10025 2002-02-10  Richard Henderson  <rth@redhat.com>
10027         PR c++/5624
10028         * tree.c (append_random_chars): Don't abort if main_input_filename
10029         does not exist.
10031 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
10033         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
10035 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10037         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
10038         (pushhi1): Likewise.
10040 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10042         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
10043         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
10045 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
10047         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
10048         remove MASK_VIS.
10049         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
10051 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10053         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
10054         a half of an SImode register on H8/300.
10056 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
10058         * i386.md (movdi_2): Add missing '!'.
10060 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10062         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
10063         definitions.
10065 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10067         * config/h8300/h8300.md (length): Correct the distance valid
10068         for the short branch.
10070 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10072         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
10074 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
10076         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
10077         registers in SImode.
10078         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
10079         part-clobbered.
10081         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
10082         patch.
10084         Contribute sh64-elf.
10085         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
10086         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
10087         (sh_cannot_modify_jumps_p): New function.
10088         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
10089         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
10090         (sh_ms_bitfield_layout_p): New function.
10091         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
10092                     Zack Weinberg  <zack@codesourcery.com>
10093         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
10094         expand_simple_binop instead of expand_binop.
10095         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
10096         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
10097         use of .quad and .uaquad.
10098         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
10099         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
10100         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10101         * config/sh/sh.md (movdi_const, movdi_const_32bit,
10102         movdi_const_16bit): Make sure all CONSTs have modes.
10103         (sym2PIC): Ditto, but by adjusting all callers.
10104         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
10105         if the prologue calls the SHmedia argument decoder or register
10106         saver.
10107         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10108         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
10109         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
10110         (sh_expand_epilogue): Don't emit USE of return target register.
10111         (prepare_move_operands): Legitimize DImode PIC addresses.
10112         (sh_media_register_for_return): Skip tr0, used to initialize the
10113         PIC register.
10114         (sh_expand_prologue): Remove explicit USE of return register.
10115         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
10116         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
10117         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
10118         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
10119         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
10120         EXTRA_CONSTRAINT_T.
10121         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
10122         (MOVI_SHORI_BASE_OPERAND_P): New.
10123         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
10124         (EXTRA_CONSTRAINT_T): Define in terms of them.
10125         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
10126         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
10127         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
10128         alternatives supporting TARGET_REGS.
10129         (UNSPEC_GOTPLT): New constant.
10130         (movdi split): Move incrementing of LABEL_NUSES...
10131         (movdi_const, movdi_const_32bit): Here.  Use
10132         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
10133         (movdi_const_16bit): New.
10134         (call, call_value) [flag_pic]: Use GOTPLT.
10135         (call_pop, call_value_pop): New expands.
10136         (call_pop_compact, call_pop_rettramp): New insns.
10137         (call_value_pop_compact, call_value_pop_rettramp): New insns.
10138         (sibcall) [flag_pic]: Use GOT.
10139         (builtint_setjmp_receiver): Remove bogus, unused expand.
10140         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
10141         (*pt, *ptb, ptrel): New insns.
10142         (sym2GOT): Handle DImode GOT.
10143         (sym2GOTPLT, symGOTPLT2reg): New expands.
10144         (sym2PIC): New expand.
10145         (shcompact_return_tramp): Use GOTPLT to return trampoline.
10146         (shcompact_return_tramp_i): Use return register explicitly.
10147         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
10148         disable flag_reorder_blocks.
10149         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
10150         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
10151         clobbers, for clarity.
10152         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
10153         restoring of r0 in macl as MAYBE_DEAD.
10154         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
10155         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
10156         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
10157         alter_subreg all over.
10158         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
10159         reload, instead of emitting instructions that would require
10160         reloading.
10161         (casesi_load_media): Add missing modes.
10162         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
10163         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
10164         as used if the argument decoder is called.
10165         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
10166         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
10167         Pmode, then extend it to DImode if necessary.
10168         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
10169         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
10170         constants in FPU-enabled SHmedia, let them be loaded from memory.
10171         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
10172         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
10173         Adjust whitespace in assembly output templates.
10174         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
10175         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
10176         mode of if_then_else.
10177         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
10178         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
10179         sh.h.
10180         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
10181                     Joern Rennecke <amylaar@redhat.com>
10182         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
10183         (SUBTARGET_CPP_PTR_SPEC): New.
10184         (SUBTARGET_CPP_SPEC): Remove.
10185         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
10186         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10187         Fix typo in previous checkin.
10188         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
10189         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
10190         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
10191                     Alexandre Oliva  <aoliva@redhat.com>
10192         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
10193         what single FP register can hold for SHmedia target.
10194         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
10195                     Alexandre Oliva  <aoliva@redhat.com>
10196         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10197         Do not split into SUBREG.
10198         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
10199         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
10200         and added new functions as specified in SH5 ABI r9.
10201         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
10202         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
10203         8-byte boundary.
10204         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
10205         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
10206         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
10207         and consttable_window_ends.
10208         2001-06-03  Graham Stott  <grahams@redhat,com>
10209         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
10210         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
10211         * config/sh/sh.c (print_operand): Handle floating-point pair,
10212         vector and matrix registers.
10213         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
10214         vector modes into account.
10215         * config/sh/sh.md (movv2sf): Split move between registers into
10216         movdf.
10217         (movv4sf, movv16sf): Introduce insns that get split only after
10218         reload.
10219         * config/sh/shmedia.h: Fix Copyright dates.
10220         * config/sh/ushmedia.h: Likewise.  Move loop counter
10221         declarations into conditionals that uses them.
10222         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
10223         loop boundary.
10224         * config/sh/sshmedia.h: Fix Copyright dates.
10225         (sh_media_PUTCFG): Fix constraints.
10226         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
10227         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
10228         ptrmemfunc_vbit_in_delta for SH5.
10229         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
10230         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
10231         * invoke.texi: Likewise.
10232         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
10233         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
10234         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
10235         GCC_pop_shmedia_regs_nofpu): New global symbols.
10236         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
10237         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
10238         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
10239         compact function with nonlocal labels.
10240         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
10241         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
10242         (initial_elimination_offset): Account for their stack space.
10243         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
10244         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
10245         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
10246         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
10247         least one of the operands to be a register.
10248         (movv2sf): Likewise.  Renamed to movv2sf_i.
10249         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
10250         prepare_move_operands() before emitting SHmedia insns.
10251         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
10252         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
10253         Don't save nor initialize r12.  Don't mis-align the stack.
10254         Pad the code with a nop.
10255         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
10256         stack.
10257         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
10258         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
10259         [__SHMEDIA__]: Implement.
10260         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
10261         * config/sh/sh.md: Set latency of `pt' closer to reality.
10262         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
10263         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
10264         Set move, load and store type attributes.
10265         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
10266         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
10267         profiling.
10268         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
10269         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
10270         * config/sh/sh.c (sh_media_register_for_return): New function.
10271         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
10272         branch-target register.
10273         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
10274         * config/sh/sh.md (return_media_i): Use any call-clobbered
10275         branch-target register.
10276         (return_media): If r18 wasn't copied in the prologue, copy it
10277         here.
10278         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
10279         Clear class FP0_REGS.
10280         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
10281         from elf.h.
10282         2001-03-08  DJ Delorie  <dj@redhat.com>
10283         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
10284         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
10285         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
10286         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
10287         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
10288         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
10289         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
10290         return value correctly for call_cookie.
10291         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
10292         * config/sh/crt1.asm (start): Modified so as to call
10293         ___setup_argv_and_call_main.
10294         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
10295         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
10296         SHmedia mode.
10297         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
10298         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
10299         (STRIP_NAME_ENCODING): Use it.
10300         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
10301         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
10302         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
10303         prepare_scc_operands().
10304         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
10305         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
10306         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
10307         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
10308         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
10309         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
10310         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
10311         used in shcompact_incoming_args.
10312         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
10313         change.
10314         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
10315         mode.
10316         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
10317         Adjust accordingly.
10318         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
10319         Simplify.  Adjust.  Add sanity check.
10320         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
10321         FPU_SINGLE_BIT.
10322         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
10323         TARGET_SHCOMPACT.
10324         (udivsi3, divsi3): Use them.
10325         (force_mode_for_call): New insn.
10326         (call, call_value, sibcall_value): Emit it before SHcompact
10327         calls.
10328         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
10329         * config/sh/sh.md (call, call_value, sibcall): Make sure the
10330         call cookie is non-NULL before taking its value.
10331         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
10332         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
10333         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
10334         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
10335         block.
10336         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
10337         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
10338         temporary for stack adjusts.  Use MACL and MACH to pass
10339         arguments to shcompact_incoming_args.
10340         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
10341         clobber r1.
10342         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
10343         (nested_trampoline): Load static chain address into r1.
10344         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
10345         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
10346         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
10347         fp_arith_reg_operand().
10348         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
10349         * config/sh/sh.md (casesi): Sign-extend the first two operands,
10350         and use signed compares for them.
10351         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
10352         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
10353         ones properly aligned.
10354         (find_barrier): Account for extra alignment needed for 8-byte wide
10355         constants.
10356         (machine_dependent_reorg): Require a label for the second 4-byte
10357         constant after an 8-byte one.
10358         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
10359         change.
10360         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
10361         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
10362         last_float when switching float modes.
10363         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
10364         auto-increment for general-purpose registers.
10365         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
10366         result.
10367         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
10368         for stack adjust.
10369         * config/sh/sh.c (sh_builtin_saveregs): Support using all
10370         registers for varargs.
10371         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
10372         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
10373         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
10374         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
10375         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
10376         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
10377         call_cookie accordingly.
10378         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
10379         (SHCOMPACT_BYREF): Likewise.
10380         (SHCOMPACT_FORCE_ON_STACK): New macro.
10381         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
10382         (sh_builtin_saveregs): Likewise.
10383         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10384         shcompact_incoming_args): Use new shift values.  Support
10385         sequences of consecutive and non-consecutive pushes/pops.
10386         * config/sh/sh.md (return): Don't explicitly use PR_REG.
10387         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
10388         * config/sh/sh.h (TEXT_SECTION): Define.
10389         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
10390         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
10391         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
10392         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
10393         return values on FPU-enabled SHmedia.
10394         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
10395         FPU-enabled SHmedia.
10396         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
10397         value is returned in a non-FP reg and is not returned by
10398         reference.
10399         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
10400         jump_ind.
10401         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
10402         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
10403         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
10404         quad-aligned to be passed by callee-copy reference.
10405         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
10406         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
10407         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
10408         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
10409         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
10410         copying low-numbered FP regs to r7 and r8.
10411         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
10412         FP regs to general-purpose regs only if the copy was passed on the
10413         stack.
10414         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
10415         copying FP reg to r9.
10416         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
10417         copy FP regs to general-purpose regs only in outgoing calls.
10418         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
10419         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
10420         HOST_WIDE_INT.
10421         * config/sh/sh.h (struct sh_args): Document all fields.
10422         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
10423         passed partially on the stack should not consider making
10424         sibcalls.
10425         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
10426         stack_regs only for incoming calls.  When passing FP args,
10427         make sure there are FP regs available before modifying
10428         call_cookie.
10429         (SHCOMPACT_BYREF): Pass double args in general-purpose
10430         registers by reference.
10431         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
10432         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
10433         attempt to generate sibcalls if the caller got any arguments
10434         by reference.
10435         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
10436         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
10437         to 8-byte boundaries.
10438         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
10439         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
10440         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
10441         stored in the stack.
10442         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
10443         for the offsets to have the ISA bit set.
10444         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
10445         invocation.  Use beq instead of bgt to mark end of sequence of
10446         loads.
10447         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
10448         bgt to mark end of sequence of stores.
10449         * config/sh/sh.c (arith_operand): Don't check whether
10450         CONST_OK_FOR_J for now.
10451         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
10452         instead of long for conversion.
10453         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
10454         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
10455         before passing it to fprintf.
10456         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
10457         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
10458         Call set_fpscr before reading/writing SR.
10459         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
10460         Call set_fpscr.
10461         * config/sh/lib1funcs.asm: Add `.align 2' directives before
10462         SHmedia code.
10463         (FMOVD_WORKS): Define on SH5 with FPU.
10464         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
10465         setting.
10466         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
10467         _fpscr_values.
10468         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
10469         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
10470         address.
10471         (ia_main_table): Ditto.
10472         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
10473         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10474         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
10475         the definitions from sh.h.
10476         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
10477         TARGET_SH5.
10478         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
10479         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
10480         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10481         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
10482         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
10483         Increment LABEL_NUSES.
10485         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
10486         TARGET_SH5.
10487         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
10488         defined.
10489         * config/sh/elf.h (SIZE_TYPE): Likewise.
10490         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10491         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10492         shcompact_incoming_args): Load switch table addresses using
10493         datalabel.
10494         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10495         (NO_BUILTIN_SIZE_TYPE): Define.
10496         (SIZE_TYPE): Don't define.
10497         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10498         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
10499         definition of __SH5__=32 for -m5-compact-nofpu.
10500         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
10501         ADDR_DIFF_VEC.
10502         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
10503         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
10504         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
10505         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
10506         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
10507         (INSN_LENGTH_ALIGNMENT): Likewise.
10508         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
10509         * config/sh/sh.md (call, call_value, sibcall): Simplify
10510         copying of non-branch-target register.
10511         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
10512         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
10513         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
10514         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
10515         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
10516         floating-point values as structs.
10517         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
10518         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
10519         general-purpose register.
10520         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
10521         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
10522         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
10523         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
10524         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
10525         (ENCODE_SECTION_INFO): Enclose variables and constants in
10526         DATALABEL unspecs.
10527         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
10528         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
10529         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
10530         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
10531         only for LABEL_REFs.  For SYMBOL_REFs, prepend
10532         SH_DATALABEL_ENCODING to the symbol name.
10533         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
10534         convert_mode().
10535         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
10536         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
10537         UNSPEC_DATALABEL.
10538         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
10539         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
10540         (DATALABEL_REF_P): Don't require CONST.
10541         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
10542         REL label.
10543         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
10544         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
10545         right.
10546         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
10547         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
10548         Use shallow_copy_rtx and PUT_MODE to change the mode of
10549         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
10550         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
10551         on SHmedia using GENERAL_REGs.
10552         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10553         bltu_media_i): Fix reversion of conditions.
10554         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
10555         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
10556         * config/sh/sh.c (output_far_jump): Save r13 in macl.
10557         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
10558         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
10559         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
10560         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
10561         (GCC_nested_trampoline): Likewise.
10562         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
10563         * config/sh/sh.c (gen_datalabel_ref): Define.
10564         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
10565         (INITIALIZE_TRAMPOLINE): Likewise.
10566         (TRAMPOLINE_ADJUST_ADDRESS): Define.
10567         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
10568         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
10569         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
10570         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
10571         (ic_invalidate): Adjust for SH5.
10572         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
10573         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
10574         _nested_trampoline.
10575         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
10576         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
10577         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
10578         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
10579         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
10580         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
10581         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
10582         * config/sh/sh.c (target_reg_operand): Match only target-branch
10583         registers and pseudos that aren't virtual registers.
10584         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10585         Copy operands that don't match target_reg_operand to pseudos.
10586         (call_media, call_value_media, sibcall_media): Use
10587         target_reg_operand instead of target_operand.
10588         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
10589         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
10590         * config/sh/sh.c (target_reg_operand): Match hardware registers
10591         other than branch-target registers.
10592         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
10593         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
10594         (fpscr_values) [SH5 == 32]: Define.
10595         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
10596         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10597         Handle function addresses coming in SUBREGs.
10598         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
10599         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10600         shcompact_return_trampoline): Use datalabel where appropriate.
10601         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
10602         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
10603         general-purpose register to copy one branch-target register to
10604         another.
10605         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
10606         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
10607         SYMBOL_REFs with VOIDmode.
10608         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10609         bltu_media_i): New insns.
10610         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
10611         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
10612         (INIT_CUMULATIVE_ARGS): Likewise.
10613         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
10614         * machmode.def (V16SFmode): New mode.
10615         * c-common.c (type_for_mode): Support V2SF and V16SF.
10616         * tree.c (build_common_tree_nodes_2): Likewise.
10617         * tree.h (tree_index): Likewise.
10618         * calls.c (emit_call_1): Take args_so_far.  Adjust all
10619         callers.  Introduce CALL_POPS_ARGS.
10620         * tm.texi (CALL_POPS_ARGS): Document.
10621         * config/sh/crt1.asm: Implement in SHmedia mode.
10622         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
10623         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
10624         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
10625         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
10626         Implement divsi and udivsi in SHmedia mode.  Introduce
10627         SHcompact trampolines.
10628         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
10629         only in SHmedia64.
10630         (regno_reg_class): Rewrite.
10631         (fp_reg_names): Remove.
10632         (sh_register_names, sh_additional_register_names): New.
10633         (print_operand): Added `u'.  Support SUBREGs in addresses.
10634         Add parentheses around shifted CONSTs.
10635         (output_file_start): Output .mode and .abi directives.
10636         (shiftcosts, addsubcosts, multcosts): Adjust.
10637         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
10638         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
10639         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
10640         bytes, not registers.  Take into account the need for the
10641         SHcompact incoming args trampoline.  Adjust all callers.
10642         (sh_expand_prologue): Take stack_regs into account.  Call
10643         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
10644         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
10645         stack aligned as per SH5 ABI.
10646         (sh_builtin_saveregs): Support SH5 ABI.
10647         (sh_build_va_list, sh_va_start): Likewise.
10648         (initial_elimination_offset): Take alignment into account.
10649         Compute location of PR according to the SH5 stack frame.
10650         (arith_reg_operand): Reject branch-target registers.
10651         (shmedia_6bit_operand): New.
10652         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
10653         (target_reg_operand): Match DImode only.  Accept SUBREGs.
10654         (target_operand): New.
10655         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
10656         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
10657         SIBCALL_REGS for SHmedia.
10658         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
10659         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
10660         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
10661         (TARGET_SWITCHES): New SH5 flags.
10662         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
10663         VALID_REGISTER_P to disable unsupported registers.
10664         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
10665         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
10666         (FUNCTION_ARG_PADDING): Define.
10667         (FASTEST_ALIGNMENT): Adjust.
10668         (SH_REGISTER_NAMES_INITIALIZER): New.
10669         (sh_register_names): Declare.
10670         (DEBUG_REGISTER_NAMES): Define.
10671         (REGISTER_NAMES): Define based on sh_register_names.
10672         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
10673         (sh_additional_register_names): Declare.
10674         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
10675         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
10676         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
10677         (REGISTER_NATURAL_MODE): Define.
10678         (FIRST_PSEUDO_REGISTER): Adjust.
10679         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
10680         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
10681         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
10682         (VECTOR_MODE_SUPPORTED_P): Define.
10683         (REG_CLASS_CONTENTS): Adjust.
10684         (SMALL_REGISTER_CLASSES): Adjust.
10685         (REG_ALLOC_ORDER): Adjust.
10686         (INDEX_REG_CLASS): Adjust.
10687         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
10688         (CONST_OK_FOR_LETTER_P): Adjust.
10689         (PREFERRED_RELOAD_CLASS): Adjust.
10690         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
10691         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
10692         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
10693         (FIRST_FP_PARM_REG): Adjust.
10694         (CALL_POPS_ARGS): Define.
10695         (FUNCTION_ARG_REGNO_P): Adjust.
10696         (struct sh_args): New fields.
10697         (GET_SH_ARG_CLASS): Adjust.
10698         (INIT_CUMULATIVE_ARGS): Adjust.
10699         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
10700         (FUNCTION_ARG_ADVANCE): Adjust.
10701         (FUNCTION_ARG): Adjust.
10702         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
10703         (FUNCTION_ARG_CALLEE_COPIES): Define.
10704         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
10705         (STRICT_ARGUMENT_NAMING): Define.
10706         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
10707         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
10708         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
10709         (SETUP_INCOMING_VARARGS): Adjust.
10710         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
10711         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
10712         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
10713         (SUBREG_OK_FOR_INDEX_P): Adjust.
10714         (EXTRA_CONSTRAINT_S): Update.
10715         (EXTRA_CONSTRAINT_T): New.
10716         (EXTRA_CONSTRAINT): Adjust.
10717         (GO_IF_LEGITIMATE_INDEX): Adjust.
10718         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
10719         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
10720         (MOVE_MAX): Adjust.
10721         (MAX_MOVE_MAX): Define.
10722         (Pmode): Adjust.
10723         (CONST_COSTS): Adjust.
10724         (REGISTER_MOVE_COST): Adjust.
10725         (BRANCH_COST): Adjust.
10726         (TEXT_SECTION_ASM_OP): Adjust.
10727         (DBX_REGISTER_NUMBER): Adjust.
10728         (ASM_OUTPUT_DOUBLE_INT): New.
10729         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
10730         (PREDICATE_CODES): Adjust.
10731         (PROMOTE_MODE): Adjust.
10732         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
10733         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
10734         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
10735         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
10736         (DR0_REG, DR2_REG, DR4_REG): Renumber.
10737         (TR0_REG, TR1_REG, TR2_REG): New.
10738         (XD0_REG): Renumber.
10739         (UNSPEC_COMPACT_ARGS): New.
10740         (type): Added pt and ptabs.
10741         (length): Default to 4 on SHmedia.  Default pt length to 12
10742         and     20 on SHmedia32 and SHmedia64, respectively.
10743         (pt): New function unit.
10744         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
10745         Add whitespace between operands of SHmedia instructions.
10746         (movdicc): Fix.
10747         (adddi3_media, addsi3_media): Adjust constraints.
10748         (subsi3) [SHmedia]: Force operand 1 into a register.
10749         (udivsi3_i1_media, udivsi3_i4_media): New.
10750         (udivsi3): Support SHmedia.
10751         (divsi3_i1_media, divsi3_i4_media): New.
10752         (divsi3): Support SHmedia.
10753         (anddi3, iordi3, xordi3): Adjust constraints.
10754         (zero_extendhidi2, zero_extendqidi2): New.
10755         (extendsidi2, extendhidi2, extendqidi2): New.
10756         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
10757         (pop_e, pop_fpul, pop_4): Likewise.
10758         (movsi_media): Support FP and BT registers.
10759         (movsi_media_nofpu): New.  Adjust splits to DImode.
10760         (lduw, ldub): Renamed to zero_extend* above.
10761         (movqi_media): Fix typo.
10762         (movdi_media): Support FP and BT registers.
10763         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
10764         (movdi_const_32bit): New.
10765         (shori_media): Require immediate operand.  Use `u' for output.
10766         (movdf_media, movsf_media): Simplified.
10767         (movdf_media_nofpu, movsf_media_nofpu): New.
10768         (movdf, movsf): Adjust
10769         (movv2sf, movv2sf, movv16sf): New.
10770         (beq_media, beq_media_i): Adjust constraints.  Don't use
10771         scratch BT register.
10772         (bne_media, bne_media_i): Likewise.
10773         (bgt_media, bgt_media_i): Likewise.
10774         (bge_media, bge_media_i): Likewise.
10775         (bgtu_media, bgtu_media_i): Likewise.
10776         (bgeu_media, bgeu_media_i): Likewise.
10777         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
10778         bunordered): Emit jump insn.  Force operands to registers when
10779         needed.
10780         (jump_media, jump): Simplify.
10781         (call_compact, call_compact_rettramp): New.
10782         (call_value_compact, call_value_compact_rettramp): New.
10783         (call_media, call_value_media): Simplify.
10784         (sibcall_compact, sibcall_media): New.
10785         (call, call_value): Adjust for SHmedia and SHcompact.
10786         (sibcall, sibcall_value, untyped_call): Likewise.
10787         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
10788         (indirect_jump): Adjust for SHmedia.
10789         (casesi_jump_media): New.
10790         (nop): Re-enable for SHmedia.
10791         (call_site): Restrict to SH1.
10792         (casesi): Adjust for SHmedia.
10793         (casesi_shift_media, casesi_load_media): New.
10794         (return): Explicitly use PR register.  Call return trampoline
10795         on SHcompact.
10796         (return_i): Explicitly use PR register.
10797         (shcompact_return_tramp, shcompact_return_tramp_i): New.
10798         (return_media): Adjust.
10799         (shcompact_incoming_args): New.
10800         (epilogue): Adjust.
10801         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10802         (movstrsi): Disable on SH5.
10803         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
10804         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
10805         (subsf3, subsf3_media): Likewise.
10806         (mulsf3, mulsf3_media, mac_media): Likewise.
10807         (divsf3, divsf3_media): Likewise.
10808         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
10809         (floatsisf2, fux_truncsfsi2): Likewise.
10810         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
10811         constraints.
10812         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
10813         (cmpunsf_media, cmpsf): Likewise.
10814         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
10815         (abssf2, abssf2_media): Likewise.
10816         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
10817         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
10818         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
10819         (floatsidf2, fix_truncdfsi2): Likewise.
10820         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
10821         constraints.
10822         (cmpeqdf_media, cmpgtdf_media): Likewise.
10823         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
10824         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
10825         (absdf2, absdf2_media): Likewise.
10826         (extendsfdf2, extendsfdf2_media): Likewise.
10827         (truncsfdf2, truncsfdf2_media): Likewise.
10828         * config/sh/sh64.h: New file.
10829         * config/sh/t-sh64: New file.
10830         * config/sh/shmedia.h: New file.
10831         * config/sh/ushmedia.h: New file.
10832         * config/sh/sshmedia.h: New file.
10833         * configure.in: Added sh64-*-elf.
10834         * configure: Rebuilt.
10835         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
10836         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
10837         (reg_class_from_letter): Use `b' for TARGET_REGS.
10838         (print_operand): Support `%M', `%m', `AND' and
10839         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
10840         (andcosts): Adjust for SHmedia.
10841         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
10842         Likewise.
10843         (target_reg_operand): New function.
10844         * config/sh/sh-protos.h (target_reg_operand): Declare.
10845         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
10846         FP registers on SH5.
10847         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
10848         on SH4.
10849         (TARGET_REGISTER_P): New macro.
10850         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
10851         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
10852         (EXTRA_CONSTRAINT_S): New macro.
10853         (EXTRA_CONSTRAINT): Adjust.
10854         (FLOAT_TYPE_SIZE): Define to 32.
10855         (Pmode): DImode on SHmedia.
10856         (CONST_COSTS): Adjust for SHmedia literals.
10857         (PREDICATE_CODES): Added target_reg_operand.
10858         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
10859         * config/sh/sh.md: Remove all attrs from SHmedia insns.
10860         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
10861         (cmpdi): Accept SHmedia.
10862         (movdicc_false, movdicc_true): New insns.
10863         (movdicc): New expand.
10864         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
10865         no_new_pseudos.
10866         (addsi3_media): Match `S' constraint.
10867         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
10868         (negdi2): Expand for SHmedia.
10869         (one_cmpldi2): New expand.
10870         (zero_extendsidi2): Change from expand to insn.
10871         (extendsidi2): Add constraints.
10872         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
10873         LD/ST address.  Fix SI immediate loading split.
10874         (movhi_media, movqi_media, lduw, ldub): New insns.
10875         (movhi, movqi): Accept SHmedia.
10876         (shori_media, movdi_media): Relax input constraints.  Split
10877         symbolic constants.
10878         (movdf_media, movsf_media): New insn.  New split to movdi.
10879         (movdf, movsf): Match on SHmedia.
10880         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
10881         bgeu_media): New insns and splits.  New insns with `_i' suffix.
10882         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
10883         (bunordered): New expand.
10884         (jump_compact): Renamed from `jump'.
10885         (jump_media): New insn.
10886         (jump): New expand.
10887         (call_media, call_value_media): New insns.
10888         (call, call_value): Adjust.
10889         (indirect_jump_compact): Renamed from `indirect_jump'.
10890         (indirect_jump_media): New insn.
10891         (indirect_jump): New expand.
10892         (untyped_call, return): Accept SHmedia.
10893         (return_media): New insn.
10894         (prologue, epilogue, blockage): Accept SHmedia.
10895         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10896         (sunordered): New expand.
10897         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
10898         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
10899         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
10900         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
10901         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
10902         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
10903         abssf2_media): New insns.
10904         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
10905         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
10906         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
10907         floatdidf2, floatsidf2_media, fix_truncdfdi2,
10908         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
10909         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
10910         absdf2_media): New insns.
10911         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
10912         (extendsfdf2_media, truncdfsf2_media): New insns.
10913         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
10914         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
10915         * config/sh/sh.h (CONST_OK_FOR_J): Document.
10916         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
10917         * config/sh/sh.md (adddi3): New expand.
10918         (adddi3_media, adddi3z_media): New insns.
10919         (adddi3_compact): Renamed from adddi3.
10920         (addsi3_media): Use add.l r63 to add constant zero.
10921         (subdi3): New expand.
10922         (subdi3_media): New insn.
10923         (subdi3_compact): Renamed from subdi3.
10924         (mulsidi3): New expand.
10925         (mulsidi3_media): New insn.
10926         (mulsidi3_compact): Renamed from mulsidi3.
10927         (umulsidi3): New expand.
10928         (umulsidi3_media): New insn.
10929         (umulsidi3_compact): Renamed from umulsidi3.
10930         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
10931         (ashlsi3, ashrsi3, lshrsi3): Use them.
10932         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
10933         (ashldi3, ashrdi3, lshrdi3): Use them.
10934         (zero_extendsidi2): New expand.
10935         (extendsidi2): New insn.
10936         (movsi_media): New insn.  Split to movdi to load constants.
10937         (movsi): Enable for shmedia.
10938         (movdi_media): New insn.  Use shori_media to load wide constants.
10939         (short_media): New insn.
10940         (movdi): Enable for shmedia.
10941         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
10942         * config/sh/sh.h (CPP_SPEC): Added `m5'.
10943         (SUBTARGET_CPP_SPEC): Added `!m5'.
10944         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
10945         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
10946         to all other SH variants.
10947         (TARGET_DEFAULT): Set to SH1_BIT.
10948         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
10949         (BITS_PER_WORD): Raise to 64 on shmedia.
10950         (MAX_BITS_PER_WORD): Change to 64.
10951         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
10952         (INT_TYPE_SIZE): Keep as 32.
10953         (UNITS_PER_WORD): Raise to 8 on shmedia.
10954         (MIN_UNITS_PER_WORD): Keep as 4.
10955         (POINTER_SIZE): Raise to 64 on shmedia.
10956         (CONST_OK_FOR_J): New macro.
10957         (CONST_OK_FOR_LETTER_P): Use it.
10958         (processor_type): Add PROCESSOR_SH5.
10959         * config/sh/sh.md: Conditionalize all expands, insns and
10960         splits to TARGET_SH1.
10961         (cpu): Added sh5.
10962         (addsi3_compact): Renamed from...
10963         (addsi3): Now an expand.
10964         (addsi3_media, subsi3_media): New insns.
10965         (subsi3): Don't negate constants with SHmedia.
10967         * hooks.c: New file.
10968         * hooks.h: New file.
10969         * Makefile.in (HOOKS_H): New.
10970         (TARGET_DEF_H): Added $(HOOKS_H).
10971         (OBJS): Added hooks.o.
10972         (cfgcleanup.o, bb-reorder.o): Added target.h.
10973         (hooks.o): Added dependencies.
10974         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
10975         (TARGET_INITIALIZER): this.
10976         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
10977         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
10978         * bb-reorder.c: Include target.h.
10979         (reorder_basic_blocks): Skip if cannot modify jumps.
10980         * cfgcleanup.c: Include target.h.
10981         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
10983 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
10985         * config/mips/mips.md (casesi_internal, casesi_internal_di):
10986         Protect jump delay slot instructions with .set noreorder and
10987         .set nomacro.
10989 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
10991         * config/mips/mips.md (casesi_internal_di): Calculate
10992         the index into the target offset table correctly.
10994 2002-02-08  Richard Henderson  <rth@redhat.com>
10996         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
10997         * final.c (output_addr_const): Accept and discard SUBREG.
10998         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
10999         mark them unknown instead.
11000         (simplify_subtraction): Handle RTX_UNKNOWN.
11001         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
11003 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
11005         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
11007 2002-02-08  Richard Henderson  <rth@redhat.com>
11009         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
11011 2002-02-08  Andreas Jaeger  <aj@suse.de>
11013         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
11014         * config/i386/t-linux64: New file.
11016 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
11018         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
11019         * c-parse.in (compstmt): Clear last_expr_type.
11021 2002-02-07  Richard Henderson  <rth@redhat.com>
11023         * loop.c (strength_reduce): Sink final_value when not
11024         eliminating a biv.
11026 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
11028         * config/sparc/freebsd.h: Fix mismatched spec {.
11030 2002-02-07  Richard Henderson  <rth@redhat.com>
11032         * cfgrtl.c: Include recog.h and insn-config.h.
11033         (keep_with_call_p): Fix general_operand invocation.
11034         * Makefile.in (cfgrtl.o): Update dependencies.
11036 2002-02-07  Kazu Hirata  <kazu@hxi.com>
11038         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
11039         comment.  Accept HImode only if TARGET_H8300.
11041 2002-02-07  Eric Christopher  <echristo@redhat.com>
11043         * config/mips/crtn.asm: Cleanup #ifdefs.
11045 2002-02-07  Eric Christopher  <echristo@redhat.com>
11047         * config/mips/crti.asm: Add changes for mips16. mips16 uses
11048         register 7 as RA instead of $31.
11049         * config/mips/crtn.asm: Ditto.
11050         * config/mips/mips.c (mips_move_2words): Add case for
11051         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
11052         (compute_frame_size): Fix typo.
11053         (save_restore_insns): Ditto.  Make documentation about using
11054         register $7 as return register more precise.
11055         (mips_expand_epilogue): Fix comment. Add code to work around not
11056         being able to add to the stack pointer directly.
11057         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
11058         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
11059         epilogue.
11061 2002-02-07  Tom Rix  <trix@redhat.com>
11063         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
11064         immediates in ldu and stdu DS opcode field.
11065         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
11066         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
11067         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
11069 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
11071         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
11072         offset for stack bias.
11074 2002-02-07  H.J. Lu <hjl@gnu.org>
11076         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
11078 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
11080         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
11082 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
11084         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
11085         * i386.c (x86_order_regs_for_local_alloc): New global function.
11086         * i386.h (REG_ALLOC_ORDER): CLeanup.
11087         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
11089 2002-02-07  Richard Henderson  <rth@redhat.com>
11091         PR optimization/2463
11092         * alias.c (find_base_value): Recall base values for fixed hard regs.
11093         * loop.c (loop_regs_update): Don't use single_set on non-insns.
11095 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
11097         * config/mips/mips.md (define_delay) [mips16]: Adjust required
11098         length.
11100 2002-02-06  Richard Henderson  <rth@redhat.com>
11102         PR c/5609
11103         * stmt.c (resolve_operand_name_1): Take more care with mixed
11104         named and unnamed operands.
11106 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
11107             Jan Hubicka  <jh@suse.cz>
11109         * loop.c (remove_constant_addition): Avoid clobbering a shared
11110         CONST expression.
11112 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
11114         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
11115         * config/s390/t-linux64: New file.
11116         * config/s390/libgcc-glibc.ver: New file.
11118 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
11120         * config/s390/linux64.h: Delete file.
11121         * config/s390/s390x.h: New file.
11122         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
11123         as target header file.
11124         * config/s390/linux.h (TARGET_VERSION): Define depending on
11125         DEFAULT_TARGET_64BIT.
11126         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
11127         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
11128         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
11129         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
11130         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
11131         (EXTRA_SPEC): New define.
11132         * config/s390/s390.h (TARGET_VERSION): Define depending on
11133         DEFAULT_TARGET_64BIT.
11134         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
11136 2002-02-06  Jason Merrill  <jason@redhat.com>
11138         * c-decl.c (finish_function): Warn about a non-void function with
11139         no return statement and no abnormal exit.
11140         (current_function_returns_abnormally): New variable.
11141         (start_function): Clear it.
11142         (struct c_language_function): Add returns_abnormally.
11143         (push_c_function_context): Save it.
11144         (pop_c_function_context): Restore it.
11145         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
11146         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
11147         an explicit return type.
11148         * c-tree.h: Declare current_function_returns_abnormally.
11149         (C_FUNCTION_IMPLICIT_INT): New macro.
11150         * c-typeck.c (build_function_call): Set it.
11151         (c_expand_return): Set current_function_returns_value even if the
11152         value is erroneous.
11154 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
11156         PR c/5420:
11157         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
11158         unsafe for reevaluation.
11160 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
11162         PR c/5482:
11163         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
11164         EXPR_STMT, but COMPOUND_STMT, recurse into it.
11166 2002-02-06  Richard Henderson  <rth@redhat.com>
11168         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
11169         be a general_operand.  Dest for function value must be a pseudo.
11171 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
11173         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
11174         as SYMBOL_REFs from the constant pool.
11176 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
11178         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
11179         passed by invisible reference.
11181 2002-02-05  Richard Henderson  <rth@redhat.com>
11183         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
11185 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
11187         Implement using "base addresses" in insn operands as default.
11188         * config/mmix/mmix.c (mmix_conditional_register_usage): if
11189         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
11190         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
11191         used to read the rtx value.
11192         (mmix_target_asm_function_epilogue): Fix spacing.
11193         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
11194         (mmix_legitimate_address): Ditto.
11195         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
11196         should be loaded with a GETA insn.  Don't allocate needless extra
11197         char for nul termination and fix misleading comment.
11198         (mmix_print_operand_address): Handle constants if
11199         TARGET_BASE_ADDRESSES.
11200         (mmix_output_register_setting): Use base addressing if
11201         TARGET_BASE_ADDRESSES and the number of insns is 3.
11202         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
11203         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
11204         to use R as constraint, add LDA to match s.
11205         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
11206         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
11207         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
11208         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
11209         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
11210         order with other fixed registers.
11211         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
11212         other parameter/call-clobbered registers.
11213         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
11214         -mbase-addresses, -mno-base-addresses.
11215         (MMIX Options): Ditto.
11217 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11219         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
11221 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
11223         * config/rs6000/altivec.h: Change elem to _S_elem.
11225 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
11227         * config/netbsd.h (WCHAR_TYPE): Define.
11228         (WCHAR_TYPE_SIZE): Ditto.
11229         (WINT_TYPE): Ditto.
11230         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
11231         (WCHAR_UNSIGNED): Ditto.
11232         (WCHAR_TYPE_SIZE): Ditto.
11233         (WINT_TYPE): Ditto.
11234         * config/arm/netbsd.h: Likewise.
11235         * config/i386/netbsd-elf.h: Likewise.
11236         * config/i386/netbsd.h: Likewise.
11237         * config/m68k/netbsd-elf.h: Likewise.
11238         * config/m68k/netbsd.h: Likewise.
11239         * config/ns32k/netbsd.h: Likewise.
11240         * config/sparc/netbsd.h: Likewise.
11241         * config/vax/netbsd.: Likewise.
11243 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
11245         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
11246         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
11247         (TARGET_INITIALIZER): this.
11248         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
11249         (BITFIELD_NBYTES_LIMITED): Markup fix.
11250         * tree.h (default_ms_bitfield_layout_p): Declare.
11251         (record_layout_info): Added prev_field.
11252         * tree.c (default_ms_bitfield_layout_p): New fn.
11253         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
11254         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
11255         * stor-layout.c: Include target.h.
11256         (start_record_layout): Initialize prev_field.
11257         (place_field): Handle MS bit-field layout, and disregard
11258         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
11259         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
11260         * Makefile.in (stor-layout.o): Adjust dependencies.
11262 2002-02-05  Jason Merrill  <jason@redhat.com>
11264         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
11266 2002-02-05  Andreas Jaeger  <aj@suse.de>
11268         * crtstuff.c: Fix comments.
11270 2002-02-05  Richard Henderson  <rth@redhat.com>
11272         PR fortran/3393
11273         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
11274         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
11276         PR fortran/3392
11277         * config/mips/mips.c (function_arg): Handle TImode.
11278         (function_arg_advance): Likewise.
11280 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
11282         * config/rs6000/altivec.h (vec_step_help): Rename to
11283         __vec_step_help.
11285 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
11287         * config/rs6000/altivec.h: Fix typos.
11289 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
11291         * config/arm/netbsd.h: Correct a comment.
11293 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
11295         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
11296         building void typed builtins.
11298         * config/rs6000/altivec.h (vec_ld*): Fix typos.
11299         (vec_step): Implement for C++.
11301 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11303         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
11305 2002-02-04  Richard Henderson  <rth@redhat.com>
11307         * combine.c (nonzero_bits): Re-introduce special case for
11308         sp/fp/ap wrt REGNO_POINTER_ALIGN.
11310 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
11312         * doc/extend.texi: Warn about unsupported usage of altivec
11313         builtins.
11315         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
11316         (altivec_predicate_*): New.
11318         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
11319         Add C++ version of vec_*() functions.
11321         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
11322         (bdesc_2arg): Remove altivec predicates.
11323         (altivec_expand_builtin): Handle predicates.
11324         (altivec_init_builtins): Handle predicates.
11325         (altivec_expand_predicate_builtin): New.
11327 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11329         * pa.c (DO_FRAME_NOTES): Move forward.
11330         (store_reg): Revise handling of frame notes.
11331         (load_reg): Likewise.
11332         (set_reg_plus_d): Likewise.
11333         (hppa_expand_prologue): Likewise.
11334         (hppa_expand_epilogue): Likewise.
11336 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11338         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
11340 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
11342         PR c/4475, c++/3780:
11343         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
11344         * c-common.h (SWITCH_TYPE): Define.
11345         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
11346         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
11347         Rename spareness variable to sparseness.
11348         (expand_end_case_type): Renamed from expand_end_case, use orig_type
11349         if non-NULL instead of TREE_TYPE (orig_index).
11350         * tree.h (expand_end_case_type): Renamed from expand_end_case.
11351         (expand_end_case): Define using expand_end_case_type.
11352         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
11353         to expand_end_case_type.
11354         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
11356 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11358         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
11359         (BIGGEST_ALIGNMENT): Change to 128.
11361 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11363         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
11365 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11367         * pa.md (call_internal_reg_64bit): Remove unused variable.
11369 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
11371         * config/arm/arm.h (machine_function): Add uses_anonymous_args
11372         field.
11373         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
11374         * config/arm/arm.c (current_function_anonymous_args): Delete,
11375         replace uses with cfun->machine->uses_anonymous_args.
11376         (arm_reorg): Do not reset uses_anonymous_args.
11378         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
11379         any geenral register.
11381 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
11383         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
11384         the entry block.
11386 2002-02-04  Richard Henderson  <rth@redhat.com>
11388         * combine.c (force_to_mode): Remove STACK_BIAS code.
11389         (nonzero_bits): Likewise.  Replace sp/fp special case with
11390         REGNO_POINTER_ALIGN.
11392         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
11393         (HARD_FRAME_POINTER_REGNUM): New.
11394         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
11395         (FIXED_REGS, CALL_USED_REGS): Update.
11396         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
11397         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
11398         (HARD_REGNO_NREGS): Update for SFP.
11399         (STACK_POINTER_OFFSET): Include bias here ...
11400         (FIRST_PARM_OFFSET): ... not here.
11401         (STACK_BIAS): Remove.
11402         (INIT_EXPANDERS): New.
11403         (STARTING_FRAME_OFFSET): Do not include bias.
11404         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
11405         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
11406         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
11407         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
11408         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
11409         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
11410         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
11411         (MUST_SAVE_REGISTER): Likewise.
11412         (sparc_flat_function_prologue): Likewise.
11413         (sparc_flat_function_epilogue): Likewise.
11414         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
11415         (sparc_init_modes): SFP is GENERAL_REGS.
11416         (sparc_builtin_saveregs): SFP does not have bias applied.
11418 2002-02-04  Richard Henderson  <rth@redhat.com>
11420         * config/alpha/alpha.c (current_function_is_thunk): Don't check
11421         current_function_is_thunk.
11422         (alpha_sa_mask): Distinguish between current_function_is_thunk
11423         called from ASM_OUTPUT_MI_THUNK and not.
11424         (alpha_does_function_need_gp): Thunks always need gp.
11425         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11426         (alpha_output_mi_thunk_osf): New.
11427         * config/alpha/alpha-protos.h: Update.
11428         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
11430 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
11432         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
11433         function types, not when they're taken away.
11435 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
11437         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
11438         CODE_LABEL and jump table when replacing a table jump with a
11439         simple jump.
11441 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11443         * config/s390/s390-protos.h (legitimize_la_operand,
11444         s390_secondary_input_reload_class, s390_plus_operand,
11445         s390_expand_plus_operand): Add prototypes.
11447         config/s390/s390.c (s390_secondary_input_reload_class,
11448         s390_plus_operand, s390_expand_plus_operand): New functions.
11450         (struct s390_address): New member 'pointer'.
11451         (s390_decompose_address): Compute it.
11452         (legitimate_la_operand_p): Use it.
11453         (legitimize_la_operand): New function.
11454         (movti, movdi, movdf splitters): Call it.
11456         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
11457         (PREDICATE_CODES): Add s390_plus_operand.
11459         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
11460         (la_ccclobber): Allow GENERAL_REGS as output operand.
11462         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
11463         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
11464         (*la_64, *la_31, reload_indi, reload_insi): ... these.
11466 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11468         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
11469         register names for regular asm () construct.
11471 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
11473         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
11474         registers.
11476 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
11478         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
11479         pat for recog.
11481 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
11483         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
11484         constant pool to be identical by string address and index.
11486 2002-02-04  Anthony Green  <green@redhat.com>
11488         * output.h (SECTION_OVERRIDE): Define.
11489         * varasm.c (named_section): Obey SECTION_OVERRIDE.
11491 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
11493         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
11494         by existing arm*-*-netbsd* (a.out) target.
11495         (ns32k-*-netbsdelf*): Likewise.
11496         (sparc-*-netbsdelf*): Likewise.
11497         (vax-*-netbsdelf*): Likewise.
11499 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
11501         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
11502         headers and libobjc headers.
11504 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
11506         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
11507         (_mingw.h): Remove duplicate include.
11509 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
11511         * config.gcc: Set cpu_type to m68k for 68010, as well.
11512         (m68010-*-netbsdelf*): New...
11513         (m68k*-*-netbsdelf*): ...targets.
11514         * config/m68k/netbsd-elf.h: New file.
11516 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11518         * config/h8300/h8300.c (hand_list): Move inside function_arg.
11520 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11522         * config/h8300/h8300.c (h8_push_ops): Move inside
11523         h8300_init_once.
11524         (h8_pop_ops): Likewise.
11525         (h8_move_ops): Likewise.
11527 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11529         * config/h8300/h8300.c (os_task): Make it static.
11530         (monitor): Likewise.
11531         (pragma_saveall): Likewise.
11533 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
11535         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
11536         constant is a valid sign-extension for Pmode.
11538 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11540         * config/h8300/h8300.c: Fix formatting.
11542 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11544         * config/h8300/h8300.md: Fix formatting.
11546 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11548         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
11549         predicates of operands[1].  Split the patterns for each
11550         processor variant.
11552 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11554         * config/h8300/h8300.md (xor patterns): Tighten the predicates
11555         of operands[1] to register_operand.
11557 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11559         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
11560         * cpphash.c (_cpp_init_hashtable): Similarly.
11561         * cppinit.c (cpp_create_reader): Default the signed_char flag.
11562         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
11563         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
11564         (cpp_handle_option): Handle the new options.
11565         * cpplex.c (cpp_interpret_charconst): Use new flag.
11566         * cpplib.h (struct cpp_options): New member signed_char.
11567         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
11568         (cpp_options): Handle -fsigned-char and -funsigned-char.
11569         (static_specs): Remove signed_char_spec.
11570         (do_spec1): Don't handle %c.
11571         * system.h: Poison SIGNED_CHAR_SPEC.
11572         * tradcif.y (yylex): Use flag_signed_char.
11573         * tradcpp.h (flag_signed_char): New.
11574         * tradcpp.c (flag_signed_char): New.
11575         (main): Handle new command-line options.
11576         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
11577 config:
11578         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
11579         * avr/avr.h: Remove old comments.
11580         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
11581         (CC1_SPEC): Pass -fsigned-char if -mic*.
11582         (SIGNED_CHAR_SPEC): Remove.
11583 doc:
11584         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
11586 2002-02-01  Eric Christopher  <echristo@redhat.com>
11588         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
11589         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
11590         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
11591         (ASM_OUTPUT_REG_POP): Ditto.
11593 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11595         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
11596         patch.
11598 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
11600         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
11602 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
11604         PR c/5304:
11605         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
11606         unconditionally.
11608 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
11610         * cfganal.c: Include tm_p.h.
11611         (keep_with_call_p): Fix the test that determines if a register holds
11612         the return value of a call.
11614 2002-02-01  DJ Delorie  <dj@redhat.com>
11616         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
11617         we are given conflicting registers, switch to the other one we
11618         had allocated for us.
11619         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
11620         as TImode so we know when the "other" register is available.
11622 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
11624         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
11625         sparc/sparc_bi.h.
11627 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
11629         * cfganal.c (keep_with_call_p): New function.
11630         (flow_call_edges_add): Prevent splitting a block between a call and
11631         a single-set instruction that should be kept in the same block.
11633 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11635         * doc/install.texi (avr): Update outdated URL.
11637 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
11639         * config/stormy16/stormy16.md (pushqi): New.
11640         (popqi): New.
11641         (pushhi): New.
11642         (pophi): New.
11643         (movhi): Remove stack operands.
11644         (movqi): Likewise.
11645         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
11646         nonimmediate_nonstack_operand.
11647         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
11648         New.
11649         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
11650         New.
11652 2002-01-31  Jason Merrill  <jason@redhat.com>
11654         * Makefile.in (c-parse.c): Handle .output file.
11655         * objc/Make-lang.in (objc-parse.c): Likewise.
11657 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
11659         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
11660         the -me[lb] option is given.  Don't output the default flag
11661         twice.
11663 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
11665         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
11666         the primary source file; this has not been done yet.
11667         * c-decl.c (c_expand_body): Reset input_filename from
11668         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
11670 2002-01-31  Kazu Hirata  <kazu@hxi.com>
11672         * rtlanal.c (subreg_regno_offset): Do not use
11673         SUBREG_REGNO_OFFSET.
11674         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
11675         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
11677 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
11679         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
11680         version rather than GNATS version in --version output.
11682 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
11684         * ifcvt.c (noce_process_if_block): Make a copy of the destination
11685         when copying back from a temporary.
11687 2002-01-30  Richard Henderson  <rth@redhat.com>
11689         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
11690         and new_dest are the same.
11692 2002-01-30  Richard Henderson  <rth@redhat.com>
11694         PR opt/5076
11695         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
11696         * rtl.c (note_insn_name): Update.
11697         * emit-rtl.c (remove_unnecessary_notes): Kill it.
11698         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
11699         to perform loop rotation.
11700         (expand_exit_loop_top_cond): New.
11701         * tree.h (expand_exit_loop_top_cond): Declare it.
11702         * c-semantics.c (genrtl_while_stmt): Use it.
11703         (genrtl_for_stmt): Likewise.
11705 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
11707         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
11708         arguments to 64-bit boundaries on 64-bit ABIs.
11710 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
11712         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
11714 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
11716         * c-decl.c (grokdeclarator): Handle type being a typedef for an
11717         invalid type.
11719 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
11721         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
11722         * config/sparc/sparc_bi.h: Remove file.
11723         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
11725 2002-01-30  Richard Henderson  <rth@redhat.com>
11727         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
11729 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
11731         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
11733 2002-01-30  Jason Merrill  <jason@redhat.com>
11735         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
11736         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
11737         (reg_save): Use DW_CFA_offset_extended_sf instead.
11739         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
11741 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
11743         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
11744         in cselib_lookup.
11746 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
11748         * rs6000.md ("*call_value_local32"): Remove constraints.
11749         ("*call_value_local64"): Same.
11750         ("*call_value_indirect_nonlocal_aix32"): Same.
11751         ("*call_value_nonlocal_aix32"): Same.
11752         ("*call_value_indirect_nonlocal_aix64"): Same.
11753         ("*call_value_nonlocal_aix64"): Same.
11754         ("*call_value_nonlocal_sysv"): Same.
11756 2002-01-29  Richard Henderson  <rth@redhat.com>
11758         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
11760 2002-01-29  Richard Henderson  <rth@redhat.com>
11762         * expr.c (force_operand): Ignore flag_pic for detecting pic
11763         address loads.
11764         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
11765         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
11766         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
11767         instead of open-coded loop.
11768         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
11769         be fixed when in use.
11771 2002-01-29  Richard Henderson  <rth@redhat.com>
11773         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
11774         * sched-rgn.c (propagate_deps): Update them.
11775         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
11776         clobbers list when either gets too long.
11778 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
11780         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
11781         and INDEX_REGS the same as GENERAL_REGS.
11782         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
11784 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11786         * tree.c (build_nonstandard_integer_type): Correct prototype.
11788 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
11790         * config/s390/s390.md (movstrsico, movstrdix_64,
11791         movstrsix_31): Remove, replace by ...
11792         (movstrdi_short, movstrsi_short, movstrdi_long,
11793         movstrsi_long): ... these.  New.
11794         (movstrdi, movstrsi): Adapt.
11796         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
11797         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
11798         Remove unnecessary CC clobber.
11799         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
11800         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
11802         (divmoddi4): Don't partially initialize TImode register.
11804 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
11806         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
11808 2002-01-29  Richard Henderson  <rth@redhat.com>
11810         * flow.c (print_rtl_and_abort): Remove.
11811         (print_rtl_and_abort_fcn): Remove.
11812         (verify_local_live_at_start): Use dump_bb instead.
11813         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
11814         (verify_wide_reg_1): Return 2 on mode test failure.
11816 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11818         PR c/3325, c/3326, c/2511, c/3347
11819         * c-decl.c (enum_decl_context): Remove BITFIELD.
11820         (grokdeclarator): Take bitfield width as an input.
11821         Ensure bitfields are given the correct type.  Perform
11822         bitfield width validation with build_bitfield_integer_type
11823         rather than waiting for finish_struct.
11824         (grok_typename, grok_typename_in_parm_context, start_decl,
11825         push_parmdecl, grokfield, start_function): Update calls to
11826         grokdeclarator.
11827         (build_bitfield_integer_type): New function.
11828         (finish_struct): Move bitfield validation to grokdeclarator
11829         and build_bitfield_integer_type.
11830         * tree.c (build_nonstandard_integer_type): New function.
11831         * tree.h (build_nonstandard_integer_type): New prototype.
11832 objc:
11833         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
11835 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
11837         PR other/1502:
11838         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
11839         don't ignore unrecognized -W* options.
11840         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
11841         * cpplib.h (cpp_handle_option): Adjust prototype.
11842         * c-decl.c (c_decode_options): Pass 0 as last argument to
11843         cpp_handle_option.
11845         PR c/2896:
11846         * gcc.c (cpp_unique_options): Split from cpp_options.
11847         (cpp_options): Source cpp_unique_options.
11848         (default_compilers): Use cpp_unique_options instead of cpp_options
11849         when used together with cc1_options.
11850         (static_specs): Add cpp_unique_options.
11851         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
11852         when used together with cc1_options.
11854 2002-01-29  Kazu Hirata  <kazu@hxi.com>
11856         * config/h8300/h8300-protos.h: Update the prototype of
11857         output_a_shift.
11858         * config/h8300/h8300.c (output_a_shift): Remove an unused
11859         argument 'insn'.  Remove redundant code.
11860         * config/h8300/h8300.md: Adust to the new prototype of
11861         output_a_shift.
11863 2002-01-29  Kazu Hirata  <kazu@hxi.com>
11865         * config/h8300/h8300-protos.h: Update the prototypes of
11866         emit_a_rotate and expand_a_rotate.
11867         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
11868         first argument to 'enum rtx_code'.
11869         (expand_a_rotate): Likewise.
11871 2002-01-28  Kazu Hirata  <kazu@hxi.com>
11873         * config/h8300/h8300-protos.h: Update the prototype of
11874         output_simode_bld.
11875         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
11876         'log2'.
11877         * config/h8300/h8300.md: Adjust to the new prototype.
11879 2002-01-28  Kazu Hirata  <kazu@hxi.com>
11881         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
11882         redundant code.
11884 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11886         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
11887         is a fixed register before returning pic_offset_table_rtx.
11888         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
11889         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
11891 2002-01-28  Jason Merrill  <jason@redhat.com>
11893         * dwarf2.h: Sync with src version.
11895 2002-01-28  Paul Koning  <pkoning@equallogic.com>
11897         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
11898         BT_FN_VOID_PTR_VAR.
11899         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
11900         * doc/extend.texi (__builtin_prefetch): Update documentation:
11901         first argument is now const void ptr.
11903 2002-01-28  Kazu Hirata  <kazu@hxi.com>
11905         * config/h8300/h8300-protos.h: Remove an unused prototype.
11907 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
11909         * toplev.c (lang_independent_init): Round up identifier size.
11911 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
11913         * config.gcc: Revert previous change.
11915 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
11917         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
11919 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
11921         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
11922         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
11923         other non-elf netbsd config frags.
11924         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
11925         collect2 will does that.
11926         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
11927         shared-lib frobbing will work.
11929 2002-01-28  Kazu Hirata  <kazu@hxi.com>
11931         * config/h8300/h8300.h: Fix formatting.
11932         * config/h8300/h8300.md: Likewise.
11934 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
11936         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
11937         the old, removed AAA_standards fix.
11938         * fixinc/fixincl.x: Rebuilt.
11940 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
11942         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
11943         atexit call in crtbegin, hooked in after call to frame_dummy;
11944         register EH before registering __fini__start.
11946 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
11948         * config/rs6000/altivec.h: Remove spurious semicolons.
11950 2002-01-27  Kazu Hirata  <kazu@hxi.com>
11952         * config/h8300/h8300.md: Replace dead bit extraction patterns
11953         with ones that work.
11955 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11957         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
11958         if not STRICT_ALIGNMENT.
11959         * rtl.h (MEM_ALIGN): Likewise.
11961 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11963         * doc/invoke.texi (-fdump-translation-unit): Revert this
11964         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11966 2002-01-27  Kazu Hirata  <kazu@hxi.com>
11968         * config/h8300/h8300.md (define_constants): New.
11969         (anonymous patterns) Use defined constants appropriately.
11971 2002-01-27  Kazu Hirata  <kazu@hxi.com>
11973         * config/h8300/h8300.c (function_arg): Remove redundant code.
11975 2002-01-26  Richard Henderson  <rth@redhat.com>
11977         * sched-deps.c (reg_pending_uses_head): New.
11978         (reg_pending_barrier): Rename from reg_pending_sets_all.
11979         (find_insn_list): Don't mark inline.
11980         (find_insn_mem_list): Remove.
11981         (add_dependence_list, add_dependence_list_and_free): New.
11982         (flush_pending_lists): Replace only_write param with separate
11983         for_read and for_write parameters.  Update all callers.  Use
11984         add_dependence_list_and_free.
11985         (sched_analyze_1): Do not add reg dependencies here; just set
11986         the pending bits.  Use add_dependence_list.
11987         (sched_analyze_2): Likewise.
11988         (sched_analyze_insn): Replace schedule_barrier_found with
11989         reg_pending_barrier.  Add all dependencies for pending reg
11990         uses, sets, and clobbers.
11991         (sched_analyze): Don't add reg dependencies for calls, just
11992         set pending bits.  Use regs_invalidated_by_call.  Treat
11993         sched_before_next_call as a normal list, not a fake insn.
11994         (init_deps): No funny init for sched_before_next_call.
11995         (free_deps): Free pending mems lists.  Don't zero reg_last.
11996         (init_deps_global): Init reg_pending_uses.
11997         (finish_deps_global): Free it.
11998         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
11999         (find_insn_mem_list): Remove.
12000         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
12001         (propagate_deps): Use them.  Zero temp mem lists.
12003 2002-01-26  Richard Henderson  <rth@redhat.com>
12005         * Makefile.in (CRTSTUFF_CFLAGS): New.
12006         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
12007         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
12008         crtstuff.c instead of alpha assembly version.
12009         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
12010         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
12011         not FORCE_{INIT,FINI}_SECTION_ALIGN.
12012         (__do_global_dtors_aux): Mark used.
12013         (frame_dummy, __do_global_ctors_aux): Mark used.
12014         (fini_dummy, init_dummy): Remove.
12016         * config/alpha/crtbegin.asm: Remove file.
12017         * config/alpha/crtend.asm: Remove file.
12018         * config/alpha/t-crtbe: Remove file.
12019         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
12020         (LINK_EH_SPEC): New.
12022         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
12023         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
12024         calling constructors.
12025         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
12027         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
12028         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
12029         CRT_END_INIT_DUMMY hack.
12030         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
12031         FORCE_{INIT,FINI}_SECTION_ALIGN.
12033         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
12034         FORCE_{INIT,FINI}_SECTION_ALIGN.
12036         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
12037         invocation sequence.
12038         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
12040         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
12041         (FORCE_CODE_SECTION_ALIGN): New.
12043 2002-01-26  Richard Henderson  <rth@redhat.com>
12045         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
12047 2002-01-26  Richard Henderson  <rth@redhat.com>
12049         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
12050         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
12052 2002-01-26  Kazu Hirata  <kazu@hxi.com>
12054         * config/h8300/h8300.md: Remove bit extraction patterns that
12055         cannot be triggered.
12056         Restrict each bit extraction pattern to a variant on which the
12057         pattern is tested.
12059 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
12061         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
12063 2002-01-26  Kazu Hirata  <kazu@hxi.com>
12065         * config/h8300/h8300.md: Remove bit test patterns that cannot
12066         be triggered.
12067         Restrict each bit test pattern to a variant on which the
12068         pattern is tested.
12070 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12072         * builtins.c (expand_builtin_strncat): Remove redundant check for
12073         INTEGER_CST.
12075 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
12077         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
12078         default setting.
12079         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
12080         existing setting.
12082 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
12084         * dbxout.c (dbxout_init): Use assemble_name rather than just
12085         stripping off the first character.
12086         (dbxout_source_file): Likewise.
12088 2002-01-25  DJ Delorie  <dj@redhat.com>
12090         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
12091         using rtx_equal_p, not by comparing pointers.
12093 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
12095         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
12096         for PIC_OFFSET_TABLE_REGNUM.
12097         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
12099 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
12101         * config.gcc (x86_64-*-freebsd*): New target.
12102         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
12103         value.
12104         (i[34567]86-*-freebsd*): Don't include svr4.h.
12105         * config/i386/freebsd64.h: New file.
12107 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
12109         * config/alpha/x-vms (version): Make static.
12111         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
12112         in previous checkin.
12114         * Makefile.in (install-headers-cp): New target.
12115         * config.gcc (alpha-dec-*vms*): Install headers with
12116         install-headers-cp
12118 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
12120         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
12121         avoid it's copies.
12123 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12125         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
12126         of compare_tree_int.
12127         (expand_builtin_strncat): Likewise.
12128         * c-decl.c (finish_struct): Use tree_low_cst.
12129         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
12130         * tree.c (compare_tree_int): Likewise.
12132 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
12134         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
12135         adjustments even if they are implemented by more than two insns.
12137 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12139         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
12140         * df.h (struct ref): Kill B.
12141         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
12143         * basic-block.h (PROP_EQUAL_NOTES): New flag.
12144         * flow.c (propagate_one_insn): Use it.
12145         (mark_used_regs): Handle NIL.
12147 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
12149         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
12150         to help folding.
12152 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
12154         * rs6000.md (prefetch): Make address V4SI mode so that the address
12155         is restricted to legitimate form for instruction.
12157 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
12159         * doc/install.texi (xtensa-*-elf): New target.
12160         (xtensa-*-linux*): New target.
12161         * doc/contrib.texi: Add myself.
12163 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
12165         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
12166         purpose register to hold an SImode (or smaller) value.
12168 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
12170         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
12171         registry only.
12172         * crtstuff.c: Likewise.
12174 2002-01-25  Kazu Hirata  <kazu@hxi.com>
12176         * config/h8300/h8300.md (negation patterns): Tighten
12177         predicates to register_operand.
12179 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
12181         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
12182         mode, not Pmode.
12184         * builtins.c (expand_builtin_prefetch): Same.
12186 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12188         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
12189         modes.
12191 2002-01-24  Kazu Hirata  <kazu@hxi.com>
12193         * config/h8300/h8300.c (print_operand): Remove support for
12194         operand character 'A'.
12195         * config/h8300/h8300.md (three anonymous patterns): Replace
12196         operand character 'A' with either 'T' or 'S'.
12198 2002-01-24  Kazu Hirata  <kazu@hxi.com>
12200         * config/h8300/h8300.c (print_operand): Remove support for
12201         operand character 'U'.
12203 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
12205         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
12207 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
12209         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
12210         values to be assigned to the stack pointer.
12212 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
12214         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
12215         to const_double needs to be done right for big-endian systems.
12217 2002-01-24  Jason Merrill  <jason@redhat.com>
12219         PR c++/2432
12220         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
12221         to can_throw_internal.
12223 2002-01-23  Richard Henderson  <rth@redhat.com>
12225         * fold-const.c (fold): Change UINT_MAX test to check vs precision
12226         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
12228 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12230         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
12231         (symGOT2reg): Use them, then set as GOT value as unchanging.
12232         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
12233         as a temporary, if possible.
12234         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
12235         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
12237 2002-01-23  Kazu Hirata  <kazu@hxi.com>
12239         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
12240         accept to accept 0x80 as operands[2].
12242 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12244         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
12246 2002-01-23  Richard Henderson  <rth@redhat.com>
12248         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
12250 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
12252         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
12253         (parmlist_or_identifiers_1): Verify that only a parmlist follows
12254         an attribute.
12256 2002-01-23  Richard Henderson  <rth@redhat.com>
12258         * expr.c (move_by_pieces_1): Extend size before negation.
12260         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
12261         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
12262         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
12263         * config/m68k/t-m68kelf: Likewise.
12265 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
12267         * config/xtensa/elf.h: New file.
12268         * config/xtensa/lib1funcs.asm: New file.
12269         * config/xtensa/lib2funcs.S: New file.
12270         * config/xtensa/linux.h: New file.
12271         * config/xtensa/t-xtensa: New file.
12272         * config/xtensa/xtensa-config.h: New file.
12273         * config/xtensa/xtensa-protos.h: New file.
12274         * config/xtensa/xtensa.c: New file.
12275         * config/xtensa/xtensa.h: New file.
12276         * config/xtensa/xtensa.md: New file.
12277         * config.gcc (xtensa-*-elf*): New target.
12278         (xtensa-*-linux*): New target.
12279         * cse.c (canon_hash): Compare rtx pointers instead of register
12280         numbers.  This is required for the Xtensa port.
12281         * integrate.c (copy_insn_list): Handle case where the static
12282         chain is in memory and the memory address has to be copied to
12283         a register.
12284         * doc/invoke.texi (Option Summary): Add Xtensa options.
12285         (Xtensa Options): New node.
12286         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
12288 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
12290         * diagnostic.c (internal_error): Do ICE suppression only
12291         when ENABLE_CHECKING is not defined.
12293         * c-typeck.c (require_complete_type): Return error_mark_node
12294         if type is error_mark_node.
12296 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
12298         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
12299         -Os and issue a warning.
12301 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
12303         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
12304         current (lack of) need for host configuration by hand.
12306         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
12307         references.  Documentation of some target macros moved from
12308         hostconfig.texi to tm.texi.
12310 2002-01-23  Will Cohen  <wcohen@redhat.com>
12312         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
12313         defined.
12315 2002-01-23  Kazu Hirata  <kazu@hxi.com>
12317         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
12318         operand[3].
12320 2002-01-23  Jason Merrill  <jason@redhat.com>
12322         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
12324         * function.c (assign_parms): Don't put args of inline functions
12325         into registers when not optimizing.
12327 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
12329         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
12330         (prologue_use): New pattern.
12331         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
12332         preference to gen_rtx_USE.
12333         (thumb_expand_prologue): Use gen_prologue_use in preference to
12334         gen_rtx_USE.
12335         (thumb_expand_epilogue): Use gen_prologue_use in preference to
12336         gen_rtx_USE.
12338 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
12340         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
12342 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
12344         PR c/3504
12345         * doc/extend.texi: Correct documentation of __alignof__.
12347 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
12349         * params.h: Rename arguments of DEFPARAM so that it will be
12350         recognized as a translation keyword.
12352 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
12354         * extend.texi: Document altivec functions.
12355         Fix N-bit adjectives in X86 builtin documentation.
12357 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
12359         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
12360         auto_inc_dec values.
12362 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
12364         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
12365         after backslash.
12366         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
12368 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
12370         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
12372 2002-01-22  Richard Henderson  <rth@redhat.com>
12374         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
12375         copy_insn not copy_rtx.
12377 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
12379         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
12380         "nonzero" as that might add "1" bits.  Ensure "constop" is
12381         properly sign extened.
12382         (force_to_mode): Tweak for sign extended constop.
12384 2002-01-22  Richard Henderson  <rth@redhat.com>
12386         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
12387         for_each_rtx instead of assuming we're already looking at the MEM.
12388         (split_small_symbolic_mem_operand): Likewise.
12389         * config/alpha/alpha.h (PREDICATE_CODES): Update.
12390         * config/alpha/alpha.md (small symbolic memory splitters): Update.
12392 2002-01-22  Richard Henderson  <rth@redhat.com>
12394         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
12395         sequence number for the literal.
12396         (divmoddi_internal_er): Likewise.
12398 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12400         PR java/4972
12401         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
12402         in LIBICONV variable.
12403         * configure: Regenerated.
12405 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
12407         * dependence.c (build_def_use): Remove array_idx.
12409         * dwarfout.c (last_filename): Remove.
12410         (output_compile_unit_die): Remove last_filename.
12412 2002-01-22  Roger Sayle  <roger@eyesopen.com>
12413             Richard Henderson  <rth@redhat.com>
12415         PR opt/3640
12416         * fold-const.c (fold): Optimize unsigned comparisons against
12417         UINT_MAX (and similar unsigned constants).
12419 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
12421         * Makefile.in (loop.o): Depend on OPTABS_H.
12422         * loop.c (emit_prefetch_instructions): Check the prefetch operand
12423         against the predicate.
12425         PR target/5379
12426         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
12427         for the address operand.
12429 2002-01-22  Richard Henderson  <rth@redhat.com>
12431         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
12433 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12435         PR other/5450
12436         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
12437         preprocessor flags.
12439 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
12441         * config.gcc (x86_64-*-netbsd*): New target.
12442         * config/i386/netbsd64.h: New file.
12444 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
12446         * regrename.c (kill_value): Fix typo.
12448 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
12450         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
12452         * config/rs6000/rs6000.h: Same.
12454         * function.c (instantiate_virtual_regs): Remove
12455         STARTING_FRAME_PHASE.
12456         (assign_stack_local_1): Same.
12457         Calculate frame phase.
12459 2002-01-22  Nick Clifton  <nickc@redhat.com>
12461         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
12462         variable declaration to outer scope in order to simplify
12463         future extensions.
12464         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
12465         arm_hard_regno_mode_ok.
12466         * config/arm/arm-protos.h: Add a prototype for
12467         arm_hard_regno_mode_ok.
12468         * config/arm/arm.c (soft_df_operand): Remove now redundant
12469         check for DImode values using IP_REGNUM.
12470         (nonimmediate_soft_df_operand): Remove now redundant check for
12471         DImode values using IP_REGNUM.
12472         (arm_hard_regno_mode_ok): New function. New check: make sure
12473         that DImode values are not stored in IP_REGNUM.
12475         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
12476         note with a USE.
12477         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
12479 2002-01-22  Jason Merrill  <jason@redhat.com>
12481         * c-semantics.c (genrtl_compound_stmt): Only check nesting
12482         consistency if this COMPOUND_STMT is scoped.
12484 2002-01-22  Kazu Hirata  <kazu@hxi.com>
12486         * predict.c: Fix formatting.
12487         * print-tree.c: Likewise.
12488         * protoize.c: Likewise.
12489         * real.h: Likewise.
12490         * rtl.h: Likewise.
12491         * sbitmap.h: Likewise.
12492         * scan.c: Likewise.
12493         * sched-deps.c: Likewise.
12494         * sched-vis.c: Likewise.
12495         * sdbout.c: Likewise.
12496         * sibcall.c: Likewise.
12497         * ssa.c: Likewise.
12498         * ssa-ccp.c: Likewise.
12499         * ssa-dce.c: Likewise.
12500         * stmt.c: Likewise.
12501         * stor-layout.c: Likewise.
12502         * system.h: Likewise.
12504 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12506         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
12507         if fits in bounds of base type.
12509         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
12510         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
12511         (add_bound_info, default): If can't find a context, make a
12512         SAVE_EXPR.
12513         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
12515 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
12517         * c-typeck.c (parser_build_binary_op): If result from
12518         build_binary_op is ERROR_MARK just return error_mark_node without
12519         further processing.
12521 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
12523         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
12524         Split a.out-specific bits into...
12525         * config/netbsd-aout.h: ...this.
12526         * config/netbsd-elf.h: New file.
12527         * config/alpha/netbsd-elf.h: Remove.
12528         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
12529         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
12530         (STARTFILE_SPEC): Remove redundant definition.
12531         (ENDFILE_SPEC): Likewise.
12532         (LINK_SPEC): Likewise.
12533         (CPP_SPEC): Likewise.
12534         (ASM_SPEC): Likewise.
12535         (LIB_SPEC): Likewise.
12536         (SWITCH_TAKES_ARG): Likewise.
12537         (TARGET_MEM_FUNCTIONS): Likewise.
12538         (CPP_PREDEFINES): Redefine.
12539         (ASM_FINAL_SPEC): Remove redefinition.
12540         (ASM_COMMENT_START): Redefine.
12541         (FUNCTION_PROFILER): Define.
12542         (TARGET_VERSION): Redefine.
12543         Comment and formatting cleanup.
12544         * config/i386/netbsd.h: Include <netbsd-aout.h>.
12545         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
12546         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
12547         big- or little-endian.
12548         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
12549         * config.gcc (*-*-netbsd*): Add definitions common to all
12550         NetBSD configs.
12551         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
12552         gnu_ld definitions.  Add netbsd-elf.h to and remove
12553         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
12554         tmake_file, and don't lose previous tmake_file contents.
12555         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
12556         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
12557         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
12558         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
12559         (mipsel-*-netbsd*): Rename this to...
12560         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
12561         mips/little.h to tm_file for mips*el-*.
12562         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
12563         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
12564         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
12566 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12568         * pa-protos.h (reg_before_reload_operand): New function prototype.
12569         * pa.c (reg_before_reload_operand): New function implementation.
12570         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
12571         contraints to "*m".
12573 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12575         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
12577 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12579         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
12580         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
12581         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
12582         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
12583         (ENDFILE_SPEC): Undefine.
12584         (STARTFILE_SPEC): Redefine for PA.
12586 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12588         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
12590 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
12592         * config.gcc: Add entries to supported PowerPC --with-cpu
12593         types.
12595 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
12597         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
12598         true for 64-bit mode only SSE registers in 32-bit mode.
12600 2002-01-21  Kazu Hirata  <kazu@hxi.com>
12602         * unwind-dw2.c: Fix formatting.
12603         * unwind-dw2-fde.c: Likewise.
12604         * unwind-dw2-fde.h: Likewise.
12605         * unwind-pe.h: Likewise.
12606         * varasm.c: Likewise.
12607         * varray.h: Likewise.
12609 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
12611         Remove workaround for register stack overwrite bug in mmix.
12612         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
12613         support for TARGET_REG_STACK_FILL_BUG.
12614         * config/mmix/mmix.h: Remove member has_call_without_parameters.
12615         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
12616         Delete.
12617         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
12618         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
12619         -mno-reg-stack-fill-bug-workaround.
12620         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
12621         machine member has_call_without_parameters.
12622         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
12623         -mreg-stack-fill-bug-workaround and
12624         -mno-reg-stack-fill-bug-workaround.
12625         (MMIX Options): Ditto.
12627 2002-01-21  Kazu Hirata  <kazu@hxi.com>
12629         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
12630         as appropriate.
12631         Remove redundant code.
12633 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
12635         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
12636         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12637         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12638         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
12639         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
12640         out target macro definitions and non-target-specific comments
12641         mostly taken from old versions of the manual.
12643 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12645         * config/h8300/h8300.h: Fix comment formatting.
12646         * config/ia64/aix.h: Likewise.
12647         * config/ia64/ia64-protos.h: Likewise.
12648         * config/ia64/ia64.c: Likewise.
12649         * config/ia64/ia64.h: Likewise.
12650         * config/ia64/ia64intrin.h: Likewise.
12651         * config/ia64/linux.h: Likewise.
12652         * config/ia64/unwind-aix.c: Likewise.
12653         * config/ia64/unwind-ia64.c: Likewise.
12655 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12657         * config/h8300/h8300.c: Revise comments about shift code.
12659 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12661         * config/h8300/h8300.c (function_arg): Update a comment.
12663 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12665         * config/h8300/h8300.md: Update the comments at the beginning
12666         of the file.
12668 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12670         * config/i370/i370.c: Fix comment formatting.
12671         * config/i370/i370.h: Likewise.
12672         * config/i370/i370.md: Likewise.
12673         * config/i370/linux.h: Likewise.
12675 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12677         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
12679         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
12680         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
12681         in incomplete case.
12683 2002-01-20  Graham Stott  <grahams@redhat.com>
12685         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
12687 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12689         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
12691 2002-01-19  Tom Rix  <trix@redhat.com>
12693         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
12695 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
12697         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
12699         * function.c (assign_stack_local_1): Adjust x_frame_offset with
12700         STARTING_FRAME_PHASE.
12701         (STARTING_FRAME_PHASE): New.
12702         (instantiate_virtual_regs): Check saneness of
12703         STARTING_FRAME_PHASE.
12705         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
12707 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12709         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
12711 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12713         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
12714         be used for bootstrapping GCC 3.0.
12716 2002-01-18  Kazu Hirata  <kazu@hxi.com>
12718         * config/h8300/h8300.md: Fix an insn length.
12720 2002-01-18  Kazu Hirata  <kazu@hxi.com>
12722         * bitmap.h: Fix comment formatting.
12723         * combine.c: Likewise.
12724         * cppfiles.c: Likewise.
12725         * c-pragma.h: Likewise.
12726         * c-typeck.c: Likewise.
12727         * df.c: Likewise.
12728         * dwarf2out.c: Likewise.
12729         * function.c: Likewise.
12730         * gcc.c: Likewise.
12731         * genattrtab.c: Likewise.
12732         * gthr-win32.h: Likewise.
12733         * haifa-sched.c: Likewise.
12734         * predict.c: Likewise.
12735         * rtlanal.c: Likewise.
12736         * rtl.h: Likewise.
12737         * unwind-dw2-fde.h: Likewise.
12738         * unwind-pe.h: Likewise.
12739         * vmsdbgout.c: Likewise.
12741 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12743         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
12744         if type_required and passed decl.
12746 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
12748         * config.gcc (cpu_type): Include altivec.h in powerpc
12749         extra_headers.
12750         Same for darwin.
12752         * config/rs6000/altivec.h: New.
12754 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
12756         * doc/install.texi (*-ibm-aix*): Update assembler and exception
12757         handling information.
12758         * doc/trouble.texi (Interoperation): Add libstdc++ information
12759         for AIX.
12760         (Misunderstandings): Add template instantiation and static template
12761         member information for AIX.
12763 2002-01-17  Jason Merrill  <jason@redhat.com>
12765         * dbxout.c (dbxout_type): Support const and volatile.
12767         * except.c (add_partial_entry): Remove backwards compatibility code.
12768         (end_protect_partials): Likewise.
12770 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
12772         * config/ia64/ia64.md (prologue_use): New.
12773         * config/ia64/ia64.c (ia64_expand_prologue): Use
12774         gen_prologue_use instead of gen_rtx_USE.
12775         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
12776         as CODE_FOR_pred_rel_mutex.
12777         (ia64_sched_reorder2): Likewise.
12779 2002-01-16  Eric Christopher  <echristo@redhat.com>
12781         * config/mips/r3900.h: Reformat.
12782         (SUBTARGET_CPP_SIZE_SPEC): Remove.
12783         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
12784         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
12785         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
12786         * config/mips/t-elf: Remove mips3 multilib.
12788 2002-01-16  H.J. Lu <hjl@gnu.org>
12790         * config/mips/linux.h: Include "mips/abi64.h".
12792 2002-01-16  H.J. Lu <hjl@gnu.org>
12794         * config/mips/t-linux: New.
12796         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
12798         * config/mips/linux.h: Don't include "gofast.h".
12799         (INIT_SUBTARGET_OPTABS): Removed.
12801 2002-01-16  Kazu Hirata  <kazu@hxi.com>
12803         * config/h8300/h8300-protos.h: Replace emit_a_shift with
12804         output_a_shift.
12805         * config/h8300/h8300.c: Likewise.
12806         * config/h8300/h8300.md: Likewise.
12808 2002-01-16  Kazu Hirata  <kazu@hxi.com>
12810         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
12811         spaces after an opcode name.
12812         (pushqi1_h8300hs): Likewise.
12813         (pushhi1_h8300hs): Likewise.
12815 2002-01-16  Kazu Hirata  <kazu@hxi.com>
12817         * doc/extend.texi: Replace "option" with "attribute"
12818         appropriately.
12820 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
12822         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
12823         (and:DI () (const_int -8)).
12824         (split_small_symbolic_mem_operand): Split
12825         (mem (and:DI () (const_int -8)).
12827 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
12829         PR target/5309:
12830         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
12831         same way as TYPE_IMUL.
12832         (ultrasparc_sched_reorder): Likewise.
12833         * config/sparc/sparc.md (type): Add comment to update
12834         ultrasparc_sched_reorder when making changes.
12836 2002-01-16  Kazu Hirata  <kazu@hxi.com>
12838         * doc/invoke.texi: Change the dump file name of block
12839         reordering pass from 28.bbro to 29.bbro.
12840         Mention -dk option.
12842 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
12844         * i386.md (minsf splitter): Fix pasto.
12846 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
12848         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
12849         to frame pointer initialisation instruction.
12850         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
12851         initialisation instruction.
12852         (soft_df_operand): Do not accept the IP register.
12853         (nonimmediate_soft_df_operand): Do not accept the IP register.
12855 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
12857         PR target/5357:
12858         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
12859         MASK_V8 being both set.
12861 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
12863         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
12864         insn for GOT register; add REG_MAYBE_DEAD notes instead.
12865         config/s390/s390.md (call, call_value): Add GOT register to
12866         CALL_INSN_FUNCTION_USAGE where needed.
12867         (call_exp, call_value_exp): New.
12869 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
12871         * config/arm/arm.c: General formatting tidy up.
12873 2002-01-16  Graham Stott  <grahams@redhat.com>
12875         * calls.c (try_to_integrate): Use "(size_t)" intermediate
12876         cast and when casting an integer literal to "rtx" pointer.
12877         (expand_call): Likewise.
12878         * flow.c (try_pre_increment): Likewise.
12879         (find_use_as_address): Likewise.
12880         * integrate.c (expand_iline_function): Likewise.
12881         * regmove.c (try_auto_increment): Likewise.
12883 2002-01-16  Graham Stott  <grahams@redhat.com>
12885         * sched-rgn.c (passed): Use sbitmap_free.
12886         (header): Likewise.
12887         (inner): Likewise.
12888         (in_queue): Likewise.
12889         (in_stack): Likewise.
12891 2002-01-15  Eric Christopher  <echristo@redhat.com>
12893         * flow.c (propagate_one_insn): Change to use fatal_insn.
12895 2002-01-15  Kazu Hirata  <kazu@hxi.com>
12897         * expmed.c (extract_fixed_bit_field): Remove unused code.
12898         * system.h: Poison SLOW_ZERO_EXTEND.
12899         * doc/tm.texi: Remove.
12900         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
12901         * config/arm/arm.h: Likewise.
12902         * config/avr/avr.h: Likewise.
12903         * config/clipper/clipper.h: Likewise.
12904         * config/convex/convex.h: Likewise.
12905         * config/d30v/d30v.h: Likewise.
12906         * config/dsp16xx/dsp16xx.h: Likewise.
12907         * config/elxsi/elxsi.h: Likewise.
12908         * config/fr30/fr30.h: Likewise.
12909         * config/h8300/h8300.h: Likewise.
12910         * config/i370/i370.h: Likewise.
12911         * config/i386/i386.h: Likewise.
12912         * config/m68k/m68k.h: Likewise.
12913         * config/mips/mips.h: Likewise.
12914         * config/ns32k/ns32k.h: Likewise.
12915         * config/pdp11/pdp11.h: Likewise.
12916         * config/pj/pj.h: Likewise.
12917         * config/s390/s390.h: Likewise.
12918         * config/sh/sh.h: Likewise.
12919         * config/stormy16/stormy16.h: Likewise.
12920         * config/v850/v850.h: Likewise.
12921         * config/vax/vax.h: Likewise.
12922         * config/we32k/we32k.h: Likewise.
12924 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
12926         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
12927         (altivec_lvsl): Change constraint to b.
12928         (altivec_lvsr): Same.
12929         (altivec_lvebx): Same.
12930         (altivec_lvehx): Same.
12931         (altivec_lvewx): Same.
12932         (altivec_lvxl): Same.
12933         (altivec_lvx): Same.
12934         (altivec_stvx): Add parallel.
12935         (altivec_stvxl): Same.
12936         (altivec_stvehx): Same.
12937         (altivec_stvebx): Same.
12938         (altivec_stvebx): Same.
12940 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
12942         * config.gcc: Change altivec.h to altivec-defs.h.
12944         * config/rs6000/altivec.h: Delete.
12946         * config/rs6000/altivec-defs.h: Add.
12948 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12950         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
12951         and UMOD modes.
12953         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
12954         less than or equal to eight bytes.
12956         * vax.md (andsi3): Remove constraints and change SET destination
12957         operand type to nonimmediate_operand.
12958         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
12959         when it is a CONST_INT.
12961 2002-01-15  Jason Merrill  <jason@redhat.com>
12963         * c-common.def (FILE_STMT): New code.
12964         * c-common.c (statement_code_p): It's a statement.
12965         * c-common.h (stmt_tree_s): Add x_last_filename.
12966         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
12967         (last_expr_filename): New macro.
12968         * c-semantics.c (begin_stmt_tree): Initialize it.
12969         (add_stmt): If the filename changed, also insert a
12970         FILE_STMT.
12971         (expand_stmt): Handle seeing one.
12973 2002-01-15  Eric Christopher  <echristo@redhat.com>
12975         * flow.c (propagate_one_insn): Add error message and print out
12976         insn for debugging.
12978 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
12980         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
12981         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
12982         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
12983         TRAMPOLINE_ALIGNMENT.
12984         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
12985         to be in bits.
12986         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
12987         PCC_BITFIELD_TYPE_MATTERS.
12988         * config/interix.h (STDC_VALUE): Remove.  Use
12989         STDC_0_IN_SYSTEM_HEADERS.
12990         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
12991         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
12992         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
12994 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12996         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
12997         not work on this platform currently.
12999 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
13001         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
13002         readonly_warning in _().
13004 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
13006         * gcc.c (delete_if_ordinary): Backout previous change.
13008 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13010         * config/h8300/h8300.c (print_operand): Remove support for
13011         unused operand characters.
13013         * read-rtl.c: Fix formatting.
13014         * real.c: Likewise.
13015         * recog.c: Likewise.
13016         * regclass.c: Likewise.
13017         * regmove.c: Likewise.
13018         * reg-stack.c: Likewise.
13019         * reload1.c: Likewise.
13020         * rtlanal.c: Likewise.
13022 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13024         * config/i386/i386.c: Fix formatting.
13026 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
13028         * c-typeck.c (process_init_element): Don't save_expr
13029         COMPOUND_LITERAL_EXPR if just its initializer will be used.
13031 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
13033         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
13034         emit optional traceback table if optimize_size or TARGET_ELF.
13035         * config/rs6000/rs6000.md (prefetch): New.
13037 2002-01-15  Andreas Jaeger  <aj@suse.de>
13039         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
13041 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13043         * mips-tfile.c: Fix formatting.
13045 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
13047         * unroll.c (final_reg_note_copy): Fix previous commit.
13049 2002-01-14  Kazu Hirata  <kazu@hxi.com>
13051         * config/h8300/h8300-protos.h: Remove the prototype for
13052         eq_operator.
13053         * config/h8300/h8300.c (eq_operator): Remove.
13055 2002-01-14  Richard Henderson  <rth@redhat.com>
13057         * config/i386/i386.md (prefetch): Tidy.
13058         (prefetch_3dnow): Fix locality operand.
13060 2002-01-14  Richard Henderson  <rth@redhat.com>
13062         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
13063         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
13065 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
13067         * reload1.c (reload_combine): Pass reg_sum replacement through
13068         copy_rtx in loop performing multiple changes.
13070 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
13072         * except.c (remove_unreachable_regions): New.
13073         (free_eh_status): Clear exception_handler_labels.
13074         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
13075         (find_exception_handler_labels): Don't add the same label more than
13076         once.
13077         (remove_exception_handler_label): Don't die if
13078         find_exception_handler_labels hasn't been called for the current
13079         function yet.
13081 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
13083         * toplev.c (rest_of_compilation): Rebuild jump labels after
13084         gcse.
13086 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
13088         * doc/extend.texi: Move documentation of X86 built-in functions
13089         here.
13090         * doc/invoke.texi: From here.
13091         * doc/sourcebuild.texi: Document location of documentation for
13092         machine built-in functions.
13094 2002-01-13  Christopher Faylor  <cgf@redhat.com>
13096         * cppfiles.c (TEST_THRESHOLD): New macro.
13097         (SHOULD_MMAP): Ditto.
13098         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
13099         be used.
13101 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
13103         * unroll.c (final_reg_note_copy): Properly handle
13104         REG_LABEL
13105         (unroll_loops): Fix LOOP_CONDITION heuristics.
13107 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
13109         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
13110         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
13112 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
13114         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
13115         threaded loop.
13117 2002-01-14  Tom Rix  <trix@redhat.com>
13119         * config/rs6000/rs6000.md: Fix typo with sradi.
13121 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
13123         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
13124         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
13125         (clrstrdi, clrstrsi): Adapt callers.
13127         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
13129         (movti splitter): Never use register 0 as base register.
13131 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
13133         * combine.c (simplify_shift_const): Always generate new rtx
13134         for shift expression instead of reusing given expression.
13136 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13138         * config/alpha/alpha.c (alpha_expand_mov): Don't call
13139         alpha_legitimize_address unless mode is Pmode.
13141 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
13143         * doc/md.texi (Modifiers): Document the '*' constraint for the
13144         user.
13146         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
13147         * doc/extend.texi (Function Attributes): 'interrupt' is valid
13148         for xstormy16 too.
13150 2002-01-13  Richard Henderson  <rth@redhat.com>
13152         * reload.c (find_reloads): Use a hard reg destination as reload reg
13153         for an input reload of the source.
13155 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13157         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
13158         more generic.
13160 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
13162         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13163         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13165         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
13167 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13169         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
13171 2002-01-12  Tom Rix  <trix@redhat.com>
13173         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
13174         TARGET_POWERPC64.
13176 2002-01-12  Richard Henderson  <rth@redhat.com>
13178         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
13180         * doc/invoke.texi: Update Alpha options.
13182         * doc/invoke.texi: Update i386 built-in function lists.
13184 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
13186         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
13187         referencing outside.
13189 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13191         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
13192         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
13193         offsets, and change line folding.
13194         * optabs.c (expand_binop): Remove warnings.
13195         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
13197 2002-01-12  Graham Stott <grahams@redhat.com>
13199         * attribs.c (handle_deprecated_attribute): constify WHAT.
13200         * diagnostic.c (warn_deprecated_use): Add braces, fixes
13201         dangling else warning and constify WHAT.
13202         * except.h (struct function, struct inline_remap): Move
13203         struct tag forward defs before all prototypes.
13204         (duplicate_eh_regions): Whitespace.
13206 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
13208         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13209         MODE_BASE_REG_CLASS.
13210         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
13212 2002-01-12  Richard Henderson  <rth@redhat.com>
13214         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
13215         (ix86_expand_vector_move): New.
13216         (bdesc_2arg): Remove andps, andnps, orps, xorps.
13217         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
13218         Remove old prefetch builtins.  Special case the logicals removed above.
13219         (ix86_expand_builtin): Likewise.
13220         (safe_vector_operand): Use V4SFmode, not TImode.
13221         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
13222         (ix86_expand_timode_binop_builtin): New.
13223         * config/i386/i386-protos.h: Update.
13224         * config/i386/i386.h (enum ix86_builtins): Update.
13225         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
13226         Use ix86_expand_vector_move in vector move expanders.
13227         (movti_internal, movti_rex64): Add xorps alternative.
13228         (sse_clrv4sf): Rename and adjust from sse_clrti.
13229         (prefetch): Don't work so hard.
13230         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
13231         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
13232         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
13234 2002-01-11  Richard Henderson  <rth@redhat.com>
13236         * config/i386/mmintrin.h: New file.
13237         * config/i386/xmmintrin.h: New file.
13238         * config.gcc (i?86-*-*): Add extra_headers.
13239         * simplify-rtx.c (simplify_unary_operation): Handle saturating
13240         truncation codes.
13241         (simplify_binary_operation): Handle saturating arithmetic codes.
13242         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
13243         not the lowpart subreg.
13244         (ix86_expand_builtin): Return a TImode dummy register instead of 0
13245         on error.
13246         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
13248 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13250         * conflict.c (conflict_graph_compute): Free regsets when finished.
13251         * ssa.c (compute_coalesced_reg_partition): Likewise.
13253 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13255         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
13256         every where we allocate a register.
13258 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13260         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
13261         * lcm.c (compute_earliest, compute_farthest): Likewise.
13263 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
13265         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
13267 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
13269         * doc/rtl.texi (Insns): Fix 2 typos.
13271 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
13273         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
13274         options.  Use @table @gcctabopt for MMIX options.  Add index
13275         entries for MMIX options.  Start new paragraph with first
13276         heading of the machine-dependent options.
13278 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13280         PR other/5299
13281         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
13282         * combine.c (force_to_mode): Same.
13283         * reload1.c (clear_reload_reg_in_use): Same.
13285 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
13287         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
13288         and 'subtargets'.
13290 2002-01-11  Andreas Jaeger  <aj@suse.de>,
13291             Brad Lucier <lucier@math.purdue.edu>
13293         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
13294         mcpu.
13296 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
13298         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
13299         Protect with IN_LIBGCC.
13300         (LINK_EH_SPEC): Add required trailing space.
13302 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
13304         * c-tree.h: Move function declarations so that they are listed
13305         under the filename which contains them.
13306         (check_identifier, finish_decl_top_level,
13307         lookup_name_current_level_global, shadow_record_fields): Remove.
13309 2002-01-11  Andreas Jaeger  <aj@suse.de>
13311         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
13312         march.
13314 2002-01-10  Richard Henderson  <rth@redhat.com>
13316         * config/alpha/alpha.c (print_operand): Add 'J'.
13317         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
13318         new operand with the sequence number for the lituse.  When splitting
13319         the insns, use gen_movdi_er_high_g and generate a sequence number.
13320         (gen_movdi_er_high_g): Print the sequence number if non-zero.
13322 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
13324         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
13325         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
13326         stvxl.
13327         (altivec_expand_builtin): Same.
13328         (altivec_expand_stv_builtin): New.
13330         * config/rs6000/rs6000.h (rs6000_builtins): Same.
13332         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
13333         ("altivec_lvehx"): New.
13334         ("altivec_lvewx"): New.
13335         ("altivec_lvxl"): New.
13336         ("altivec_lvx"): New.
13337         ("altivec_stvx"): New.
13338         ("altivec_stvebx"): New.
13339         ("altivec_stvehx"): New.
13340         ("altivec_stvewx"): New.
13341         ("altivec_stvxl"): New.
13343 2002-01-10  Richard Henderson  <rth@redhat.com>
13345         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
13346         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
13347         care not to delete instructions twice.
13349 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
13351         * toplev.c: Don't declare environ (it's not used anywhere).
13352         * configure.in: Don't check for declaration of environ.
13353         * config/i386/xm-mingw32.h: Don't #define environ.
13354         * config.in, configure: Regenerate.
13356 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
13358         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
13359         * configure: Regenerate.
13361         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
13362         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
13363         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
13364         alpha/xm-vms.h.
13365         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
13366         LIMITS_H_TEST here, not in m68k/x-next.
13367         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
13368         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
13370         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
13371         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
13372         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
13374         * config/i386/x-djgpp: Renamed i386/t-djgpp.
13375         * config/m88k/x-dolph: Renamed m88k/t-dolph.
13376         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
13377         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
13378         replacement of quadlib.asm with quadlib.c.
13380         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
13381         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
13382         config/rs6000/xm-beos.h: Delete file.
13384         * config.gcc: Update to match above changes.
13386 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13388         * config/h8300/h8300.h: Fix comment typos.
13389         * config/h8300/h8300.md: Likewise.
13390         * config/h8300/lib1funcs.asm: Likewise.
13392 2002-01-10  Dale Johannesen  <dalej@apple.com>
13394         PR optimization/5269
13395         * unroll.c (precondition_loop_p): Make *increment be the correct
13396         sign when n_iterations known, to avoid confusing caller.
13398 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13400         * doc/extend.texi (deprecated): Fix a typo.
13402 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
13404         * basic-block.h (update_br_prob_note): Declare.
13405         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
13406         (try_forward_edges): Care negative frequencies and update note.
13407         (outgoing_edges_match): Tweek conditional merging heuristics.
13408         (try_crossjump_to_edge): use update_br_prob_note.
13409         * cfglayout.c (fixup_reorder_chain): Likewise.
13410         * cfrtl.c (update_br_prob_note): New.
13411         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
13413         * i386.c (ix86_decompose_address): Return -1 if address contains
13414         shift.
13415         (legitimate_address_p): Require ix86_decompose_address to return 1.
13417         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
13418         (cprop_insn): Likewise.
13420 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13422         * toplev.c: Fix formatting.
13423         * tree.c: Likewise.
13424         * tree-dump.c: Likewise.
13425         * unroll.c: Likewise.
13426         * unwind-dw2.c: Likewise.
13427         * unwind-dw2-fde.c: Likewise.
13428         * unwind-dw2-fde-glibc.c: Likewise.
13429         * unwind-sjlj.c: Likewise.
13431 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
13433         * doc/invoke.texi: Document PDP-11 options.
13435 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13437         * config/h8300/h8300.h: Fix formatting.
13439 2002-01-10  Ira Ruben   <ira@apple.com>
13441         Add __attribute__ ((deprecated)).
13442         * extend.texi: Document __attribute__ ((deprecated)).
13443         * invoke.texi: Document -Wno-deprecated-declarations.
13444         * testsuite/g++.dg/other/deprecated.C: New C++ test.
13445         * testsuite/gcc.dg/deprecated.c: New C test.
13446         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
13447         (c_common_attribute_table): Add "deprecated" entry.
13448         (handle_deprecated_attribute): New function.
13449         * c-decl.c (deprecated_states): New enum.
13450         deprecated_state: State of "deprecated" handling.
13451         (start_decl): Set deprecated_state based on attributes.
13452         (grokdeclarator): Test for deprecated uses, propagate attribute.
13453         * c-typeck.c (build_component_ref): Test for deprecated fields.
13454         (build_external_ref): Test for deprecated primaries.
13455         * diagnostic.c (warn_deprecated_use) New function to issue
13456         warnings about __attribute__ ((depricated)) references.
13457         * flags.h (warn_deprecated_decl): Extern declared for
13458         -W[no-]deprecated-declarations option.
13459         * print-tree.c (print_node): Show deprecated flag status.
13460         * toplev.c (warn_deprecated_decl): Defined.
13461         (W_options): Added "deprecated-declaration".
13462         * toplev.h (warn_deprecated_use): Extern declared.
13463         * tree.h (struct tree_common): Define deprecated_flag.
13464         (TREE_DEPRECATED): New macro to access flag.
13465         * cp/call.c (build_call): Test for deprecated calls.
13466         * cp/class.c (add_implicitly_declared_members): Set global
13467         flag to tell grokdeclarator to not issue deprecated warnings.
13468         * cp/cp-tree.h: Add extern for adding_implicit_members.
13469         * cp/decl.c (deprecated_states): New enum.
13470         (start_decl): Set deprecated_state based on attributes.
13471         (grokdeclarator): Test for deprecated uses, propagate attribute.
13472         * cp/lex.c (do_identifier): Test for deprecated primaries.
13473         * cp/typeck.c (build_component_ref): Test for deprecated fields.
13475 2002-01-10  Ira Ruben   <ira@apple.com>
13477         Fix to assign attributes to inline member functions.
13478         * cp/decl.c (start_method): Handle attrlist.
13480 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13482         * combine.c (expand_field_assignment): Use subreg_lsb().
13484 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
13486         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
13487         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
13488         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
13489         Recurse for any operand of AND as long as constant is non-zero.
13491 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13493         * config/h8300/h8300.md: Remove constraints from expanders.
13495 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13497         * varasm.c: Fix formatting.
13498         * varray.c: Likewise.
13499         * vmsdbgout.c: Likewise.
13500         * xcoffout.c: Likewise.
13502 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
13504         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
13505         update edge probabilities to match.
13507 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
13509         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
13510         dependencies.
13511         * doc/languages.texi, doc/sourcebuild.texi: New files.
13512         * doc/configfiles.texi: Make a subsubsection.  Update.
13513         * doc/configterms.texi: Add @node.  Remove warning that this isn't
13514         instructions for building GCC.
13515         * doc/makefile.texi: Make a subsection.
13516         * doc/gccint.texi: Update.
13518 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
13520         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
13522 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
13524         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
13526 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
13528         * optabs.c (expand_fix): Look for wider integer modes first.
13530         * i386.md (mov?f): Avoid the fake const double trick for medium
13531         memory model.
13532         (min?f*/max?f*): Prohibit memory operands for i387 variant.
13533         (fop_df_4): Disable for SSE compilation.
13535 2002-01-10  Graham Stott  <grahams@redhat.com>
13537         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
13538         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
13540 2002-01-10  Richard Henderson  <rth@redhat.com>
13542         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
13544 2002-01-10  Richard Henderson  <rth@redhat.com>
13546         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
13547         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
13549 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13551         * combine.c (can_combine_p): Fix a comment typo.
13553 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
13555         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
13556         empty list correctly.  Change loop index $t to $f for
13557         consistency with rest of Makefile.
13559 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
13561         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
13562         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13564         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
13565         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
13566         (altivec_init_builtins): Same.
13567         (altivec_expand_unop_builtin): Return NULL_RTX on error.
13568         (altivec_expand_binop_builtin): Same.
13569         (altivec_expand_ternop_builtin): Same.
13570         (bdesc_dst): New.
13572         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
13573         ("altivec_vctuxs"): Fix typo.
13574         ("altivec_vnmsubfp"): Same.
13575         ("altivec_dssall"): New.
13576         ("altivec_mfvscr"): New.
13577         ("altivec_dss"): New.
13578         ("altivec_lvsl"): New.
13579         ("altivec_lvsr"): New.
13580         ("altivec_dstt"): New.
13581         ("altivec_dstst"): New.
13582         ("altivec_dststt"): New.
13583         ("altivec_dst"): New.
13585         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
13586         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13588 2002-01-09  Richard Henderson  <rth@redhat.com>
13590         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
13592 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
13594         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
13595         function.
13596         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
13597         prototype.
13598         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
13600 2002-01-09  Kazu Hirata  <kazu@hxi.com>
13602         * read-rtl.c: Fix formatting.
13603         * real.c: Likewise.
13604         * regclass.c: Likewise.
13605         * regrename.c: Likewise.
13606         * reg-stack.c: Likewise.
13607         * reload1.c: Likewise.
13608         * reload.c: Likewise.
13609         * rtl.c: Likewise.
13611 2002-01-09  Kazu Hirata  <kazu@hxi.com>
13613         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
13614         to extract items in the expr_list chain.
13616 2002-01-09  Richard Henderson  <rth@redhat.com>
13618         * config/vax/vax.c (vax_rtx_cost): Never abort.
13620         * config/vax/vax.h (REAL_ARITHMETIC): Define.
13622 2002-01-09  Jan Hubicka  <jh@suse.cz>
13624         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
13626 2002-01-09  Richard Henderson  <rth@redhat.com>
13628         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
13629         Unify code from various alternatives.
13631 2002-01-09  Richard Henderson  <rth@redhat.com>
13633         * regrename.c (copy_value): Ignore the copy if the source register
13634         is present in the value chain with a narrower mode.
13636 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
13638         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
13639         for the c4x target. Also improve layout.
13641 2002-01-09  Richard Henderson  <rth@redhat.com>
13643         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
13644         * config/m32r/m32r.md (and ior xor splitters): Swap operands
13645         to match insn patterns.
13647 2002-01-09  Richard Henderson  <rth@redhat.com>
13649         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
13650         (copyprop_hardreg_forward_1): Likewise.
13652 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13654         * pa.md (decrement_and_branch_until_zero): Change predicate for
13655         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
13657 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
13659         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
13660         gets undefined. For Darwin.
13662 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13664         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
13666 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13668         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
13670 2002-01-08  Richard Henderson  <rth@redhat.com>
13672         * regrename.c (copy_value): Ignore overlapping copies.
13674 2002-01-08  Richard Henderson  <rth@redhat.com>
13676         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
13677         as needed to avoid shared structure.
13679 2002-01-08  Kazu Hirata  <kazu@hxi.com>
13681         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
13682         H8/300H and H8/S.
13684 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
13686         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
13687         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
13688         documentation of obsolete macros.
13689         * system.h: Poison these macros.
13690         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
13691         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
13692         config/c4x/c4x.h, config/clipper/clipper.h,
13693         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
13694         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
13695         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
13696         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
13697         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
13698         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
13699         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
13700         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
13701         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
13702         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
13703         config/sparc/sparc.h, config/stormy16/stormy16.h,
13704         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
13705         definitions and commented out definitions of obsolete macros.
13706         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
13707         of MAX_INT_TYPE_SIZE.
13709 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
13711         * config/s390/s390.c (s390_preferred_reload_class): Never
13712         return ADDR_REGS if it isn't a subset of the given class.
13713         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
13714         FP_REGS, but all superclasses as well.
13716         * config/s390/s390.c (s390_function_profiler): Fix thinko.
13718         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
13719         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
13720         must not be a const_int.
13722 2002-01-08  Richard Henderson  <rth@redhat.com>
13724         * Makefile.in (toplev.o): Depend on options.h.
13725         (gcc.o): Depend on specs.h.
13727 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
13729         * expr.c (store_expr): Convert VOIDmode constants back to target's
13730         mode.
13732 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13734         * doc/invoke.texi: Markup gcc as @command.  Refer to
13735         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
13736         of http://gcc.gnu.org/thanks.html.
13738 2002-01-08  Dale Johannesen  <dalej@apple.com>
13740         * config/rs6000/rs6000.md: Add missing int register
13741         target case to movdf_low.
13743 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
13745         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
13746         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
13747         (cppinit.o): Depend on except.h.
13748         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
13749         s-specs): New rules.
13751         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
13752         Don't create specs.h/options.h/gencheck.h here.  Remove
13753         unnecessary variable settings from last argument of AC_OUTPUT.
13754         * config.in, configure: Regenerate.
13755         * intl.c: Hardcode package name as "gcc".
13757         * cppinit.c: Include except.h.
13758         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
13759         appropriate.
13760         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
13761         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
13762         (!)USING_SJLJ_EXCEPTIONS.
13763         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
13765 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
13767         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
13768         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
13769         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
13770         documentation of obsolete macros.
13771         * system.h: Poison these macros.
13772         * config/d30v/d30v.h, config/ns32k/encore.h,
13773         config/stormy16/stormy16.h: Remove definitions and commented out
13774         definitions of obsolete macros.
13776 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
13778         * objc/objc-act.c (handle_class_ref): Mark the declaration of
13779         %sobjc_class_ref_%s as used - to prevent unwanted compiler
13780         warnings.
13782 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
13784         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
13785         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
13786         to insn adjusting stack/frame pointer.
13787         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
13788         accept operands that cause the insn to be non-splittable.
13790 2002-01-08  Graham Stott  <grahams@redhat.com>
13792         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
13793         (C_TYPE_FIELDS_VOLATILE): Likewise.
13794         (C_TYPE_BEING_DEFINED): Likewise.
13795         (C_IS_RESERVED_WORD): Likewise.
13796         (C_TYPE_VARIABLE_SIZE): Likewise.
13797         (C_DECL_VARIABLE_SIZE): Likewise.
13798         (C_MISSING_PROTOTYPE_WARNED): Likewise.
13799         (C_SET_EXP_ORIGINAL_CODE): Likewise.
13800         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
13801         parenthesis.
13802         (C_DECL_ANTICIPATED): Likewise.
13803         (c_build_type_variant): Add parenthesis.
13805 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
13807         * gcc.c (option_map): Remove --version.
13808         (process_command): Handle -fversion following the GNU Coding
13809         Standards.  Partially addresses PR other/704.
13811 2002-01-08  Graham Stott  <grahams@redhat.com>
13813         * combine.c (combine_instructions): Fix typo.
13815 2002-01-08  Graham Stott  <grahams@redhat.com>
13817         * debug.h: Use "tree" and "rtx" throughout.
13819         * debug.c: Likewise.
13821 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
13823         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
13824         constant pool, use the pool's version of the symbol instead.
13826 2002-01-07  Richard Henderson  <rth@redhat.com>
13828         * regrename.c (find_oldest_value_reg): Ignore the value chain if
13829         the original register was copied in a mode with a fewer number of
13830         hard registers than the desired mode.
13831         (copyprop_hardreg_forward_1): Likewise.
13832         (debug_value_data): Fix loop test.
13833         * toplev.c (parse_options_and_default_flags): Reenable
13834         -fcprop-registers at -O1.
13836 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
13838         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
13839         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
13841         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
13842         predicates.
13844         * config/rs6000/rs6000.md: Add altivec predicate patterns.
13846 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13848         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
13849         (pa_output_function_prologue): Output local label at the beginning of
13850         the prologue when profiling.
13851         (hppa_profile_hook): Use the local label rather than the function label.
13852         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
13854 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
13856         * config/rs6000/rs6000.c (print_operand): Remove extra space.
13857         (altivec_expand_unop_builtin): Fix thinko.
13858         (altivec_expand_binop_builtin): Same.
13859         (altivec_expand_ternop_builtin): Same.
13860         (altivec_expand_builtin): Same.
13862 2002-01-07  Richard Henderson  <rth@redhat.com>
13864         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
13866 2002-01-07  Jason Merrill  <jason@redhat.com>
13868         * unwind-dw2.c (execute_cfa_program): Use < again.
13870 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
13872         * predict.c (combine_predictions_for_insn): Avoid division by zero.
13874 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
13876         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
13877         Don't allow -1 - x -> ~x simplifications in the first pass.
13879 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
13881         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
13882         arguments.
13883         (altivec_expand_binop_builtin): Same.
13884         (altivec_expand_unop_builtin): Same.
13885         (print_operand): Fix typo.
13886         (bdesc_1arg): Add vupk* variants.
13888         * rs6000.h (rs6000_builtins): Add vupk* enums.
13890         * rs6000.md: Add altivec_vupk* variants.
13892 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
13894         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
13895         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
13896         and last update dates.
13898 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
13900         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
13902 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
13904         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
13905         * config/avr/avr.h (CPP_SPEC): Likewise.
13906         (LINK_SPEC): Likewise.
13907         (CRT_BINUTILS_SPECS): Likewise.
13908         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13909         * doc/invoke.texi (AVR Options): Document them.
13911 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
13913         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
13914         LABEL_NUSES.
13916 2002-01-07  Graham Stott  <grahams@redhat.com>
13918         * config/i386/i386.h: Update copyright date.
13919         (HALF_PIC_PTR): Add parenthesis.
13920         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
13921         (CONSTANT_ALIGNMENT): Add parenthesis.
13922         (DATA_ALIGNMENT): Likewise.
13923         (LOCAL_ALIGNMENT): Likewise.
13924         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
13925         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
13926         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
13927         (HARD_REGNO_NREGS): Add paranethesis.
13928         (VALID_SSE_REG_MODE): Whitespace.
13929         (VALID_MMX_REG_MODE): Whitespace.
13930         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
13931         (ix86_hard_regno_mode_ok): Add parenthesis.
13932         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
13933         (RETURN_IN_MEMORY): Whitespace.
13934         (N_REG_CLASSES): Add parenthesis.
13935         (INTEGER_CLASS_P): Add parenthesis and wrap.
13936         (FLOAT_CLASS_P): Likewise.
13937         (SSE_CLASS_P): Likewise.
13938         (MMX_CLASS_P): Likewise.
13939         (MAYBE_INTEGER_CLASS_P): Likewise.
13940         (MAYBE_FLOAT_CLASS_P): Likewise.
13941         (MAYBE_SSE_CLASS_P): Likewise.
13942         (MAYBE_MMX_CLASS_P): Likewise.
13943         (Q_CLASS_P): Likewise.
13944         (GENERAL_REGNO_P): Uppercase macro parameter.
13945         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
13946         (FP_REGNO_P): Likewise.
13947         (ANY_FP_REGNO_P): Uppercase macro parameter.
13948         (SSE_REGNO_P): Likewise.
13949         (SSE_REGNO): Likewise.
13950         (SSE_REG_P): Likewise.
13951         (SSE_FLOAT_MODE_P): Likewise.
13952         (MMX_REGNO_P): Likewise.
13953         (MMX_REG_P):Likewise.
13954         (STACK_REG_P): Likewise.
13955         (NON_STACK_REG_P): Likewise.
13956         (STACK_TOP_P): Likewise.
13957         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
13958         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
13959         (SECONDARY_MEMORY_NEEDED): Likewise.
13960         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
13961         (MD_ASM_CLOBBERS): Whitespace and wrap.
13962         (MUST_PASS_IN_STACK): Whitespace and wrap.
13963         (RETURN_POPS_ARGS): Add parenthesis.
13964         (INIT_CUMULATIVE_ARGS): Likewise.
13965         (FUNCTION_ARG): Likewise.
13966         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
13967         (SETUP_INCOMING_VARARGS): Likewise.
13968         (BUILD_VA_LIST_TYPE):  Add parenthesis.
13969         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
13970         parenthsis.
13971         (EXPAND_BUILTIN_VA_ARG): Likewise.
13972         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
13973         (INITIALIZE_TRAMPOLINE): Add parenthesis.
13974         (INITIAL_ELIMINATION_OFFSET): Likewise.
13975         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
13976         (REGNO_OK_FOR_BASE_P): Likewise.
13977         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
13978         (REGNO_OK_FOR_DIREG_P): Likewise.
13979         (REG_OK_FOR_INDEX_P): Whitespace.
13980         (REG_OK_FOR_BASE_P): Whitespace.
13981         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
13982         parenthesis.
13983         (FIND_BASE_TERM): Fix typo.
13984         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
13985         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
13986         (SYMBOLIC_CONST; Whitespace.
13987         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
13988         (ENCODE_SECTION_INFO): Whitespace.
13989         (FINALIZE_PIC): Remove do { ... } while (0).
13990         (PROMOTE_MODE): Wrap in do { ... } while (0).
13991         (CONST_COSTS): Whitespace.
13992         (RTX_COSTS): Add paramethesis, whitespace and wrap.
13993         (REGISTER_MOVE_COST): Add parenthesis.
13994         (MEMORY_MOVE_COST): Likewise.
13995         (EXTRA_CC_MODES): Whitespace.
13996         (SELECT_CC_MODE): Add parenthesis and whitespace.
13997         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
13998         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
13999         (ASM_OUTPUT_LABEL): Add paramethesis.
14000         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
14001         (ASM_OUTPUT_REG_POP): Likewise.
14002         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
14003         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14005         * config/i386/i386.c: Update copyright.
14006         (CHECK_STACK_LIMIT): Add parenthesis.
14007         (AT_BP): Uppercase macro parameter.
14008         (x86_64_int_parameter_registers): Constify.
14009         (x86_64_int_return_registers): Likewise.
14010         (ix86_compare_op0): Use rtx.
14011         (construct_container): Constify INTREG parameter.
14012         (function_arg): Use rtx.
14014         * diagnostic.h: Update copyright date.
14015         (output_buffer_state): Add parenthesis.
14016         (output_buffer_format_args): Likewise.
14018         * combine.c (combine_instructions): Replace XEXP (links, 0)
14019         with link.
14021 2002-01-06  H.J. Lu <hjl@gnu.org>
14023         * cfgcleanup.c (thread_jump): Fix 2 typos.
14025 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
14027         * config.gcc: Add support for --enable-altivec.
14029 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14031         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
14033 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
14035         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
14036         __objc_class_name_*.
14038 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14040         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
14042 2002-01-06  Richard Henderson  <rth@redhat.com>
14044         * reorg.c (emit_delay_sequence): Remove death notes, not merely
14045         nop them out.  Increment label reference count for REG_LABEL.
14046         (fill_slots_from_thread): Frob label reference count around
14047         delete_related_insns.
14049 2002-01-05  Richard Henderson  <rth@redhat.com>
14051         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
14052         jump threading.
14054 2002-01-05  Richard Henderson  <rth@redhat.com>
14056         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
14057         * integrate.c (output_inline_function): Likewise.
14058         * toplev.c (rest_of_compilation): Do it here instead.  Move call
14059         to remove_unnecessary_notes after emitting abstract instance.
14060         Force an emitted nested function to have its parent emited as well.
14061         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
14062         for null.
14063         (rtl_for_decl_location): Do not look at reload data structures
14064         before reload has run.
14066 2002-01-05  Kazu Hirata  <kazu@hxi.com>
14068         * cse.c: Fix formatting.
14069         * dwarf2asm.c: Likewise.
14070         * dwarf2out.c: Likewise.
14071         * explow.c: Likewise.
14072         * expmed.c: Likewise.
14073         * function.c: Likewise.
14074         * gcov.c: Likewise.
14075         * gencheck.c: Likewise.
14076         * genrecog.c: Likewise.
14077         * ggc-common.c: Likewise.
14078         * ggc-page.c: Likewise.
14079         * global.c: Likewise.
14081 2002-01-05  Kazu Hirata  <kazu@hxi.com>
14083         * combine.c: Fix formatting.
14085 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
14087         PR middle-end/1557
14088         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
14090 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
14092         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
14093         as 1 for __powerpc64__ as well.
14095         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
14097         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
14098         return it.
14100 2002-01-05  Daniel Berlin  <dan@dberlin.org>
14102         * lcm.c: Revert change, due to performance regression it causes on
14103         SPEC because it's slightly more conservative (sigh, I hate
14104         edge-based LCM).
14106 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
14108         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
14110 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
14112         * doc/cppinternals.texi: Update.
14114 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
14116         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
14117         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
14118         negatives.
14119         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
14120         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
14121         kludge for pre-october-14th mmix versions to handle new-found bug
14122         with PUSHJ/PUSHGO and the register stack.
14123         * config/mmix/mmix.h (struct machine_function): Rename member
14124         has_call_value_without_parameters to has_call_without_parameters.
14125         All referers changed.
14126         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
14127         TARGET_MASK_BRANCH_PREDICT): New macros.
14128         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
14129         -mno-reg-stack-fill-bug-workaround.
14130         * config/mmix/mmix.md ("call"): Set struct machine member
14131         has_call_without_parameters.
14133 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
14135         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
14137 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
14139         * cfgcleanup.c: Include tm_p.h
14140         (mark_effect): Fix handling of hard register; fix handling of SET
14142 2002-01-04  Kazu Hirata  <kazu@hxi.com>
14144         * config/h8300/h8300.md (anonymous patterns): Check that
14145         operands are registers before using REGNO on them.
14147 2002-01-03  Roland McGrath  <roland@frob.com>
14149         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
14151 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
14153         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
14154         * c-common.h (genrtl_expr_stmt_value): Likewise.
14155         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
14156         (expand_expr_stmt_value): Add maybe_last argument.
14157         Don't warn about statement with no effect if it is the last statement
14158         in expression statement.
14159         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
14160         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
14161         expand_expr_stmt_value.
14162         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
14163         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
14164         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
14165         as maybe_last to expand_expr_stmt_value.
14167 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
14169         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
14170         be passed in, do not build it.
14171         (c_begin_if_stmt): New function.
14172         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14173         * c-common.h (c_expand_start_cond): Update prototype.
14174         (c_begin_if_stmt): Prototype new function.
14175         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14176         * c-parse.in (if_prefix): Use c_begin_if_stmt,
14177         c_begin_while_stmt and c_finish_while_stmt_cond.
14179 2002-01-04  William Cohen  <wcohen@redhat.com>
14181         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
14182         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14183         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14184         * config/pa/som.h (ASM_FILE_START): Likewise.
14186 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
14188         * lcm.c: Include df.h.
14189         Add available_transfer_function prototype.
14190         (compute_available): Rework to use iterative dataflow framework.
14191         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
14192         with bb_info in df.h
14193         (available_transfer_function): New function.
14195         * Makefile.in (lcm.o): add df.h to dependencies.
14197 2002-01-04  Richard Henderson  <rth@redhat.com>
14199         * config/alpha/alpha.c (some_operand): Accept HIGH.
14200         (input_operand): Likewise; accept simple references to globals.
14201         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
14202         (alpha_const_double_ok_for_letter_p): Likewise.
14203         (alpha_extra_constraint): Likewise.
14204         (alpha_preferred_reload_class): Likewise.  Do not force
14205         symbolic constants to memory.
14206         (alpha_legitimate_address_p): Accept simple references
14207         to small_symbolic_operand.
14208         (alpha_legitimize_address): New arg scratch.  Be prepared to be
14209         called when no_new_pseudos.  Emit simple symbolic references.
14210         Split integers into low, high, and rest.
14211         (alpha_expand_mov): Use alpha_legitimize_address.
14212         (some_small_symbolic_mem_operand): New.
14213         (split_small_symbolic_mem_operand): New.
14214         * config/alpha/alpha-protos.h: Update.
14215         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
14216         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
14217         (EXTRA_CONSTRAINT): Likewise.
14218         (PREFERRED_RELOAD_CLASS): Likewise.
14219         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
14220         (PREDICATE_CODES): Update.
14221         * config/alpha/alpha.md: New post-reload splitters to convert
14222         simplfied symbolic operands to the form that references $29.
14223         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
14224         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
14226 2002-01-03  Richard Henderson  <rth@redhat.com>
14228         * local-alloc.c (function_invariant_p): Update commentary.
14230 2002-01-04  H.J. Lu <hjl@gnu.org>
14232         * toplev.c (rest_of_compilation): Fix a typo when calling
14233         cleanup_cfg.
14235 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14237         * c-common.c: Fix formatting.
14238         * diagnostic.c: Likewise.
14239         * doloop.c: Likewise.
14240         * dwarf2out.c: Likewise.
14242 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14244         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
14245         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
14247 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
14249         * cpperror.c: Update comments and copyright.
14250         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
14251         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
14253 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14255         * collect2.c (main): Use strcmp when testing for "-shared".
14257 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
14259         * cppmacro.c: Don't include intl.h.  Update comments.
14260         (new_number_token): Allocate enough buffer for 64-bit unsigned
14261         integers; update prototype.
14262         * cppmain.c: Update comments.
14264 2002-01-03  William Cohen  <wcohen@redhat.com>
14266         * function.h (struct function): Add profile.
14267         (current_function_profile): New.
14268         doc/extend.texi: Update documentation.
14269         * final.c (final_start_function): Use current_function_profile
14270         instead of profile_flag.
14271         (profile_after_prologue): Likewise.
14272         * function.c (expand_function_start): Likewise.
14273         (expand_function_start): Likewise.
14274         * config/alpha/alpha.c (direct_call_operand):
14275         (alpha_does_function_need_gp): Likewise.
14276         (alpha_expand_prologue): Likewise.
14277         * config/arm/arm.c (arm_expand_prologue): Likewise.
14278         thumb_expand_prologue: Likewise.
14279         * config/d30v/d30v.c (d30v_stack_info): Likewise.
14280         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
14281         (fr30_expand_prologue): Likewise.
14282         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
14283         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
14284         * config/i386/i386.h (FINALIZE_PIC): Likewise.
14285         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
14286         * config/i960/i960.c (i960_output_function_prologue): Likewise.
14287         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14288         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
14289         (m32r_expand_prologue): Likewise.
14290         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
14291         (m88k_expand_prologue): Likewise.
14292         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
14293         * config/mips/mips.c (compute_frame_size): Likewise.
14294         (mips_expand_prologue): Likewise.
14295         (mips_can_use_return_insn): Likewise.
14296         * config/pa/elf.h (ASM_FILE_START): Likewise.
14297         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14298         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14299         * config/pa/som.h (ASM_FILE_START): Likewise.
14300         * config/romp/romp.c (romp_using_r14): Likewise.
14301         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
14302         (rs6000_stack_info): Likewise.
14303         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14304         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
14305         * config/v850/v850.c (compute_register_save_size): Likewise.
14307 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
14309         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
14310         gen_lowpart_common fails, use gen_lowpart_SUBREG.
14312 2002-01-03  Turly O'Connor  <turly@apple.com>
14314         * darwin.c (machopic_output_possible_stub_label): Don't generate
14315         stub routines for pseudo-stubs which we've just defined.
14317 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14319         * builtins.c: Fix formatting.
14320         * c-typeck.c: Likewise.
14321         * combine.c: Likewise.
14322         * expr.c: Likewise.
14323         * loop.c: Likewise.
14325 2002-01-03  Andreas Schwab  <schwab@suse.de>
14327         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
14328         and return true if _cpp_push_next_buffer pushed a new include
14329         file.
14330         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
14331         _cpp_pop_file_buffer did not push a new file.
14332         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
14334 2002-01-02  Eric Christopher  <echristo@redhat.com>
14336         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
14337         FIND_REG_INC_NOTE call. Update copyright.
14338         * loop.c (canonicalize_condition): Ditto.
14339         * reorg.c (delete_scheduled_jump): Ditto.
14341 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14343         * gcse.c: Fix formatting.
14345 2002-01-03  Graham Stott  <grahams@redhat.com>
14347         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
14348         forward defs for struct tags rtx_def, union_tree, rtvec_def
14349         also output corresponding typedefs for rtx, tree, and rtvec.
14351         * system.h: Move forward defs for struct tags rtx_def, union_tree,
14352         rtvec_def along with corresponding typedefs for rtx, tree, and
14353         rtvec to config.h, hconfig.h, tconfig.h.
14355 2002-01-03  Graham Stott  <grahams@redhat.com>
14357         * tree.h: Update copyright date.
14358         (IS_EXPR_CODE_CLASS): Add parenthesis.
14359         (TREE_SET_CODE): Add whitespace.
14360         (TREE_CHECK): Add parenthesis.
14361         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
14362         (CST_OR_CONSTRUCTOR_CHECK):
14363         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
14364         (TREE_SYMBOL_REFERENCED): Whitespace.
14365         (INT_CST_LT): Likewise.
14366         (INT_CST_LT_UNSIGNED): Likewise.
14367         (tree_real_cst): Unwrap comment.
14368         (tree_string): Likewise.
14369         (tree_complex): Likewise.
14370         (IDENTIFIER_POINTER): correct cast.
14371         (SAVE_EXPR_CONTEXT): Whitespace.
14372         (EXPR_WFL_FILENAME_NODE): Likewise.
14373         (EXPR_WFL_FILENAME): Remove parenthesis.
14374         (DECL_ORIGIN): Add parenthesis.
14375         (DECL_FROM_INLINE): Use NULL_TREE.
14376         (build_int_2): Whitespace.
14377         (build_type_variant): Add parenthesis.
14379         * gcc/jcf-parse.c: Update copyright date.
14380         (yyparse): Constify resource_filename.
14382 2002-01-03  Graham Stott  <grahams@redhat.com>
14384         * rtl.h: Update copyright date.
14385         (RTL_CHECK1): Wrap long line.
14386         (RTL_CHECK2): Likewise.
14387         (RTL_CHECKC1): Wrap long line and whitespace.
14388         (RTL_CHECKC2): Likewise.
14389         (XWINT): Whitespace.
14390         (XINT): Likewise.
14391         (XSTR): Likewise.
14392         (XEXP): Likewise.
14393         (XVEC): Likewise.
14394         (XMODE): Likewise.
14395         (XBITMAP): Likewise.
14396         (XTREE): Likewise.
14397         (XBBDEF): Likewise.
14398         (XTMPL): Likewise.
14399         (X0WINT): Likewise.
14400         (X0INT):Likewise.
14401         (X0UINT): Likewise.
14402         (X0STR): Likewise.
14403         (X0EXP): Likewise.
14404         (X0VEC): Likewise.
14405         (X0MODE): Likewise.
14406         (X0BITMAP): Likewise.
14407         (X0TREE): Likewise.
14408         (X0BBDEF): Likewise.
14409         (X0ADVFLAGS): Likewise.
14410         (X0CSELIB): Likewise.
14411         (X0MEMATTR): Likewise.
14412         (XCWINT): Likewise.
14413         (XCINT): Likewise.
14414         (XCUINT): Likewise.
14415         (XCSTR): Likewise.
14416         (XCEXP): Likewise.
14417         (XCVEC): Likewise.
14418         (XCMODE): Likewise.
14419         (XCBITMAP): Likewise.
14420         (XCTREE): Likewise.
14421         (XCBBDEF): Likewise.
14422         (XCADVFLAGS): Likewise.
14423         (XCCSELIB): Likewise.
14424         (XC2EXP): Likewise.
14425         (INSN_UID): Likewise.
14426         (PREV_INSN): Likewise.
14427         (PATTERN): Likewise.
14428         (INSN_CODE): Likewise.
14429         (PUT_REG_NOTE_KIND): Likewise.
14430         (CODE_LABEL_NUMBER): Likewise.
14431         (NOTE_SOURCE_FILE): Likewise.
14432         (NOTE_BLOCK): Likewise.
14433         (NOTE_EH_HANDLER): Likewise.
14434         (NOTE_RANGE_INFO): Likewise.
14435         (NOTE_LIVE_INFO): Likewise.
14436         (NOTE_BASIC_BLOCK): Likewise.
14437         (NOTE_EXPECTED_VALUE): Likewise.
14438         (NOTE_LINE_NUMBER): Likewise.
14439         (LABEL_NAME): Likewise.
14440         (LABEL_NUSES): Likewise.
14441         (LABEL_ALTERNATE_NAME): Likewise.
14442         (ADDRESSOF_DECL): Likewise.
14443         (JUMP_LABEL): Likewise.
14444         (LABEL_NEXTREF): Likewise.
14445         (REGNO): Likewise.
14446         (ORIGINAL_REGNO: Likewise.
14447         (HARD_REGISTER_NUM_P): Add parenthesis.
14448         (SUBREG_REG): Whitespace.
14449         (SUBREG_BYTE): Likewise.
14450         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
14451         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
14452         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
14453         (ASM_OPERANDS_INPUT_VEC): Likewise.
14454         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
14455         (ASM_OPERANDS_INPUT): Likewise.
14456         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
14457         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
14458         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
14459         (ASM_OPERANDS_INPUT_MODE): Likewise.
14460         (ASM_OPERANDS_SOURCE_FILE): Likewise.
14461         (ASM_OPERANDS_SOURCE_LINE): Likewise.
14462         (MEM_SET_IN_STRUCT_P): Minor reformat.
14463         (TRAP_CONDITION): Whitespace.
14464         (TRAP_CODE): Likewise.
14465         (COND_EXEC_TEST): Likewise.
14466         (COND_EXEC_CODE): Likewise.
14467         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
14468         (PHI_NODE_P): Add parenthesis.
14469         (plus_constant): Whitespace and add parenthesis.
14471 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14473         * config/avr/avr.c: Fix comment typos.
14474         * config/c4x/c4x.md: Likewise.
14475         * config/dsp16xx/dsp16xx.h: Likewise.
14476         * config/dsp16xx/dsp16xx.md: Likewise.
14477         * config/i386/i386.md: Likewise.
14478         * config/ia64/ia64.c: Likewise.
14479         * config/m32r/m32r.h: Likewise.
14480         * config/m68hc11/m68hc11.md: Likewise.
14481         * config/mmix/mmix.c: Likewise.
14482         * config/mn10200/mn10200.c: Likewise.
14483         * config/romp/romp.c: Likewise.
14484         * config/sh/sh.c: Likewise.
14485         * config/stormy16/stormy16.c: Likewise.
14486         * config/stormy16/stormy16.h: Likewise.
14487         * config/stormy16/stormy16.md: Likewise.
14489 2002-01-03  Graham Stott  <grahams@redhat.com>
14491         * loop.h: Update copyright date.
14492         (LOOP_MOVABLES): Fix typo.
14493         (LOOP_REGS): Likewise.
14494         (LOOP_IVS): Likewise.
14496 2002-01-03  Graham Stott  <grahams@redhat.com>
14498         * cppinit.c: Update copyright date.
14499         Don't include output.h
14500         * Makefile.in: Update copyright date.
14501         Update dependency.
14503 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14505         PR c/5226
14506         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
14507         (-pthread) Add to RS/6000 options.
14509 2002-01-02  Kazu Hirata  <kazu@hxi.com>
14511         * except.c: Fix comment typos.
14512         * loop.c: Likewise.
14513         * varasm.c: Likewise.
14514         * doc/tm.texi: Fix a typo.
14516 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
14518         * c-typeck.c (output_init_element): Allow initializing static storage
14519         duration objects with compound literals.
14521 2002-01-02  Richard Henderson  <rth@redhat.com>
14523         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
14524         after abusing it.
14526 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14528         * gcc.c (default_compilers): Const-ify.
14529         * mips-tdump.c (stab_names): Likewise.
14530         * mips-tfile.c (map_coff_types, map_coff_storage,
14531         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
14532         pseudo_ops_t, pseudo_ops): Likewise.
14533         * protoize.c (default_include): Likewise
14535         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
14536         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
14537         Add array size in declaration.
14538         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
14539         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
14540         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
14541         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
14542         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
14543         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
14544         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
14545         emtens, make_nan): Const-ify.
14546         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
14547         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
14549 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
14551         * config.gcc (ia64-*-*): Set extra_headers.
14552         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
14553         * config/alpha/t-osf: Remove.
14554         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
14556 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
14558         * config/rs6000/t-aix43: Revert previous change.
14560 2002-01-02  Jason Merrill  <jason@redhat.com>
14562         * c-decl.c (c_expand_body): Call outlining_inline_function when
14563         emitting an inline function out of line.
14565 2002-01-02  Richard Henderson  <rth@redhat.com>
14567         * dwarf2out.c (limbo_die_node): Add created_for member.
14568         (new_die): New argument created_for.  Update all callers.
14569         (mark_limbo_die_list): New.
14570         (dwarf2out_init): Register limbo_die_list as a root.
14571         (dwarf2out_finish): Force insert limbo dies into their function
14572         context.
14574 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
14576         PR c++/5089
14577         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
14579 2002-01-02  Kazu Hirata  <kazu@hxi.com>
14581         * config/h8300/fixunssfsi.c: Update copyright.
14582         Fix comment typos.
14583         Fix formatting.
14584         * config/h8300/h8300.c: Update copyright.
14585         Eliminate warnings.
14587 2002-01-02  Kazu Hirata  <kazu@hxi.com>
14589         * config/romp/romp.c: Fix comment formatting.
14590         * config/romp/romp.h: Likewise.
14591         * config/romp/romp.md: Likewise.
14592         * config/s390/s390.c: Likewise.
14593         * config/stormy16/stormy16.c: Likewise.
14594         * config/stormy16/stormy16.h: Likewise.
14596 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
14598         * c-common.h (genrtl_expr_stmt_value): Declare.
14599         * c-semantics.c (genrtl_goto_stmt): Redirect to...
14600         (genrtl_goto_stmt_value): ... this new function.  Pass new
14601         argument down to expand_expr_stmt_value, taking
14602         TREE_ADDRESSABLE into account.
14603         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
14604         STMT_EXPR as addressable, i.e., one whose result we want.
14605         * expr.c (expand_expr): Don't save expression statement value
14606         of labeled_blocks or loop_exprs.
14607         * stmt.c (expand_expr_stmt): Redirect to...
14608         (expand_expr_stmt_value): ... this new function.  Use new
14609         argument to tell whether to save expression value.
14610         (expand_end_stmt_expr): Reset last_expr_type and
14611         last_expr_value if we don't have either.
14612         * tree-inline.c (declare_return_variable): Mark its use
14613         statement as addressable.
14614         * tree.h: Document new use of TREE_ADDRESSABLE.
14615         (expand_expr_stmt_value): Declare.
14617 2002-01-01  Tom Rix  <trix@redhat.com>
14619         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
14620         rs6000_emit_allocate_stack.
14622 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
14624         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
14625         ${srcdir}/ginclude/ to every entry in extra_headers.
14626         * configure: Regenerate.
14627         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
14628         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
14629         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
14630         * ginclude/proto.h: Rename to config/convex/proto.h.
14632 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14634         * attribs.c (handle_vector_size_attribute): Use host_integerp
14635         and tree_int_cst; remove warnings.
14636         * caller-save.c (insert_restore): Add cast to get rid of warning.
14637         (insert_save): Likewise.
14638         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
14639         * regmove.c (find_matches): Add temporary var to kill a warning.
14641 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
14643         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
14644         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
14645         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
14646         (vms-dwarf2eh.o): Add Makefile rule.
14647         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
14648         * config/alpha/vms-dwarf2eh.asm: New file.
14650         * gcc.c (delete_if_ordinary): Delete all versions.
14652 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
14654         * config/mmix/mmix.md: Update FIXME to not mention
14655         define_constants.
14656         (MMIX_rJ_REGNUM): New define_constants constant.
14657         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
14658         "*movdicc_real"): Adjust contraints formatting.
14659         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
14660         for branch prediction.
14661         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
14662         output template.
14663         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
14664         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
14665         number.  Delete related FIXMEs.
14666         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
14667         from number to MMIX_rJ_REGNUM.
14668         (TARGET_MASK_BRANCH_PREDICT): New.
14669         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
14670         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
14671         value.  Add -mbranch-predict and -mno-branch-predict.
14672         (TARGET_VERSION): Drop date.
14673         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
14674         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
14675         for finding out global symbols.
14676         (mmix_asm_output_labelref): Revert condition for global symbol.
14677         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
14678         (mmix_print_operand_punct_valid_p): A '+' is valid.
14680 See ChangeLog.6 for earlier changes.