1 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
4 * configure.in: Likewise.
5 * fixinc/check.tpl: Likewise.
6 * fixinc/fixinc.dgux: Likewise.
7 * fixinc/fixinc.svr4: Likewise.
8 * fixinc/fixinc.winnt: Likewise.
9 * fixinc/fixincl.sh: Likewise.
11 * configure: Regenerate.
13 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15 Basic block renumbering removal:
16 * basic_block.h (struct basic_block_def): Renamed index to sindex,
17 added prev_bb and next_bb fields.
18 (n_basic_blocks): Renamed to num_basic_blocks.
19 (last_basic_block): New, index of last basic block.
20 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
21 traversing basic block chain.
22 (BLOCK_NUM): index -> sindex.
23 (create_basic_block_structure, create_basic_block): Declaration changed.
24 (debug_num2bb): Declare.
25 (expunge_block_nocompact): Declaration removed.
26 (link_block, unlink_block, compact_blocks): Declare.
27 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
28 * cfg.c (entry_exit_blocks): Initialize new fields.
29 (clear_edges, alloc_block, expunge_block, cached_make_edge,
30 redirect_edge_pred, dump_flow_info, dump_edge_info,
31 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
32 free_aux_for_edges): Modified.
33 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
34 (expunge_block_nocompact): Removed.
35 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
36 find_unreachable_blocks, create_edge_list, print_edge_list,
37 verify_edge_list, flow_edge_list_print, remove_fake_successors,
38 remove_fake_edges, flow_reverse_top_sort_order_compute,
39 flow_depth_first_order_compute, flow_preorder_transversal_compute,
40 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
41 flow_dfs_compute_reverse_execute): Modified.
42 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
43 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
45 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
46 merge_blocks_move_predecessor_nojumps,
47 merge_blocks_move_successor_nojumps, merge_blocks,
48 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
49 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
50 * cfglayout.c (skip_insns_after_block, label_for_bb,
51 record_effective_endpoints, scope_to_insns_finalize,
52 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
53 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
54 cfg_layout_duplicate_bb): Modified.
55 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
56 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
57 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
58 flow_loops_find, flow_loop_outside_edge_p): Modified.
59 * cfgrtl.c (create_basic_block_structure, create_basic_block,
60 flow_delete_block, compute_bb_for_insn, split_block,
61 try_redirect_by_replacing_jump, redirect_edge_and_branch,
62 force_nonfallthru_and_redirect, tidy_fallthru_edge,
63 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
64 commit_edge_insertions, commit_edge_insertions_watch_calls,
65 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
66 purge_all_dead_edges): Modified.
67 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
68 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
69 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
71 * conflict.c (conflict_graph_compute): Modified.
72 * df.c (FOR_ALL_BBS): Removed.
73 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
74 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
75 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
76 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
77 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
78 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
79 * final.c (compute_alignments, final_scan_insn): Modified.
80 * flow.c (verify_local_live_at_start, update_life_info,
81 update_life_info_in_dirty_blocks, free_basic_block_vars,
82 delete_noop_moves, calculate_global_regs_live,
83 initialize_uninitialized_subregs, allocate_bb_life_data,
84 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
85 mark_used_reg, count_or_remove_death_notes): Modified.
86 * function.c (thread_prologue_and_epilogue_insns): Modified.
87 * gcse.c (struct null_pointer_info): Change typo of current_block
89 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
90 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
91 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
92 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
93 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
94 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
95 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
96 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
97 pre_delete, one_pre_gcse_pass, compute_transpout,
98 invalidate_nonnull_info, delete_null_pointer_checks_1,
99 free_code_hoist_mem, compute_code_hoist_vbeinout,
100 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
101 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
102 compute_store_table, build_store_vectors, insert_insn_start_bb,
103 insert_store, replace_store_insn, free_store_memory, store_motion):
105 * global.c (global_alloc, global_conflicts, mark_elimination,
106 build_insn_chain): Modified.
107 * graph.c (print_rtl_graph_with_bb): Modified.
108 * haifa-sched.c (sched_init): Modified.
109 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
110 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
111 if_convert): Modified.
112 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
113 compute_insert_delete, pre_edge_lcm, compute_available,
114 compute_farthest, compute_nearerout, compute_rev_insert_delete,
115 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
117 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
118 * loop.c (loop_dump_aux): Modified.
119 * predict.c (combine_predictions_for_insn, estimate_probability,
120 last_basic_block_p, process_note_prediction, process_note_predictions,
121 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
122 expensive_function_p, estimate_bb_frequencies,
123 compute_function_frequency): Modified.
124 * print-rtl.c (print_rtx): Modified.
125 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
126 get_exec_counts, compute_branch_probabilities, compute_checksum,
127 branch_prob, find_spanning_tree): Modified.
128 * recog.c (split_all_insns, peephole2_optimize): Modified.
129 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
130 convert_regs_1, convert_regs_2, convert_regs): Modified.
131 * regclass.c (scan_one_insn, regclass): Modified.
132 * regmove.c (mark_flags_life_zones, regmove_optimize,
133 combine_stack_adjustments): Modified.
134 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
135 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
136 * reorg.c (dbr_schedule): Modified.
137 * resource.c (find_basic_block, init_resource_info): Modified.
138 * sbitmap.c (sbitmap_intersection_of_succs,
139 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
140 sbitmap_union_of_preds): Modified.
141 * sched-deps.c (init_dependency_caches): Modified.
142 * sched-ebb.c (schedule_ebbs): Modified.
143 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
144 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
145 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
146 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
147 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
148 ssa_const_prop): Modified.
149 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
150 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
151 * ssa.c (remove_phi_alternative, find_evaluations,
152 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
153 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
154 make_regs_equivalent_over_bad_edges,
155 make_equivalent_phi_alternatives_equival,
156 compute_conservative_reg_partition,
157 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
158 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
161 2002-05-16 Mark Mitchell <mark@codesourcery.com>
163 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
165 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
167 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
168 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
169 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
170 calling CONSTANT_POOL_ADDRESS_P.
171 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
172 to decide whether to define __arm__ or __thumb.
173 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
174 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
176 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
178 * config/arc/arc.h (CPP_PREDEFINES): Remove.
180 (TARGET_CPU_CPP_BUILTINS): New.
182 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
184 * cpphash.h (cpp_macro): Move here, and make expansion a union.
185 * cppmacro.c (cpp_macro): Remove.
186 (enter_macro_context, replace_args, warn_of_redefinition,
187 _cpp_create_definition, cpp_macro_definition): Update.
189 2002-05-16 Jason Merrill <jason@redhat.com>
191 * config/mips/mips.c (mips_output_external): Don't do sdata
192 optimization for a variable with DECL_COMDAT set.
194 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
196 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
197 Cleanups for accepting modifiers on pointers.
199 Allow long pointers as well as int pointers.
201 2002-05-15 Richard Henderson <rth@redhat.com>
203 * varasm.c (merge_weak): Remove special case for extern and common.
205 2002-05-15 Matt Hiller <hiller@redhat.com>
207 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
209 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
210 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
211 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
212 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
213 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
214 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
216 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
218 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
220 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
222 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
223 ("altivec_mfvscr"): Read from VSCR.
225 Add vscr sets for the following insns: altivec_vctuxs,
226 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
227 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
228 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
229 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
230 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
231 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
232 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
233 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
234 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
235 altivec_vsum2sws, altivec_vsumsws.
237 * config/rs6000/rs6000.h: Add VSCR fixed register.
238 (CALL_REALLY_USED_REGISTERS): Add vscr.
239 (CALL_USED_REGISTERS): Same.
240 (FIXED_REGISTERS): Same.
241 (REG_ALLOC_ORDER): Same.
242 (reg_class): Add VSCR_REGS.
243 (REG_CLASS_NAMES): Same.
244 (REG_CLASS_CONTENTS): Same.
246 (REGISTER_NAMES): Add vscr.
247 (DEBUG_REGISTER_NAMES): Same.
248 (ADDITIONAL_REGISTER_NAMES): Same.
249 (FIRST_PSEUDO_REGISTER): Increment.
250 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
252 2002-05-15 Jakub Jelinek <jakub@redhat.com>
254 * fold-const.c (fold): Fix a typo.
256 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
258 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
259 comparison against the highest or lowest integer value before
260 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
261 transformation and that of an unsigned comparison against 0
264 2002-05-15 Richard Henderson <rth@redhat.com>
266 * varasm.c (merge_weak): Error for any weakening after definition.
267 Adjust weakening after use warning to catch more cases.
268 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
269 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
271 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
273 * invoke.texi (-malign-double): Re-add lost warning.
275 * i386-protos.h (x86_output_mi_thunk): Declare.
276 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
277 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
279 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
280 when flag_asynchronous_unwind_tables is set.
282 * flags.h (flag_reorder_functions): Declare.
283 * function.c (prepare_function_start): Initialize frequnecy.
284 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
285 * Makefile.in (predict.o): Add dependency on target.h and params.h
286 * defaults.h (HOT_TEXT_SECTION_NAME,
287 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
288 * predict.c (choose_function_section): New function.
289 (estimate_bb_frequencies): Use it.
290 * toplev.c (flag_reorder_functions): New global variable.
291 (lang_independent_options): New.
292 (parse_options_and_default_flags): Set.
293 * varasm.c (assemble_start_function): Bypass functdion alignment
294 for never executed functions.
295 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
296 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
297 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
300 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
302 * predict.c: Inlude profile.h
303 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
304 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
305 Use the information about maximal counter in the program.
307 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
309 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
310 probably_never_executed_bb_p): New functions.
311 * cfgcleanup.c (outgoing_edges_match): Use them.
312 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
313 (maybe_hot_bb_p, probably_cold_bb_p,
314 probably_never_executed_bb_p): New functions.
316 * function.h (function): Add new field function_frequency.
317 * predict.c (compute_function_frequency): New function.
318 (estimate_probability): Call it.
320 2002-03-09 Jakub Jelinek <jakub@redhat.com>
322 PR optimization/5172, optimization/5200
323 * gcse.c (gcse_main): Disable store_motion.
325 2002-05-14 Zack Weinberg <zack@codesourcery.com>
327 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
328 (c_common_nodes_and_builtins): Use it.
329 (builtin_define_with_value): New function.
330 (cb_register_builtins): Define __SIZE_TYPE__,
331 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
332 using builtin_define_with_value. Use consistent notation when
333 defining __GXX_WEAK__.
334 (WCHAR_TYPE_SIZE): Don't redefine.
335 (combine_strings): Don't use WCHAR_TYPE_SIZE.
337 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
338 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
339 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
340 * tradcpp.c (initialize_builtins): Likewise.
341 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
343 * c-lex.h (builtin_define_with_value): Prototype.
344 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
345 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
346 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
348 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
349 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
350 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
351 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
352 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
353 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
354 config/sparc/sol2-bi.h, config/sparc/sparc.h:
355 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
356 to __SIZE_TYPE__ etc from all spec strings. When this makes
357 extra specs empty, delete them.
359 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
361 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
362 for PA8000 or generating dwarf2 call frame information.
363 (output_call): Remove DO_FRAME_NOTES check from return pointer
365 (following_call): Return 0 when scheduling for PA8000 or generating
366 dwarf2 call frame information. Revise comment.
368 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
371 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
372 and __IEEE_FP_INEXACT as appropriate.
373 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
374 (CPP_SPEC): Remove ieee defines.
375 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
377 2002-05-14 Richard Henderson <rth@redhat.com>
379 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
380 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
382 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
384 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
386 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
387 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
388 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
389 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
390 (EXTRA_SPECS): Update.
391 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
392 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
393 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
394 define TARGET_OS_CPP_BUILTINS if necessary.
396 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
398 * gcc.c (cpp_options): Must pass -m* and -f* options
399 to the front end even when only preprocessing.
400 (cc1_options): Remove redundant -lang-c.
401 * tradcpp.c (main): Ignore -m options.
403 * lang-specs.h: Similarly.
405 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
407 * genautomata.c (transform_3): Add code for transformation
408 `(A,B,...)+C -> A+C,B,...'.
410 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
412 * final.c (end_final): Do not output profile_arcs constructor, when
413 no functions are instrumented.
415 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
417 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
419 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
421 * doc/install.texi: Remove special markup originally required for
422 HTML generation with texi2html.
424 2002-05-14 Andreas Schwab <schwab@suse.de>
426 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
428 (UNIQUE_SECTION): Define to get small data correctly.
430 * varasm.c (resolve_unique_section): Add third parameter
431 flag_function_or_data_sections and use it instead of
432 flag_function_sections.
433 (assemble_start_function): Pass flag_function_sections.
434 (asm_emit_uninitialised): Pass flag_data_sections.
435 (assemble_variable): Likewise.
437 2002-05-14 Richard Henderson <rth@redhat.com>
439 * config/i386/i386.md: Use define_constants for unspec numbers.
440 * config/i386/i386.c: Likewise.
442 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
444 * doc/contrib.texi: Update my entry.
446 2002-05-13 Mark Mitchell <mark@codesourcery.com>
448 * fixinc/inclhack.def (winidss_valist): Limit applicability.
449 * fixinc/fixincl.x: Regenerated.
450 * fixinc/tests/base/math.h: Update.
451 * fixinc/tests/base/testing.h: Likewise.
453 2002-05-13 Zack Weinberg <zack@codesourcery.com>
455 * genattr.c (gen_attr): Don't emit a comma after the last
458 2002-05-13 Richard Henderson <rth@redhat.com>
460 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
462 * recog.c (peephole2_optimize): Likewise.
464 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
466 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
469 2002-05-13 Jeffrey A Law (law@redhat.com)
471 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
472 Update prototype and callers.
473 (propagate_one_insn): Stack pointer adjustments kill MEMs on
474 the mem_set_list which reference the stack pointer, as do
475 calls to constant functions as they may clobber outgoing
478 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
480 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
481 (ia32_multipass_dfa_lookahead): New function.
483 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
485 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
486 (translate_options): Remove 'V'.
487 (process_command): Similarly.
489 * invoke.texi: Remove documentation of 'V'.
491 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
493 * config/s390/linux.h: Revert 2002-04-22 changes.
495 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
497 * config/fr30/fr30.md: Only allow splits of immediate loads
498 if the destination is a register.
500 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
502 * Makefile.in (c-common.o, cppinit.o): Update.
503 * c-common.c: Include except.h.
504 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
505 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
506 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
507 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
508 CPP_PREDEFINES): Handle here.
510 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
511 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
512 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
513 TARGET_OS_CPP_BUILTINS.
514 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
515 (CPP_SPEC, EXTRA_SPECS): Update.
516 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
517 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
518 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
519 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
520 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
522 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
523 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
525 2002-05-12 Zack Weinberg <zack@codesourcery.com>
527 * emit-rtl.c (global_rtl): Update comment.
528 (const_double_htab, const_double_htab_hash,
529 const_double_htab_hash, lookup_const_double): New.
530 (const_int_htab_hash, const_int_htab_eq): Remove const
531 qualifiers, which cause tons of warnings with RTL checking on.
532 (gen_rtx_CONST_DOUBLE): Deleted.
533 (const_double_from_real_value): New function - bears some
534 resemblance to the former immed_real_const_1.
535 (immed_double_const): Moved here from varasm.c and
537 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
538 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
539 (gen_rtx): Use immed_double_const.
540 (init_emit_once): Initialize the const_double_htab. Use
541 REAL_VALUE_FROM_INT where possible. Can now use
542 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
543 * varasm.c (struct varasm_status): Remove x_const_double_chain.
544 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
545 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
546 (init_varasm_status, mark_varasm_status): Don't touch
547 x_const_double_chain.
549 * output.h: Delete prototype for clear_const_double_mem.
550 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
551 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
552 const_double_from_real_value, not immed_real_const_1, and use
553 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
555 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
556 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
557 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
558 (gen_rtx_REG): Second arg is unsigned.
560 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
561 (excluded_rtx): New, return true for CONST_DOUBLE.
562 (genmacro): Write nothing for excluded codes.
563 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
564 * expr.c (expand_expr): Likewise.
565 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
567 * toplev.c (rest_of_compilation): Don't call
568 clear_const_double_mem.
570 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
571 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
572 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
573 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
574 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
575 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
576 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
577 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
579 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
581 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
583 2002-05-12 Tom Tromey <tromey@redhat.com>
585 * tree.h (copy_node): Don't mention TREE_PERMANENT.
587 2002-05-12 Zack Weinberg <zack@codesourcery.com>
589 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
590 (scan_comma_elt): New function. Accepts whitespace in comma lists.
591 * gensupport.h: Prototype new routines.
592 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
594 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
595 (next_comma_elt): Use scan_comma_elt.
597 * config/i386/i386.md: Use new attribute notation to break up
598 long lines in define_attr forms.
600 2002-05-12 Richard Henderson <rth@redhat.com>
602 * expr.c (compress_float_constant): New.
603 (emit_move_insn): Use it.
604 (float_extend_from_mem): New.
605 (init_expr_once): Initialize it.
606 * real.c (exact_real_truncate): New.
608 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
609 dropped into memory; penalize for size.
610 (RTX_COSTS): FLOAT_EXTEND is free.
611 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
612 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
614 2002-05-12 Richard Henderson <rth@redhat.com>
616 * profile.h (profile_info): Add missing extern to declaration.
617 * profile.c (profile_info): Define it.
619 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
621 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
622 used for DImode and TImode.
624 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
626 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
629 2002-05-11 Zack Weinberg <zack@codesourcery.com>
631 * config/rs6000/rs6000.c (rs6000_default_long_calls,
632 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
633 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
634 (rs6000_override_options): Handle -m(no-)longcall.
635 (init_cumulative_args, output_mi_thunk): Check for both
636 longcall and shortcall attributes on the function.
637 (rs6000_attribute_table): Add "shortcall".
638 (rs6000_handle_longcall_attribute): Update comment.
639 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
640 altivec_expand_ternop_builtin): Add default clauses to switches
643 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
644 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
645 (TARGET_OPTIONS): Add longcall and no-longcall.
647 * config/rs6000/rs6000.md (call_nonlocal_sysv,
648 call_value_nonlocal_sysv): Split by alternatives. One pair
649 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
650 the call cookie. The other pair accepts only LR/CTR and has
653 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
654 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
656 * config/rs6000/rs6000-c.c: New file.
657 * config/rs6000/t-rs6000-c-rule: New file.
658 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
659 Prototype rs6000_pragma_longcall.
661 * doc/extend.texi: Document shortcall attribute.
662 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
664 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
666 * reorg.c (dbr_schedule): Remove unnecessary test.
668 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
670 * i386.md (testsi to testqi spliters): New.
672 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
674 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
676 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
678 * basic-block.h: New flag EDGE_CAN_FALLTHRU
679 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
680 that can be made fallthru.
682 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
684 * cfglayout.c (cleanup_unconditional_jumps): New static function.
685 (cfg_layout_initialize): Use it.
687 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
689 * config/avr/avr.c (avr_mcu_types): Update supported devices.
690 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
691 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
693 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
695 * dbxout.c: Fix formatting.
696 * dependence.c: Likewise.
698 * diagnostic.c: Likewise.
699 * doloop.c: Likewise.
700 * dominance.c: Likewise.
701 * doschk.c: Likewise.
702 * dwarf2asm.c: Likewise.
703 * dwarf2out.c: Likewise.
704 * dwarfout.c: Likewise.
706 2002-05-10 Richard Henderson <rth@redhat.com>
708 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
709 Convert integers constants as needed. Replace "nwords" field with
711 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
712 * function.h: Fix typo in comment.
713 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
715 2002-05-10 Roger Sayle <roger@eyesopen.com>
717 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
718 into the equivalent (signed char)c > 0.
720 2002-05-10 Janis Johnson <janis187@us.ibm.com>
722 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
723 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
724 (struct prefetch_info): Fix spelling of member bytes_accessed.
725 (emit_prefetch_instructions): Make dump messages more regular;
726 restructure code to add more dump messages; use new macros for
727 heuristics. (There are no code generation changes in any of this).
729 2002-05-10 David S. Miller <davem@redhat.com>
731 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
732 (struct rtx_def): Update unchanging flag comment.
733 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
734 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
735 to be handled to INSN too.
736 (dbr_schedule): Likewise.
737 * resource.c (next_insn_no_annul): Likewise.
739 * cse.c (rtx_cost): Remove multiplication by power of 2 special
742 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
744 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
745 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
746 (possibly) work around broken /bin/sh.
748 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
750 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
751 . as N64/N32 libgcc_s.so subdirs.
753 2002-05-10 David S. Miller <davem@redhat.com>
755 * config/sparc/sparc.md: Use define_constants for unspec numbers.
757 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
759 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
761 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
762 * doc/rtl.texi: Document these macros more accurately.
763 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
764 JUMP_INSNs and CALL_INSNs.
765 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
766 or INSN_FROM_TARGET_P if the code is appropriate.
768 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
770 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
771 before using SYMBOL_REF_FLAG (addr).
773 * config/avr/avr-protos.h (avr_io_address_p): Declare.
774 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
775 Make non-static. Update all callers.
776 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
777 New insns to clear/set/test a single bit in I/O address space.
779 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
781 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
783 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
785 * Makefile.in: Update.
786 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
787 builtin_define_std): New.
788 (c_common_init): Register CPP builtins callback.
789 * c-common.h (flag_iso, flag_undef): New.
790 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
791 * c-lex.c: Don't include target.h.
792 (cb_register_builtins): Move to c-common.c.
793 (init_c_lex): Don't register hook here.
794 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
795 (cpp_define, cpp_assert): Remove.
796 * gcc.c (cc1_options): Pass -undef to front end.
797 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
798 (TARGET_INITIALIZER): Update.
799 * target.h (struct cpp_reader): Don't predeclare.
800 (struct gcc_target): Remove cpp builtin hook.
801 * tree.c (default_register_cpp_builtins): Remove.
805 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
807 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
809 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
811 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
812 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
814 2002-05-09 Jakub Jelinek <jakub@redhat.com>
816 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
817 * config/sparc/libgcc-sparc-glibc.ver: New file.
818 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
819 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
821 2002-05-09 Jakub Jelinek <jakub@redhat.com>
824 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
825 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
826 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
828 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
829 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
830 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
831 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
833 2002-05-09 Richard Henderson <rth@redhat.com>
835 * config/ia64/ia64.md: Use define_constants for unspec numbers.
836 * config/ia64/ia64.c: Likewise.
838 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
840 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
841 (save_restore_insns): Likewise.
842 (mips_expand_prologue, mips_expand_epilogue): Update callers.
843 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
845 Thu May 9 11:50:09 2002 Jeffrey A Law (law@cygnus.com)
847 * athlon.md, k6.md, pentium.md, ppro.md): New files.
848 * i386.md: Move scheduling information into new files.
850 * i386.md (type attribute): Add "rotate" for rotate insns.
851 (rotate insns): Set type to "rotate".
852 (various attributes and function units): Treat rotate like shift.
853 (pent_pair attribute): Only rotates by one bit position are
855 (sbb insns): Explicitly set pent_pair attribute on a couple
856 that were missing it.
858 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
860 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
861 make sure that buffer starts on odd word address.
862 (sh_va_arg): Skip odd fp registers when reading a double precision
865 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
867 * tree.h (preserve_data, object_permanent_p, type_precision):
870 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
872 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
873 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
875 * cpp.texi: Update for removal of obsolete features.
877 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
878 Jeffrey A Law (law@redhat.com)
880 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
881 the DFA interface for Pentium processors.
882 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
883 (attr_pent_pair, ix86_pent_find_pair): Remove.
884 (ix86_sched_reorder_pentium): Remove.
885 (ix86_sched_reorder): Remove reordering for Pentium.
886 * i386.md (Pentium scheduling): Rewrite using DFA description.
888 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
890 * cfganal.c (can_fallthru): Fix fast path.
891 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
892 with edges to the next block.
894 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
895 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
897 * final.c (end_final): Use C trees to output data structures for profiling.
899 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
900 (profile.o): New dependency profile.h
901 (final.o): New dependency profile.h
902 * profile.h: New file. New global structure profile_info.
903 * final.h (count_edges_instrumented_now): Declare.
904 (current_function_cfg_checksum): Declare.
905 (function_list): New structure.
906 (functions_head, functions_tail): New static variables.
907 (end_final): Emits more data, removed some -ax stuff.
908 (final): Stores function names and chcksums.
909 * gcov-io.h (__write_gcov_string): New function.
910 (__read_gcov_string): New function.
911 * gcov.c (read_profile): New function.
912 (create_program_flow_graph): Uses read_profile instead of reading
914 (read_files): Removed da_file checking, it's done by read_profile now.
915 * libgcc2.c (bb_function_info): New structure.
916 (bb): New field in structure, removed some -ax stuff.
917 (__bb_exit_func): Changed structure of da_file.
918 * profile.c (count_edges_instrumented_now): New global variable.
919 (current_function_cfg_checksum): New global variable.
920 (max_counter_in_program): New global variable.
921 (get_exec_counts): New function.
922 (compute_checksum): New function.
923 (instrument_edges): Sets count_edges_instrumented_now.
924 (compute_branch_probabilities): Uses get_exec_counts instead of
926 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
927 (init_branch_prob): Removed da_file checking, done in get_exec_counts
929 (end_branch_prob): Removed da_file checking, done in get_exec_counts
931 * gcov.texi: Updated information about gcov file format.
933 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
935 * sbitmap.c: Fix formatting.
937 * scan-decls.c: Likewise.
938 * sched-deps.c: Likewise.
939 * sched-ebb.c: Likewise.
940 * sched-rgn.c: Likewise.
941 * sched-vis.c: Likewise.
942 * sdbout.c: Likewise.
943 * sibcall.c: Likewise.
944 * simplify-rtx.c: Likewise.
946 * ssa-ccp.c: Likewise.
947 * ssa-dce.c: Likewise.
949 * stor-layout.c: Likewise.
950 * stringpool.c: Likewise.
952 2002-05-09 David S. Miller <davem@redhat.com>
954 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
956 2002-05-07 David S. Miller <davem@redhat.com>
958 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
959 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
960 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
961 library implementation clobbers the output before the inputs
962 are fully consumed, use stack temporary for the output.
964 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
966 * config/netbsd.h (CPP_SPEC): Remove.
967 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
968 * config/i386/netbsd.h (CPP_SPEC): Define.
969 * config/ns32k/netbsd.h (CPP_SPEC): Define.
970 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
971 * config/sparc/netbsd.h (CPP_SPEC): Define.
972 * config/vax/netbsd.h (CPP_SPEC): Define.
974 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
976 * read-rtl.c: Fix formatting.
979 * regclass.c: Likewise.
980 * regmove.c: Likewise.
981 * reg-stack.c: Likewise.
982 * reload1.c: Likewise.
983 * reload.c: Likewise.
984 * resource.c: Likewise.
985 * rtlanal.c: Likewise.
987 * rtl-error.c: Likewise.
989 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
991 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
992 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
994 2002-05-08 Bernd Schmidt <bernds@redhat.com>
996 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
997 use __SSE2__ macro instead.
998 * config/i386/xmmintrin.h: Likewise.
1000 2002-05-08 Janis Johnson <janis187@us.ibm.com>
1002 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
1003 and use it in all invocations of these macros. Clean up comments.
1004 * rtl.c (rtl_check_failed_flag): Add an argument for the name
1005 of the flag access macro whose check failed.
1006 * doc/rtl.texi (Flags): Document additional flag uses.
1008 2002-05-08 Robert Spier <rspier@pobox.com>
1009 Neil Booth <neil@daikokuya.demon.co.uk>
1011 PR preprocessor/6521
1012 * cppfiles.c (handle_missing_header): Don't do anything
1013 different for <> includes.
1015 * cppopts.texi: Update documentation for -MG.
1017 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
1019 * cpplex.c (cpp_interpret_charconst): Truncate as well as
1022 * cpp.texi: Clarify multichar charconst valuation.
1024 2002-05-08 Mark Mitchell <mark@codesourcery.com>
1026 * doc/invoke.texi: Document -mwindiss option.
1028 2002-05-08 Jason Merrill <jason@redhat.com>
1030 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
1032 * dwarf2out.c (gen_type_die): Abort on broken recursion.
1035 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
1038 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
1040 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
1041 little-endian multilibs to override arm/thumb multilibs.
1042 Do not build hardware floating point multilibs, nor apcs-26
1043 multilibs for the Thumb.
1045 2002-05-08 Mark Mitchell <mark@codesourcery.com>
1048 * varasm.c (mark_weak): New function.
1049 (merge_weak): Use it. Do not call declare_weak.
1050 (declare_weak): Use merge_weak.
1052 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1054 * cse.c (dead_libcall_p): Update counts.
1055 (delete_trivially_dead_insns): Update call of dead_libcall_p.
1057 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
1059 * cfglayout.c (function_tail_eff_head): Rename to ...
1060 (function_footer): ... this one.
1061 (unlink_insn_chain): New functions.
1062 (label_for_bb): Only call block_label and emit debug message.
1063 (record_effective_endpoints): Actually unlink the headers and footers.
1064 (fixup_reorder_cahin): Re-insert the unlinked sequences.
1065 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
1066 * cfglayout.h (struct reorder_block_def): New fields footer/header;
1067 remove eff_head/eff_end.
1068 * rtl.h (set_first_insn): Declare.
1069 * emit-rtl.c (set_first_insn): New function.
1071 * cfglayout.c (fixup_reorder_chain): Dump duplicated
1072 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1073 cfg_layout_duplicate_bb): New global function.
1074 (duplicate_insn_chain): New static function.
1075 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1076 cfg_layout_duplicate_bb): Declare.
1077 (struct reorder_block_def): Add "original" field.
1078 * emit-rtl.c (emit_copy_of_insn_after): New function.
1079 * rtl.h (emit_copy_of_insn_after): Declare.
1081 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
1082 (fixup_reorder_chain): properly handle edges to exit block.
1084 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1085 Jan Hubicka <jh@suse.cz>
1087 * basic-block.h (note_prediction_to_br_prob): declare.
1088 * c-semantics.c: Inlucde predit.h
1089 (expand_stmt): predict GOTO_STMT as not taken.
1090 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
1091 (cleanup_cfg): Do not free tail_recursion_list.
1092 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
1093 (flow_delete_block): Kill predictions past end of basic block.
1094 * output.h (delete_unreachable_blocks): Declare.
1095 * predict.c (predicted_by_p, process_note_predictions,
1096 process_note_prediction, last_block_p): New function.
1097 (estimate_probability): Bypass loop on PRED_CONTINUE;
1098 do not handle noreturn heuristics; kill PRED_RETURN; add
1100 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
1101 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
1102 * predict.h (IS_TAKEN): New constant.
1103 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
1104 * rtl.c (NOTE_INSN_PREDICTION): New.
1105 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
1107 (insn_note): add NOTE_INSN_PREDICTION.
1108 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
1109 CFG; free tail_recursion_label_list.
1110 * stmt.c: Include predict.h;
1111 (return_prediction): New.
1112 (expand_value_return): Use it.
1113 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
1115 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
1117 * config/mips/mips.md: Name the unspecs with define_constant.
1118 (*HILO_delay): Rename to 'hilo_delay' (no star).
1119 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
1120 (reload_outdi, reload_outsi): Likewise.
1122 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
1124 * toplev.c: Fix formatting.
1126 2002-05-07 Janis Johnson <janis187@us.ibm.com>
1128 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
1129 * configure.in (ac_rtlflag_checking): New.
1130 * doc/install.texi (--enable-checking): Document RTL flag checking.
1132 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
1134 * c-common.c (c_common_init): Set options->unsigned_wchar.
1135 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
1136 group target dependencies.
1137 (init_builtins, cpp_handle_option): Update.
1138 * cpplex.c (cpp_interpret_charconst): Update.
1139 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
1140 signed_char to unsigned_char, group target dependencies.
1141 * defaults.h (WCHAR_UNSIGNED): Remove.
1142 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
1144 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
1145 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
1146 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
1147 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
1148 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
1150 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
1152 2002-05-07 Mark Mitchell <mark@codesourcery.com>
1154 * fixinc/inclhack.def (windiss_math1): New fix.
1155 (windiss_math2): Likewise.
1156 (windiss_valist): Likewise.
1157 * fixinc/fixincl.x: Regenerated.
1159 2002-05-07 Andreas Jaeger <aj@suse.de>
1161 * genautomata.c (output_internal_min_issue_delay_func): Add
1162 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
1163 (output_internal_trans_func): Likewise.
1165 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
1167 * pa.c (hppa_profile_hook): Use force_reg to get the address
1168 of the profile hook into an appropriate pseudo register.
1170 2002-05-07 Mark Mitchell <mark@codesourcery.com>
1172 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
1173 (LINK_START_SPEC): Handle it.
1174 (LINK_OS_SPEC): Likewise.
1175 (CPP_SPEC): Likewise.
1176 (STARTFILE_SPEC): Likewise.
1177 (LIB_SPEC): Likewise.
1178 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
1180 (CRTSAVRES_DEFAULT_SPEC): New macro.
1181 (LIB_WINDISS_SPEC): New macro.
1182 (CPP_OS_WINDISS_SPEC): Likewise.
1183 (STARTFILE_WINDISS_SPEC): Likewise.
1184 (ENDFILE_WINDISS_SPEC): Likewise.
1185 (LINK_START_WINDISS_SPEC): Likewise.
1186 (LINK_OS_WINDISS_SPEC): Likewise.
1187 * config/rs6000/windiss.h: New file.
1189 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
1191 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
1193 2002-05-06 David S. Miller <davem@redhat.com>
1195 * config/sparc/sparc.md (shift insns): Do not mask off
1196 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
1199 2002-05-06 Richard Henderson <rth@redhat.com>
1202 * expr.c (highest_pow2_factor_for_type): New.
1203 (expand_assignment): Use it.
1205 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
1207 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
1209 ("altivec_mfvscr"): Same.
1211 2002-05-06 Janis Johnson <janis187@us.ibm.com>
1213 * rtl.h (struct rtx_def): Update comments.
1214 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
1215 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
1216 RTL_FLAG_CHECK macros with list of expected RTL codes.
1217 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
1218 (rtl_check_failed_flag): New.
1219 * reload1.c (reload): Use REG macro before changing rtx to MEM.
1220 (reload_cse_noop_set_p): Check rtx code before using access macro.
1221 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
1222 before using access macro.
1224 2002-05-06 Janis Johnson <janis187@us.ibm.com>
1226 * doc/rtl.texi (Flags): Update to reflect current usage.
1228 2002-05-06 Roger Sayle <roger@eyesopen.com>
1231 * fold-const.c (sign_bit_p): New function.
1232 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
1233 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1234 Reapply fold when converting (A & C) == C into (A & C) != 0.
1235 (fold_binary_op_with_conditional_arg): Fix typo in comment.
1237 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
1239 * c-common.c (warn_multichar): New.
1240 (c_common_init): Set CPP's warn_multichar.
1241 * c-common.h (warn_multichar): New.
1242 * c-decl.c (warn_multichar): Remove.
1243 * c-lex.c (lex_charconst): Update.
1244 * c-tree.h (warn_multichar): Remove.
1245 * cppexp.c (eval_token): Sign-extend charconst value.
1246 * cppinit.c (cpp_create_reader): Set warn_multichar.
1247 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
1248 each character. Update prototype. Sign-extend the result.
1249 * cpplib.h: Fix conditions.
1250 (struct cpp_options): Add new warning flag.
1251 (cpp_interpret_charconst): Update prototype.
1253 * cpp.texi: Update documentation.
1255 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
1257 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
1258 Fix typo in usage of allof instead of unit.
1260 2002-05-06 Richard Henderson <rth@redhat.com>
1262 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
1263 and any jump or call for IN.
1265 2002-05-06 Bernd Schmidt <bernds@redhat.com>
1267 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
1269 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
1271 2002-05-06 Roger Sayle <roger@eyesopen.com>
1273 * fold-const.c (lshift-double): Cast the high word to an unsigned
1274 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
1275 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
1276 avoid compiler warning. (fold): Remove redundant code from
1277 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
1279 2002-05-06 Jeff Law <law@redhat.com>
1281 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
1282 * pa.c (pa_adjust_cost): Remove all true dependency cost
1283 adjustments. Also remove support for non-DFA scheduling.
1284 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
1285 to adjust true dependency costs. Update various comments.
1286 (7100lc, 7200, 7300 scheduling): Simplify by combining the
1287 FP ALU & MPY units into a single unit.
1289 2002-05-06 Catherine Moore <clm@redhat.com>
1291 * config/v850/v850.c (compute_register_save_size): Make sure
1292 to count all of the registers that will be saved.
1294 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1296 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
1298 2002-05-06 David S. Miller <davem@redhat.com>
1300 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
1301 allow result to overlap input operands in memory.
1303 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
1306 * cpp.texi: Update multichar charconst docs.
1308 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
1310 * cpplex.c (cpp_interpret_charconst): Sign-extend each
1311 character. Don't ignore excess characters. Treat
1312 multicharacter character constants as signed.
1313 (cpp_parse_escape): Clarify diagnostic.
1315 2002-05-05 Jakub Jelinek <jakub@redhat.com>
1317 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
1318 use add instead of shift.
1319 (ashldi3_sp64): Likewise.
1320 (ashlsi3_const1, ashldi3_const1): Remove.
1321 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
1322 * config/sparc/sparc.c (const1_operand): New.
1324 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
1326 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
1328 2002-05-05 Jakub Jelinek <jakub@redhat.com>
1331 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
1333 2002-05-05 Richard Henderson <rth@redhat.com>
1335 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
1336 memory latency adjustments.
1337 (alpha_variable_issue): Remove.
1338 (alpha_use_dfa_pipeline_interface): New.
1339 (alpha_multipass_dfa_lookahead): New.
1340 * config/alpha/alpha.md: Remove define_function_unit scheduling;
1341 include new dfa scheduling.
1342 (attr type): Add none.
1344 * config/alpha/ev4.md: New.
1345 * config/alpha/ev5.md: New.
1346 * config/alpha/ev6.md: New.
1348 2002-05-05 David S. Miller <davem@redhat.com>
1350 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
1352 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
1354 * cse.c: Fix formatting.
1355 * emit-rtl.c: Likewise.
1357 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
1359 * genautomata.c (initiate_states): Add additional guard to
1360 initialize `units_array'.
1362 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
1364 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
1365 process_unit_to_form_the_same_automaton_unit_lists,
1366 form_the_same_automaton_unit_lists
1367 check_unit_distributions_to_automata): New prototypes and
1369 (check_automata): Rename it into `check_automata_insn_issues'.
1370 (unit_decl): New fields `the_same_automaton_unit' and
1371 `the_same_automaton_message_reported_p'.
1372 (unit_decl_t): New typedef.
1373 (the_same_automaton_lists): New gloval variable.
1374 (unit_regexp, unit_set_el, units_array, units_cmp,
1375 output_get_cpu_unit_code_func): Use the typedef.
1376 (evaluate_max_reserv_cycles): Increment
1377 `description->max_insn_reserv_cycles'.
1378 (initiate_states): Don't increment `max_cycles_num'.
1379 (transform_insn_regexps): Move code around transformation of
1380 regexps from `generate'.
1381 (generate): Remove call of `transform_insn_regexps'.
1382 (expand_automata): Call `transform_insn_regexps' and
1383 `check_unit_distributions_to_automata'. Check errors before
1386 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
1387 automaton `ultrasparc3_1'.
1389 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
1391 * c-common.c (c_common_init): Set up CPP arithmetic.
1392 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
1393 something reasonable for the host.
1394 (sanity_checks): Add checks.
1395 (cpp_read_main_file): Call sanity_checks() from here...
1396 (cpp_post_options): ... not here.
1397 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
1398 * cpplib.h (struct cpp_options): New member int_precision.
1400 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1402 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
1404 2002-05-04 David S. Miller <davem@redhat.com>
1406 * config/sparc/linux.h, config/sparc/linux64.h
1407 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
1409 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
1411 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
1413 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
1416 2002-05-05 Tim Josling <tej@melbpc.org.au>
1418 * treelang; New directory for new sample language treelang.
1420 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1422 * Makefile.in (c-lex.o): Update.
1423 * c-lex.c: Include target.h.
1424 (cb_register_builtins): New.
1425 (init_c_lex): Set builtins callback.
1426 * c-lex.h (cpp_define, cpp_assert): New prototypes.
1427 * cppinit.c (init_builtins): Use callback, including for
1429 * cpplib.h (struct cpp_callbacks): New member.
1430 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
1431 (TARGET_INITIALIZER): Update.
1432 * target.h (struct gcc_target): New hook.
1433 * tree.c (default_register_cpp_builtins): New.
1434 * tree.h (default_register_cpp_builtins): New.
1436 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
1438 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1440 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
1441 (cpp_post_options): Move sanity checks to...
1442 (sanity_checks): New.
1443 * cpplex.c (maybe_read_ucs): Fix prototype.
1444 (parse_string, cpp_parse_escape): Cast for %c format specifier.
1445 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
1448 2002-05-04 Bernd Schmidt <bernds@redhat.com>
1450 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
1451 builtins. Use V2DI patterns instead of TI for logical operations.
1452 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
1453 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
1454 (ix86_expand_builtins): Change the pattern used for movntdq.
1455 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
1456 sse2_nandv2di3): New patterns.
1457 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
1459 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
1460 (cvtdq2pd): Correct mode on operand 1.
1461 (sse2_umulsidi3): Describe without unspec.
1462 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
1464 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
1465 (ashlv2di3): Likewise, from sse2_ashlv2di3.
1466 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
1467 ashlv4si3, ashlv2di3): Use SImode for shift count.
1468 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
1469 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
1471 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
1473 (__m128i, __m128d): New macros.
1474 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
1475 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
1476 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
1477 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
1478 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
1479 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
1480 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
1481 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
1482 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
1483 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
1484 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
1485 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
1486 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
1487 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
1488 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
1489 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
1490 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
1491 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
1492 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
1493 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
1494 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
1495 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
1496 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
1497 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
1498 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
1499 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
1500 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
1501 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
1502 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
1503 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
1504 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
1505 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
1506 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
1507 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
1508 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
1509 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
1510 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
1512 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
1513 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
1515 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
1517 * dwarf2out.c: Fix formatting.
1518 * varasm.c: Likewise.
1520 2002-05-04 David Edelsohn <edelsohn@gnu.org>
1523 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
1524 clobber and use result as temporary value.
1526 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1528 * expr.c (force_operand): Use expand_simple_* to handle more
1531 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1533 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
1535 (lex_charconst): Update for change in prototype of
1536 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
1538 * cpphash.h (BITS_PER_CPPCHAR_T): New.
1539 * cppinit.c (cpp_create_reader): Initialize them for no
1540 change in semantics.
1541 (cpp_post_options): Add sanity checks.
1542 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
1543 and truncation issues. Calculate in type cppchar_t.
1544 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
1545 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
1546 run-time dependent precision correctly. Return whether the
1547 result is signed or not.
1548 * cpplib.c (dequote_string): Use cppchar_t; update.
1549 * cpplib.h (cppchar_signed_t): New.
1550 struct cpp_options): New precision members.
1551 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
1552 * cppexp.c (eval_token): Update.
1554 2002-05-03 David S. Miller <davem@redhat.com>
1556 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
1557 * config/sparc/sparc.c (sparc_rtx_costs): New function
1558 implementing RTX_COSTS and CONST_COSTS.
1559 * config/sparc/sparc.h (CONST_COSTS): Delete.
1560 (RTX_COSTS_CASES): Define.
1561 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
1564 * config/sparc/sparc.md (DFA schedulers): Split out...
1565 * config/sparc/cypress.md, config/sparc/hypersparc.md,
1566 config/sparc/sparclet.md, config/sparc/supersparc.md,
1567 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
1569 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
1570 checks on it, always defined for Sparc.
1572 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
1573 Tweak, and add more detailed comments.
1575 2002-05-03 Zack Weinberg <zack@codesourcery.com>
1577 * Re-apply patch accidentally reverted with
1578 DFA scheduler merge: remove all rules and variables to slurp
1579 source files out of libiberty and rebuild them with HOST_CC.
1580 ($(HOST_PREFIX_1)varray.o): New rule.
1581 (genattrtab rule): Word wrap.
1583 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1585 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
1586 (CPP_SUBTARGET_SPEC): Define.
1587 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
1588 cpp_subtarget specs.
1589 (CPP_SPEC): Redefine to include %(cpp_subtarget).
1591 2002-05-03 David S. Miller <davem@redhat.com>
1593 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
1594 * target.h (struct gcc_target): Delete cycle_display member.
1596 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
1597 (rtx_needs_barrier): Delete reference to cycle_display unspec.
1598 (ia64_sched_reorder2): Mention need for cycle display handling
1599 once such notes exist.
1601 2002-05-03 Richard Henderson <rth@redhat.com>
1603 * real.c (etoasc): Strip most trailing zeros for clarity.
1604 * sched-vis.c: Include real.h.
1605 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
1606 * Makefile.in (sched-vis.o): Add real.h.
1608 2002-05-03 David S. Miller <davem@redhat.com>
1610 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
1613 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
1615 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
1616 when we get an out of range literal.
1617 (altivec_expand_ternop_builtin): Same.
1618 (altivec_expand_unop_builtin): Same.
1619 (altivec_expand_builtin): Same, for dss.
1620 (altivec_expand_builtin): Use trees instead of rtl when
1621 determining literal argument validity.
1623 2002-05-03 David S. Miller <davem@redhat.com>
1625 Delete cycle display scheduling hook.
1626 * config/ia64/ia64.c (ia64_cycle_display,
1627 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
1628 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
1629 and use emit_insn_before instead of ia64_emit_insn_before.
1630 * config/ia64/ia64.md (unspec usage): Delete cycle display.
1631 (cycle_display): Delete insn pattern.
1632 * config/sparc/sparc.md (unspec usage): Delete cycle display.
1633 (cycle_display): Delete insn pattern.
1634 * config/sparc/sparc.c (sparc_cycle_display,
1635 TARGET_SCHED_CYCLE_DISPLAY): Delete.
1636 * doc/md.texi (cycle_display): Don't mention.
1637 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
1639 2002-05-03 Richard Henderson <rth@redhat.com>
1641 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
1642 * recog.h: Declare them.
1644 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
1645 * config/sparc/sparc.md: Use store_data_bypass_p instead.
1646 * config/sparc/sparc-protos.h: Update.
1648 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1650 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
1651 -D__arch64__. Add -D_LP64.
1652 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
1654 (CPP_ARCH64_SPEC): Likewise.
1655 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
1656 (NO_BUILTIN_SIZE_TYPE): Undef.
1658 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
1660 * genautomata.c (min_issue_delay_pass_states): Change return type
1662 (min_issue_delay_pass_states): Change the algorithm.
1663 (min_issue_delay): Set up min_insn_issue_delay for the state.
1664 (output_min_issue_delay_table): Interchange the nested loops and
1665 and initiate min_insn_issue_delay for states.
1667 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
1669 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
1672 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
1674 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
1677 2002-05-03 Richard Henderson <rth@redhat.com>
1680 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1681 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
1682 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
1683 code before JUMP, not EARLIEST.
1685 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
1687 * c-format.c (check_format_info_main): Don't check for presence of
1688 parameter for * width until after operand number has been read,
1689 and only check for it if format parameters are available.
1692 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1694 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
1695 (LINK_SPEC): Undef before defining.
1697 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1699 PR preprocessor/6489
1700 * tradcpp.c (fixup_newlines): New.
1701 (main, finclude): Use it.
1703 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
1705 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
1706 * config/mips/mips.c (mips_unique_section): Strip encoding from
1709 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1711 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
1714 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1716 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
1717 (Specific): Removed buildstats references.
1718 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
1719 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
1720 Accomodate Solaris versions beyond 8.
1721 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
1722 (Specific, *-*-solaris2.8): Removed, obsolete.
1724 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1727 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
1728 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
1729 fill leaf_reg_remap with identity.
1730 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
1732 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1734 * config/h8300/crti.asm: Remove trailing spaces.
1735 * config/h8300/h8300.c: Likewise.
1736 * config/h8300/lib1funcs.asm: Likewise.
1738 2002-05-02 Jason Merrill <jason@redhat.com>
1740 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
1741 * c-decl.c (c_init_decl_processing): Use it.
1742 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
1743 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
1744 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
1746 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1748 * regrename.c: Fix formatting.
1751 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
1753 * i386.md (attribute memory): Handle compares properly.
1755 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
1757 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
1760 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
1762 * function.c: Fix formatting.
1764 2002-05-02 Jan Hubicka <jh@suse.cz>
1766 * haifa-sched.c (schedule_insn): Print table of instructions and
1768 (sched_block): Do not print ready list at verbosity level 1.
1769 * sched-vis.c (print_insn): Make global.
1770 * sched-ebb.c (ebb_print_insn): Rename from...
1771 (print_insn): ... this one.
1772 * sched-int.h (print_insn): Declare
1774 2002-05-02 Richard Henderson <rth@redhat.com>
1776 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
1777 emitted by cycle_display.
1779 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
1781 * doc/install.texi (*-*-freebsd*): Update to latest status.
1783 2002-05-02 Jakub Jelinek <jakub@redhat.com>
1786 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
1787 * config/float-sparc.h: Assume 128-bit long double if
1788 __LONG_DOUBLE_128__ is defined.
1790 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
1792 * genattrtab.c (write_function_unit_info): Add a dummy element
1793 when num_units == 0.
1795 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1797 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
1798 TYPE_MODE (double_type_node) instead of DFmode.
1800 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
1802 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
1804 * toplev.c (rest_of_compilation): Revert Richard's patch.
1806 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
1808 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
1810 2002-05-02 Catherine Moore <clm@redhat.com>
1812 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
1814 2002-05-02 Kazu Hirata <kazu@hxi.com>
1816 * combine.c: Fix comment typos.
1818 * genautomata.c: Likewise.
1822 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
1824 * doc/install.texi: State GNAT version requirements.
1826 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
1828 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
1829 of the frame pointer or arg pointer register which strict register
1830 checking is not enabled.
1832 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
1834 * gcc.dg/altivec-8.c: New.
1836 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
1837 PRE_INC and PRE_DEC for altivec modes.
1839 2002-05-01 Bruce Korb <bkorb@gnu.org>
1841 * fixinc/check.tpl(set-writable): make sure the function exists first
1842 * fixinc/inclhack.def(alpha_assert): fix test_text
1843 * fixinc/tests/base/assert.h: add in missing result
1845 2002-05-01 Jeff Law <law@redhat.com>
1847 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
1850 2002-05-01 Joel Brobecker <brobecker@gnat.com>
1852 * dbxout.c (dbxout_type): Emit size information for range types,
1853 as well, but only when using GDB extensions.
1855 2002-05-01 Richard Henderson <rth@redhat.com>
1857 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
1858 target-independent gnu binutils date test.
1860 2002-05-01 Richard Henderson <rth@redhat.com>
1862 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
1863 info before expunging the block.
1865 2002-05-01 Jakub Jelinek <jakub@redhat.com>
1867 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
1868 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
1869 -M -or -MM is in effect.
1871 2002-05-01 Zack Weinberg <zack@codesourcery.com>
1873 * config.gcc: Correct test of --enable-obsolete. Obsolete all
1874 A29k configurations.
1875 * doc/install.texi: Update to match.
1877 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1880 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
1881 for duplicates. Always loop over whole list.
1883 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1885 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
1887 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1889 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
1892 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1894 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
1896 2002-05-01 David Edelsohn <edelsohn@gnu.org>
1898 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
1899 (nabs_nopower): Same.
1900 (floatdisf2): New pattern.
1901 (absdi2): Convert to define_insn_and_split.
1906 (fix_trunctfdi2): Same.
1907 (fix_trunctfsi2): Same.
1909 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
1911 * doc/install.texi: Update Texinfo version requirement
1914 2002-05-01 Jakub Jelinek <jakub@redhat.com>
1916 PR target/6512, PR target/5628
1917 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
1918 when memory is not aligned.
1919 (movdf_insn_v9only_vis): Likewise.
1920 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
1921 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
1922 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
1924 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
1926 * gcc.dg/altivec-7.c: New.
1928 * config/rs6000/altivec.h: Cleanup.
1930 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
1932 * doc/invoke.texi (Option Summary): Add -mvrsave=.
1933 (RS/6000 and PowerPC Options): Document -mvrsave=.
1935 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
1936 (rs6000_altivec_vrsave_string): Same.
1937 (rs6000_override_options): Call rs6000_parse_vrsave_option.
1938 (rs6000_parse_vrsave_option): New.
1939 (rs6000_stack_info): Only generate vrsave instructions when
1940 TARGET_ALTIVEC_VRSAVE.
1942 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
1943 (rs6000_altivec_vrsave_string): Define extern.
1944 (rs6000_altivec_vrsave): Same.
1945 (TARGET_ALTIVEC_VRSAVE): New.
1947 2002-04-30 Richard Henderson <rth@redhat.com>
1950 * toplev.c (rest_of_compilation): Don't run cross-jump before
1953 2002-04-30 Tom Rix <trix@redhat.com>
1955 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
1956 check which_alternative.
1958 2002-04-30 Kazu Hirata <kazu@hxi.com>
1960 * cpplex.c: Fix comment formatting.
1961 * function.c: Likewise.
1962 * integrate.c: Likewise.
1963 * regrename.c: Likewise.
1964 * sibcall.c: Likewise.
1965 * simplify-rtx.c: Likewise.
1966 * tree-inline.c: Likewise.
1968 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
1970 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
1971 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
1972 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
1973 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
1974 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
1975 * pa/x-ada: New file. Define ADA_CFLAGS.
1977 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
1979 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
1980 from MMIX_LAST_REGISTER_FILE_REGNUM.
1981 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
1982 (struct machine_function): New member highest_saved_stack_register
1983 previously static variable in mmix.c.
1984 (MACHINE_DEPENDENT_REORG): Define.
1985 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
1986 (MMIX_OUTPUT_REGNO): New.
1987 (mmix_target_asm_function_prologue): Move calculation of last used
1988 saved-stack-register into...
1989 (mmix_machine_dependent_reorg): New function. Update to also handle
1991 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
1992 register names, simplify somewhat by new variable regno.
1993 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
1995 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
1996 emitting register names.
1997 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
1998 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
2000 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
2003 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
2005 2002-04-30 Richard Henderson <rth@redhat.com>
2007 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
2008 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
2009 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
2010 emit_tfmode_cvt): New.
2011 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
2012 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
2013 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
2014 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
2015 * config/sparc/sparc-protos.h: Update.
2017 2002-04-30 Janis Johnson <janis187@us.ibm.com>
2019 * install.texi (Final install): Add to the list of info to include
2020 in a report of a successful bootstrap, and add link to 3.1 list.
2022 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
2024 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
2025 (mode): Add vector modes
2026 (i387): Kill attribute.
2027 (unit): New attribute.
2028 (length_immediate): Grok new types.
2029 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
2030 (modrm): Use "unit".
2031 (memory): Handle MMX/SSE properly.
2032 (scheduling descriptions): Kill uses of fop1.
2033 (sse, mmx, fp patterns): Set type and mode properly.
2035 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
2037 * pa.c (override_options): Default to PA8000 scheduling.
2038 * doc/invoke.texi (HP-PA options): Mention newly added 7300
2039 scheduling parameter.
2041 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
2042 handling of double precision multiplies.
2044 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
2045 fpdiv and fpsqrt instructions.
2046 (7200 & 7300 scheduling): Fix typo in handling of
2047 store-load and store-store penalties.
2049 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2051 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
2052 mips. Add two missing commas.
2054 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
2056 * doc/contrib.texi (Contributors): Update Paolo Carlini's
2057 and Benjamin Kosnik's entries.
2059 2002-04-29 David S. Miller <davem@redhat.com>
2061 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
2062 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
2063 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
2064 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
2066 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2068 * combine.c (find_split_point): Use gen_int_mode.
2070 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
2072 Merging code from dfa-branch:
2074 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
2076 * genautomata.c (output_reserv_sets): Fix typo.
2078 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
2080 * genautomata.c (output_reserv_sets): Remove
2081 next_cycle_output_flag.
2083 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
2085 * sched-rgn.c (init_ready_list): Make the DFA code handle
2086 USE/CLOBBER insns in the same way as the traditional
2088 (new_ready): Similarly..
2090 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
2092 * haifa-sched.c (schedule_block): Change the DFA state only after
2095 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
2097 * pa.c (hppa_use_dfa_pipeline_interface): New function.
2098 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
2099 (override_options): Add PA7300 scheduling support.
2100 (pa_adjust_cost): Update various comments. Properly
2101 handle anti and output dependencies when using the
2103 (pa_issue_rate): Add PA7300 scheduling support.
2104 (pa_can_combine_p): Call extract_insn before calling
2105 constrain_operands (taken from mainline tree).
2106 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
2107 * pa.md (cpu attr): Add 7300. Rewrite pipeline
2108 descriptions using DFA descriptions. Add PA7300
2111 2002-03-30 David S. Miller <davem@redhat.com>
2113 Add UltraSPARC-III DFA scheduling support.
2114 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
2115 Update FP conditional move on register insn patterns to use it, as
2117 (define_attr cpu): Add ultrasparc3.
2118 (define_attr us3load_type): New, update integer load patterns to
2119 set it, as appropriate.
2120 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
2121 (rest): Add UltraSPARC3 scheduling description.
2122 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
2123 (PROCESSOR_ULTRASPARC3): New.
2124 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
2125 ({ASM,CPP}_CPU_SPEC): Likewise.
2126 (REGISTER_MOVE_COST): Likewise.
2127 (RTX_COSTS): Likewise.
2128 * config/sparc/sparc.c (sparc_override_options,
2129 sparc_initialize_trampoline, sparc64_initialize_trampoline,
2130 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2131 sparc_issue_rate): Likewise.
2132 * config/sparc/sol2.h: Likewise.
2133 * config/sparc/sol2-sld-64.h: Likewise.
2134 * config/sparc/linux64.h: Likewise.
2136 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
2138 * doc/md.texi: Add comments about usage the latency time for the
2139 different dependencies and about case when two or more conditions
2140 in different define_insn_reservations returns TRUE for an insn.
2142 * doc/md.texi: Add reference for automaton based pipeline
2145 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
2147 * doc/passes.texi: Add missed information about genattrtab.
2149 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
2151 * genautomata.c (output_automata_list_transition_code): Check
2152 automata_list on NULL.
2154 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
2156 * genautomata.c (output_insn_code_cases,
2157 output_automata_list_min_issue_delay_code,
2158 output_automata_list_transition_code,
2159 output_automata_list_state_alts_code): Comment the functions.
2161 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
2163 * genautomata.c (automata_list_el_t): New typedef.
2164 (get_free_automata_list_el,free_automata_list_el,
2165 free_automata_list, automata_list_hash, automata_list_eq_p,
2166 initiate_automata_lists, automata_list_start, automata_list_add,
2167 automata_list_finish, finish_automata_lists,
2168 output_insn_code_cases, output_automata_list_min_issue_delay_code,
2169 output_automata_list_transition_code,
2170 output_automata_list_state_alts_code, add_automaton_state,
2171 form_important_insn_automata_lists): New functions and prototypes.
2172 (insn_reserv_decl): Add members important_automata_list and
2174 (ainsn): Add members important_p.
2175 (automata_list_el): New structure.
2176 (first_free_automata_list_el, current_automata_list,
2177 automata_list_table): New global variables.
2178 (create_ainsns): Initiate member important_p.
2179 (output_internal_min_issue_delay_func): Generate the switch and
2180 call output_insn_code_cases.
2181 (output_internal_trans_func, output_internal_state_alts_func):
2183 (generate): Call initiate_automata_lists.
2184 (automaton_states): New global variable.
2185 (expand_automata): Call form_important_insn_automata_lists.
2186 (write_automata): Call finish_automata_lists.
2188 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
2190 * genautomata.c (add_excls, add_presence_absence): Check that
2191 cpu units in the sets belong the same automaton.
2193 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
2194 about that cpu units in the sets belong the same automaton.
2196 * doc/md.texi: Ditto.
2198 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
2199 Nitin Gupta <niting@noida.hcltech.com>
2201 * config/sh/sh.c (sh_use_dfa_interface): New function.
2203 (sh_issue_rate): New Function.
2204 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
2205 TARGET_SCHED_ISSUE_RATE: define.
2207 * config/sh/sh.md: Add DFA based pipeline description for SH4.
2209 (define_attr insn_class): New attribute used for DFA
2211 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
2212 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
2213 cmpeqdi_t): Likewise.
2215 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
2216 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
2218 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
2220 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
2222 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
2225 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
2227 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
2228 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
2230 (output_dfa_start_func): Initiate new variable insn_codes_length,
2231 (write_automata): Output definition of the new variable.
2233 2001-10-02 David S. Miller <davem@redhat.com>
2235 * haifa-sched.c (advance_one_cycle): New function.
2236 (schedule_block): Use it.
2237 (queue_to_ready): Use it, and also make sure to advance the DFA
2238 state on all stall cycles, not just those where insn_queue links
2241 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
2243 * haifa-sched.c (max_issue): Remove last_p argument. Only return
2244 non-zero if the highest-priority instruction could be scheduled.
2245 (choose_ready): Remove last argument from max_issue call.
2247 2001-09-28 David S. Miller <davem@redhat.com>
2249 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
2250 ultrasparc and 3 for other multi-issue sparcs.
2252 2001-09-27 David S. Miller <davem@redhat.com>
2254 * config/sparc/sparc.md (cycle_display): New pattern.
2255 * config/sparc/sparc.c (sparc_cycle_display): New.
2256 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
2258 2001-09-25 David S. Miller <davem@redhat.com>
2260 Convert all of Sparc scheduling to DFA
2261 * config/sparc/sparc.md: Kill all define_function_unit
2262 directives and replace with DFA equivalent.
2263 * config/sparc/sparc.c (ultrasparc_adjust_cost,
2264 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
2265 ultra_fpmode_conflict_exists, ultra_find_type,
2266 ultra_build_types_avail, ultra_flush_pipeline,
2267 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
2268 ultrasparc_variable_issue, ultrasparc_sched_init,
2269 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
2270 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
2271 ultra_cur_hist, ultra_cycles_elapsed): Kill.
2272 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2273 ultrasparc_store_bypass_p): New.
2274 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
2277 2001-09-24 David S. Miller <davem@redhat.com>
2279 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
2280 ready->vec[foo] not ready[foo].
2282 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
2284 * doc/md.texi: Correct examples for define_insn_reservations
2287 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
2289 * genautomata.c (create_automata): Print message about creation of
2291 (generate): Remove printing meease about creation of
2294 2001-09-05 David S. Miller <davem@redhat.com>
2296 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
2297 * config/sparc/linux64.h: Likewise.
2299 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
2301 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
2302 schedule_block, sched_init, sched_finish): Add missed calls of
2303 use_dfa_pipeline_interface.
2305 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
2308 * sched-vis.c (get_visual_tbl_length): Ditto.
2310 2001-08-27 Richard Henderson <rth@redhat.com>
2312 * genattr.c (main): Emit state_t even when not doing scheduling.
2314 2001-08-27 Richard Henderson <rth@redhat.com>
2316 * genautomata.c (expand_automata): Always create a description.
2318 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
2320 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
2321 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
2322 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
2325 * genattr.c (main): New variable num_insn_reservations. Increase
2326 it if there is DEFINE_INSN_RESERVATION. Output automaton based
2327 pipeline hazard recognizer interface.
2329 * genattrtab.h: New file.
2331 * genattrtab.c: Include genattrtab.h.
2332 (attr_printf, check_attr_test, make_internal_attr,
2333 make_numeric_value): Move protypes into genattrtab.h. Define them
2335 (num_dfa_decls): New global variable.
2336 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
2337 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
2338 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
2339 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
2341 * genautomata.c: New file.
2343 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
2345 * sched-int.h: (curr_state): Add the external definition for
2346 automaton pipeline interface.
2347 (haifa_insn_data): Add comments for members blockage and units.
2349 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2350 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2351 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2352 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2353 TARGET_SCHED_DFA_POST_CYCLE_INSN,
2354 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2355 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
2357 (TARGET_SCHED): Use the new macros.
2359 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
2360 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
2361 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
2362 dfa_bubble): New members in gcc_target.sched.
2364 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
2365 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
2366 (insn_queue): Redefine it as pointer to array.
2367 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
2369 (max_insn_queue_index_macro_value): New variable.
2370 (curr_state, dfa_state_size, ready_try): New varaibles for
2371 automaton interface.
2372 (ready_element, ready_remove, max_issue): New function prototypes
2373 for automaton interface.
2374 (choose_ready): New function prototype.
2375 (insn_unit, blockage_range): Add comments.
2376 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
2377 FUNCTION_UNITS_SIZE == 0.
2378 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
2379 actual_hazard, potential_hazard): Add comments.
2380 (insn_cost): Use cost -1 as undefined value. Remove
2381 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
2383 (ready_element, ready_remove): New functions for automaton
2385 (schedule_insn): Add new code for automaton pipeline interface.
2386 (queue_to_ready): Add new code for automaton pipeline interface.
2387 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
2388 (debug_ready_list): Print newline when the queue is empty.
2389 (max_issue): New function for automaton pipeline interface.
2390 (choose_ready): New function.
2391 (schedule_block): Add new code for automaton pipeline interface.
2392 Print ready list before scheduling each insn.
2393 (sched_init): Add new code for automaton pipeline interface.
2394 Initiate insn cost by -1.
2395 (sched_finish): Free the current automaton state and finalize
2396 automaton pipeline interface.
2398 * sched-rgn.c: Include target.h.
2399 (init_ready_list, new_ready, debug_dependencies): Add new code for
2400 automaton pipeline interface.
2402 * sched-vis.c: Include target.h.
2403 (get_visual_tbl_length): Add code for automaton interface.
2404 (target_units, print_block_visualization): Add comments.
2406 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
2407 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
2408 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
2409 (getruntime.o, genautomata.o): New entries.
2410 (genattrtab.o): Add new dependency file genattrtab.h.
2411 (genattrtab): Add new dependencies. Link it with `libm.a'.
2412 (getruntime.o, hashtab.o): New entries for canadian cross.
2414 * doc/md.texi: Description of automaton based model.
2416 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
2418 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2419 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2420 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2421 TARGET_SCHED_DFA_POST_CYCLE_INSN,
2422 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2423 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2424 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
2426 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
2427 MAX_DFA_ISSUE_RATE): New macro descriptions.
2429 * doc/contrib.texi: Add dfa based scheduler contribution.
2431 * doc/gcc.texi: Add more information about genattrtab.
2433 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2435 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
2436 adjust_address_nv call.
2438 2002-04-29 Janis Johnson <janis187@us.ibm.com>
2440 * doc/install.texi (Testing): Provide additional information, and
2441 a stronger encouragement, for running the testsuites.
2443 2002-04-29 DJ Delorie <dj@redhat.com>
2445 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
2446 given in upper case.
2448 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2450 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
2451 Solaris 2 <widec.h> if missing.
2452 * fixinc/fixincl.x: Regenerate.
2453 * fixinc/tests/base/widec.h: New file.
2455 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
2457 * toplev.c (f_options): Add "profile" switch so that
2458 -fno-profile can be used to disable -p.
2460 2002-04-29 Bernd Schmidt <bernds@redhat.com>
2462 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
2464 * tree.c (build_common_tree_nodes_2): Likewise.
2465 * tree.h (enum tree_index): Likewise.
2466 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
2468 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
2470 (init_mmx_sse_builtins): Initialize SSE2 builtins.
2471 (ix86_expand_builtin): Add support for SSE2 builtins.
2472 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
2473 (VALID_SSE_REG_MODE): Use it.
2474 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
2475 (enum ix86_builtins): Add SSE2 builtins.
2476 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
2477 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
2478 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
2479 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
2480 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
2481 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
2482 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
2483 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
2484 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
2485 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
2486 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
2487 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
2488 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
2489 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
2490 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
2491 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
2492 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
2493 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
2494 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
2495 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
2496 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
2497 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
2498 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
2499 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
2500 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
2501 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
2502 lfence_insn): New patterns.
2503 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
2504 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
2506 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
2508 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
2510 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2512 * doc/contrib.texi (Contributors): Add Paolo Carlini and
2514 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
2515 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
2516 and CPU instead of cpu.
2518 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
2520 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
2522 (lang_independent_options): Add -fif-conversion, -fif-conversion2
2523 (rest_of_compilation): Do if conversion only when asked for.
2524 (parse_options_and_default_flags): Set new variables to 1 for -O1
2525 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
2527 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
2529 * i386.c (dbx64_register_map): Fix typo.
2531 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
2533 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
2534 real_one_half, real_bb_freq_max): New static variables.
2535 (debug_profile_bbauxs): Kill.
2536 (process_note_predictions): Kill unused variable.
2537 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
2539 (propagate_freq): Use REAL_ARITHMETICS.
2540 (estimate_bb_frequencies): Likevise; init new static variables.
2541 * Makefile.in (predict.o): Add dependency on real.h
2543 2002-04-28 David S. Miller <davem@redhat.com>
2546 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
2547 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
2548 several {reads,writes} instead.
2549 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
2552 2002-04-27 David S. Miller <davem@redhat.com>
2555 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
2558 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
2559 including signal.h and sys/ucontext.h, not needed.
2561 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
2563 * varasm.c (output_constant_def): Correct test for not calling
2564 ENCODE_SECTION_INFO for INTEGER_CST.
2566 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
2568 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
2569 keep most cases as function eval_token.
2570 (eval_token): New function.
2571 (_cpp_parse_expr): Read token here for improved diagnostics.
2572 Don't use op_as_text. Detect bad ':' here.
2573 (reduce): Don't detect bad ':' here.
2574 (op_as_text): Remove.
2575 * cpphash.h (_cpp_test_assertion): Change prototype.
2576 * cpplib.c (_cpp_test_assertion): Change prototype.
2578 2002-04-28 Richard Henderson <rth@redhat.com>
2581 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
2582 (ggc_mark_rtx_children): New.
2584 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2587 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
2588 after call peepholes for UltraSPARC.
2589 (call + jump 64-bit peepholes): Remove.
2591 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2594 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
2595 result as temporary value.
2597 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2600 * toplev.c (rest_of_compilation): Only run regrename and copy
2601 propagation if optimizing.
2603 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2605 PR optimization/6475
2606 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
2607 register of REGNO_DECL (i).
2608 * Makefile.in (reload1.o): Add $(TREE_H).
2610 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
2612 * cppexp.c (lex): Update to use state.skip_eval.
2613 (struct op): Remove prio and flags members.
2614 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
2615 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
2616 (LEFT_ASSOC): New macro.
2617 (optab): New table of operator priorities and flags.
2619 (_cpp_parse_expr): Clean up logic. Return bool. Use a
2620 malloc-ed parser stack.
2621 (reduce): New; reduce the operator stack.
2622 (_cpp_expand_op_stack): Expand the operator stack as necessary.
2623 * cpphash.h (struct op): Predeclare.
2624 (struct cpp_reader): New members op_stack, op_limit.
2625 (struct lexer_state): New member skip_eval.
2626 (_cpp_parse_expr): Update.
2627 (_cpp_expand_op_stack): New.
2628 * cpplib.c (do_if): Update.
2629 * cppinit.c (cpp_create_reader): Create op stack.
2630 (cpp_destroy): And destroy it.
2631 * cpplib.h (CPP_LAST_CPP_OP): Correct.
2632 (TTYPE_TABLE): Correct.
2634 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2637 * c-decl.c (duplicate_decls): Call merge_weak.
2638 * c-pragma.c (apply_pragma_weak): Warn about misuse.
2639 * output.h (merge_weak): Prototype merge_weak.
2640 * varasm.c (merge_weak): New function.
2641 (declare_weak): Make sure we don't give an error on VAR_DECLs.
2642 Mark RTL with SYMBOL_REF_WEAK.
2644 2002-04-27 Kurt Garloff <garloff@suse.de>
2646 * tree-inline.c (inlinable_function_p): Improve heuristics
2647 by using a smoother function to cut down allowable inlinable size.
2648 * param.def: Add parameters max-inline-insns-single,
2649 max-inline-slope, min-inline-insns that determine the exact
2650 shape of the above function.
2651 * param.h: Likewise.
2653 2002-04-26 Richard Henderson <rth@redhat.com>
2655 * c-parse.in (malloced_yyss, malloced_yyvs): New.
2656 (yyoverflow): Re-add. Set them.
2657 (free_parser_stacks): New.
2658 * c-common.h: Declare it.
2659 * c-lex.c (c_common_parse_file): Call it.
2661 2002-04-26 Richard Henderson <rth@redhat.com>
2663 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
2664 for fallthru search.
2666 2002-04-26 Eric Christopher <echristo@redhat.com>
2668 PR optimization/3700
2669 * config/mips/mips.c (mips_issue_rate): Define. New function.
2670 (TARGET_SCHED_ISSUE_RATE): Use.
2672 2002-04-25 David S. Miller <davem@redhat.com>
2675 * reorg.c (optimize_skip): Do not allow exception causing
2676 instructions to be considered for delay slots.
2677 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
2678 (relax_delay_slots): Do not try to consider exception causing
2679 instructions as redundant.
2681 2002-04-26 Richard Henderson <rth@redhat.com>
2684 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
2686 2002-04-26 Mark Mitchell <mark@codesourcery.com>
2689 * config/i386/i386.md (untyped_call): Return the value in a float
2690 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
2693 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
2695 * tree.c (tree_int_cst_lt): Compare constants whose types differ
2696 in unsigned-ness correctly.
2698 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
2700 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
2701 portable runtime model.
2703 2002-04-26 Richard Henderson <rth@redhat.com>
2705 * c-parse.in (yyoverflow): Revert.
2707 2002-04-26 David Edelsohn <edelsohn@gnu.org>
2708 Richard Henderson <rth@redhat.com>
2710 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
2711 result as temporary value.
2713 2002-04-26 Richard Henderson <rth@redhat.com>
2716 * c-common.c (fix_string_type): Split out of ...
2717 (combine_strings): ... here. Take a varray, not a tree list.
2718 (c_expand_builtin_printf): Use fix_string_type.
2719 * c-common.h: Update decls.
2720 * c-parse.in (string): Remove. Update all uses to use STRING
2721 instead, and not call combine_strings.
2724 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
2725 (build_asm_stmt): Likewise.
2726 * objc/objc-act.c (my_build_string): Use fix_string_type.
2727 (build_objc_string_object): Build varray for combine_strings.
2729 2002-04-26 Bo Thorsen <bo@suse.co.uk>
2731 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
2734 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
2736 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
2737 (HAVE_NO_R_OPERAND): Remove.
2738 (HAVE_VALUE): Remove.
2739 (op_to_prio): Update.
2740 (UNARY): Don't alter flags.
2741 (_cpp_parse_expr): want_value used to indicate whether
2742 a number or unary operator is expected next. Distinguish
2743 unary and binary +/-.
2744 (op_as_text): Update for unary operators.
2746 2002-04-25 Richard Henderson <rth@redhat.com>
2749 * c-parse.in (yyoverflow): New.
2751 2002-04-25 Richard Henderson <rth@redhat.com>
2754 * c-common.c (shorten_compare): Simplfy conditions leading to
2755 the generation of a warning.
2757 2002-04-25 Richard Henderson <rth@redhat.com>
2760 * expmed.c (extract_bit_field): Fall through to generic code rather
2761 than aborting on subreg special case.
2763 2002-04-25 David S. Miller <davem@redhat.com>
2765 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
2766 for DECL being NULL.
2768 2002-04-25 Steve Christiansen <smc@us.ibm.com>
2770 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
2772 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
2774 * c-decl.c (grokdeclarator): Remove outdated ??? note
2775 on invalid declaration of flexible array members.
2777 2002-04-25 Richard Henderson <rth@redhat.com>
2779 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
2781 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2783 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
2784 needed by the compiler, even if they are used as global regs.
2786 2002-04-25 Matt Hiller <hiller@redhat.com>
2788 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
2790 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
2791 of the corresponding functions.
2792 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
2795 2002-04-25 Matt Hiller <hiller@redhat.com>
2797 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
2799 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
2800 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
2801 registers, adjust comment accordingly.
2802 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
2803 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
2804 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
2805 for coprocessor registers.
2806 (ADDITIONAL_REGISTER_NAMES): Include
2807 ALL_COP_ADDITIONAL_REGISTER_NAMES.
2809 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
2810 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
2811 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
2812 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
2813 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
2815 (mips_char_to_class): Adjust comment to include coprocessor
2818 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
2820 (mips_reg_names, mips_regno_to_class): Include coprocessor
2822 (mips_sw_reg_names): Ditto, make non-static.
2823 (mips_move_1word): Handle moves to and from coprocessor registers.
2824 (mips_move_2words): Handle moves to and from coprocessor
2826 (mips_class_max_nregs, mips_register_move_cost): Handle
2827 coprocessor register classes.
2828 (override_options): Initialize mips_char_to_class and
2829 mips_hard_regno_mode_ok properly for coprocessor registers.
2831 * config/mips/mips.md (movdi_internal, movdi_internal2,
2832 movsi_internal1, movsi_internal2): Add constraint-sets for
2833 coprocessor registers.
2834 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
2835 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
2837 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
2838 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
2840 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
2841 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
2843 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
2844 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
2847 * doc/tm.texi: Document feature.
2849 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
2851 * integrate.c (function_attribute_inlinable_p): Simplify.
2852 Check the table pointer is not NULL.
2854 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
2856 * doc/c-tree.texi: Fix typo in introduction.
2858 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
2860 * c-common.h (c_common_parse_file): Update.
2861 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2862 * c-lex.c (YYDEBUG): Get from c-lex.h.
2863 (c_common_parse_file): Update.
2864 * c-lex.h (YYDEBUG, yydebug): New.
2865 * c-parse.in (YYDEBUG): Get from c-lex.h.
2866 (c_set_yydebug): Remove.
2867 * c-tree.h (c_set_yydebug): Remove.
2868 * langhooks-def.h (lhd_do_nothing_i): New.
2869 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
2870 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
2871 * langhooks.c (lhd_do_nothing_i): New.
2872 (lhd_set_yydebug): Remove.
2873 * langhooks.h (struct lang_hooks): Update.
2874 * toplev.c (set_yydebug): New.
2875 (compile_file): Update call to parse_file hook.
2876 (decode_d_option): Update.
2878 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2880 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
2882 * loop.c (load_mems): Don't change the interface of called functions.
2884 * calls.c (expand_call): Take current_function_pretend_args_size
2885 into account when setting argblock for sibcalls.
2887 2002-04-24 Matt Hiller <hiller@redhat.com>
2889 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
2892 * cpplex.c (skip_line_comment): Process comment one multibyte
2893 character at a time rather than one char at a time, if
2895 (parse_string): Process string one multibyte character at a time
2896 rather than one char at a time, if appropriate.
2897 * c-lex.c (lex_string): Lex and copy multibyte strings
2899 * cpplib.h (cppchar_t): Change to unsigned.
2901 2002-04-24 Richard Henderson <rth@redhat.com>
2904 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
2907 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
2909 * sh.c (sh_va_arg): If argument was passed by reference,
2910 dereference the pointer.
2912 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
2914 * sh.md (divsi3_i4_media): Use match_operand for input values
2915 rather than hard registers.
2916 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
2917 unnecessarily through hard registers. Keep copies of pseudo
2918 registers outside of the libcall sequence.
2920 * sh.md (casesi_shift_media): Add modes.
2922 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
2925 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
2927 * attribs.c (c_common_attribute_table): Move table and handlers
2929 (format_attribute_table, lang_attribute_table,
2930 lang_attribute_common): Remove.
2931 (init_attributes): Replace NULL pointers with pointers to the
2933 (handle_packed_attribute, handle_nocommon_attribute,
2934 handle_common_attribute, handle_noreturn_attribute,
2935 handle_noinline_attribute, handle_always_inline_attribute,
2936 handle_used_attribute, handle_unused_attribute,
2937 handle_const_attribute, handle_transparent_union_attribute,
2938 handle_constructor_attribute, handle_destructor_attribute,
2939 handle_mode_attribute, handle_section_attribute,
2940 handle_aligned_attribute, handle_weak_attribute,
2941 handle_alias_attribute, handle_visibility_attribute,
2942 handle_no_instrument_function_attribute, handle_malloc_attribute,
2943 handle_no_limit_stack_attribute, handle_pure_attribute,
2944 handle_deprecated_attribute, handle_vector_size_attribute,
2945 vector_size_helper): Move to c-common.c.
2946 * c-common.c (c_common_attribute_table,
2947 handle_packed_attribute, handle_nocommon_attribute,
2948 handle_common_attribute, handle_noreturn_attribute,
2949 handle_noinline_attribute, handle_always_inline_attribute,
2950 handle_used_attribute, handle_unused_attribute,
2951 handle_const_attribute, handle_transparent_union_attribute,
2952 handle_constructor_attribute, handle_destructor_attribute,
2953 handle_mode_attribute, handle_section_attribute,
2954 handle_aligned_attribute, handle_weak_attribute,
2955 handle_alias_attribute, handle_visibility_attribute,
2956 handle_no_instrument_function_attribute, handle_malloc_attribute,
2957 handle_no_limit_stack_attribute, handle_pure_attribute,
2958 handle_deprecated_attribute, handle_vector_size_attribute,
2959 vector_size_helper): Move from attribs.c.
2960 * c-common.h (c_common_attribute_table,
2961 c_common_format_attribute_table): New.
2962 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
2963 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
2964 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
2965 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
2966 (LANG_HOOKS_INITIALIZER): Update.
2967 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
2968 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
2969 * target.h: Update comment.
2970 * tree.c (default_target_attribute_table): Remove.
2971 * tree.h (default_target_attribute_table, format_attribute_table,
2972 lang_attribute_table, lang_attribute_common): Remove.
2974 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
2975 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
2977 2002-04-24 Jason Merrill <jason@redhat.com>
2979 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
2980 * dwarf2out.c (dwarf_attr_name): Support it.
2981 (gen_array_type_die): Emit it.
2982 (lookup_type_die): No special handling for VECTOR_TYPE.
2983 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
2985 2002-04-24 Richard Henderson <rth@redhat.com>
2987 * config/mips/mips.md (movdi_usd): Renumber.
2989 2002-04-24 David S. Miller <davem@redhat.com>
2992 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
2993 32-bit Sparc and current_function_returns_struct is true.
2995 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
2997 * loop.c (canonicalize_condition): Use gen_int_mode.
2999 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
3001 * config/rs6000/altivec.h: Cleanup file. Add non individual
3023 (vec_vcmpequb): New.
3024 (vec_vcmpequh): New.
3025 (vec_vcmpequw): New.
3026 (vec_vcmpeqfp): New.
3027 (vec_vcmpgefp): New.
3028 (vec_vcmpgtub): New.
3029 (vec_vcmpgtsb): New.
3030 (vec_vcmpgtuh): New.
3031 (vec_vcmpgtsh): New.
3032 (vec_vcmpgtuw): New.
3033 (vec_vcmpgtsw): New.
3034 (vec_vcmpgtfp): New.
3035 (vec_vcmpgefp): New.
3040 (vec_vexptefp): New.
3045 (vec_lde): Add vector float variant.
3050 (vec_vmhaddshs): New.
3072 (vec_vmladduhm): New.
3073 (vec_vmhraddshs): New.
3075 (vec_vmsummbm): New.
3076 (vec_vmsumuhm): New.
3077 (vec_vmsumshm): New.
3078 (vec_vmsumuhs): New.
3079 (vec_vmsumshs): New.
3088 (vec_vnmsubfp): New.
3106 (vec_vrsqrtefp): New.
3117 (vec_vspltisb): New.
3118 (vec_vspltish): New.
3119 (vec_vspltisw): New.
3144 (vec_vsum4ubs): New.
3145 (vec_vsum4sbs): New.
3146 (vec_vsum4shs): New.
3147 (vec_vsum2sws): New.
3158 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
3161 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
3162 added literals from substracted literals.
3163 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
3164 (fold) [associate]: Preserve MINUS_EXPR if needed.
3166 2002-04-23 Zack Weinberg <zack@codesourcery.com>
3168 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
3171 2002-04-23 Tom Tromey <tromey@redhat.com>
3173 * gcc.c: Added --resource. For PR java/6314.
3175 2002-04-23 David O'Brien <obrien@FreeBSD.org>
3177 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
3178 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
3181 2002-04-23 David O'Brien <obrien@FreeBSD.org>
3183 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
3185 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
3187 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
3189 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
3190 (ix86_expand_clrstr): Fix typo.
3191 * loop.c (gen_load_of_final_value): New.
3192 (loop_givs_rescan, strength_reduce, check_dbra_loop):
3195 2002-04-23 Roger Sayle <roger@eyesopen.com>
3197 * builtins.c (builtin_memset_gen_str): New function.
3198 (expand_builtin_memset): Optimize the case of constant length, but
3201 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
3203 * config/rs6000/altivec.h (vec_step): Remove extraneous
3205 (vec_ctu): Cast return.
3207 2002-04-23 Alan Modra <amodra@bigpond.net.au>
3210 * function.h: (struct function): Add profile_label_no field.
3211 (current_function_profile_label_no): Define.
3212 * function.c: (profile_label_no): New static var.
3213 (expand_function_start): Increment it, and copy to
3214 current_function_profile_label_no.
3215 * output.h (profile_label_no): Delete.
3216 * final.c (profile_label_no): Delete.
3217 (profile_function): Use current_function_profile_label_no.
3218 (final_end_function): Don't increment profile_label_no here.
3219 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
3220 profile_label_no with current_function_profile_label_no.
3221 * config/pa/pa.c (current_function_number): Delete.
3222 (pa_output_function_prologue): Don't output profile label here.
3223 (hppa_profile_hook): Use label_no param rather than
3224 current_function_number.
3225 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
3226 * config/pa/pa.h: .. here.
3227 (FUNCTION_PROFILER): Output profile label here.
3229 2002-04-22 Eric Christopher <echristo@redhat.com>
3231 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
3232 patch of 2002-04-09 due to binutils issues.
3233 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
3235 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
3237 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
3238 constraint to 'o' for m=r and r=m alternatives.
3239 ("*movv8hi_internal1"): Same.
3240 ("*movv16qi_internal1"): Same.
3241 ("*movv4sf_internal1"): Same.
3243 2002-04-22 Janis Johnson <janis187@us.ibm.com>
3245 * rtl.h (RTX_FLAG): New macro.
3246 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
3247 * final.c (alter_subreg): Use macro to access rtx flag.
3248 * integrate.c (copy_rtx_and_substitute): Use new access macro.
3249 * print-rtl.c (print_rtx): Use new access macro.
3251 * cse.c (insert): Check rtx code before accessing flag.
3253 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
3254 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
3255 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
3256 convert_const_symbol_ref, make_canonical, make_alternative_compare,
3257 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
3258 simplify_test_exp, optimize_attrs, simplify_by_exploding,
3259 find_and_mark_used_attributes, unmark_used_attributes,
3260 add_values_to_cover, simplify_with_current_value,
3261 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
3262 copy_rtx_unchanging, main): Use new access macros.
3264 2002-04-22 Tom Rix <trix@redhat.com>
3266 * expmed.c (init_expmed): Generate shifted constant once.
3268 2002-04-22 Zack Weinberg <zack@codesourcery.com>
3270 * c-lex.c (lex_charconst): Call convert to get constant in
3271 proper type; don't just smash the type field.
3274 * config.gcc: Add list of obsolete configurations. Disallow
3275 building these without --enable-obsolete.
3276 * doc/install.texi: Document --enable-obsolete and obsoletion
3277 policy. Mention obsoletion of individual targets in
3280 2002-04-22 Richard Henderson <rth@redhat.com>
3282 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
3284 2002-04-22 Mark Mitchell <mark@codesourcery.com>
3287 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
3288 (walk_fixup_memory_subreg): Likewise.
3289 (fixup_var_refs_insn): Adjust accordingly.
3290 (fixup_var_refs_1): Likewise.
3292 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
3294 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
3295 LIBPATH_ARCH64_SPEC): Define.
3296 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
3297 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
3298 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
3299 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
3301 2002-04-22 Joel Sherrill <joel@OARcorp.com>
3303 * gthr-rtems.h: Correct prototypes to remove warnings.
3305 2002-04-22 Richard Henderson <rth@redhat.com>
3308 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
3310 * gcse.c (free_insn_expr_list_list): New.
3311 (clear_modify_mem_tables): Use it. Fix bit set usage.
3312 (canon_list_insert): Use EXPR_LISTs for expressions.
3313 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
3315 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
3317 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
3318 file change and include code to _cpp_pop_buffer.
3319 * cpphash.h (struct pending_option): Predeclare.
3320 (struct cpp_reader): New member next_include_file.
3321 (_cpp_pop_file_buffer): Update.
3322 (_cpp_push_next_buffer): Update, rename.
3323 * cppinit.c (cpp_destroy): Free include chain and pending here.
3324 (cpp_finish_options): Simplify.
3325 (_cpp_push_next_buffer): Rename and clean up.
3326 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
3328 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
3330 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
3332 * config/rs6000/altivec.h (vec_xor): Add variant for both args
3333 being vector signed int.
3335 (vec_xor): Add variant for both args being vector signed char.
3336 Remove redundant variant.
3339 2002-04-21 David S. Miller <davem@redhat.com>
3341 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
3342 compare mode in output RTL.
3344 2002-04-22 David Edelsohn <edelsohn@gnu.org>
3346 * config/rs6000/rs6000.c (rs6000_override_options): Correct
3347 style and formatting of previous patch.
3349 2002-04-22 Alan Modra <amodra@bigpond.net.au>
3351 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
3352 flag_pic for ABI_AIX.
3354 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
3356 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
3357 * cppfiles.c (read_include_file): Similarly.
3358 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
3359 uxstrdup ustrchr, ufputs): Similarly.
3360 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
3361 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
3362 cpp_ideq, parse_identifier, parse_number): Similarly.
3363 * cpplib.c (struct directive, dequote_string, D, run_directive,
3364 cpp_push_buffer): Similarly.
3365 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
3366 _cpp_create_definition, check_trad_stringification,
3367 cpp_macro_definition): Similarly.
3369 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
3371 * cppmacro.c (funlike_invocation_p): Don't step back
3374 2002-04-21 David Edelsohn <edelsohn@gnu.org>
3376 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
3379 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
3381 * doc/invoke.texi: Remove Chill references.
3382 * doc/gcc.texi: Update last modified date.
3384 2002-04-20 Kazu Hirata <kazu@hxi.com>
3386 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
3387 push and pop. Replace add.l with add.w.
3389 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3391 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
3392 multiply instructions for H8/300H case.
3394 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3396 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
3397 Bum three instructions from each routine.
3399 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
3401 * Makefile.in: Update.
3402 * decl.c (push_c_function_context, pop_c_function_context,
3403 mark_c_function_context): Rename for consistency.
3404 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
3405 * c-tree.h (push_c_function_context, pop_c_function_context,
3406 mark_c_function_context): Rename for consistency.
3407 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3408 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3409 * function.c (init_lang_status, save_lang_status,
3410 restore_lang_status, mark_lang_status, free_lang_status):
3411 Move to langhooks.h.
3412 (push_function_context_to, pop_function_context_from,
3413 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
3415 * function.h (init_lang_status, save_lang_status,
3416 restore_lang_status, mark_lang_status, free_lang_status):
3417 Move to langhooks.h.
3418 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
3419 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
3420 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
3421 LANG_HOOKS_FUNCTION_INITIALIZER): New.
3422 (LANG_HOOKS_INITIALIZER): Update.
3423 (lhd_do_nothing_f): New.
3424 * langhooks.h (struct lang_hooks_for_functions): New.
3425 (struct lang_hooks): New hooks.
3426 * langhooks.c (lhd_do_nothing_f): New.
3428 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3429 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3431 2002-04-19 David S. Miller <davem@redhat.com>
3433 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
3434 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
3436 2002-04-19 Jakub Jelinek <jakub@redhat.com>
3438 PR optimization/3756
3439 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
3440 x = ((int) y < 0) ? cst1 : cst2.
3442 2002-04-19 Jakub Jelinek <jakub@redhat.com>
3445 * function.c: Reapply patch for c/6358.
3446 (expand_function_end): Copy decl_rtl's mode, not
3447 current_function_return_rtx mode.
3449 2002-04-19 Joel Sherrill <joel@OARcorp.com>
3451 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
3454 2002-04-19 Tom Tromey <tromey@redhat.com>
3456 * doc/install.texi (Specific): Update status of Solaris 2.8.
3459 2002-04-19 Andreas Schwab <schwab@suse.de>
3461 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
3462 (PUT_REAL): Restore old definition.
3464 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
3465 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3467 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
3468 binutils 2.11.2 and higher generate smaller binaries than Sun's
3471 2002-04-19 Mark Mitchell <mark@codesourcery.com>
3474 * toplev.c (rest_of_compilation): Do not defer functions for which
3475 TREE_SYMBOL_REFERENCED has already been set.
3477 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
3479 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
3482 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
3484 * builtins.c: Include langhooks.h.
3485 (lang_type_promotes_to): Remove.
3486 (expand_builtin_va_arg): Use new hook.
3487 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
3488 (simple_type_promotes_to): Move to c-typeck.c.
3489 * c-common.h (simple_type_promotes_to): Remove.
3490 * c-decl.c (duplicate_decls, grokdeclarator): Update.
3491 * c-format.c: Include langhooks.h.
3492 (check_format_types): Update.
3493 * c-tree.h (c_type_promotes_to): New.
3494 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
3495 (type_lists_compatible_p): Update.
3496 * langhooks-def.h (lhd_type_promotes_to): New.
3497 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
3498 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3499 * langhooks.c (lhd_type_promotes_to): New.
3500 * langhooks.h (struct lang_hooks_for_types): New hook.
3501 * tree.h (lang_type_promotes_to): Remove.
3503 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
3505 2002-04-18 Richard Henderson <rth@redhat.com>
3507 * function.c: Revert patch for c/6358.
3509 2002-04-18 Richard Henderson <rth@redhat.com>
3511 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
3512 blocks. Handle multiple references to the TRAP block. Handle
3513 non-adjacent THEN and OTHER blocks.
3515 2002-04-18 Richard Henderson <rth@redhat.com>
3517 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
3518 crash with no type for by-mode libcalls.
3520 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
3522 2002-04-18 Bob Wilson <bob.wilson@acm.org>
3524 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
3525 __xtensa_nonlocal_goto): Use a syscall instructions to flush
3526 the register windows.
3528 2002-04-18 Zack Weinberg <zack@codesourcery.com>
3530 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
3531 appropriate. Document need for extended precision even when
3532 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
3533 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
3534 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
3535 instead of relying on later syntax error when REAL_WIDTH > 5.
3536 * real.c: Define NE based only on whether or not we have a
3537 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
3538 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
3539 define GET_REAL and PUT_REAL as simple memcpy operations; no
3540 need to byteswap or round.
3541 Use #error instead of #ifdef-ing out the entire file, for
3542 prompt error detection.
3544 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
3546 2002-04-18 David S. Miller <davem@redhat.com>
3548 * config/sparc/sparc.h (BRANCH_COST): Define.
3550 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
3553 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
3555 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
3556 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
3557 propagate_block calls after relaxation loop using new variable
3558 stabilized_prop_flags.
3560 2002-04-18 Richard Henderson <rth@redhat.com>
3562 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
3563 (ia64_va_arg): Expect variable sized types by reference.
3564 * config/ia64/ia64-protos.h: Update.
3565 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
3566 ia64_function_arg_pass_by_reference.
3568 2002-04-18 Richard Henderson <rth@redhat.com>
3570 * ifcvt.c: Include except.h.
3571 (block_has_only_trap): Break out from find_cond_trap.
3572 (find_cond_trap): Use it. Always delete the trap block.
3573 (merge_if_block): Allow then block null. Be less simplistic about
3574 what insns can end a block.
3575 * Makefile.in (ifcvt.o): Depend on except.h.
3577 * config/ia64/ia64.md (trap, conditional_trap): New.
3579 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3582 * function.c (assign_parms): Assign hard current_function_return_rtx
3584 (expand_function_end): ...not here.
3586 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
3588 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3589 * c-tree.h (c_incomplete_type_error): New.
3590 * c-typeck.c (require_complete_type, build_component_ref): Update.
3591 (incomplete_type_error): Rename.
3592 * langhooks-def.h (lhd_incomplete_type_error): New.
3593 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
3594 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3595 * langhooks.c (lhd_incomplete_type_error): New.
3596 * langhooks.h (struct lang_hooks_for_types): New hook.
3597 * tree.c (size_in_bytes): Use new hook.
3598 * tree.h (incomplete_type_error): Remove.
3600 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3602 2002-04-18 Zack Weinberg <zack@codesourcery.com>
3604 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
3605 TARGET_FLOAT_FORMAT blocks.
3607 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3609 * doc/install.texi (Downloading the source): Do not mention Chill
3610 any longer, but mention Ada.
3611 (Configuration): Do not mention Chill any longer.
3613 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
3615 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
3617 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
3619 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
3622 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3624 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
3625 instead of unsigned_type.
3627 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
3629 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
3630 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
3633 2002-04-18 Bernd Schmidt <bernds@redhat.com>
3635 * attribs.c (vector_type_node_list): New static variable.
3636 (handle_vector_size_attribute): Use it to avoid generating a
3637 new type node each time we are called.
3639 * combine.c (subst): Avoid trying to make a vector mode subreg of
3640 an integer constant.
3641 (gen_lowpart_for_combine): Likewise.
3643 2002-04-18 Roger Sayle <roger@eyesopen.com>
3644 Jakub Jelinek <jakub@redhat.com>
3646 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
3647 for integer constant c (if x has unsigned type or sign bit is not
3648 set in c). This folds the zero/sign extension into the bit-wise and
3651 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3654 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
3657 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
3659 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
3661 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
3663 * gcc.c (read_specs): Detect and fail if an attempt is made to
3664 rename a spec string to an already existing string.
3666 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3668 * config/s390/s390.c (legitimize_pic_address): Do not generate
3669 illegal address constant without CONST.
3671 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3673 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
3674 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
3676 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3678 PR optimization/6305
3679 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
3680 to make sure previous reloads are taken into account. Generate
3681 better code if one operand is an in-range immediate constant.
3683 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
3685 * doc/install.texi (Building): libgcj requires GNU make.
3687 2002-04-17 Jakub Jelinek <jakub@redhat.com>
3690 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
3691 even if hard quad and register is not floating.
3692 (movtf reg<-mem split): Disallow splitting if hard quad and
3693 register is floating.
3694 (movtf mem<-reg split): Likewise.
3695 * config/sparc/sparc.c (fp_register_operand): New predicate.
3696 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
3698 2002-04-17 Zack Weinberg <zack@codesourcery.com>
3700 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
3701 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
3702 (unprotoize.o): Ditto. Build from protoize.c. Define
3703 UNPROTOIZE on command line.
3704 * protoize.c: Include cppdefault.h. Delete include_defaults.
3705 (in_system_include_dir): Use cpp_include_defaults (defined in
3707 * unprotoize.c: Delete file.
3709 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
3711 * config/rs6000/altivec.h (vec_ld): Add array variants.
3715 2002-04-17 Alan Matsuoka <alanm@redhat.com>
3716 Aldy Hernandez <aldyh@redhat.com>
3718 * config/rs6000/altivec.h: Define __ALTIVEC__.
3725 Add parentheses to all macro arguments.
3727 2002-04-16 Richard Henderson <rth@redhat.com>
3730 * except.c (remove_eh_handler): Insert inner regions at beginning
3731 of sibling chain. Refactor expressions.
3733 2002-04-16 Richard Henderson <rth@redhat.com>
3735 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
3736 * config/sparc/sol2-gas-bi.h: New file.
3737 * config.gcc (sparc*-solaris): Add it as needed.
3738 * configure.in (AS_SPARC64_FLAG): Remove check.
3739 * config.in, configure: Regenerate.
3741 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
3743 2002-04-16 Richard Henderson <rth@redhat.com>
3745 * config/mips/mips.c (override_options): Don't override N32 for
3749 * config/mips/mips.md (can_delay): Split out of existing define_delays.
3750 (HILO_delay): Set can_delay false.
3752 2002-04-16 Dale Johannesen <dalej@apple.com>
3754 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
3755 instruction addresses.
3756 (rs6000_output_function_epilogue): Likewise.
3758 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
3760 * c-parse.in (poplevel, compstmt_start,
3761 compstmt_primary_start): Add ending ';', in accordance
3764 2002-04-16 Richard Henderson <rth@redhat.com>
3766 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
3767 Adjust tm_file order to get TARGET_DEFAULT set properly.
3768 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
3769 * doc/install.texi (sparc-solaris): Update.
3771 2002-04-16 Dale Johannesen <dalej@apple.com>
3773 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
3774 comparison operands do not match each other or if modes of
3775 conditions do not match result.
3777 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
3780 * config/s390/s390.md (mulsidi3): Set both subregs of the
3783 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
3785 * config/rs6000/altivec.h (vec_addc): Type check.
3787 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3790 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
3792 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
3794 2002-04-15 Richard Henderson <rth@redhat.com>
3796 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
3797 call_really_used_regs too.
3799 2002-04-15 Richard Henderson <rth@redhat.com>
3801 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
3803 2002-04-15 David S. Miller <davem@redhat.com>
3805 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
3808 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3811 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
3812 CONST_VECTOR is { 0, ... 0 }.
3814 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
3816 * doc/install.texi (Installing GCC: Configuration): Clarify
3817 the only supported ways to configure gcc.
3819 2002-04-15 Roland McGrath <roland@frob.com>
3821 * config.gcc (alpha*-*-gnu*): New target configuration.
3822 * config/alpha/gnu.h: New file for it.
3823 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
3825 2002-04-16 Mark Mitchell <mark@codesourcery.com>
3827 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
3828 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
3829 * tree.h (expand_start_stmt_expr): Update prototype.
3830 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
3831 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
3832 on the STMT_EXPR created for the inline function.
3834 2002-04-15 Richard Henderson <rth@redhat.com>
3836 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
3837 config/i386/linux-aout.h, config/i386/linux-oldld.h,
3838 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
3839 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
3840 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
3841 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
3842 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
3843 Define __gnu_linux__, not gnu_linux.
3844 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
3846 2002-04-15 Mark Mitchell <mark@codesourcery.com>
3848 Remove Chill front end.
3849 * gcc.c (default_compilers): Remove Chill entries.
3850 * ch: Remove directory.
3851 * doc/frontends.texi: Remove information about Chill.
3852 * doc/sourcebuild.texi: Likewise.
3853 * doc/standards.texi: Likewise.
3855 2002-04-15 Douglas B Rupp <rupp@gnat.com>
3857 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
3858 (LONGLONG_STANDALONE): Define.
3860 2002-04-15 David S. Miller <davem@redhat.com>
3862 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
3863 Call emit_library_call with LCT_NORMAL.
3864 (sparc_initialize_trampoline): Use LCT_foo instead of
3865 magic constant in emit_library_call invocations.
3866 (sparc64_initialize_trampoline): Likewise.
3867 (sparc_profile_hook): Likewise.
3868 * config/sparc/sparc.md: Likewise.
3870 * config/sparc/sparc.c (sparc_extra_constraint_check):
3871 Fix type of argument 'c'.
3872 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
3875 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3877 * diagnostic.h (output_buffer_state): Redefine.
3878 (output_format_decoder): New macro.
3879 (output_prefixing_rule): Likewise.
3880 (output_line_cutoff): Likewise.
3881 (diagnostic_format_decoder): Adjust.
3882 (diagnostic_prefixing_rule): Likewise.
3883 (diagnostic_line_cutoff): Likewise.
3884 (diagnostic_state): Likewise.
3885 (diagnostic_kind_count): Likewise.
3886 (diagnostic_buffer): Now a macro.
3888 * diagnostic.c (diagnostic_buffer): Remove definition.
3889 (output_is_line_wrapping): Adjust.
3890 (set_real_maximum_length): Likewise.
3891 (output_set_maximum_length): Likewise.
3892 (init_output_buffer): Likewise.
3893 (lhd_print_error_function): Likewise.
3894 (output_do_verbatim): Likewise.
3896 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
3898 * cpperror.c (print_location): Don't print include chain
3900 (cpp_begin_message): Update to use DL_ macros.
3901 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
3902 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3903 cpp_notice, cpp_notice_from_errno): Remove.
3904 (cpp_error, cpp_error_with_line): Update to take a diagnostic
3907 * cppexp.c (CPP_ICE): Remove.
3908 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
3909 lex, integer_overflow, _cpp_parse_expr): Update.
3910 * cppfiles.c (read_include_file, find_include_file,
3911 handle_missing_header, _cpp_read_file, remap_filename): Update.
3912 * cpphash.h (enum error_type): Remove.
3913 (_cpp_begin_message): Update.
3914 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
3915 cpp_handle_option, cpp_post_options): Update.
3916 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
3917 skip_whitespace, parse_identifier, parse_slow, parse_string,
3918 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
3919 cpp_interpret_charconst): Update.
3920 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
3921 lex_macro_node, do_undef, glue_header_name, parse_include,
3922 do_include_common, read_flag, do_line, do_linemarker, do_ident,
3923 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
3924 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
3925 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
3926 _cpp_pop_buffer, do_diagnostic): Update.
3927 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
3928 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
3929 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
3930 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3931 cpp_notice, cpp_notice_from_errno): Remove.
3932 (cpp_error, cpp_error_with_line): Update to take a diagnostic
3935 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
3936 collect_args, enter_macro_context, save_parameter, parse_params,
3937 _cpp_create_definition, check_trad_stringification,
3938 cpp_macro_definition): Update.
3939 * cppmain.c (cpp_preprocess_file): Update.
3940 * fix-header.c (read_scan_file): Update.
3942 2002-04-14 Andreas Schwab <schwab@suse.de>
3944 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
3946 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
3948 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
3950 2002-04-13 Mark Mitchell <mark@codesourcery.com>
3952 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
3955 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
3957 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
3959 2002-04-13 Joel Sherrill <joel@OARcorp.com>
3961 * config/sparc/t-elf: Enable v8 multilibs. Impacts
3962 sparc-elf and sparc-rtems targets.
3964 2002-04-13 Mark Mitchell <mark@codesourcery.com>
3966 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
3967 defined, and __gnu_hurd__ wherever __GNU__ is defined.
3968 * arm/linux-elf.h: Likewise.
3969 * cris/aout.h: Likewise.
3970 * cris/linux.h: Likewise.
3971 * i370/linux.h: Likewise.
3972 * i386/gnu.h: Likewise.
3973 * i386/linux-aout.h: Likewise.
3974 * i386/linux-oldld.h: Likewise.
3975 * i386/linux.h: Likewise.
3976 * i386/linux64.h: Likewise.
3977 * ia64/linux.h: Likewise.
3978 * m68k/linux-aout.h: Likewise.
3979 * m68k/linux.h: Likewise.
3980 * mips/linux.h: Likewise.
3981 * pa/pa-linux.h: Likewise.
3982 * pj/linux.h: Likewise.
3983 * rs6000/sysv4.h: Likewise.
3984 * s390/linux.h: Likewise.
3985 * sh/linux.h: Likewise.
3986 * sparc/linux-aout.h: Likewise.
3987 * sparc/linux.h: Likewise.
3988 * sparc/linux64.h: Likewise.
3989 * xtensa/linux.h: Likewise.
3991 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
3993 * stmt.c (check_unique_operand_names): Expect operand names to
3994 be strings rather than identifiers. Use simple_cst_equal to
3996 (resolve_operand_name_1): Make same identifier to string change here.
3997 * c-parse.in (asm_operand): Convert a named operand into a string.
3998 * cp/parse.y (asm_operand): Likewise.
4000 2002-04-13 Andreas Schwab <schwab@suse.de>
4002 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
4004 2002-04-12 Mark Mitchell <mark@codesourcery.com>
4006 Revert these changes:
4008 2002-04-06 Mark Mitchell <mark@codesourcery.com>
4011 * stor-layout.c (layout_decl): Reset the RTL for the decl.
4013 2002-04-12 Richard Henderson <rth@redhat.com>
4015 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
4016 (sparc*-*-solaris): Clean up header files.
4017 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
4018 and plan on generating 64-bit code.
4019 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
4020 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
4021 * config/sparc/sol2-sld-64.h: Rename ...
4022 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
4023 for AS_SPARC64_FLAG not defined.
4024 * config/sparc/sol2-gld-bi.h: New.
4025 * config/sparc/sol2-sld.h: Remove.
4026 * config/sparc/sol26-sld.h: New.
4027 * config/sparc/sol2.h: Tidy comments.
4028 * doc/install.texi: Document sparc-solaris configury changes.
4030 2002-04-12 Richard Henderson <rth@redhat.com>
4032 * recog.c (offsettable_address_p): Match the logic in adjust_address.
4034 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
4035 in 64-bit mode only. Use only for 32-bit or MEDLOW.
4037 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4039 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
4041 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
4043 * pa.c (pa_can_combine_p): Call extract_insn before calling
4046 2002-04-12 Douglas B Rupp <rupp@gnat.com>
4048 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
4049 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
4050 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
4051 (CPP_PREDEFINES): Handle __declspec.
4052 * config/i386/t-interix (USER_H): Remove.
4054 2002-04-12 DJ Delorie <dj@redhat.com>
4056 * integrate.c (compare_blocks): Make comparisons safe for when
4057 sizeof(int) < sizeof(char *).
4058 (find_block): Likewise.
4060 2002-04-12 Jan Hubicka <jh@suse.cz>
4061 David Edelsohn <edelsohn@gnu.org>
4063 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
4065 (symbol_ref_operand): New.
4066 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
4067 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
4069 2002-04-12 Andreas Schwab <schwab@suse.de>
4071 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
4072 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
4073 overrides the definition in config/svr4.h.
4075 2002-04-12 Eric Norum <eric.norum@usask.ca>
4077 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
4078 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
4079 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
4080 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
4081 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
4082 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
4083 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
4084 definitions to config/rtems.h and make the targets more similar.
4086 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4088 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
4089 POINTERS_EXTEND_UNSIGNED.
4090 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
4091 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
4093 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
4096 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
4098 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
4099 depends on TARGET_SHMEDIA, not TARGET_SH5.
4101 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
4103 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
4104 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
4106 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
4108 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
4111 2002-04-12 Andreas Schwab <schwab@suse.de>
4113 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
4115 2002-04-12 Richard Henderson <rth@redhat.com>
4118 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
4120 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
4121 modes spanning multiple hard regs.
4123 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
4125 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
4127 * pa.c (pa_output_function_prologue): Don't accumulate the total
4128 number of code bytes when using TARGET_64BIT, or gas, SOM and not
4129 the portable runtime.
4130 (output_deferred_plabels): Handle 64bit plabels.
4131 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
4132 generating pic code using the GAS assembler for object formats that
4133 are not SOM (ie., ELF32 and ELF64).
4134 (output_millicode_call): Check attribute type if attribute length is 28.
4135 Likewise use $PIC_pcrel$0. Only call get_attr_length and
4136 dbr_sequence_length once.
4137 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
4138 dbr_sequence_length once.
4139 * pa.h (TARGET_SOM): Define if not defined.
4140 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
4141 with GAS and not SOM.
4142 (jump, call_internal_reg, call_value_internal_reg): Likewise.
4143 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
4145 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4147 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
4148 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
4149 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
4150 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
4151 elfos.h and dbxelf.h values are fine now.
4152 * config/i386/freebsd.h, config/alpha/freebsd.h
4153 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
4155 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4157 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
4158 or set Acpu or Amachine. Reformat.
4159 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4161 (LINK_SPEC): Do not need to undef.
4162 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
4163 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
4164 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4166 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
4167 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
4168 (LINK_SPEC): Do not need to undef.
4169 (DONT_USE_BUILTIN_SETJMP): Do not define.
4170 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
4171 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
4172 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
4173 Remove trailing spaces.
4174 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
4175 __ELF__, or set Acpu or Amachine. Reformat.
4176 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4179 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4181 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
4182 all other *-*-freebsd* targets.
4184 2002-04-11 Richard Henderson <rth@redhat.com>
4186 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
4188 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4190 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
4191 Include {cpu}/{cpu}.h thru tm_file.
4192 (alpha*-*-linux*ecoff): Remove target.
4193 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
4194 (LINK_SPEC): Remove, is not OS independent.
4195 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
4196 (LINK_SPEC): Do not need to #undef any longer.
4197 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
4199 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
4201 (LINK_SPEC): Moved here from alpha/elf.h.
4202 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
4204 * config/alpha/linux-ecoff.h: Remove.
4205 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
4206 (CPP_SPEC): Define _POSIX_SOURCE as needed.
4207 (CPP_SUBTARGET_SPEC): Do not define.
4208 (LINK_SPEC): Do not need to #undef any longer.
4209 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
4210 * config/alpha/vms.h: Likewise.
4212 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4214 * doc/extend.texi: Remove old claim that typedefs cannot have
4215 an alignment attribute.
4217 2002-04-11 Jakub Jelinek <jakub@redhat.com>
4219 PR optimization/6177
4220 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
4221 bitpos is 0 and bitsize CONCAT size.
4223 2002-04-11 Jakub Jelinek <jakub@redhat.com>
4226 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
4228 2002-04-10 David O'Brien <obrien@FreeBSD.org>
4230 * config/alpha/freebsd.h: Minor reformatting.
4231 (CPP_SPEC): Define ELF and add cpp_subtarget.
4232 (ASM_SPEC): No longer needed.
4234 2002-04-11 Richard Henderson <rth@redhat.com>
4236 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
4237 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
4238 (dimode mem/zero splitter): New.
4240 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
4242 * config/cris/cris.c (cris_override_options): Tweak error message
4243 for PIC not implemented.
4245 * config/cris/cris.h: Tweak comments related to parameter-passing.
4247 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
4249 2002-04-10 Richard Henderson <rth@redhat.com>
4251 * except.c (add_ehl_entry): Allow duplicates after landing pad
4254 2002-04-10 David Edelsohn <edelsohn@gnu.org>
4256 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
4258 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
4260 * c-decl.c (c_init_decl_processing): Move generation of
4261 decls for g77_integer_type_node and friends from here ...
4262 * c-common.c (c_common_nodes_and_builtins): ... to here.
4264 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
4266 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
4267 is only used as frame pointer when frame_pointer_needed is true.
4269 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
4272 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
4273 for the fact that the pool entry uses two words.
4274 (movdf_hard_insn): Similarly. Also, ADR instruction can span
4276 (movdf_soft_insn): Similarly.
4277 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
4278 for the fact that the pool entry uses three words.
4280 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
4282 * config/mips/mips.c (mips_va_arg): When using the struct version
4283 of the EABI va_list, allow arguments in the register save area to
4284 take up less room than a stack argument.
4286 2002-04-10 Richard Henderson <rth@redhat.com>
4288 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
4289 if EXPAND_INITIALIZER.
4291 2002-04-09 Richard Henderson <rth@redhat.com>
4293 * config/alpha/alpha.md (movdi_er_maybe_g): New.
4294 * config/alpha/alpha.c (alpha_expand_mov): Use it.
4296 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4298 PR optimization/6233
4299 * rtlanal.c (pure_call_p): New function.
4300 * rtl.h (pure_call_p): Declare.
4301 * loop.c (prescan_loop): Use it to set has_nonconst_call.
4302 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
4304 2002-04-09 Eric Christopher <echristo@redhat.com>
4306 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
4307 information to .comm directive.
4309 2002-04-09 Richard Henderson <rth@redhat.com>
4312 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
4314 2002-04-09 Richard Henderson <rth@redhat.com>
4316 * basic-block.h (flow_delete_block_noexpunge): Declare.
4317 (expunge_block_nocompact): Declare.
4318 * cfg.c (expunge_block_nocompact): Split out from ...
4319 (expunge_block): ... here.
4320 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
4321 (flow_delete_block_noexpunge): Split out from ...
4322 (flow_delete_block): ... here.
4323 * cfgcleanup.c (delete_unreachable_blocks): Compact while
4324 removing dead blocks.
4325 * except.c (exception_handler_labels): Remove.
4326 (exception_handler_label_map): New.
4327 (struct eh_region): Add aka member.
4328 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
4329 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
4330 (for_each_eh_label, for_each_eh_label_1): New.
4331 (init_eh): Register exception_handler_label_map.
4332 (free_eh_status): Use free_region.
4333 (find_exception_handler_labels): Use the map, not the list.
4334 (remove_exception_handler_label): Likewise.
4335 (maybe_remove_eh_handler): Likewise.
4336 (remove_eh_handler): Use the region aka bitmap.
4337 * except.h (exception_handler_labels): Remove.
4338 (for_each_eh_label): Declare.
4339 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
4340 * loop.c (invalidate_loops_containing_label): New.
4341 (find_and_verify_loops): Use it. Use for_each_eh_label.
4342 * sched-rgn.c (is_cfg_nonregular): Use
4343 current_function_has_exception_handlers.
4345 2002-04-09 Richard Henderson <rth@redhat.com>
4347 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
4348 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
4349 Do not return changed status.
4350 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
4351 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
4352 New functions that do return changed status.
4353 * sbitmap.h: Update decls.
4354 * gcse.c, lcm.c: Use _cg functions as needed.
4356 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
4358 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
4359 (sh64-*-elf*, sh-*-rtemself*): Likewise.
4360 * config/sh/embed_bb.c: New file.
4361 * config/sh/embed-elf.h: New file.
4362 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
4363 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
4364 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4366 (SUBTARGET_CPP_PTR_SPEC): Don't define.
4367 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
4368 Add subtarget_asm_endian_spec.
4369 (ASM_SPEC): Use subtarget_asm_endian_spec.
4370 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
4371 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
4372 (WCHAR_UNSIGNED): Define.
4373 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
4374 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4375 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
4377 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
4378 (sh_adjust_cost): Likewise.
4379 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4381 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
4382 (WCHAR_TYPE_SIZE): Likewise.
4383 (ASM_SPEC): Use subtarget_asm_endian_spec.
4384 (SH_ELF_WCHAR_TYPE): #undef/ #define.
4385 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
4386 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
4387 (MAX_WCHAR_TYPE_SIZE): Don't #define .
4388 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
4389 (USER_LABEL_PREFIX): Don't #undef /#define .
4390 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4391 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
4392 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
4393 (ASM_SPEC): Likewise.
4394 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
4395 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
4396 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
4397 (LIB2FUNCS_EXTRA): Define.
4398 * t-sh64 (LIB2FUNCS_EXTRA): Define.
4399 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
4400 (LIB1ASMFUNCS_CACHE): Define.
4401 (LIB2FUNCS_EXTRA): Redefine empty.
4403 2002-04-08 Richard Henderson <rth@redhat.com>
4405 * reorg.c (get_branch_condition): Use reversed_comparison_code.
4407 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4409 * config/m68hc11/larith.asm (__map_data_section): Fix condition
4410 and optimize for size.
4411 (__do_global_ctors): Fix pointer comparison.
4412 (__do_global_dtors): Likewise.
4414 2002-04-09 David S. Miller <davem@redhat.com>
4416 * config/sparc/sparc.c (sparc_extra_constraint_check): New
4417 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
4418 allow reloading pseudos.
4419 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
4420 * config/sparc/sparc-protos.h: Declare it.
4422 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
4423 unsigned comparison warning.
4424 (output_restore_regs): Mark leaf_function as unused.
4426 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4428 * expr.c (is_aligning_offset): New function.
4429 (expand_expr, case COMPONENT_EXPR): Call it.
4431 2002-04-08 David S. Miller <davem@redhat.com>
4434 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
4436 Make init_priority work on Sparc when using GNU ld.
4437 * config/sparc/linux.h, config/sparc/linux64.h,
4438 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
4439 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
4440 * config/sparc/sol2-gld.h: New file to do the same.
4441 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
4442 sparc/sol2-gld.h to tm_file.
4444 PR optimization/4328
4445 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
4446 * doc/md.texi: Document it.
4447 * config/sparc/sparc.md (movdi_insn_sp64_novis,
4448 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
4449 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
4450 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
4451 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
4453 2002-04-08 Andreas Jaeger <aj@suse.de>
4455 * stmt.c (expand_asm_operands): Revert last patch from Richard
4458 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4460 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
4461 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
4463 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4465 * doc/contrib.texi (Contributors): Add David O'Brien.
4467 2002-04-08 Alan Modra <amodra@bigpond.net.au>
4469 * configure.in (auto-build.h): Use target_alias and build_alias
4470 when running configure.
4471 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
4472 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
4473 * configure: Regenerate.
4475 2002-04-07 David S. Miller <davem@redhat.com>
4477 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
4479 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
4482 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
4483 generating 32-bit pic code.
4485 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
4487 * cppinit.c (cpp_create_reader): Initialize
4488 discard_comments_in_macro_exp.
4489 (COMMAND_LINE_OPTIONS): Add "-CC" option.
4490 (cpp_handle_option): Handle "-CC" option.
4491 * cpplex.c (save_comment): If saving a C++ comment in
4492 a directive, convert it to a C comment.
4493 (_cpp_lex_direct): Pass second comment start character to
4494 save_comment to indicate comment type.
4495 * cpplib.c (_cpp_handle_directive): If processing
4496 a "#define" directive and discard_comments_in_macro_exp
4497 is false, re-enable saving of comments.
4498 (lex_macro_node): If discard_comments_in_macro_exp is false,
4499 discard any comments before the macro identifier.
4500 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
4502 * cppmacro.c (cpp_get_token): If expanding a macro while
4503 processing a directive, discard any comments we might encounter.
4504 (parse_params): If discard_comments_in_macro_exp is false,
4505 ignore comments in the macro parameter list.
4506 * gcc.c (cpp_unique_options): Add "-CC" option.
4507 (option_map): Map "--comments-in-macros" to "-CC".
4508 * doc/cppopts.texi: Document "-CC" option.
4509 * f/lang-specs.h: Add "-CC" option.
4510 * testsuite/gcc.dg/cpp/maccom1.c: New test.
4511 * testsuite/gcc.dg/cpp/maccom2.c: New test.
4512 * testsuite/gcc.dg/cpp/maccom3.c: New test.
4513 * testsuite/gcc.dg/cpp/maccom4.c: New test.
4514 * testsuite/gcc.dg/cpp/maccom5.c: New test.
4515 * testsuite/gcc.dg/cpp/maccom6.c: New test.
4517 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4520 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
4522 2002-04-06 Mark Mitchell <mark@codesourcery.com>
4525 * stor-layout.c (layout_decl): Reset the RTL for the decl.
4528 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
4529 RTX_UNCHANGING_P for the functions arguments when a tail call
4532 2002-04-06 Jason Merrill <jason@redhat.com>
4534 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
4535 (parse_options_and_default_flags): Set them appropriately.
4536 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
4538 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
4540 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
4543 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
4546 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
4547 types come in by-reference. Fix typo in comment.
4549 2002-04-05 David S. Miller <davem@redhat.com>
4551 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
4552 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
4553 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
4554 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
4556 2002-04-05 David S. Miller <davem@redhat.com>
4558 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
4559 are not going to emit return instructions, emit at least a nop
4560 for the sake of sane backtraces.
4562 2002-04-05 Richard Henderson <rth@redhat.com>
4564 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
4566 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
4568 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
4570 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
4572 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
4573 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
4574 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
4576 2002-04-05 Andreas Schwab <schwab@suse.de>
4578 * c-convert.c: Include c-common.h.
4579 * Makefile.in (c-convert.o): Updated.
4581 2002-04-05 Jakub Jelinek <jakub@redhat.com>
4583 * mklibgcc.in: Use separate libgcc.map for each multilib.
4584 * Makefile.in (distclean): Don't remove libgcc.map here.
4586 2002-04-05 Jakub Jelinek <jakub@redhat.com>
4588 * Makefile.in (s-mlib): Handle --disable-multilib by separate
4589 genmultilib invocation.
4591 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
4593 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
4594 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
4595 to num_gprs for symmetry.
4596 * config/mips/mips.c: Adjust accordingly.
4598 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
4600 * c-common.c (truthvalue_conversion): Rename, update.
4601 * c-common.h (c_common_truthvalue_conversion): New.
4602 * c-convert.c (convert): Update.
4603 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4604 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
4605 * c-typeck.c (build_binary_op, build_unary_op,
4606 build_conditional_expr): Update.
4607 * fold-const.c (constant_boolean_node, fold): Use langhook.
4608 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
4609 * langhooks.h (struct lang_hooks): New hook.
4610 * stmt.c (expand_decl_cleanup): Use langhook.
4611 * tree.h (truthvalue_conversion): Remove.
4613 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4615 2002-04-05 Alan Modra <amodra@bigpond.net.au>
4617 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
4618 Add rules to make null object file.
4620 2002-04-04 Jim Blandy <jimb@redhat.com>
4622 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
4623 macro formal parameter names.
4625 2002-04-04 David S. Miller <davem@redhat.com>
4627 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
4629 2002-04-04 Richard Henderson <rth@redhat.com>
4632 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
4633 Support copies into and out of memory. Don't accept allows_reg
4634 and allows_mem as gospel.
4636 2002-04-04 Richard Henderson <rth@redhat.com>
4639 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
4640 (write_dependence_p): Likewise.
4642 2002-04-04 Richard Henderson <rth@redhat.com>
4644 * predict.c (estimate_bb_frequencies): Do frequency calculation
4645 with a volatile temporary.
4647 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
4649 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
4651 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4654 * final.c (final_start_function): Don't bump profile_label_no here...
4655 (final_end_function): ...but here.
4657 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4659 * config/sparc/sparc.md (pic): New attribute.
4660 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
4662 (split after do_builtin_setjmp_setup): New.
4664 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4667 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
4670 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4672 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
4673 UNITS_PER_WORD for zero sized aggregates.
4675 2002-04-03 David S. Miller <davem@redhat.com>
4677 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
4678 one-character spec for this, just use %(link_gcc_c_sequence).
4680 2002-04-03 David S. Miller <davem@redhat.com>
4682 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
4685 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
4687 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
4688 (DWARF_FRAME_RETURN_COLUMN): Move.
4689 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4690 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
4691 * pa.c (except.h, predict.h): Include.
4693 (store_reg_modify, set_reg_plus_d): Revise prototypes.
4694 (output_ascii): Add cast.
4695 (store_reg_modify): Revise to add frame notes.
4696 (set_reg_plus_d): Likewise.
4697 (compute_frame_size): Include space for eh data registers in frame if
4698 the current function calls eh_return.
4699 (hppa_expand_prologue): Ensure register %r2 is saved if the current
4700 function calls eh_return. Save eh data registers if the current
4701 function calls eh_return. Fix code to add frame notes. Emit
4702 blockage to prevent insns with frame notes being scheduled in the
4703 delay slot of calls.
4704 (hppa_expand_epilogue): Restore eh data registers and do final stack
4705 adjustment if the current function calls eh_return. Don't add frame
4707 (output_call): Revise for change in length of call insn. Don't do
4708 return pointer adjustment for an unconditional jump in the delay slot
4709 of a call when using frame notes.
4710 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
4711 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
4712 (ARG_POINTER_CFA_OFFSET): Define.
4713 * pa.md (return_external_pic): New pattern.
4714 (prologue): Correct formatting. Use return_external_pic if current
4715 function calls eh_return.
4716 (call_internal_symref, call_value_internal_symref,
4717 sibcall_internal_symref, sibcall_value_internal_symref): Change default
4718 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
4720 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
4722 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
4723 list of targets to check using "nop" insn.
4724 * configure: Rebuilt.
4726 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4728 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
4730 2002-04-03 David S. Miller <davem@redhat.com>
4732 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
4733 library sequence passed to the linker.
4734 (LINK_COMMAND_SPEC): Use it.
4735 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
4736 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
4737 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4739 2002-04-03 Jason Merrill <jason@redhat.com>
4741 * except.c (struct eh_status): Remove protect_list.
4742 (begin_protect_partials, end_protect_partials): Remove.
4743 (add_partial_entry): Remove.
4744 * except.h: Remove prototypes.
4746 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
4747 expand_decl_cleanup_eh.
4750 * tree.h (CLEANUP_EH_ONLY): New macro.
4751 * stmt.c (expand_decl_cleanup_eh): New fn.
4752 (expand_cleanups): Check CLEANUP_EH_ONLY.
4753 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
4754 Use expand_decl_cleanup_eh.
4755 (expand_stmt): Adjust.
4756 * c-common.h: Adjust prototype.
4758 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
4760 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
4761 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
4762 (cris_target_asm_function_epilogue): Ditto.
4763 (cris_initial_frame_pointer_offset): Ditto.
4764 (cris_simple_epilogue): Ditto.
4765 (cris_expand_builtin_va_arg): Variable-size types come in
4768 2002-04-03 David S. Miller <davem@redhat.com>
4770 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
4772 (set_fast_math): Correct 'fsr' type.
4774 2002-04-03 Richard Henderson <rth@redhat.com>
4777 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
4778 * toplev.c (check_global_declarations): Use it.
4779 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
4780 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4781 (LANG_HOOKS_DECLS): Add it.
4782 * langhooks.c (lhd_warn_unused_global_decl): New.
4783 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4784 * c-objc-common.c (c_warn_unused_global_decl): New.
4785 * c-tree.h (c_warn_unused_global_decl): Declare.
4786 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4788 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
4790 * langhooks-def.h (lhd_set_decl_assembler_name,
4791 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
4792 (LANG_HOOKS_INITIALIZER): Update.
4793 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
4794 * langhooks.h (struct lang_hooks): New hook.
4795 * tree.c (set_decl_assembler_name): Move to langhooks.c.
4796 (lang_set_decl_assembler_name): Remove.
4797 (init_obstacks): Don't set hook.
4798 (decl_assembler_name): New function.
4799 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
4800 (decl_assembler_name): New.
4801 (lang_set_decl_assembler_name): Remove.
4803 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4805 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
4806 works properly with .hidden symbols.
4807 * configure: Rebuilt.
4808 * config.in: Rebuilt.
4809 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
4810 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
4811 properly with .hidden symbols.
4813 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4816 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
4819 2002-04-03 Richard Henderson <rth@redhat.com>
4822 * sched-rgn.c (sets_likely_spilled): New.
4823 (sets_likely_spilled_1): New.
4824 (add_branch_dependences): Use it.
4826 2002-04-02 Richard Henderson <rth@redhat.com>
4829 * loop.h (LOOP_FIRST_PASS): New.
4830 * loop.c (strength_reduce): Mind it when deciding to unroll.
4831 * toplev.c (rest_of_compilation): Set it.
4833 2002-04-02 David S. Miller <davem@redhat.com>
4835 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
4836 mems_ok_for_ldd_peep when the order of the loads being examined
4838 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
4839 existing comment to increase comprehension of this situation.
4841 2002-04-02 Zack Weinberg <zack@codesourcery.com>
4843 * config/sh/sh.md: Don't use union real_extract.
4845 2002-04-02 Richard Henderson <rth@redhat.com>
4847 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
4849 2002-04-02 David O'Brien <obrien@FreeBSD.org>
4851 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
4852 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
4853 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
4854 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
4855 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
4856 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
4857 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
4858 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
4859 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
4860 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
4861 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
4862 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
4863 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
4864 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
4865 Include as many configury headers via tm_file as possible. This
4866 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
4867 * config/openbsd-oldgas.h: New file.
4868 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
4869 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
4870 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
4871 config/i386/i386-coff.h, config/i386/i386-interix.h,
4872 config/i386/iscdbx.h, config/i386/linux-aout.h,
4873 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
4874 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
4875 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
4876 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
4877 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
4878 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
4879 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
4880 config/i386/vxi386.h: Do not directly include configury headers.
4881 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
4882 Directly include configury headers that are no longer automatically
4883 included by the above headers.
4884 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
4885 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
4886 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
4887 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
4888 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
4889 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
4890 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
4891 (TARGET_VERSION): Define.
4892 * config/i386/beos-elf.h, config/i386/freebsd.h,
4893 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
4894 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
4895 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
4896 config/i386/sco5.h, config/i386/sysv4.h
4897 (TARGET_VERSION): Do not need to protect.
4898 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
4899 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
4900 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
4901 config/i386/i386-interix.h, config/i386/linux-aout.h,
4902 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
4903 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
4904 (YES_UNDERSCORES): Do not define - not needed.
4905 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
4906 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
4907 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
4908 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
4909 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
4910 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
4911 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
4912 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
4914 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
4915 Richard Henderson <rth@redhat.com>
4918 * function.c (assign_temp): Accept either type or decl argument.
4919 Detect variables whose size is too large to fit into an integer.
4920 * stmt.c (expand_decl): Pass the decl, not the type.
4922 2002-04-02 David O'Brien <obrien@FreeBSD.org>
4924 * protoize.c: Match include directory usage with cppdefault.c.
4926 2002-04-03 Jeffrey A Law (law@redhat.com)
4927 Hans-Peter Nilsson <hp@bitrange.com>
4929 * combine.c (simplify_comparison): Avoid narrowing a comparison
4930 with a paradoxical subreg when doing so would drop signficant bits.
4932 2002-04-02 Steve Ellcey <sje@cup.hp.com>
4934 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
4935 if POINTERS_EXTEND_UNSIGNED is defined.
4937 2002-04-02 Richard Henderson <rth@redhat.com>
4940 * local-alloc.c (contains_replace_regs): LO_SUM may contain
4943 2002-04-02 Richard Henderson <rth@redhat.com>
4945 * doc/standards.texi: Document required freestanding libc entry points.
4947 2002-04-02 Alan Modra <amodra@bigpond.net.au>
4949 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
4950 associated splitter. Remove MQ constraint.
4951 (ctrdi_internal4): Correct CCmode clobber.
4953 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4955 * milli64.S ($$dyncall): New function.
4956 * t-linux (LIB1ASMFUNCS): Revise module list.
4957 (LIB1ASMSRC): Use pa/milli64.S.
4959 2002-04-02 Richard Henderson <rth@redhat.com>
4961 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
4962 rename solaris_sys_varargs_h.
4964 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4966 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
4967 the same mode as its component.
4969 2002-04-02 Richard Henderson <rth@redhat.com>
4972 * final.c (this_is_asm_operands): Export.
4973 * output.h (this_is_asm_operands): Declare.
4974 * config/i386/i386.c (print_operand): Error odd asm operands.
4976 2002-04-02 Richard Henderson <rth@redhat.com>
4979 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
4981 2002-04-01 Richard Henderson <rth@redhat.com>
4984 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
4985 * fixinc/fixincl.x: Rebuild.
4987 2002-04-01 Richard Henderson <rth@redhat.com>
4989 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
4990 (atomic_alloc, atomic_free): New.
4991 (SIZE, MASK_FOR, PTR_IN): New.
4992 (emergency_reg_state, emergency_reg_state_free): New.
4993 (emergency_labeled_state, emergency_labeled_state_free): New.
4994 (reg_state_alloced, labeled_state_alloced): New.
4995 (alloc_reg_state, free_reg_state): New.
4996 (alloc_label_state, free_label_state, free_label_states): New.
4997 (push, pop, dup_state_stack, free_state_stack): Use them.
4998 (desc_label_state): Likewise.
4999 (uw_frame_state_for): Free label states and state stack.
5000 (uw_update_reg_address): Eliminate warnings.
5002 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
5004 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
5005 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
5007 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5009 * c-decl.c (grokdeclarator): Update.
5010 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5011 * c-tree.h (c_mark_addressable): New.
5012 * c-typeck.c (default_function_array_conversion, build_unary_op,
5013 build_array_ref, convert_for_assignment): Update.
5014 (mark_addressable): Rename.
5015 * calls.c (try_to_integrate, expand_call): Use langhook.
5016 * expr.c (expand_expr): Use langhook.
5017 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
5018 * langhooks.h (struct lang_hooks): New hook.
5019 * stmt.c (expand_asm_operands): Use langhook.
5020 * tree.h (mark_addressable): Remove.
5022 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5024 2002-04-01 Bob Wilson <bob.wilson@acm.org>
5026 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
5029 2002-04-01 Bob Wilson <bob.wilson@acm.org>
5031 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
5032 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
5034 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5036 * c-common.c (unsigned_conversion_warning, convert_and_check,
5037 unsigned_type, signed_type, shorten_compare,
5038 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
5039 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
5040 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
5042 * c-decl.c (grokdeclarator): Update.
5043 * c-format.c (check_format_types): Update.
5044 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5045 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5046 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
5047 * convert.c (convert_to_integer): Use new hooks.
5048 * expmed.c (make_tree): Use new hooks.
5049 * expr.c (store_expr): Use new hooks.
5050 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
5051 all_ones_mask_p, unextend, fold): Use new hooks.
5052 * langhooks.h (struct lang_hooks_for_types): New hooks.
5053 * tree.h (signed_or_unsigned_type, signed_type,
5054 unsigned_type): Remove.
5056 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5057 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5059 2002-03-31 Richard Henderson <rth@redhat.com>
5061 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
5062 (desc_frgr_mem): Fix reference to f16-f31.
5064 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5066 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
5067 RTVEC_ELT): Const-ify.
5068 * varray.h (VARRAY_CHECK): Const-ify.
5069 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
5070 ggc_mark_rtvec, ggc_mark): Const-ify.
5072 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5074 * diagnostic.c: Include langhooks-def.h.
5075 * Makefile.in (diagnostic.o): Update.
5077 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
5079 * c-common.c (c_unsafe_for_reeval): Rename.
5080 * c-common.h (c_unsafe_for_reeval): Rename.
5081 * c-decl.c (finish_incomplete_decl): Rename.
5082 (c_init_decl_processing): Don't set langhook.
5083 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5084 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5085 * c-objc-common.c (c_objc_common_init): Don't set langhook.
5086 * c-tree.h (finish_incomplete_decl): Rename.
5087 * langhooks-def.h (lhd_unsafe_for_reeval): New.
5088 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
5089 (LANG_HOOKS_INITIALIZER): Update.
5090 * langhooks.c (lhd_unsafe_For_reeval): New.
5091 * langhooks.h (struct langhooks): New hooks.
5092 * toplev.c (incomplete_decl_finalize_hook): Remove.
5093 (wrapup_global_declarations): Update.
5094 * tree.c (lang_unsafe_for_reeval): Remove.
5095 (unsafe_for_reeval): Update.
5096 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
5099 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5100 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5102 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
5104 * diagnostic.c (print_error_function): Remove.
5105 (default_print_error_function): Rename.
5106 (report_error_function): Update.
5107 * diagnostic.h (print_error_function): Remove.
5108 (default_print_error_function): Remove.
5109 * langhooks-def.h (struct diagnostic_context): Predeclare.
5110 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
5111 (LANG_HOOKS_INITIALIZER): Update.
5112 * langhooks.h (struct diagnostic context): Predeclare.
5113 (struct lang_hooks): New hook.
5115 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5117 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
5118 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
5120 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
5121 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
5122 of PIC_OFFSET_TABLE_REGNUM thruout.
5123 * config/rs6000/rs6000.md: Likewise.
5124 * config/rs6000/darwin.h: Likewise.
5126 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5128 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
5129 unsigned HOST_WIDE_INT, not unsigned int.
5131 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5133 PR middle-end/6096, middle-end/6098, middle-end/6099
5134 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
5136 (fill_slots_from_thread): Likewise.
5138 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5140 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
5141 floating fields in float regs.
5142 (function_arg_record_value_2): Likewise.
5144 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
5146 * config/mmix/mmix.md (define_constants): Remove misleading
5147 FIXME. Add MMIX_fp_rO_OFFSET.
5148 ("nonlocal_goto_receiver"): Don't have stack-frame address of
5149 saved rO as part of the pattern. Remove FIXME.
5150 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
5151 here, at output-time.
5153 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5156 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
5158 (output_v9branch): Likewise.
5160 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
5162 * gcc.c: Revert previous patch for now.
5163 * config/i386/djgpp.h: Likewise.
5165 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
5167 * config/mmix/crti.asm (_init): Register _fini with atexit.
5168 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
5170 2002-03-31 Richard Henderson <rth@redhat.com>
5173 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
5174 (ASM_OUTPUT_DEF_FROM_DECLS): New.
5176 2002-03-31 Richard Henderson <rth@redhat.com>
5178 * libgcc2.c (__bb_exit_func): Make static.
5180 * config/alpha/alpha.md (trap): New.
5182 2002-03-31 Richard Henderson <rth@redhat.com>
5184 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
5185 promoted argument types; build trap.
5186 (expand_builtin_trap): New.
5187 (expand_builtin): Use it.
5188 * stmt.c (expand_nl_goto_receivers): Likewise.
5189 * expr.h (expand_builtin_trap): Declare.
5190 * libfuncs.h (LTI_abort, abort_libfunc): New.
5191 * optabs.c (init_optabs): Init abort_libfunc.
5193 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
5195 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
5196 (LINK_COMMAND_SPEC): ... from here.
5197 (init_gcc_specs): Duplicate it here too, omitting
5198 shared_name in the second copy.
5199 (init_spec): Test for duplicate
5200 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
5202 2002-03-30 David S. Miller <davem@redhat.com>
5204 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5205 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
5207 2002-03-30 Roger Sayle <roger@eyesopen.com>
5208 Richard Henderson <rth@redhat.com>
5210 * regmove.c (combine_stack_adjustments_for_block): Avoid
5211 emitting a stack adjustment of zero bytes. Let delete_insn
5214 2002-03-30 Richard Henderson <rth@redhat.com>
5216 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
5217 (sparc_emitting_epilogue): New.
5218 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
5219 * config/sparc/sparc-protos.h: Update.
5220 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
5221 (TARGET_SWITCHES): Update.
5222 * config/sparc/sparc.md (return): Remove.
5223 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
5224 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
5225 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
5226 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5227 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
5228 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
5229 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
5230 Remove MASK_EPILOGUE.
5231 * doc/invoke.texi: Update.
5233 2002-03-30 Daniel Berlin <dan@dberlin.org>
5235 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
5236 CPP will start the file for us.
5238 2002-03-30 Richard Henderson <rth@redhat.com>
5241 * config/ia64/ia64.c (group_barrier_needed_p): Special case
5242 prologue_allocate_stack.
5243 (ia64_single_set): Use insn codes for recognition of special
5244 cases, not rtl matching.
5245 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
5247 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
5249 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
5251 2002-03-30 Richard Henderson <rth@redhat.com>
5254 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
5255 or -fomit-frame-pointer with profiling.
5256 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5257 (FUNCTION_PROFILER): Do nothing.
5258 (PROFILE_HOOK): New.
5259 * config/sparc/sparc.c (sparc_override_options): Don't check
5260 code models for profiling.
5261 (sparc_function_profiler): Remove.
5262 (sparc_profile_hook): New.
5263 * config/sparc/sparc-protos.h: Update.
5265 2002-03-30 Jakub Jelinek <jakub@redhat.com>
5267 PR optimization/6086
5268 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
5269 of SUBREG of volatile MEM or because the MEM was mode dependent,
5270 return CLOBBER instead of unmodified SUBREG.
5272 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
5274 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
5275 when not optimizing.
5277 * toplev.c (rest_of_compilation): Cann mark_constant_function
5278 only when optimizing.
5280 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
5283 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
5284 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
5285 (try_optimize_cfg): clear all AUX fields.
5287 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
5288 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
5289 (ix86_address_cost): Be prepared for SUBREGed registers.
5290 (legitimate_address_p): Accept SUBREGed registers.
5292 2002-03-29 Richard Henderson <rth@redhat.com>
5295 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
5297 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5299 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
5300 for aggregate and TFmode types.
5302 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
5304 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
5306 2002-03-29 Richard Henderson <rth@redhat.com>
5309 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
5310 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
5312 2002-03-29 Richard Henderson <rth@redhat.com>
5315 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
5316 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
5317 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
5318 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
5320 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
5322 2002-03-29 Dale Johannesen <dalej@apple.com>
5324 * loop.c (combine_movables): Do allow combination of pseudos.
5326 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
5328 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
5329 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
5330 No functional change except ...
5331 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
5332 * doc/install.texi (*-*-freebsd*): Document port configuration.
5334 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
5336 * Makefile.in (convert.o, calls.o, expmed.o): Update.
5337 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
5339 * builtin-types.def (BT_PTRMODE): Update.
5340 * c-common.c (type_for_size): Rename c_common_type_for_size.
5341 (type_for_mode): Similarly.
5342 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
5344 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
5345 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
5346 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
5348 * c-typeck.c (common_type, comptypes, default_conversion):
5350 * calls.c: Include langhooks.h.
5351 (emit_library_call_value_1): Use new hooks. Avoid redundant
5353 * convert.c: Include langhooks.h
5354 (convert_to_pointer, convert_to_integer): Use new hooks.
5355 * except.c (init_eh): Similarly.
5356 * expmed.c: Include langhooks.h.
5357 (expand_mult_add): Use new hooks.
5358 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
5359 try_casesi): Similarly.
5360 * fold-const.c (optimize_bit_field_compare, make_range,
5361 decode_field_reference, fold_truthop, fold): Similarly.
5362 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
5363 put_var_into_stack): Similarly.
5364 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
5365 LANG_HOOKS_TYPE_FOR_SIZE): New.
5366 (LANG_HOOKS_TYPES_INITIALIZER): Update.
5367 * langhooks.h (lang_hooks_for_types): New hooks.
5368 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
5369 * tree.c (get_unwidened, get_narrower): Similarly.
5370 * tree.h (type_for_mode, type_for_size): Remove.
5371 * varasm.c (force_const_mem): Use new hooks.
5372 * utils2.c (nonbinary_modular_operation): Update.
5374 * objc-act.c (handle_impent): Update.
5375 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
5378 2002-03-29 Steve Ellcey <sje@cup.hp.com>
5380 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
5381 * config/ia64/ia64.c (basereg_operand): New.
5382 * config/ia64/ia64-protos.h (basereg_operand): Declare.
5383 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
5385 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
5387 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
5388 unwind information when frame_pointer_needed.
5389 (mmix_assemble_integer): Tweak wording in comment.
5391 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
5393 * Makefile.in (except.o): Update.
5394 * except.c: Include langhooks.h.
5395 (init_eh): Use langhook.
5396 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
5397 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
5398 (LANG_HOOKS_INITIALIZER): Update.
5399 * langhooks.h (lang_hooks_for_types): New.
5400 (struct lang_hooks): Add it.
5401 * tree.c (make_lang_type_fn, make_lang_type): Remove.
5402 * tree.h (make_lang_type_fn, make_lang_type): Remove.
5404 * alpha/alpha.c: Include langhooks.h.
5405 (alpha_build_va_list): Use langhook.
5406 * d30v/d30v.c: Include langhooks.h.
5407 (d30v_build_va_list): Use langhook.
5408 * i386/i386.c: Include langhooks.h.
5409 (ix86_build_va_list): Use langhook.
5410 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
5411 * s390/s390.c: Include langhooks.h.
5412 (s390_build_va_list): Use langhook.
5413 * stormy16/stormy16.c: Include langhooks.h.
5414 (stormy16_build_va_list): Use langhook.
5416 2002-03-29 Jakub Jelinek <jakub@redhat.com>
5419 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
5421 (length): Compute variable length for branches/calls/jumps here.
5422 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
5423 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
5424 define branch_type attribute.
5425 (divsi3_sp32): Maximum length is 6 not 7.
5426 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
5427 call_address_untyped_struct_value_sp32,
5428 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
5429 * config/sparc/sparc.c (empty_delay_slot): New function.
5430 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
5431 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
5433 2002-03-29 Jakub Jelinek <jakub@redhat.com>
5435 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
5436 nonzero_bits if not needed.
5437 (nonzero_bits) [XOR]: Likewise.
5438 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
5439 reg_last_set_mode and mode are both MODE_INT, but not equal.
5440 (record_value_for_reg): Compute reg_last_set_nonzero_bits
5441 in nonzero_bits_mode for MODE_INT modes.
5443 2002-03-28 Richard Henderson <rth@redhat.com>
5446 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
5447 to GAS. Correct drift between alternatives.
5449 2002-03-28 Richard Henderson <rth@redhat.com>
5452 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
5454 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
5456 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
5457 emulation to the linker.
5459 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
5461 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
5462 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
5464 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
5466 * combine.c (simplify_and_const_int): Make sure to apply mask
5467 when force_to_mode returns a constant integer. PR3311.
5469 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5471 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
5473 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5475 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
5476 and Objective-C Dialect Options.
5478 2002-03-28 Richard Henderson <rth@redhat.com>
5480 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
5481 comparison should be done vs !=0 not >0 return code. Tidy cases.
5483 2002-03-28 Richard Henderson <rth@redhat.com>
5485 * c-decl.c (finish_function): New arg can_defer_p. Pass it
5486 on to c_expand_body.
5487 * c-tree.h (finish_function): Update decl.
5488 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
5490 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
5492 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
5494 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
5496 * rtlanal.c: Include flags.h
5497 (may_trap_p): Do not mark FP operations if trapping
5498 if !flag_trapping_math
5499 * Makefile.in (rtlanal.o): Add dependency on flag.h
5500 * ifcvt.c (noce_operand_ok): Avoid the lameness.
5502 2002-03-27 Zack Weinberg <zack@codesourcery.com>
5504 * mips.md: Use dconst1, not 1.0, as first argument of
5505 REAL_VALUE_LDEXP. Don't use union real_extract.
5507 2002-03-28 Alan Modra <amodra@bigpond.net.au>
5509 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
5510 rather than $target. Heed program_prefix and
5511 program_transform_name. Search for gas in cross-compiler case too.
5512 "test -x" rather than "test -f".
5513 (gcc_cv_ld): Likewise.
5514 (gcc_cv_nm): Heed program_prefix and program_transform_name.
5515 (gcc_cv_objdump): Likewise.
5516 * configure: Regenerate.
5518 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5520 * Makefile.in (attribs.o): Update.
5521 * attribs.c: Include langhooks.h.
5522 (decl_attributes): Use langhook.
5523 * c-decl.c (insert_default_attributes): Rename.
5524 * c-tree.h (c_insert_default_attributes): New.
5525 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
5526 (LANG_HOOKS_INITIALIZER): Update.
5527 * langhooks.h (struct lang_hooks): New hook.
5528 * tree.h (insert_default_attributes): Remove.
5530 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
5532 2002-03-27 Andreas Schwab <schwab@suse.de>
5534 * config/i386/i386.c (classify_argument): Also check for
5537 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5539 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
5542 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
5544 * i960.md (ret): Set PC.
5545 (nonlocal_goto): Fix expander.
5546 * builtins.c (epxand_builin_longjmp): Check that we've emitted
5549 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
5551 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
5554 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5556 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
5557 assigning to BLOCK_FOR_INSN directly.
5559 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
5561 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
5563 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5565 * c-common.c (c_expand_expr): Fix prototype.
5566 * c-common.h (c_expand_expr): Always declare, update.
5567 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5568 * c-objc-common.c (c_objc_common_init): No global hook.
5569 * expr.c (expand_expr): Use langhook.
5570 * expr.h (enum expand_modifier): Conditionally declare.
5571 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
5572 (LANG_HOOKS_INITIALIZER): Update.
5573 * langhooks.c (lhd_expand_expr): New.
5574 * langhooks.h (struct lang_hooks): New hook.
5575 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
5576 (lang_independent_init): Don't default hook.
5578 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5580 2002-03-27 Richard Henderson <rth@redhat.com>
5583 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
5584 TARGET_CONST_GP. Simplify conditions.
5586 2002-03-27 Richard Henderson <rth@redhat.com>
5588 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5589 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
5590 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
5592 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
5594 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
5595 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
5596 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
5597 Remove unnecessary masks.
5598 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
5599 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
5600 -mwindows, -mdll switches and their negations.
5602 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5604 * gcc-common.c (lang_mark_false_label_stack): Remove.
5605 * ggc.h (lang_mark_false_label_stack): Similarly.
5607 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
5609 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
5611 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
5612 or __rtems_ is defined.
5614 2002-03-26 Richard Henderson <rth@redhat.com>
5616 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
5617 if a non-trivial load was emitted.
5618 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
5619 in high+extra+low case.
5621 2002-03-26 Richard Henderson <rth@redhat.com>
5623 * config.gcc (sparc*-solaris): Use float_format=sparc.
5625 2002-03-26 Richard Henderson <rth@redhat.com>
5627 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
5628 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
5629 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
5630 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
5631 (WINT_TYPE_SIZE): Fix at 32.
5633 2002-03-26 Richard Henderson <rth@redhat.com>
5635 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
5636 until after eh landing pad generation.
5637 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
5638 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
5640 2002-03-26 Richard Henderson <rth@redhat.com>
5642 * expr.h (ADD_PARM_SIZE): One more convert for INC.
5644 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
5646 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
5647 and warning switches.
5648 (cc1_options): Likewise.
5650 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
5652 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
5653 Restore more of the signal context. Set no_reg_stack_frame.
5654 * config/ia64/unwind-ia64.c (unw_state_record):
5655 Add no_reg_stack_frame, comments.
5656 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
5657 (uw_update_context): Adjust bsp when unwinding from leaf,
5658 but not signal frame.
5660 2002-03-26 David Edelsohn <edelsohn@gnu.org>
5662 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
5664 2002-03-26 Bob Wilson <bob.wilson@acm.org>
5666 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
5668 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
5671 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
5672 "Add a pool_range attribute", which was lost during the ARM/Thumb
5675 2002-03-26 Bob Wilson <bob.wilson@acm.org>
5677 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
5678 a register into the MAC16 accumulator.
5680 2002-03-26 Andrew Cagney <ac131313@redhat.com>
5682 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
5683 (Warning Options): Document -Wswitch-enum.
5684 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
5686 (warn_switch_enum): Define variables.
5687 * flags.h (warn_switch_enum): Declare variables.
5688 * stmt.c (expand_end_case_type): When warn_switch_enum /
5689 -Wswitch-enum, perform switch checks.
5692 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
5694 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
5695 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
5696 (reload_muladdsi_compare0_scratch): Delete.
5698 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
5700 * doc/install.texi (*-*-freebsd*): Update.
5702 2002-03-26 Richard Henderson <rth@redhat.com>
5704 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
5705 (SUB_PARM_SIZE): Cast DEC to ssizetype.
5707 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
5708 types from the normal argument frame.
5710 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
5711 variable sized objects by reference.
5712 (sparc_va_arg): Receive them by reference too.
5714 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
5716 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
5717 code to not restoring global registers.
5719 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
5721 * Makefile.in (ggc-common.o): Update.
5722 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
5723 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5724 * c-tree.h (c_mark_tree): New.
5725 * ggc-common.c: Include langhooks.h.
5726 (gcc_mark_trees): Use new langhook.
5727 * ggc-callbacks.c: Delete file.
5728 * ggc.h (lang_mark_tree): Remove.
5729 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
5730 (LANG_HOOKS_INITIALIZER): Update.
5731 * langhooks.h (struct lang_hooks): New hook.
5733 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5735 2002-03-25 Zack Weinberg <zack@codesourcery.com>
5737 * doc/cpp.texi: Exclude entire Top node from printed manual.
5738 Move option index after directive index. Insert page breaks
5739 before GFDL and concept index. Index environment variables
5740 with command line options.
5741 * doc/cppenv.texi: Use @vtable for environment variable list.
5742 Add paragraph explaining semantics of empty elements in path
5743 variables. Exclude a cross-reference to Fishkill from the
5744 manpage. Remove an unnecessary cross-reference of the entry
5745 right above the referer. Don't use @anchor in text that goes
5747 * doc/cppopts.texi: Cross-reference the environment variables
5748 section, not the specific environment variable, for consistency.
5750 2002-03-25 Richard Henderson <rth@redhat.com>
5752 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
5753 anywhere in the block. Don't refer to insns that have been
5754 removed from the chain. Iterate backward through the new insns.
5755 Don't refer to edges that have been removed.
5757 2002-03-26 Alan Modra <amodra@bigpond.net.au>
5759 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
5760 test for overflow of constant.
5762 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
5765 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
5766 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
5767 these patterns on arm_archv4.
5769 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
5771 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
5774 2002-03-25 Zack Weinberg <zack@codesourcery.com>
5776 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
5777 float_handled, float_handler, float_signal, set_float_handler,
5778 and do_float_handler. Set handler for SIGFPE to crash_signal.
5779 * toplev.h: Don't prototype do_float_handler.
5781 * c-lex.c: Fold parse_float into lex_number. Make warning
5782 about portability of hex float constants more informative, and
5783 don't issue it on top of a syntax error.
5784 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
5786 * real.h: Define REAL_VALUE_ABS here...
5787 * simplify-rtx.c: ... not here. Fold check_fold_consts,
5788 simplify_unary_real, simplify_binary_real, and
5789 simplify_binary_is2orm1 into their callers.
5790 * tree.c: Fold build_real_from_int_cst_1 into caller.
5792 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
5794 * tsystem.h: Include float.h here...
5795 * libgcc2.c: ... not here.
5797 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
5799 Fixes for: PR bootstrap/3591, target/5676
5800 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
5801 defined. Do not disable exceptions or rtti.
5802 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
5803 mcore.h. Disable exceptions and rtti, since they are not
5806 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
5808 * c-decl.c (maybe_build_cleanup): Remove.
5809 * expr.c (expand_expr): Use langhook.
5810 * langhooks-def.h (lhd_return_null_tree,
5811 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
5812 (LANGHOOKS_INITIALIZER): Update.
5813 * langhooks.c (lhd_return_null_tree): New.
5814 * langhooks.h (struct lang_hooks): New hook.
5815 * tree-inline.c (initialize_inlined_parameters): Use langhook.
5816 * tree.h (maybe_build_cleanup): Remove.
5818 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5820 * regrename.c (build_def_use): Move recog_memoized
5821 before extract_insn.
5823 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5826 * expr.c (emit_group_store): Handle storing into CONCAT.
5828 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5830 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
5831 corresponding MATCH_DUP.
5833 2002-03-24 Richard Henderson <rth@redhat.com>
5835 * unroll.c (unroll_loop): Zero label_map.
5837 * gcse.c: Include except.h.
5838 * Makefile.in (gcse.o): Update.
5840 2002-03-24 Richard Henderson <rth@redhat.com>
5842 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
5843 Do resolve_unique_section before shared data clause.
5845 2002-03-24 Richard Henderson <rth@redhat.com>
5847 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
5849 2002-03-24 Richard Henderson <rth@redhat.com>
5851 * recog.c (peephole2_optimize): Split blocks when EH insns are
5852 generated in the middle of a block. Do global life update if
5855 2002-03-24 Richard Henderson <rth@redhat.com>
5857 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
5859 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5862 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
5863 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
5864 (init_dependency_output): Don't make no_output decision here.
5866 2002-03-24 Andrew Cagney <ac131313@redhat.com>
5868 * stmt.c (check_for_full_enumeration_handling): Remove tests of
5869 warn_switch. Update description.
5870 (expand_end_case_type): Call check_for_full_enumeration_handling
5873 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5875 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
5876 (m68hc11_split_move): Call it to see if the source and destination
5877 operands use the same direction auto inc/dec mode, otherwise make the
5878 source an offsetable memory operand and generate an add.
5880 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5882 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
5883 register for operand 2.
5884 ("*subsi3_zero_extendqi"): Likewise.
5885 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
5886 bits so that it is compatible with a pop.
5887 ("*andhi3_gen"): Likewise.
5888 ("xorhi3"): Likewise.
5890 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5892 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
5894 (cpp_post_options): ... not here.
5896 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5897 Aldy Hernandez <aldyh@redhat.com>
5899 Removal of separate preprocessor cpp0.
5901 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
5902 cpp0, install-common): Update.
5903 * c-common.c (flag_preprocess_only): New.
5904 (c_common_init): Preprocess for -E.
5905 * c-common.h (flag_preprocess_only): New.
5906 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
5907 * c-objc-common.c (c_init_decl_processing): Exit quickly
5908 for NULL return from c_common_init.
5909 * cpplib.h (cpp_preprocess_file): New.
5910 * cppmain.c (main, general_init, pfile, progname): Remove.
5911 (do_preprocessing): Rename cpp_preprocess_file, don't call
5912 cpp_finish. Don't close stdout here.
5913 (setup_callbacks): Update prototype.
5914 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
5916 * tradcpp.c (main): Ignore -quiet.
5918 * lang-specs.h (default_compilers): Preprocess with cc1obj.
5920 2002-03-24 Richard Henderson <rth@redhat.com>
5922 PR optimization/5742
5923 * machmode.def: Add inner mode field to complex modes.
5924 * config/mips/mips.c (mips_function_value): Always define. Add
5925 new argument to handle libcalls.
5926 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
5927 (FUNCTION_VALUE): Likewise.
5928 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
5929 * config/mips/mips-protos.h: Update.
5931 2002-03-23 Richard Henderson <rth@redhat.com>
5933 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
5934 * config/sparc/sparc-protos.h: Update.
5935 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
5937 2002-03-23 Richard Henderson <rth@redhat.com>
5939 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
5940 _start or _init begins the text segment.
5942 2002-03-23 David Edelsohn <edelsohn@gnu.org>
5944 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
5945 not HOST_WIDEST_INT.
5946 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
5948 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
5951 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
5952 operand argument to output_return_instruction.
5953 * arm.c (arm_print_operand, case 'd'): If the operand is
5954 const_true_rtx then just return.
5955 (arm_print_operand, case 'D'): If the operand is const_true_rtx
5958 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5960 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
5961 (Warning Options): Document -Wswitch-default.
5962 * toplev.c (W_options): Add -Wswitch-default. Update comment on
5964 (warn_switch_default): Define variable.
5965 (warn_switch): Update comment.
5966 * flags.h (warn_switch_default): Declare variable.
5967 (warn_switch): Update comment.
5968 * stmt.c (expand_end_case): Check for and, when
5969 warn_switch_no_default, warn of a missing default case.
5971 2002-03-23 Alan Modra <amodra@bigpond.net.au>
5973 * real.h (N): Special case 128 bit doubles.
5975 * combine.c (simplify_comparison): When widening modes, ignore
5976 sign extension on CONST_INTs.
5978 2002-03-22 Bob Wilson <bob.wilson@acm.org>
5980 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
5981 passed to adjust_address. Fix comment formatting.
5984 2002-03-22 Zack Weinberg <zack@codesourcery.com>
5986 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
5987 Always make REAL_VALUE_TYPE a struct containing an array of
5988 HOST_WIDE_INT, not a double. Tidy up the code deciding how
5989 big it is. Don't declare or use union real_extract.
5991 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
5992 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
5993 (print_operand), config/arm/arm.c (output_move_double),
5994 config/arm/arm.md (consttable_4, consttable_8),
5995 config/romp/romp.c (output_fpops), config/s390/s390.h
5996 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
5997 (xtensa_output_literal): Don't use union real_extract.
5999 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
6000 (sfmode_constant_to_ulong), config/ns32k/merlin.h
6001 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
6002 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
6003 (PRINT_OPERAND): Don't use local version of union
6006 * config/convex/convex.c (check_float_value), config/vax/vax.c
6007 (vax_float_literal), config/m88k/m88k.md (divdf3),
6008 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
6009 config/pdp11/pdp11.c (output_move_quad): Don't do host
6010 arithmetic on target floating point quantities.
6012 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
6013 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
6015 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
6016 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
6018 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
6019 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
6021 * print-rtl.c (print_rtx): Disable code which needs
6022 floating-point emulator.
6023 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
6024 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
6025 depending on HOST_FLOAT_FORMAT to be defined properly.
6027 * config/1750a/1750a.c (get_double, float_label): Delete.
6028 (print_operand): Delete huge commented-out chunk. Use
6029 REAL_VALUE_TO_DECIMAL.
6030 * config/1750a/1750a-protos.h: Delete prototypes of deleted
6032 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
6034 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
6035 Use REAL_VALUE_TO_DECIMAL as ELF version does.
6036 * config/m88k/m88k.c (real_power_of_2_operand,
6037 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
6038 real_extract out of the union; run the input through
6039 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
6040 from that into the union.
6041 * config/pdp11/pdp11.c (output_move_double): Rearrange
6042 parentheses to make automatic indenter happy.
6044 * doc/tm.texi (Cross-compilation): Rename node to "Floating
6045 Point" and rewrite to describe current situation. Also adjust
6046 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
6048 * doc/rtl.texi: Adjust cross reference.
6050 2002-03-22 Bob Wilson <bob.wilson@acm.org>
6052 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
6053 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
6054 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
6055 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
6056 prevent use of sp as a reload register.
6057 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
6058 non_acc_reg_operand.
6059 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
6060 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
6061 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
6062 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
6064 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
6066 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
6067 * cpplex.c (unterminated): Delete.
6068 (parse_string): No string literal may extend over multiple
6069 lines. Suppress the error when preprocessing assembly.
6070 * cppmain.c (scan_translation_unit): Strings are single-line.
6072 * doc/cpp.texi: Update to match.
6074 2002-03-22 Jakub Jelinek <jakub@redhat.com>
6076 PR optimization/5854
6077 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
6079 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
6080 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
6081 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
6082 const0 if scratch register was not allocated.
6083 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
6084 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
6086 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
6087 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
6088 with GEN_INT (...) everywhere. Remove constraints in define_split
6090 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
6091 require scratch register for setting 0 into regs/non-pushable memory.
6093 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
6095 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
6096 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
6098 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
6100 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
6101 * cppinit.c (cpp_create_reader): On by default.
6102 (cpp_handle_option): Handle -W[no-]endif-labels.
6103 (cpp_post_options): Also enable if -pedantic.
6104 * cpplib.c (do_else): Use it.
6105 (do_endif): Likewise.
6106 * doc/cppopts.texi: Document new option.
6107 * doc/invoke.texi: Document new option.
6109 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
6111 * config/i386/i386.c, config/i386/i386.md: Change all occurences
6112 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
6114 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
6116 * flow.c (calculate_global_regs_live): Clear aux fields of
6119 2002-03-22 Jakub Jelinek <jakub@redhat.com>
6121 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
6122 REG or MEM subregs, pass rtx * instead of rtx to it.
6123 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
6124 rtx * instead of rtx to alter_subreg.
6125 * config/m32r/m32r.c (gen_split_move_double): Likewise.
6126 * config/pj/pj.c (pj_output_rval): Likewise.
6128 2002-03-22 Richard Henderson <rth@redhat.com>
6131 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
6132 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
6133 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
6134 (ia64_expand_prologue): Look at int_regs, not words, for number
6135 of incomming int regs.
6137 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
6139 * expr.c (expand_expr): A RESULT_DECL is part of a call.
6141 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
6143 * toplev.c (flag_loop_optimize, flag_crossjumping):
6144 New static variables.
6145 (rest_of_compilation): Conditionalize crossjumping and
6147 (parse_options_and_default_flags): Default loop_optimize and
6149 (lang_independent_options): Add -fcrossjumping and -floop-optimize
6150 * invoke.texi (crossjumping, loop-optimize): Document.
6152 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
6154 * real.c (eiisneg): Move outside #ifdef NANS.
6156 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
6158 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
6159 frequencies match; avoid match on different loop depths.
6160 (try_crossjump_to_bb): Kill tests that no longer brings time
6162 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
6164 (split_edge): Likewise.
6166 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
6169 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
6170 * cfgrtl.c: Include insn-config.h
6171 (split_block) Dirtify block in presence of conditional execution
6173 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
6175 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
6176 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
6177 (function_arg): Constify CUMULATIVE_ARGS.
6178 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
6179 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
6180 (UNITS_PER_DOUBLE): New macro.
6181 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
6182 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
6183 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
6184 fp_regs and stack_words.
6185 (EABI_FLOAT_VARARGS_P): New macro.
6186 * config/mips/mips.c (struct mips_arg_info): New.
6187 (mips_arg_info): New function.
6188 (function_arg_advance): Use it. Add adjustment instructions here
6189 rather than in function_arg.
6190 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
6191 for VOIDmode at the beginning of the function.
6192 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
6193 (function_arg_pass_by_reference): Likewise.
6194 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
6195 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
6196 (mips_va_start): Likewise. Use the new stack_words field of
6197 CUMULATIVE_ARGS to set up overflow area. Reformat.
6198 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
6199 doubles and other types, aligning the overflow pointer for non-doubles
6200 too. Remove some code duplication. Replace hard-coded constants.
6202 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
6204 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
6205 (CLASS_UNITS): Undefine.
6206 (CLASS_MAX_NREGS): Use FP_INC.
6207 * config/mips/mips.c (compute_frame_size): Likewise.
6208 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
6210 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
6212 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
6213 prototype, and handle lexing numbers and identifiers.
6214 (parse_identifier): Update to new form of parse_slow.
6215 (parse_number): Fast path only, use parse_slow otherwise.
6216 (_cpp_lex_direct): Update calls to parse_number.
6218 2002-03-21 DJ Delorie <dj@redhat.com>
6220 * bb-reorder.c (make_reorder_chain_1): Protect against
6221 when redundant edges are omitted.
6222 * predict.c (dump_prediction): Likewise.
6224 2002-03-21 Richard Henderson <rth@redhat.com>
6227 * fixinc/inclhack.def (solaris_stdio_tag): New.
6228 * fixinc/fixincl.x: Regenerate.
6230 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
6233 * c-typeck.c (process_init_element): Flag non-static
6234 initialization of a flexible array member as illegal.
6236 2002-03-22 Alan Modra <amodra@bigpond.net.au>
6238 * config/rs6000/t-linux64: New.
6239 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
6240 t-ppccomm. Use t-rs6000 and t-linux64.
6241 (powerpc64-*-gnu* <tmake_file>): Likewise.
6242 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
6243 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
6244 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
6246 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
6248 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
6249 flag_really_no_inline instead of optimize == 0.
6251 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
6253 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
6255 * flags.h (flag_really_no_inline): New.
6257 * c-common.c (c_common_post_options): Initialize
6258 flag_really_no_inline.
6260 * toplev.c (flag_really_no_inline): New.
6262 2002-03-21 Jakub Jelinek <jakub@redhat.com>
6264 * config/avr/avr.md (length): Fix length computation for
6265 conditional branches.
6267 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
6269 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
6270 sdbout.o, profile.o): Update.
6271 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
6273 * c-common.h (gettags): Move here from tree.h.
6274 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
6275 insert_block, getdecls, kept_level_p, global_bindings_p): New.
6276 * dbxout.c (dbxout_init): Use getdecls langhook.
6277 * expr.c (expand_expr): Use insert_block langhook.
6278 * fold-const.c: Include langhooks.h.
6279 (fold_range_test, fold_binary_op_with_conditional_arg,
6280 fold): Use global_bindings_p langhook.
6281 * integrate.c (expand_inline_function): Use insert_block langhook.
6282 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
6283 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
6284 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
6285 LANG_HOOKS_GETDECLS): New.
6286 (LANG_HOOKS_INITIALIZER): Update.
6287 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
6289 * langhooks.h (struct lang_hooks_for_decls): New.
6290 (struct lang_hooks): Update.
6291 * profile.c: Include langhooks.h.
6292 (output_func_start_profiler): Use new langhooks.
6293 * sdbout.c: Include langhooks.h.
6294 (sdbout_init, sdbout_finish): Use getdecls langhook.
6295 * stmt.c: Include langhooks.h.
6296 (expand_fixup, fixup_gotos): Use new langhooks.
6297 * stor-layout.c: Include langhooks.h.
6298 (variable_size): Use global_bindings_p langhook.
6299 * toplev.c (compile_file): Use getdecls langhook.
6300 * tree-inline.c (remap_block): Use insert_block langhook.
6301 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
6302 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
6304 2002-03-21 Richard Henderson <rth@redhat.com>
6306 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
6307 constants in .data when -fpic.
6309 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6311 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
6314 2002-03-21 Tom Tromey <tromey@redhat.com>
6316 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
6318 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6320 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
6322 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
6324 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
6325 Richard Henderson <rth@redhat.com>
6328 * c-common.c (c_expand_expr): Preserve result of a statement
6329 expression if needed.
6331 2002-03-21 Jakub Jelinek <jakub@redhat.com>
6334 * genrecog.c (maybe_both_true_mode): Remove.
6335 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
6336 * machmode.def (Pmode): Likewise.
6338 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
6340 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
6341 (nonlocal_mentioned_p_1): New function.
6342 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
6343 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
6344 (mark_constant_function): Recognize pure functions.
6345 * rtl.h (global_reg_mentioned_p): New prototype.
6346 * rtlanal.c (global_reg_mentioned_p,
6347 global_reg_mentioned_p_1): New function.
6349 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6351 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
6353 * fixinc/fixincl.x: Regenerate.
6355 2002-03-20 Jason Merrill <jason@redhat.com>
6357 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
6359 2002-03-20 Michael Meissner <meissner@redhat.com>
6361 * doc/invoke.texi (Optimize Options): Document that -O2 sets
6364 2002-03-20 Bob Wilson <bob.wilson@acm.org>
6366 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
6367 ".literal_position" directive before the constant pool.
6369 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6371 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
6372 Add Craig Rodrigues.
6373 Add Brad Lucier to testers.
6375 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6378 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
6380 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
6381 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
6382 instead of insn_extract.
6384 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6387 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
6389 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
6390 stmt if some case has been output.
6392 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6395 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
6396 movsfcc_1, movdfcc_1): Add %O2.
6397 * config/i386/i386.c (print_operand): Handle %ON.
6398 Print . before float condition codes in Sun as cmov syntax.
6399 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
6400 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
6403 2002-03-20 Philip Blundell <pb@nexus.co.uk>
6405 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
6406 return instruction if PC was popped.
6408 2002-03-20 Bob Wilson <bob.wilson@acm.org>
6410 * config/xtensa/xtensa.md: Remove unused type attributes.
6411 (adddi_carry, subddi_carry): Change type attribute to "multi".
6413 2002-03-19 Dale Johannesen <dalej@apple.com>
6415 PR optimization/5999, middle-end/5731
6416 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
6417 multiplications by reciprocals.
6419 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
6421 * Makefile.in: Update.
6422 * c-common.c: Include langhooks.h.
6423 (inline_forbidden_p): Use new hook.
6424 * diagnostic.c: Include langhooks.h.
6425 (format_with_decl, announce_function,
6426 default_print_error_function): Use new hook.
6427 * dwarf2out.c (dwarf2_name): Use new hook.
6428 * function.c: Include langhooks.h.
6429 (init_function_start): Use new hook.
6430 * langhooks-def.h (lhd_decl_printable_name): New.
6431 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
6432 (LANGHOOKS_INITIALIZER): Update.
6433 * langhooks.c (lhd_decl_printable_name): New.
6434 * langhooks.h (struct lang_hooks): New hook.
6435 * toplev.c (decl_name, decl_printable_name): Remove.
6436 (open_dump_file): Use new hook.
6437 (process_options): Remove old hook.
6438 * tree.h (decl_printable_name): Remove.
6440 * objc-act.c (objc_init): Remove old hook.
6441 (objc_printable_name): Export.
6442 * objc-act.h (objc_printable_name): New.
6443 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
6445 2002-03-19 Jim Blandy <jimb@redhat.com>
6447 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
6448 the start_source_file debug hook, not the current line number.
6450 2002-03-19 Richard Henderson <rth@redhat.com>
6452 * flow.c (EH_USES): Provide default.
6453 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
6454 * doc/tm.texi (EH_USES): New.
6456 * config/ia64/ia64.c (ia64_eh_uses): New.
6457 * config/ia64/ia64-protos.h: Update.
6458 * config/ia64/ia64.h (EH_USES): New.
6460 2002-03-19 Richard Henderson <rth@redhat.com>
6462 * varasm.c (output_constant_def): Fix stupid typo.
6464 2002-03-19 Richard Henderson <rth@redhat.com>
6467 * except.c (current_function_has_exception_handlers): New.
6468 * except.h: Declare it.
6469 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
6470 Combine tests that disable all sibcalls for the function.
6472 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
6474 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
6477 2002-03-19 Richard Henderson <rth@redhat.com>
6480 * config/ia64/ia64.c: Revert 2002-03-01 patch.
6481 * config/ia64/ia64.h (INIT_EXPANDERS): New.
6483 2002-03-19 Jim Blandy <jimb@redhat.com>
6485 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
6486 name, even if the replacement list contains no tokens, as required
6489 2002-03-19 Jason Merrill <jason@redhat.com>
6491 * varasm.c (globalize_decl): Get the name from the RTL, not
6492 DECL_ASSEMBLER_NAME.
6494 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
6496 2002-03-19 Bob Wilson <bob.wilson@acm.org>
6498 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
6499 subdi_carry): Define.
6501 2002-03-19 David Edelsohn <edelsohn@gnu.org>
6503 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
6504 about -fpic/-fPIC if extra_warnings set.
6506 2002-03-19 David Edelsohn <edelsohn@gnu.org>
6508 * expr.c (expand_expr): Sign-extend CONST_INT generated from
6509 TREE_STRING_POINTER.
6510 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
6512 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6514 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
6515 in favor of SP if FRAME_POINTER_REQUIRED is false.
6517 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
6519 * emit-rtl.c (gen_int_mode): New function.
6520 * rtl.h: Prototype for it.
6521 * combine.c (make_extraction, simplify_comparison), expmed.c
6522 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
6523 (convert_modes, store_field), optabs.c (expand_fix),
6524 simplify-rtx.c (neg_const_int, simplify_unary_real),
6526 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
6527 Use it instead of GEN_INT (trunc_int_for_mode (...)).
6529 2002-03-19 Jakub Jelinek <jakub@redhat.com>
6532 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
6533 convert_parm_for_inlining.
6534 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
6536 * langhooks-def.h: Likewise.
6537 * objc/objc-lang.c: Likewise.
6538 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
6540 * tree-inline.c (initialize_inlined_parameters):
6541 Call convert_parm_for_inlining lang hook if needed.
6542 * c-typeck.c (c_convert_parm_for_inlining): New function.
6543 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
6545 2002-03-18 Mark Mitchell <mark@codesourcery.com>
6547 * calls.c (precompute_arguments): Do not assume that temporaries
6548 can be destroyed after expanding the argument.
6549 (expand_call): Likewise.
6551 2002-03-15 Eric Christopher <echristo@redhat.com>
6553 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
6554 Fix register preference on last change.
6555 * config/mips/mips.c (mips_return_in_memory): New function.
6556 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
6557 * config/mips/mips-protos.h: Declare.
6558 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
6559 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
6561 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
6563 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
6565 (anddi3, iorsi3): Likewise.
6567 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
6568 use %gprel for symbols that are going to be placed in linkonce
6571 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
6572 RETURN_ADDRESS_POINTER_REGNUM to $ra.
6573 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
6574 not needed. Disregard leaf_function_p().
6575 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
6576 mips16 frame pointer.
6577 * config/mips/mips.md (store ra): Only to small SP offsets.
6578 2001-08-22 Graham Stott <grahams@redhat.com>
6579 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
6580 return a REG rtx for the return address register.
6582 2002-03-18 Bob Wilson <bob.wilson@acm.org>
6584 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
6585 constant-pool addresses as "mode-dependent".
6586 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
6588 2002-03-18 Jakub Jelinek <jakub@redhat.com>
6591 * expr.c (emit_group_load): Use extract_bit_field if
6592 needed for CONCAT arguments.
6594 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
6597 * arm.md (tablejump): Make this a define_expand. For PIC add the
6598 offset to the base of the table.
6599 (thumb_tablejump): Matcher for Thumb tablejump insn.
6600 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
6601 as the difference of two labels.
6602 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6603 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
6605 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
6606 * arm.c (get_jump_table_size): If the table is not in the text
6607 section, return zero.
6609 2002-03-18 Bernd Schmidt <bernds@redhat.com>
6611 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
6613 (arm_reload_out_hi): Use gen_lowpart instead of
6614 gen_rtx_SUBREG to access QImode components.
6615 * config/arm/arm.md: Disable zero_extend split for QImode
6616 subregs in BIG_ENDIAN mode.
6617 (storehi_bigend): Match use of least significant byte.
6618 (storeinthi): Remove extraneous SUBREG.
6619 Add missing construction of operands[2].
6620 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
6621 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
6622 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
6624 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
6626 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
6629 2002-03-17 Richard Henderson <rth@redhat.com>
6631 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
6634 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
6636 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
6637 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
6639 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6641 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
6643 * predict.c (estimate_bb_frequencies): Delete unused variables.
6645 2002-03-17 Richard Henderson <rth@redhat.com>
6647 * config/ia64/ia64.c (ia64_attribute_table): Move before
6648 targetm definition. Make static.
6650 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
6652 * c-common.h (yyparse, c_common_parse_file): New.
6653 * c-lang.c: Include c-common.h.
6654 (LANG_HOOKS_PARSE_FILE): Redefine.
6655 * c-lex.c: Include c-common.h.
6656 (yyparse): Rename c_common_parse_file. Call yyparse.
6657 * c-parse.in (yyparse): Remove macro.
6658 * c-tree.h (yyparse_1): Remove.
6659 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
6660 (LANG_HOOKS_INITIALIZER): Update.
6661 * langhooks.h (struct lang_hoooks): New hook parse_file.
6662 * toplev.c (compile_file): Use parse_file hook.
6663 * tree.h (yyparse): Remove.
6664 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
6666 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
6668 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
6669 float_truncate, not fix.
6670 ("*truncdfsf2_real"): Ditto.
6671 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
6673 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
6675 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
6677 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
6678 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
6679 where appropriate. Make the second reference to
6680 leaf_function_p a function call, as intended. Reindented.
6682 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
6683 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
6685 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
6686 add register to non-constant into sp.
6688 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
6689 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
6690 (mips16_gp_pseudo_rtx): Lose.
6691 (INIT_EXPANDERS): Deleted.
6692 * config/mips/mips.c (mips_init_machine_status): New.
6693 (mips_free_machine_status): New.
6694 (mips_mark_machine_status): New.
6695 (override_options): Set them.
6696 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
6697 (struct machine_function): ... new. Replaced all references.
6698 (mips_add_gc_roots): Don't mark them.
6699 (embedded_pic_fnaddr_reg): New, extracted from...
6700 (embedded_pic_offset): ... here.
6701 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
6704 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
6706 * cppinit.c: Revert -MD removal.
6708 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6710 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
6711 soft registers by default for 68HC12.
6712 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
6713 when compiling with -fomit-frame-pointer.
6714 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
6715 (expand_epilogue): Likewise.
6716 (m68hc11_gen_rotate): Use exg when rotating by 8.
6718 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6720 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
6721 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
6722 (splits): Remove unused add splits.
6723 ("*addhi3_68hc12"): Tune constraints.
6724 ("addhi_sp"): Try to use X instead of Y in all cases and if the
6725 constant fits in 8-bits and D is dead use abx/aby instructions.
6726 ("*addhi3"): Remove extern declaration of ix_reg.
6727 ("*subsi3"): Optimize and provide new split.
6728 ("subhi3"): Cleanup.
6729 ("*subhi3_sp"): Avoid saving X if we know it is dead.
6730 (arith splits): For 68hc12 save the address register on the stack
6731 and do the arithmetic operation with a pop.
6733 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6735 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
6736 allocating QImode in address registers.
6737 ("*movqi_m68hc11"): Likewise.
6739 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
6741 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
6743 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
6745 * cppinit.c (print_help): Display -MD and -MMD.
6746 Don't display usage string. Update assertion syntax and
6748 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
6749 (cpp_handle_option): Update.
6751 2002-03-15 Chris Demetriou <cgd@broadcom.com>
6753 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
6754 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
6755 and define it so that regardless of target CPU size,
6756 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
6757 of "int" rather than "long."
6759 2002-03-15 Richard Henderson <rth@redhat.com>
6761 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
6764 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6766 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
6767 ("tstqi" split): Avoid using memory for tstqi on address register.
6768 (splits): Remove constraints.
6769 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
6770 ("cmpdf", "cmpsf"): Remove since not used.
6771 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
6772 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
6774 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6776 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
6777 ("neghi2"): Tighten constraints.
6778 ("one_cmplsi2"): Optimize and simplify split.
6779 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
6781 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6783 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
6784 and split of AND operation to clear the upper bits.
6785 ("*logicalsi3_zextqi"): Likewise.
6786 ("*logicallhi3_zexthi_ashift8"): Likewise.
6787 ("*logicalsi3_silshr16"): Likewise.
6788 ("logicalsi3_silshl16"): Likewise.
6789 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
6791 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6793 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
6794 (m68hc11_indirect_p): New function.
6795 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
6796 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
6798 (asm_print_register): Likewise.
6799 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
6800 (m68hc11_indirect_p): Declare.
6801 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
6802 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
6803 (TARGET_SWITCHES): New option -mrelax.
6804 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
6806 ("iorsi3", "xorsi3"): Likewise.
6807 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
6808 ("*andhi3_mem"): New to handle destination in memory with bclr
6809 and a scratch register.
6810 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
6811 ("*andhi3_const"): New when operand2 is constant.
6812 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
6813 ("*andhi3_gen"): Cleanup of the old "andhi3".
6814 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
6815 ("xorqi3"): Update constraints.
6817 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6819 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
6820 for reg_equiv_memory_loc when the operand is a register that does
6821 not get a hard register (stack location).
6822 (tst_operand): After reload, accept all memory operand.
6823 (symbolic_memory_operand): Fix detection of symbolic references.
6824 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
6825 accept symbols and any constant.
6827 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6829 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
6830 note on the insn that sets the soft frame register.
6831 (must_parenthesize): ix and iy are also reserved names.
6832 (print_operand_address): One more place where parenthesis are required
6833 to avoid confusion with register names.
6834 (m68hc11_gen_movhi): Allow push of stack pointer.
6835 (m68hc11_check_z_replacement): Fix handling of parallel with a
6837 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
6838 the replacement register is.
6839 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
6840 and D8_REGS classes.
6841 (MODES_TIEABLE_P): All modes are tieable except QImode.
6843 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6845 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
6846 (___subdi3): Likewise.
6847 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
6848 (__map_data_section): Optimize 68hc11 case.
6850 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6852 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
6853 than a shift to avoid adding a register with itself.
6854 (m68hc11_memory_move_cost): Take into account NO_REGS.
6855 (m68hc11_register_move_cost): Update and use memory move cost
6857 (m68hc11_address_cost): Make cost of valid offset not 0 so that
6858 it gives more opportunities to cse to optimize.
6859 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
6860 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
6862 2002-03-15 Mark Mitchell <mark@codesourcery.com>
6864 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
6865 * c-common.def (CLEANUP_STMT): New tree node.
6866 * c-common.h (CLEANUP_DECL): New macro.
6867 (CLEANUP_EXPR): Likewise.
6868 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
6869 * expr.c (expand_expr): Tidy.
6870 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
6871 * tree-inline.c (initialize_inlined_parameters): Clean up
6872 new local variables.
6874 2002-03-15 Jakub Jelinek <jakub@redhat.com>
6877 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
6878 before movrXX only, use reg_overlap_mentioned_p.
6879 Only special case NE if just one insn can be generated.
6881 2002-03-15 Jason Merrill <jason@redhat.com>
6883 * varasm.c (assemble_variable): Call resolve_unique_section before
6884 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
6887 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6890 * arm.md (split pattern for thumb shiftable immediates): Add comment
6891 explaining non-obvious test.
6893 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6896 * arm.md (movaddr, movaddr_insn): Delete.
6898 2002-03-15 Jason Merrill <jason@redhat.com>
6900 * toplev.c (wrapup_global_declarations): Clarify variable handling.
6901 -fkeep-static-consts doesn't apply to comdats.
6903 2002-03-14 Richard Henderson <rth@redhat.com>
6905 * c-decl.c: Include c-pragma.h.
6906 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
6907 (finish_function): Tidy.
6908 * c-pragma.c: Include c-common.h.
6909 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
6910 (handle_pragma_weak): Use them.
6911 (init_pragma): Register pending_weaks.
6912 * c-pragma.h (maybe_apply_pragma_weak): Declare.
6913 * print-tree.c (print_node): Print DECL_WEAK.
6914 * varasm.c (mark_weak_decls): Remove.
6915 (remove_from_pending_weak_list): Remove.
6917 (asm_emit_uninitialised): Call globalize_decl for weak commons.
6918 (weak_decls): Make a tree_list.
6919 (declare_weak): Cons weak_decls directly.
6920 (globalize_decl): Remove weak_decls elements directly.
6921 (weak_finish): Simplify weak_decls walk. Don't weaken unused
6922 symbols. Don't pretend to handle aliases.
6923 (init_varasm_once): Update weak_decls registry.
6924 * Makefile.in: Update dependencies.
6926 2002-03-14 Richard Henderson <rth@redhat.com>
6929 * config/ia64/ia64.c: Include tm_p.h last.
6930 (gen_nop_type): Remove duplicate definition.
6931 (cycle_end_fill_slots): Set sched_data for second L slot.
6932 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
6933 (nop_cycles_until): Fix typos.
6935 2002-03-15 Jakub Jelinek <jakub@redhat.com>
6937 PR optimization/5891
6938 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
6940 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
6942 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
6943 descriptors correctly.
6945 2002-03-14 Michael Meissner <meissner@redhat.com>
6947 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
6948 100, allowing MAX_UNROLLED_INSNS to be overridden.
6950 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
6953 * unroll.c (params.h): Include.
6954 (MAX_UNROLLED_INSNS): Delete, now in params.h.
6956 * doc/invoke.texi (--param max-unroll-insns): Document.
6958 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
6960 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
6962 * arm.md: Fix warnings about constraints in peepholes and splits.
6964 2002-03-14 Zack Weinberg <zack@codesourcery.com>
6966 * cpphash.h (struct lexer_state): Remove line_extension member.
6967 * cpplib.c (dequote_string, do_linemarker): New functions.
6968 (linemarker_dir): New data object.
6969 (DIRECTIVE_TABLE): No longer need to interpret #line in
6970 preprocessed source. Delete obsolete comment about return
6972 (end_directive, directive_diagnostics, _cpp_handle_directive):
6973 Don't muck with line_extension.
6974 (directive_diagnostics): No need to issue warnings for
6976 (_cpp_handle_directive): Issue warnings for linemarkers here,
6977 when appropriate. Dispatch linemarkers to do_linemarker, not
6979 (do_line): Code to handle linemarkers split out to do_linemarker.
6980 Convert escape sequences in filename argument, both places.
6982 * cppmacro.c (quote_string): Rename cpp_quote_string and
6983 export. All callers changed.
6984 * cpplib.h (cpp_quote_string): Prototype.
6985 * cppmain.c (print_line): Call cpp_quote_string on to_file
6988 * doc/cpp.texi: Document that escapes are now interpreted in
6989 #line and in linemarkers, and that non-printing characters are
6990 converted to octal escapes when linemarkers are generated.
6992 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
6994 * emit-rtl.c (try_split): Use delete_insns.
6995 * recog.c (split_all_insns): Fix terminating condition.
6997 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
6998 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7001 * arm.c (arm_output_epilogue): Fix floating-point register save
7002 adjustment when using a frame pointer.
7004 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
7006 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
7007 * config/mips/mips.c (compute_frame_size): Retrofit them here.
7008 (save_restore_insns, mips_expand_epilogue): And here.
7009 (build_mips16_call_stub): And here.
7010 (mips_function_value): Use the new macros to decide whether a single
7011 or complex float can be returned in floating-point registers. Return
7012 a parallel rtx in the complex case.
7014 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
7016 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
7017 call after liveness analysis.
7019 * recog.c (split_insn): Use delete_insn_and_edges.
7021 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
7022 instructions to have branch prediction notes.
7023 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
7025 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
7027 * configure.in: Don't pass -Wno-long-long to a ADA compiler
7028 that doesn't support it.
7029 * configure: Regenerate.
7031 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7034 * config/sparc/sparc.md (normal_branch, inverted_branch,
7035 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
7036 inverted_fp_branch): Adjust calls to output_cbranch.
7037 Set length attribute.
7038 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
7039 output_v9branch. Set length attribute.
7040 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
7042 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
7043 (output_cbranch): Likewise. Handle far branches.
7044 (output_v9branch): Handle far branches.
7045 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
7047 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
7048 noov_compare64_op predicates.
7050 2002-03-13 Jason Merrill <jason@redhat.com>
7052 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
7053 into the function and constify it.
7054 * gthr-dce.h, gthr-solaris.h: Likewise.
7056 2002-03-13 David Edelsohn <edelsohn@gnu.org>
7058 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
7059 * config/rs6000/rs6000.c (rs6000_va_arg): Use
7060 std_expand_builtin_va_arg if not ABI_V4.
7062 2002-03-13 Jason Merrill <jason@redhat.com>
7064 * varasm.c (globalize_decl): New fn.
7065 (assemble_start_function): Use it.
7066 (asm_emit_uninitialized): Use it.
7067 (assemble_alias): Use it.
7068 (assemble_variable): Use it.
7070 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
7072 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
7073 2002-03-12 internal visibility change.
7074 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
7075 visibility into SYMBOL_REF_FLAG.
7077 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
7079 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
7080 VOIDmode operand. Add compile-time optimization for constant results.
7082 2002-03-12 Jason Merrill <jason@redhat.com>
7084 * c-typeck.c (convert_for_assignment): Don't allow conversions
7085 between pointers and references. Only allow lvalues to convert to
7088 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
7090 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
7091 before prologue, to avoid scheduling problems.
7093 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7095 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
7096 (ELIMINABLE_REGS): Add sfp->sp.
7097 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
7099 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7101 PR optimization/5892
7102 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
7104 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7106 * loop.c (basic_induction_var): Don't call convert_modes if mode
7107 classes are different.
7109 2002-03-12 Richard Henderson <rth@redhat.com>
7111 PR optimization/5901
7112 * function.c (reposition_prologue_and_epilogue_notes): Position
7113 the markers after/before the last/first insn not deleted.
7115 2002-03-12 Richard Henderson <rth@redhat.com>
7117 PR optimization/5878
7118 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
7119 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
7120 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7122 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
7123 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
7124 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
7126 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
7127 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
7128 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
7129 also. Don't set it if not flag_pic.
7130 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
7131 to be INVALID_REGNUM when not used.
7133 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
7135 * expmed.c (store_bit_field): Reset alias set for memory.
7136 (extract_bit_field): Same.
7138 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7140 * c-common.c (c_tree_code_type, c_tree_code_length,
7141 c_tree_code_name, add_c_tree_codes): Delete.
7142 * c-common.h (add_c_tree_codes): Delete.
7143 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
7145 * c-objc-common.c (c_objc_common_init): Don't call
7146 add_c_tree_codes, instead set lang_unsafe_for_reeval.
7147 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
7148 objc_tree_code_name, add_objc_tree_codes): Delete.
7149 (objc_init): Don't call add_objc_tree_codes.
7150 * objc/objc-lang.c (tree_code_type, tree_code_length,
7151 tree_code_name): Define.
7152 * toplev.c (lang_independent_init): Don't set
7153 tree_code_length[IDENTIFIER_NODE].
7154 * tree.c (tree_code_type, tree_code_length, tree_code_name):
7155 Delete definitions, moved to language front-ends.
7156 * tree.def (IDENTIFIER_NODE): Hardwire the length.
7157 * tree.h (tree_code_type, tree_code_length, tree_code_name):
7159 (tree_code_length): Change type to unsigned char.
7161 2002-03-12 Richard Henderson <rth@redhat.com>
7163 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
7164 internal visibility change.
7166 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7168 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
7169 validize_mem() instead of change_address to avoid clobbering
7172 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
7174 * c-lex.h (position_after_whitespace): Remove.
7176 2002-03-12 Jakub Jelinek <jakub@redhat.com>
7178 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
7179 (lex_string): Use unsigned char pointers.
7181 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
7183 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
7184 is not a valid memory_operand.
7186 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7188 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
7189 * config/xtensa/lib1funcs.asm: Fix copyright to include
7190 special case for libgcc files.
7191 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
7192 (__divsi3): Likewise.
7193 (__umodsi3): Likewise.
7194 (__modsi3): Likewise.
7195 * config/xtensa/lib2funcs.S: Fix copyright to include
7196 special case for libgcc files.
7198 2002-03-12 Tom Rix <trix@redhat.com>
7200 * collect2.c (resolve_lib_name): Move outside of
7201 OBJECT_FORMAT_COFF ifdef.
7202 (ignore_library): Same.
7204 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7206 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
7208 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7210 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
7211 to function_section before writing out the constant pool.
7213 2002-03-12 David Edelsohn <edelsohn@gnu.org>
7215 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
7217 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
7219 2002-03-12 Alan Modra <amodra@bigpond.net.au>
7221 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
7225 (cmpsi splitter): Likewise.
7226 (modsi3): Fail if <= 0.
7227 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
7228 redundant test when HOST_BITS_PER_WIDE_INT != 32.
7229 (reg_or_sub_cint64_operand): Likewise.
7230 (num_insns_constant_wide): Optimize sign extension.
7231 (rs6000_legitimize_address): Likewise.
7233 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
7235 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7236 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7238 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
7240 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
7241 address calculation.
7243 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
7245 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
7246 scratch register to DImode / TImode.
7247 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
7248 register used does not overlap the target.
7250 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7252 * Makefile.in (debug.o): Depend on debug.h.
7253 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
7254 * debug.c (do_nothing_debug_hooks): Likewise.
7255 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
7256 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
7257 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
7258 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
7259 * dwarfout.c (dwarf_debug_hooks): Likewise.
7260 * integrate.c (output_inline_function): Likewise.
7261 * objc/objc-act.c (synth_module_prologue): Likewise.
7262 * sdbout.c (sdb_debug_hooks): Likewise.
7263 * toplev.c (debug_hooks): Likewise.
7264 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7266 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7268 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
7269 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
7270 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
7271 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
7272 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
7273 * defaults.h (POINTER_SIZE): Define.
7274 * doc/tm.texi (POINTER_SIZE): Document default.
7276 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7278 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
7280 2002-03-11 Richard Henderson <rth@redhat.com>
7282 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
7283 if rebuild_label_notes_after_reload.
7285 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
7287 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
7288 emit pic register load if "internal" visibility.
7289 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
7290 (cris_expand_builtin_va_arg): Do all computations on trees.
7292 2002-03-11 Richard Henderson <rth@redhat.com>
7294 * rtlanal.c: Include recog.h.
7295 (keep_with_call_p): Fix thinko.
7296 * Makefile.in (rtlanal.o): Update dependencies.
7298 2002-03-11 Chris Meyer <cmeyer@gatan.com>
7300 * genflags.c (gen_insn): Use IS_VSPACE.
7301 * genoutput.c (output_insn_data): Likewise.
7302 (process_template): Likewise.
7304 2002-03-11 Richard Henderson <rth@redhat.com>
7306 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
7308 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
7310 * Makefile.in: Update.
7311 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
7312 Update documentation.
7313 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
7314 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
7316 2002-03-11 Zack Weinberg <zack@codesourcery.com>
7318 * Makefile.in: Give texi2pod its input file as a command line
7319 argument, not on stdin.
7321 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
7322 Daniel Berlin <dan@dberlin.org>
7324 C++ alias analysis improvement.
7325 * alias.c (record_component_aliases): Record aliases for base
7328 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
7330 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
7332 2002-03-11 Douglas B Rupp <rupp@gnat.com>
7334 * toplev.c (vms_fopen): Remove, not needed.
7336 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
7338 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
7340 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
7341 for FP, already done later.
7343 * toplev.c (debug_args): Add entry for VMS_DEBUG.
7344 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
7346 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
7348 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
7349 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
7350 LARGEST_EXPONENT_IS_NORMAL for the given mode.
7351 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
7352 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
7353 (ediv, emul, eldexp, esqrt): Likewise.
7354 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
7355 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
7356 (saturate): New function.
7357 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
7358 (make_nan): Use a saturation value instead of a NaN if
7359 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
7360 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
7361 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
7362 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
7363 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
7364 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
7365 !ROUND_TOWARDS_ZERO.
7366 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
7367 (ROUND_TOWARDS_ZERO): Document.
7369 2002-03-11 Andreas Jaeger <aj@suse.de>
7371 * cfg.c (dump_flow_info): Remove unused variable.
7373 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
7375 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
7376 computations on trees.
7378 2002-03-10 Richard Henderson <rth@redhat.com>
7381 * reload.c (copy_replacements_1): New.
7382 (copy_replacements): Use it to recurse through the rtx.
7384 2002-03-10 Richard Henderson <rth@redhat.com>
7386 * loop.c (strength_reduce): Compute number of iterations as
7387 unsigned HOST_WIDE_INT.
7389 2002-03-10 Richard Henderson <rth@redhat.com>
7391 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
7392 to move away from the end of the block.
7394 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
7396 PR preprocessor/5899
7397 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
7399 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7401 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
7403 * attribs.c (decl_attributes): Fix signed/unsigned warning.
7405 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
7407 * config/mmix/mmix.c: Improve comments.
7408 (mmix_target_asm_function_prologue): Drop variable
7409 empty_stack_frame. Don't allocate unused slot above fp.
7410 (mmix_target_asm_function_epilogue): Mirror prologue changes.
7411 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
7412 brace in first column.
7413 (enum reg_class): Ditto.
7414 (FIRST_PARM_OFFSET): Now 0.
7415 (USER_LABEL_PREFIX): Remove #if 0:d definition.
7417 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7419 * combine.c (make_extraction): Fix error in last change.
7421 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7423 * c4x.c (c4x_fp_reglist): Const-ify.
7424 * cris.c (cris_print_operand): Likewise.
7425 * i386.c (ix86_va_arg): Likewise.
7426 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
7427 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
7428 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
7429 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
7430 * mcore.h (regno_reg_class): Likewise.
7431 * mips.c (gen_int_relational): Likewise.
7432 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
7433 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
7434 * pdp11.c (move_costs): Likewise.
7435 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
7436 * s390.c (s390_branch_condition_mnemonic, regclass_map):
7438 * s390.h (regclass_map): Likewise.
7439 * sh.c (shift_amounts): Likewise.
7440 * sh.md (rotlsi3): Likewise.
7442 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
7444 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
7445 (ne0+5): Use new clobber to generate proper shift pattern.
7446 Patch by Michael Matz <matz@kde.org>.
7448 2002-03-09 Andreas Schwab <schwab@suse.de>
7450 * gcc.c (validate_all_switches): Also handle `%W{...}'.
7452 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
7454 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
7456 2002-03-09 Jakub Jelinek <jakub@redhat.com>
7459 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
7460 even for non-representable constants.
7462 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7464 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
7465 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
7466 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
7467 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
7468 (pop_function_context): Compute MAY_SHARE parameter for
7470 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
7471 (gen_mem_addressof): Call fixup_var_refs with new parm.
7473 * combine.c (make_extraction): Don't make extension of CONST_INT.
7475 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
7477 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
7478 in o32 and o64 ABIs.
7479 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
7480 but getting fixed-size structs passed in registers regardless of
7481 padding in o32 and o64 ABIs.
7483 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
7484 offset before loading address of argument passed by transparent
7487 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
7489 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
7491 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
7493 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
7494 marker such that registers after it are saved.
7496 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7498 * sparc.c (arith_4096_operand): Fix error in last change.
7500 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
7502 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
7505 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
7507 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
7510 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
7512 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
7514 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
7516 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
7517 removed; fix return value.
7518 * combine.c (combine_instructions): Dirtify blocks where we failed to
7519 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
7520 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
7522 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7524 * gcse.c (insert_insn_end_bb): Fix typo in last change.
7526 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
7528 * recog.c (peephole2_optimize): Re-distribute EH edges.
7530 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
7532 * expr.c (expand_expr): Use unsave lang hook.
7533 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
7534 (LANG_HOOKS_INITIALIZER): Update.
7535 * langhooks.h (struct lang_hooks): New hook unsave.
7536 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
7537 (unsave_expr_1): Remove unused lang_unsave_expr_now.
7538 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
7539 (unsave_expr_now): Remove.
7540 * tree.h (unsave_expr_now, lang_unsave,
7541 lang_unsave_expr_now): Remove.
7544 2002-03-08 Andreas Jaeger <aj@suse.de>
7546 * flow.c (propagate_block_delete_insn): Remove unused variable.
7548 2002-03-08 Kazu Hirata <kazu@hxi.com>
7550 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
7551 insn length for memory load/store.
7553 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
7555 * doc/install.texi (--with-libiconv-prefix): Document.
7557 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
7559 * doc/sourcebuild.texi: Fix typo.
7561 2002-03-08 Jakub Jelinek <jakub@redhat.com>
7564 * builtins.c (std_expand_builtin_va_arg): Do all computations on
7567 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7569 * rtl.c (copy_most_rtx): Move from here ...
7570 * emit-rtl.c (copy_most_rtx): ... to here.
7572 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
7574 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
7575 SUBTARGET_CPP_SIZE_SPEC.
7576 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
7578 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
7580 2002-03-07 Matt Hiller <hiller@redhat.com>
7582 * gensupport.c (first_dir_md_include): Renamed from include;
7583 change all references.
7584 (last_dir_md_include): Renamed from last_include; change all
7586 (init_md_reader): Unconditionally initialize base_dir whether or
7587 not filename is a relative path.
7589 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
7591 * config/fp-bit.c (_unord_f2): Compile it in even if
7592 US_SOFTWARE_GOFAST is enabled.
7594 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
7595 NULL_RTX. Set all HFmode operations as NULL_RTX.
7596 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
7597 NULL_RTX, try reversing the comparison and the operands.
7599 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
7601 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
7602 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
7605 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
7607 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
7609 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
7611 * basic-block.h (fixup_abnormal_edges): Declare.
7612 * reload1.c (fixup_abnormal_edges): New function.
7613 * reg-stack.c (convert_regs): Use it.
7615 * gcse.c (insert_insn_end_bb): Handle trapping insns.
7617 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
7619 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
7621 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
7622 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
7623 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
7624 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
7625 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
7626 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
7627 unless x and y could be infinite.
7628 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
7629 Check that the common type of both arguments is a real, even for
7630 targets without unordered comparisons. Allow an integer argument
7631 to be compared against a real.
7632 (expand_tree_builtin): Use expand_unordered_cmp.
7633 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
7634 * cse.c (fold_rtx): Likewise. Fix indentation.
7635 * fold-const.c (fold_real_zero_addition_p): New.
7636 (fold): Use it, and the new HONOR_... macros.
7637 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
7638 * jump.c (reversed_comparison_code_parts): After searching for
7639 the true comparison mode, use HONOR_NANS to decide whether it
7640 can be safely reversed.
7641 (reverse_condition_maybe_unordered): Remove IEEE check.
7642 * simplify-rtx.c (simplify_binary_operation): Use the new macros
7643 to decide which simplifications are valid. Allow the following
7644 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
7645 and (a - -b) to (a + b).
7646 (simplify_relational_operation): Use HONOR_NANS.
7647 * doc/tm.texi: Document the MODE_HAS_... macros.
7649 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7651 * combine.c (simplify_comparison): If simplifying a logical shift
7652 right and compare with constant, force the comparison to unsigned.
7654 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
7656 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
7658 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
7660 (alt_reg_names): Remove % for vrsave.
7662 2002-03-06 Richard Henderson <rth@redhat.com>
7664 PR optimization/5844
7665 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
7666 if used indicates we've already emitted one copy of an operand.
7667 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
7668 (gen_split): Supply a non-null used.
7670 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
7672 * reload1.c (reload): Unshare all rtl after reload is done.
7674 * simplify-rtx.c (simplify_plus_minus): Do not abort,
7675 but simply fail if the expression is too complex to simplify.
7676 (simplify_gen_binary): Handle simplify_plus_minus failures.
7678 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
7680 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
7681 consistently call delete_trivially_dead_insns after CSE and GCSE;
7682 fix DFI_life dumping; do jump threading after liveness; do crossjumping
7683 after liveness2; update comment in last crossjumping.
7684 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
7686 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
7688 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
7689 after completing fast dead code elimination.
7691 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
7694 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
7696 * version.c: Fix misplaced leading blanks on first line.
7698 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
7700 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
7702 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
7704 * cfgcleanup.c (mentions_nonequal_regs): New function.
7705 (thread_jump): Use it.
7706 * toplev.c (rest_of_compilation): Run jump threading after
7709 2002-03-06 Jakub Jelinek <jakub@redhat.com>
7711 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
7714 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
7716 * predict.c (estimate_bb_frequencies): Do not reload the
7717 frequencies from notes.
7719 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
7721 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
7722 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
7724 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
7725 delete_noop_moves): Return indeger.
7726 * flow.c (ndead): New variable.
7727 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
7728 BB argument; update callers.
7729 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
7730 (life_analysis): Do not call purge_all_dead_edges.
7731 (update_life_info): Return number of deleted insns; print statistics.
7732 (update_life_info_in_dirty_blocks): likewise.
7733 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
7734 return number of insns deleted.
7736 * cse.c: Include timevar.h
7737 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
7738 iterate until stabilizes; print statistics; return number of killed
7740 * Makefile.in: (cse.o): Add timevar.h dependency
7741 * rtl.h (delete_trivially_dead_insns): New.
7742 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
7743 * toplev.c (rest_of_compilation): Update callers.
7745 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
7746 (try_optimize_cfg): Do not update liveness.
7747 (cleanup-cfg): Loop until try_optimize_cfg and dead code
7748 removal stabilizes; use delete_trivially_dead_insns.
7750 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
7752 2002-03-05 Zack Weinberg <zack@codesourcery.com>
7754 * cppmain.c (setup_callbacks): Disable #pragma and #ident
7755 callbacks when processing assembly language.
7757 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
7759 * pa.h (ASM_FILE_END): Define.
7760 * som.h (ASM_FILE_END): Delete.
7762 * pa.c (function_arg): Don't pass floats in general registers in
7763 indirect calls if TARGET_ELF32.
7765 2002-03-05 Richard Henderson <rth@redhat.com>
7767 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
7769 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
7771 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
7773 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7775 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
7776 -r command line. Don't hide any symbols if not building
7779 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
7781 * cfg.c (dump_flow_info): Warn about profile mismatches.
7782 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
7783 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
7785 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7787 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
7788 wide volatile memory by parts.
7790 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7792 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
7795 2002-03-05 Richard Henderson <rth@redhat.com>
7797 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
7799 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
7801 * toplev.c (documented_lang_options): Document more
7802 language-specific options.
7803 * doc/invoke.texi (Warning Options): Correct documentation for
7804 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
7805 * c-decl.c (c_decode_option): Use a table to handle warning options.
7807 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
7809 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
7810 parameter to mmix_encode_section_info.
7811 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
7812 relocatably. Always produce ELF, not mmo if linking relocatably.
7813 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
7814 first is non-zero, don't add symbol prefix.
7815 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
7816 prototype accordingly.
7818 2002-03-04 Krister Walfridsson <cato@df.lth.se>
7820 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
7822 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
7824 * configure.in: Increase required makeinfo version to 4.1.
7825 * configure: Regenerate.
7827 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
7829 * .cvsignore: Remove *.info* and genrtl*; these files are generated
7832 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
7834 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
7835 * doc/invoke.texi: Fix @math uses.
7837 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
7839 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
7842 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
7844 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
7845 (powerpc-*-eabisimaltivec*): Same.
7847 * config/rs6000/t-ppcendian: New.
7849 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7851 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
7852 nonimmediate_src_operand and nonimmediate_lsrc_operand to
7853 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
7855 2002-03-03 Richard Henderson <rth@redhat.com>
7857 * toplev.c (rest_of_decl_compilation): Revert last two changes.
7859 2002-03-03 Zack Weinberg <zack@codesourcery.com>
7861 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
7862 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
7863 tree.c, config/m68k/m68k.c:
7864 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
7865 REAL_ARITHMETIC blocks unconditional. Delete some further
7866 #ifdef blocks predicated on REAL_ARITHMETIC.
7867 * flags.h, toplev.c: Delete remaining references to
7870 * doc/invoke.texi: Remove documentation of -fpretend-float.
7871 * doc/tm.texi: Describe the various REAL_* macros as provided by
7872 real.h, not by the target configuration files.
7874 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
7875 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
7876 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
7877 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
7878 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
7879 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
7880 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
7881 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
7882 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
7883 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
7884 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
7885 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
7886 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
7887 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
7888 config/xtensa/xtensa.h:
7889 Do not define, undefine, or mention in comments any of
7890 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
7891 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
7892 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
7893 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
7894 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
7895 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
7896 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
7897 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
7898 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
7900 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7902 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
7903 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
7904 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
7905 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
7906 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
7907 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
7909 * defaults.h (BITS_PER_WORD): Define.
7910 * doc/tm.texi (BITS_PER_WORD): Document default value.
7912 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
7913 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
7914 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
7916 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7918 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
7919 lieu of explicit sizeof/sizeof.
7920 * i386.c (override_options, ix86_init_mmx_sse_builtins,
7921 ix86_expand_builtin): Likewise.
7922 * mips.c (mips_add_gc_roots): Likewise.
7923 * mmix.c (mmix_output_condition): Likewise.
7924 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
7925 altivec_init_builtins): Likewise.
7926 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
7927 * cppexp.c (Nsuff, parse_number): Likewise.
7928 * cppinit.c (builtin_array_end): Likewise.
7929 * gcc.c (n_default_compilers, process_command): Likewise.
7930 * genpreds.c (output_predicate_decls): Likewise.
7931 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
7932 * lcm.c (N_ENTITIES): Likewise.
7933 * stor-layout.c (set_sizetype): Likewise.
7935 2002-03-03 Richard Henderson <rth@redhat.com>
7937 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
7938 for types or labels.
7940 2002-03-03 Richard Henderson <rth@redhat.com>
7942 * c-decl.c (start_decl): Initialized variables are not common.
7944 2002-03-02 Per Bothner <per@bothner.com>
7946 * gcc.c (option_map): Suport new --bootclasspath option.
7947 --CLASSPATH is now just an alias for --classpath.
7949 2002-03-02 Richard Henderson <rth@redhat.com>
7951 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
7952 load if "internal" visibility.
7953 * doc/extend.texi: Document visibility meanings.
7955 2002-03-02 Richard Henderson <rth@redhat.com>
7957 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
7958 to functions as well.
7960 2002-03-02 Richard Henderson <rth@redhat.com>
7962 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
7963 (handle_visibility_attribute): Don't call assemble_visibility.
7964 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
7965 without asmspec. Invoke assemble_alias when needed.
7966 * varasm.c (maybe_assemble_visibility): New.
7967 (assemble_start_function, assemble_variable, assemble_alias): Use it.
7969 2002-03-02 Richard Henderson <rth@redhat.com>
7971 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
7972 invoke ENCODE_SECTION_INFO with first call flag.
7974 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
7975 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
7976 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
7977 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
7978 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
7979 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
7980 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
7981 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
7982 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
7983 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
7984 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
7985 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
7986 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
7987 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
7988 config/mcore/mcore-protos.h, config/mcore/mcore.c,
7989 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
7990 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
7991 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
7992 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
7993 config/sh/sh.h, config/sparc/sparc.h,
7994 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
7995 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
7996 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
7997 FIRST argument. As needed, examine it and do nothing.
7999 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
8000 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8001 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
8003 * config/arm/t-pe (pe.o): Add dependencies.
8005 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8007 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
8008 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
8009 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
8010 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
8011 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
8012 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
8013 * defaults.h (BITS_PER_UNIT): Define.
8014 * doc/tm.texi (BITS_PER_UNIT): Document default value.
8016 2002-03-02 Kazu Hirata <kazu@hxi.com>
8018 * config/h8300/h8300-protos.h: Add a prototype for
8019 compute_a_shift_length.
8020 * config/h8300/h8300.c (h8300_asm_insn_count): New.
8021 (compute_a_shift_length): Likewise.
8022 (h8300_adjust_insn_length): Do not adjust insn length of shift
8024 * config/h8300/h8300.md (anonymous shift patterns): Use
8025 compute_a_shift_length.
8027 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8029 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
8032 * emit-rtl.c (offset_address): Call update_temp_slot_address.
8034 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8036 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
8037 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
8038 * flags.h (flag_zero_initialized_in_bss): Declare.
8039 * toplev.c (flag_zero_initialized_in_bss): New flag.
8040 (lang_independent_options): Add flag_zero_initialized_in_bss.
8041 * tree.c (initializer_zerop): New function.
8042 * tree.h (initializer_zerop): Declare.
8043 * varasm.c (assemble_variable): If we can emit bss, put zero
8044 initializers in the bss section.
8046 2002-03-02 Alan Modra <amodra@bigpond.net.au>
8048 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
8049 like more than one symbol per .weak directive.
8051 2002-03-01 Richard Henderson <rth@redhat.com>
8053 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
8054 adjust argument_pointer by pretend_args_size.
8055 (ia64_va_start): Adjust va_start address by -pretend_args_size.
8057 2002-03-01 Kazu Hirata <kazu@hxi.com>
8059 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
8061 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
8063 * toplev.c (rest_of_compilation): Delete dead jumptables before
8065 * flow.c (delete_dead_jumptables): Make global.
8066 * rtl.h (delete_dead_jumptables): Declare.
8068 2002-03-01 David Edelsohn <edelsohn@gnu.org>
8070 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
8071 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
8072 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
8074 2002-03-01 Kazu Hirata <kazu@hxi.com>
8076 * config/h8300/h8300-protos.h: Fix formatting.
8077 * config/h8300/h8300.c: Likewise.
8078 * config/h8300/h8300.h: Likewise.
8080 2002-03-01 Kazu Hirata <kazu@hxi.com>
8082 * config/h8300/h8300.c (print_operand): Support 16-bit
8084 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
8086 2002-02-28 Richard Henderson <rth@redhat.com>
8088 * expmed.c (store_bit_field): Prevent generation of CONCATs;
8089 pun complex values as integers; use gen_lowpart instead of
8091 (extract_bit_field): Likewise.
8093 2002-03-01 Alan Modra <amodra@bigpond.net.au>
8094 David Edelsohn <edelsohn@gnu.org>
8096 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
8097 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
8098 (SUPPORTS_WEAK): Likewise.
8099 * output.h (add_weak): Add tree param.
8100 * varasm.c (add_weak): Likewise. Save decl.
8101 (struct weak_syms): Add decl field.
8102 (mark_weak_decls): New function.
8103 (init_varasm_once): ggc_add_root mark_weak_decls.
8104 (assemble_start_function): Use ASM_WEAKEN_DECL.
8105 (assemble_variable): Likewise.
8106 (assemble_alias): Likewise.
8107 (declare_weak): Pass decl to add_weak.
8108 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
8109 (remove_from_pending_weak_list): Declare and define for
8111 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
8112 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
8113 * defaults.h (SUPPORTS_WEAK): Likewise.
8114 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8115 .weak for code sym. Do emit .size for descriptor sym.
8116 (ASM_DECLARE_FUNCTION_SIZE): Define.
8117 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
8118 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
8119 .lglobl unless TARGET_XCOFF. Formatting fixes.
8120 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8122 (HANDLE_PRAGMA_WEAK): Remove.
8123 (ASM_WEAKEN_LABEL): Remove.
8124 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
8126 2002-03-01 Jason Merrill <jason@redhat.com>
8128 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
8129 (TARGET_EXPR_CLEANUP): New macro.
8131 2002-02-28 Steve Ellcey <sje@cup.hp.com>
8133 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
8134 to take ptr_extend into account as third type of extension.
8135 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
8136 fields used by SUBREG_PROMOTED_UNSIGNED_P.
8137 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
8138 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
8139 * calls.c (precompute_arguments): Use new macro.
8140 (expand_call): Ditto.
8141 * combine.c (nonzero_bits): Ditto.
8142 (record_promoted_value): Ditto.
8143 * expr.c (store_expr): Ditto.
8144 (expand_expr): Ditto.
8145 * function.c (assign_parms): Ditto.
8147 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
8149 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
8150 override -shared and -shared-libgcc.
8152 2002-02-28 David O'Brien <obrien@FreeBSD.org>
8154 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
8156 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
8159 2002-02-28 Richard Henderson <rth@redhat.com>
8161 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
8162 4 cycle latency from MM producers.
8163 (ia64_internal_sched_reorder): Likewise with pipeline flush.
8165 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8167 * mklibgcc.in: Don't use GNU make extension.
8169 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
8171 * c-parse.in (STATIC): New terminal.
8172 (scspec): New non-terminal. Update productions accordingly.
8173 (program): Remove bogus ifc / end ifc.
8174 (array_declarator): Simplify production using STATIC.
8176 2002-02-28 Jim Meyering <meyering@lucent.com>
8178 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
8179 \a still means TARGET_BELL.
8181 2002-02-28 Richard Henderson <rth@redhat.com>
8183 * haifa-sched.c (sched_emit_insn): New.
8184 (schedule_block): Use last_scheduled_insn to track last insn.
8185 * sched-int.h (sched_emit_insn): Prototype.
8186 * config/ia64/ia64.c (last_issued): Remove.
8187 (ia64_variable_issue): Don't set it.
8188 (nop_cycles_until): Use sched_emit_insn.
8190 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
8192 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
8195 2002-02-28 Kazu Hirata <kazu@hxi.com>
8197 * config/h8300/h8300.c: Fix formatting.
8198 * config/h8300/h8300.h: Likewise.
8200 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
8202 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
8203 which may overwrite the high byte of the frame pointer.
8205 2002-02-28 Bo Thorsen <bo@suse.de>
8207 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
8208 (STARTFILE_SPEC): Add 64 bit files.
8209 (ENDFILE_SPEC): Likewise.
8211 2002-02-28 Jason Merrill <jason@redhat.com>
8213 * c-decl.c (finish_function): Only warn about missing return
8214 statement with -Wreturn-type.
8216 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
8218 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
8220 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
8221 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
8223 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
8225 * basic-block.h (BB_REACHABLE): Renumber.
8226 (BB_DIRTY, BB_NEW): New flags.
8227 (clear_bb_flags): Declare.
8228 (update_life_info_in_dirty_blocks): Declare.
8229 * cfg.c (clear_bb_flags): New function.
8230 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
8231 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
8232 reorder_insns, emit_insn_after): Mark block as dirty.
8233 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
8234 (update_life_info_in_dirty_blocks): New function.
8235 * recog.c (apply_change_group): Dirtify block.
8237 * cse.c (cse_insn): Reorder emitting of jump insn to keep
8239 * gcse.c (delete_null_pointer_checks): Likewise.
8241 * toplev.c (dump_file_index): Move cse2 after bp,
8243 (dump_file_info): Similary.
8244 (rest_of_compilation): Avoid most of CFG rebuilds;
8245 do first if converision after null pointer checks, do cse2
8246 after branch prediction; avoid full liveness rebuild after
8247 initializing subregs.
8248 * invoke.texi (-d options): Document -du, renumber.
8250 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
8251 (notice_new_block): Do not set BB_UPDATE_LIFE.
8252 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
8253 merge_blocks_move_successor_nojumps, merge_blocks,
8254 try_crossjump_to_edge): Likewise.
8255 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
8256 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
8257 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
8258 (merge_of_block): Do not use life_data_ok.
8259 (find_if_case_1): Do not use SET_UPDATE_LIFE.
8260 (if_convert): Use BB_DIRTY mechanizm to update life.
8261 * lcm.c (optimize_mode_switching): Update
8262 update_life_info_in_dirty_blocks
8264 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
8266 * Makefile.in (integrate.o): Update.
8267 * c-decl.c (copy_lang_decl): Rename.
8268 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8269 * integrate.c: Include langhooks.h.
8270 (copy_decl_for_inlining): Update to use langhook.
8271 * langhooks-def.h (lhd_do_nothing_t,
8272 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
8273 (LANG_HOOKS_INITIALIZER): Update.
8274 * langhooks.c (lhd_do_nothing_t): New.
8275 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
8276 * tree.h (copy_lang_decl): Remove.
8278 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8280 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
8282 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
8283 POST_DEC, and POST_MODIFY.
8285 2002-02-27 Zack Weinberg <zack@codesourcery.com>
8287 * c-typeck.c (digest_init): Remove unused parameter; all
8290 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
8292 * expmed.c (expand_shift): Correctly test for low part of a
8295 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
8297 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
8298 insn UIDs with insn addresses.
8300 2002-02-27 Zack Weinberg <zack@codesourcery.com>
8302 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
8303 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
8304 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
8305 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
8306 gcc.c, toplev.c: Delete code implementing -traditional mode.
8308 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
8309 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
8310 Document removal of -traditional mode for compilation, and
8311 remove documentation only relevant to that mode.
8313 * config/nextstep.h, config/ptx4.h, config/svr4.h,
8314 config/convex/convex.h, config/d30v/d30v.h,
8315 config/i386/dgux.h, config/i386/osf1elf.h,
8316 config/i386/osfelf.h, config/i386/osfrose.h,
8317 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
8318 config/m68k/hp310.h, config/m88k/dgux.h,
8319 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
8320 config/m88k/m88k.h, config/m88k/openbsd.h,
8321 config/mips/abi64.h, config/mips/osfrose.h,
8322 config/mips/svr4-5.h, config/mips/svr4-t.h,
8323 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8324 config/stormy16/stormy16.h: Remove all references to
8325 -traditional from target specs. Delete all mention of the
8326 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
8327 delete a couple of commented-out definitions of
8328 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
8331 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
8332 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
8334 2002-02-27 Zack Weinberg <zack@codesourcery.com>
8336 * mklibgcc.in: Don't use \n in a line subject to
8337 interpretation by echo.
8339 2002-02-27 Graham Stott <grahams@redhat.com>
8341 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
8344 * loop.c (prescan_loop): Handle PARALLEL.
8346 * unroll.c (loop_iterations): Return 0 if the add_val for
8349 * final.c (output_operand_lossage): Constify PFX_STR.
8351 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
8353 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
8355 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
8356 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
8358 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
8360 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8362 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
8364 * cpplex.c (_cpp_lex_token): Handle directives in macro
8366 * cpplib.c (_cpp_handle_directive): Save and restore state
8367 if parsing macro args when entering a directive.
8368 * cppmacro.c (collect_args): No need to handle directives
8370 (enter_macro_context, replace_args): Use the original macro
8371 definition in case it was redefined whilst collecting arguments.
8375 2002-02-26 David Edelsohn <edelsohn@gnu.org>
8377 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
8378 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
8379 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
8381 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
8382 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
8383 (load_toc_v4_PIC_2): Same.
8385 2002-02-26 Alan Modra <amodra@bigpond.net.au>
8387 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
8389 2002-02-26 Richard Henderson <rth@redhat.com>
8391 * config/alpha/alpha.md (ashldi_se): Re-enable.
8393 2002-02-26 Richard Henderson <rth@redhat.com>
8395 * config/alpha/alpha.c (alpha_encode_section_info): Examine
8396 MODULE_LOCAL_P; improve commentary.
8398 2002-02-26 Zack Weinberg <zack@codesourcery.com>
8400 * doc/cpp.texi: Clarify documentation of relationship between
8403 2002-02-26 Kazu Hirata <kazu@hxi.com>
8405 * config/h8300/h8300-protos.h: Update the prototype for
8406 compute_logical_op_length. Add the prototype for
8407 compute_logical_op_cc.
8408 * config/h8300/h8300.c (compute_logical_op_length): Figure out
8410 (compute_logical_op_cc): New.
8411 * config/h8300/h8300.md: Combine all the logical op patterns
8412 in HImode and SImode. Use compute_logical_op_cc.
8414 2002-02-26 Kelley Cook <kelleycook@comcast.net>
8416 * config/i386/i386.c (print_operand): Don't append ATT-style
8417 length suffixs to x87 opcodes when in Intel mode.
8419 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
8421 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
8422 (init_emit_once): Update calls.
8423 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
8424 (init_syntax_once): Prototype.
8426 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
8428 * pa-linux.h (LIB_SPEC): Update definition.
8429 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8431 2002-02-26 Richard Henderson <rth@redhat.com>
8433 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
8434 if we emitted a stop bit.
8436 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8438 * configure.in (libgcc_visibility): Substitute.
8439 * configure: Rebuilt.
8440 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
8441 defined symbols .hidden.
8443 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8445 * attribs.c (c_common_attribute_table): Add visibility.
8446 (handle_visibility_attribute): New function.
8447 * varasm.c (assemble_visibility): New function.
8448 * output.h (assemble_visibility): Add prototype.
8449 * tree.h (MODULE_LOCAL_P): Define.
8450 * crtstuff.c (__dso_handle): Use visibility attribute.
8451 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
8452 for MODULE_LOCAL_P symbols too.
8453 * config/ia64/ia64.c (ia64_encode_section_info): Handle
8454 MODULE_LOCAL_P symbols the same way as local symbols.
8455 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
8456 into .sdata/.sbss by the user.
8457 * doc/extend.texi (Function Attributes): Document visibility
8460 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8463 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
8464 STRING_CST initializer spanning the whole variable without
8466 If expand_expr returned MEM, don't use it.
8468 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
8470 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
8471 generate a die for the lexical block.
8473 2002-02-26 Kazu Hirata <kazu@hxi.com>
8475 * config/h8300/h8300-protos.h: Add a prototype for
8476 compute_logical_op_length.
8477 * config/h8300/h8300.c (compute_logical_op_length): New.
8478 * config/h8300/h8300.md (anonymous logical patterns): Use
8479 compute_logical_op_length for length.
8481 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8483 * dwarf2out.c (modified_type_die): Do not call type_main_variant
8485 (gen_type_die): Same.
8487 * attribs.c (handle_vector_size_attribute): Set debug information.
8489 2002-02-26 Daniel Egger <degger@fhm.edu>
8491 * config/rs6000/rs6000.md: Swap define_insn attributes to
8492 fix incorrect generation of merge high instructions instead
8495 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8497 * c-typeck.c (really_start_incremental_init): Use
8498 bitsize_zero_node for vectors.
8500 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8502 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
8503 ("*set_vrsave_internal"): Same.
8505 2002-02-25 Richard Henderson <rth@redhat.com>
8507 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
8508 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
8510 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8513 * config/i386/i386.c (ix86_return_pops_args): Only pop
8514 fake structure return argument if it was passed on the stack.
8516 2002-02-25 Jason Merrill <jason@redhat.com>
8518 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
8521 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
8523 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
8524 link with shared_name only.
8525 * doc/invoke.texi (Link Options): Document new behavior.
8527 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
8529 * c-typeck.c (push_init_level): Handle vectors.
8531 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
8533 * config/sparc/sparc.c (const64_high_operand): Zero-extend
8534 operands of SPARC_SETHI_P.
8535 (input_operand): Likewise.
8536 (sparc_emit_set_const32): Likewise.
8537 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
8538 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
8539 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
8540 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
8541 (movdi_insn_sp64_vis): Likewise.
8542 (movdi split, movdf split): Use SETHI32.
8543 * doc/md.texi: Document SPARC constraints L, M and N.
8545 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
8547 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
8548 ("*set_vrsave_internal"): use mfspr for Darwin.
8550 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
8551 gen_get_vrsave_internal.
8553 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8555 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
8557 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
8559 * cpplex.c (cpp_interpret_charconst): Get signedness or
8560 otherwise of wide character constants correct.
8561 * cppexp.c (lex): Get signedness of wide charconsts correct.
8563 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8565 * optabs.c (widen_operand): Only call convert_modes for
8566 promoted SUBREG if signedness matches.
8567 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
8569 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8571 * cpplib.c (glue_header_name): Use local buffer to build up
8574 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8576 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
8578 2002-02-23 Kazu Hirata <kazu@hxi.com>
8580 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
8581 H8/300[HS] separately.
8582 * config/h8300/h8300.md: Remove the early clobber constraint
8583 from bit field patterns.
8585 2002-02-23 Kazu Hirata <kazu@hxi.com>
8587 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
8589 (mulhisi3): Likewise.
8590 (umulqisi3): Likewise.
8591 (umulhisi3): Likewise.
8593 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8595 * cppinit.c (output_deps): Correct test for stdout output.
8596 (init_dependency_output): Cure warning.
8598 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8600 * expr.c (store_expr): When converting expression to promoted
8601 equivalent type, allow using SUBREG_REG of TARGET as the target
8602 of the expansion of EXP.
8603 * loop.c (basic_induction_var, case SUBREG): Always look inside.
8604 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
8605 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
8606 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
8607 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
8609 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
8611 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
8612 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
8613 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
8615 2002-02-23 Jakub Jelinek <jakub@redhat.com>
8617 PR optimization/5747
8618 * loop.c (scan_loop): Update reg info if move_movables created new
8621 2002-02-23 David Edelsohn <edelsohn@gnu.org>
8623 * gcc.c (init_gcc_spec): Revert last change.
8625 2002-02-23 David Edelsohn <edelsohn@gnu.org>
8627 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
8628 gpc_reg_operand constraint.
8630 2002-02-23 Alan Modra <amodra@bigpond.net.au>
8632 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
8633 Simplify comparison of `low'.
8634 (add_operand): Fix formatting.
8635 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
8636 (mask_operand): Disallow mask to wrap in 64-bit mode.
8637 (rs6000_stack_info): Remove redundant test setting push_p.
8638 (output_toc): Fix formatting.
8639 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
8640 cc_reg_not_cr0_operand constraint.
8641 (booldi3, boolcdi3 splitters): Same.
8643 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
8645 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
8647 2002-02-22 David Edelsohn <edelsohn@gnu.org>
8649 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
8650 gcc invoked with -shared-libgcc.
8652 2002-02-22 Jakub Jelinek <jakub@redhat.com>
8655 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
8656 decl if any of elements was TREE_USED.
8658 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
8660 * config/sparc/sol2.h: Don't include sys/mman.h.
8661 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
8662 (arith_4096_operand): Don't throw high bits away.
8663 (const64_operand): Take sign extension of CONST_INTs into account.
8664 (const64_high_operand, sparc_emit_set_const32): Likewise.
8665 (GEN_HIGHINT64): Likewise.
8666 (sparc_emit_set_const64_quick1): Likewise.
8667 (const64_is_2insns): Likewise.
8668 (print_operand): Use trunc_int_for_mode for sign extension.
8669 * config/sparc/sparc.h (SMALL_INT32): Likewise.
8670 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
8671 chars. Assume CONST_INT is already properly sign-extended.
8672 (movdi split): Sign-extend each SImode part.
8673 (andsi3 split): Don't mask high bits off, so that result
8674 remains properly sign-extend.
8675 (iorsi3 split): Likewise.
8676 (xorsi3 split): Likewise.
8678 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
8680 * fold-const.c (fold): Fix typo in comments.
8682 2002-02-21 Diego Novillo <dnovillo@redhat.com>
8684 * Makefile.in (langhooks.o): Update dependencies.
8686 2002-02-21 Diego Novillo <dnovillo@redhat.com>
8688 * langhooks.c: Include flags.h.
8690 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
8692 * testsuite/gcc.dg/attr-alwaysinline.c: New.
8694 * c-common.c (c_common_post_options): Set inline trees by
8697 * doc/extend.texi (Function Attributes): Document always_inline
8699 Update documentation about inlining when not optimizing.
8701 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
8703 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
8704 unless DECL_ALWAYS_INLINE.
8706 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
8707 unless DECL_ALWAYS_INLINE.
8708 (c_disregard_inline_limits): Disregard if always_inline set.
8710 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
8711 Disregard if always_inline set.
8712 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
8713 unless DECL_ALWAYS_INLINE.
8715 * attribs.c (handle_always_inline_attribute): New.
8716 (c_common_attribute_table): Add always_inline.
8718 * config/rs6000/altivec.h: Add prototypes for builtins
8719 requiring the always_inline attribute.
8721 2002-02-21 Eric Christopher <echristo@redhat.com>
8723 * expmed.c (store_bit_field): Try to simplify the subreg
8724 before generating a new one when when the mode size of
8725 value is less than maxmode.
8727 2002-02-21 Richard Henderson <rth@redhat.com>
8729 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
8730 than gen_rtx_PLUS to form the sum.
8731 * explow.c (force_reg): Rearrange to not allocate new pseudo
8732 when force_operand returns a register.
8733 * expr.c (expand_assignment): Allow offset_rtx expansion to
8734 return a sum. Do not force addresses into registers.
8735 (expand_expr): Likewise.
8736 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
8737 to canonicalize arithmetic that didn't simpify.
8738 (simplify_plus_minus): New argument force; update
8739 all callers. Don't split CONST unless we can do something with it,
8740 and wouldn't lose the constness of the operands.
8742 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
8743 that we generated earlier.
8745 2002-02-21 Tom Tromey <tromey@redhat.com>
8747 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8748 (output_line_info): Use constant `1', with a long explanatory
8750 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
8752 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
8754 * jump.c (redirect_jump): If old label has no UID, don't try to
8757 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
8759 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
8760 If input is constant, do shifts at compile time.
8762 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
8764 * doc/extend.texi: Fix some more overfull hboxes.
8766 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8768 PR optimization/4994
8769 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
8772 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8775 * expr.h (expand_and): Add mode argument.
8776 * expmed.c (expand_and): Add mode argument.
8777 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
8778 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
8779 * except.c (expand_builtin_extract_return_addr): Likewise.
8780 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
8781 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
8782 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
8783 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
8784 * config/c4x/c4x.md: Use GEN_INT (x) instead of
8785 gen_rtx (CONST_INT, VOIDmode, x).
8787 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8790 * stmt.c (warn_if_unused_value): Move side effects test once more.
8792 2002-02-20 Torbjorn Granlund <tege@swox.com>
8794 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
8795 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
8797 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
8799 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
8800 SUBREG or ZERO_EXTEND.
8802 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
8804 * sh.h (current_function_anonymous_args): Remove.
8805 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
8806 of current_function_varargs and current_function_stdarg is set.
8807 * sh.c (sh_expand_prologue): Check current_function_varargs /
8808 current_function_stdarg / TARGET_SH5 instead of
8809 current_function_anonymous_args.
8811 * sh64.h (TARGET_VERSION): Define.
8813 2002-02-20 David Edelsohn <edelsohn@gnu.org>
8815 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
8816 VRSAVE_REGNO on TARGET_ALTIVEC.
8818 2002-02-20 Alan Modra <amodra@bigpond.net.au>
8820 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
8821 bits of SImode const_int.
8822 (includes_rshift_p): Likewise.
8823 (print_operand): Call mask_operand and mask64_operand with correct
8825 (rs6000_output_function_epilogue): Pad traceback table to word.
8826 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
8827 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
8828 mask64_operand with correct mode.
8829 (FUNCTION_ARG_REGNO_P): Correct parentheses.
8831 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8834 * varasm.c (get_pool_constant_mark): New.
8835 * rtl.h (get_pool_constant_mark): Add prototype.
8836 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
8837 be represented if it has not been output.
8839 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
8841 * combine.c (do_SUBST): Sanity check substitutions of
8842 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
8843 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
8844 CONST_INT into its operand.
8845 (known_cond): Likewise, for ZERO_EXTEND.
8846 * simplify-rtx.c (simplify_unary_operation): Fix condition to
8847 allow for simplification of wide modes. Reject CONST_INTs in
8848 ZERO_EXTEND when their actual mode is not given.
8850 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
8852 * c-decl.c (pushdecl): If no global declaration is found for an
8853 extern declaration in block scope, try a limbo one.
8855 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8858 * c-common.c (pointer_int_sum): Moved from...
8859 * c-typeck.c (pointer_int_sum): ...here.
8860 * c-common.h (pointer_int_sum): Add prototype.
8862 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8865 * c-decl.c (duplicate_decls): Return 0 if issued error about
8868 2002-02-20 Roger Sayle <roger@eyesopen.com>
8869 Jakub Jelinek <jakub@redhat.com>
8872 * tree.c (host_integerp): Ensure that the constant integer is
8873 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
8874 when pos is zero or non-zero respectively. Clarify comment.
8875 * c-format.c (check_format_info_recurse): Fix host_integerp
8876 usage; the pos argument should be zero when assigning to a
8877 signed HOST_WIDE_INT.
8879 2002-02-20 Richard Henderson <rth@redhat.com>
8881 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
8882 of the operand, rather than assuming TImode.
8883 (ix86_expand_binop_builtin): Cope with commutative patterns
8884 using nonimmediate_operand for both operands.
8885 (ix86_expand_timode_binop_builtin): Likewise.
8886 (ix86_expand_store_builtin): Validate operand 1.
8887 (ix86_expand_unop1_builtin): Likewise.
8889 2002-02-20 Philip Blundell <philb@gnu.org>
8892 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
8894 2002-02-20 Richard Henderson <rth@redhat.com>
8897 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
8899 2002-02-20 Tom Tromey <tromey@redhat.com>
8901 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8902 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8903 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8904 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8905 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
8908 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
8910 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
8911 for (const_int 0) in X not just INTVAL.
8913 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
8915 * doc/extend.texi: Avoid or reduce overfull hboxes.
8917 2002-02-20 Diego Novillo <dnovillo@redhat.com>
8919 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
8920 operations if the field does not start at a mode boundary.
8922 2001-02-20 Joel Sherrill <joel@OARcorp.com>
8924 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
8925 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
8926 Also done for -Acpu and -Amachine.
8928 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
8930 * cppinit.c (init_dependency_output): Take deps output file
8931 from -o if none given with -MF. Suppress normal output.
8932 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
8933 * doc/cpp.texi, doc/invoke.texi: Update.
8935 2002-02-19 Zack Weinberg <zack@codesourcery.com>
8937 * toplev.c (output_quoted_string): Write unprintable
8938 characters with octal escapes.
8940 2002-02-19 David Edelsohn <edelsohn@gnu.org>
8942 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
8943 really_call_used[VRSAVE_REGNO] if not Altivec.
8945 2002-02-19 Alan Modra <amodra@bigpond.net.au>
8947 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
8949 (constant_pool_expr_1): Fix formatting.
8950 (rs6000_legitimize_reload_address): Likewise.
8952 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8954 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
8955 now that we have one.
8957 2002-02-19 Zack Weinberg <zack@codesourcery.com>
8959 * tree.h (struct tree_common): Remove aux. Add unused_0 at
8960 end of first block of bitfields (which was only seven bits);
8961 rename dummy to unused_1; remove comment which is no longer true.
8963 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
8965 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
8967 2002-02-19 Philip Blundell <pb@nexus.co.uk>
8970 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
8974 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
8975 arm_is_longcall_p rather than inspecting call-type cookie
8977 (call_value_insn) [TARGET_THUMB]: Likewise.
8979 2002-02-19 Graham Stott <grahams@redhat.com>
8981 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
8983 2002-02-19 David Edelsohn <edelsohn@gnu.org>
8985 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
8986 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
8987 (FP_SAVE_INLINE): Delete.
8989 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
8990 * config/rs6000/eabi.asm: Remove ABI save restore routines.
8991 * config/rs6000/t-ppccomm: Build crtsavres.o.
8992 * config/rs6000/crtsavres.asm: New file.
8994 2002-02-19 Philip Blundell <philb@gnu.org>
8996 * config/arm/arm.c (use_return_insn): Don't reject interrupt
8998 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
8999 (output_return_instruction): Allow interrupt functions to return with
9000 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
9001 (arm_expand_prologue): Subtract 4 before stacking LR in an
9004 2002-02-19 Philip Blundell <pb@nexus.co.uk>
9006 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
9007 decl, not just FUNCTION_DECL.
9008 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
9009 (arm_assemble_integer): Likewise.
9010 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
9013 2002-02-19 matthew green <mrg@eterna.com.au>
9015 * config.gcc (sparc-*-netbsdelf*): Enable target.
9016 (sparc64-*-netbsd*): New target.
9017 * config/sparc/netbsd-elf.h: New file.
9018 * config/sparc/t-netbsd64: New file.
9020 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
9022 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
9024 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
9026 * doc/invoke.texi: explicitly list the style guidelines that
9027 -Weffc++ checks for.
9029 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
9031 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
9033 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
9036 * gcc.c (cpp_unique_options): Treat -o as indicating object file
9037 only if not -E. If -E, pass -o through to the preprocessor.
9039 2002-02-19 Kazu Hirata <kazu@hxi.com>
9041 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
9042 register number with an appropriate macro.
9044 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
9046 * doc/rtl.texi (Constants): Close @code tag.
9048 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
9050 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
9051 ("mmx_uavgv4hi3"): Same.
9052 ("pmulhrwv4hi3"): Same.
9054 * tree-inline.c (walk_tree): Handle vectors.
9056 * c-common.c (constant_expression_warning): Handle vectors.
9057 (overflow_warning): Same.
9059 * sched-deps.c (sched_analyze_2): Handle vectors.
9061 * rtlanal.c (rtx_unstable_p): Handle vectors.
9062 (rtx_varies_p): Same.
9063 (count_occurrences): Same.
9064 (regs_set_between_p): Same.
9065 (modified_between_p): Same.
9066 (modified_in_p): Same.
9067 (volatile_insn_p): Same.
9068 (volatile_refs_p): Same.
9069 (side_effects_p): Same.
9071 (inequality_comparisons_p): Same.
9072 (replace_regs): Same.
9073 (computed_jump_p_1): Same.
9075 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
9077 (inner_mode_array): New.
9078 (copy_rtx): Handle vectors.
9079 (copy_most_rtx): Same.
9080 (rtx_equal_p): Same.
9081 (get_mode_alignment): Adjust for vectors.
9083 * resource.c (mark_referenced_resources): Handle vectors.
9084 (mark_set_resources): Same.
9086 * reload1.c (eliminate_regs): Handle vectors.
9087 (elimination_effects): Same.
9088 (scan_paradoxical_subregs): Same.
9090 * reload.c (subst_reg_equivs): Handle vectors.
9092 * regrename.c (scan_rtx): Handle vectors.
9094 * regclass.c (reg_scan_mark_refs): Handle vectors.
9096 * recog.c (find_single_use_1): Handle vectors.
9098 * local-alloc.c (equiv_init_varies_p): Handle vectors.
9099 (contains_replace_regs): Same.
9100 (memref_referenced_p): Same.
9102 * integrate.c (copy_rtx_and_substitute): Handle vectors.
9103 (subst_constants): Same.
9105 * genattrtab.c (attr_copy_rtx): Handle vectors.
9106 (encode_units_mask): Same.
9107 (clear_struct_flag): Same.
9108 (count_sub_rtxs): Same.
9110 * gcse.c (want_to_gcse_p): Handle vectors.
9111 (oprs_unchanged_p): Same.
9112 (hash_expr_1): Same.
9113 (oprs_not_set_p): Same.
9114 (expr_killed_p): Same.
9115 (compute_transp): Same.
9116 (store_ops_ok): Same.
9118 * function.c (purge_addressof_1): Do not allow paradoxical subregs
9120 (fixup_var_refs_1): Same.
9121 (instantiate_virtual_regs_1): Same.
9123 * fold-const.c (operand_equal_p): Handle vectors.
9125 (rtl_expr_nonnegative_p): Same.
9127 * flow.c (mark_used_regs): Handle vectors.
9129 * df.c (df_uses_record): Handle vectors.
9131 * cselib.c (cselib_subst_to_values): Handle vectors.
9132 (cselib_mem_conflict_p): Same.
9135 * cse.c (canon_reg): Handle vectors.
9137 (cse_process_notes): Same.
9138 (count_reg_usage): Same.
9141 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
9143 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
9145 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
9146 (gen_rtx): Handle CONST_VECTOR.
9147 (gen_const_vector_0): New.
9148 (copy_rtx_if_shared): CONST_VECTORs can be shared.
9149 (reset_used_flags): Same.
9150 (copy_insn_1): Same.
9151 (initializer_constant_valid_p): Handle VECTOR_CST.
9153 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
9155 * doc/rtl.texi (Constants): Document const_vector.
9156 (CONST0_RTX): Update for vectors.
9157 (RTL sharing): Same.
9159 * print-tree.c (print_node): Add case for VECTOR_CST.
9161 * tree.h (TREE_VECTOR_CST_ELTS): New.
9162 (struct tree_vector): New.
9163 (union tree_node): Add vector node.
9164 (build_vector): Add prototype.
9166 * tree.def (VECTOR_CST): New.
9168 * tree.c (build_vector): New.
9170 * expmed.c (make_tree): Handle CONST_VECTOR.
9172 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
9173 (CONST_VECTOR_ELT): New.
9174 (CONST_VECTOR_NUNITS): New.
9176 * machmode.h (GET_MODE_INNER): New.
9177 (DEF_MACHMODE): Accept 8th arg.
9179 * machmode.def: Add 8th argument for vector inner mode.
9180 Add inner vector modes for vectors.
9182 * rtl.def (VEC_CONST): Remove.
9183 (CONST_VECTOR): New.
9185 * expr.c (clear_storage): Allow vectors.
9186 (is_zeros_p): Handle VECTOR_CST.
9188 * varasm.c (output_constant_pool): Handle vectors.
9189 (rtx_const): Add veclo and vechi fields.
9190 (kind): Add RTX_VECTOR.
9191 (decode_rtx_const): Add case for vector.
9193 * config/rs6000/rs6000-protos.h: Add zero_constant.
9195 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
9196 constants. Force easy vector constants into memory.
9197 (easy_vector_constant): New.
9198 (emit_easy_vector_constant): New.
9199 (rs6000_legitimize_reload_address): Do not generate bad reloads on
9202 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
9204 ("altivec_lvxl"): Same.
9205 (altivec_lvebx): Same.
9206 (altivec_lvehx): Same.
9207 (altivec_lvewx): Same.
9208 ("*movv4si_const0"): New.
9209 ("*movv4sf_const0"): New.
9210 ("*movv8hi_const0"): New.
9211 ("*movv16qi_const0"): New.
9213 2002-02-18 Kazu Hirata <kazu@hxi.com>
9215 * config/h8300/h8300.c (notice_update_cc): Use
9218 2002-02-18 Kazu Hirata <kazu@hxi.com>
9220 * config/h8300/h8300.md (divmod patterns): Change the
9221 constraints for operands[1] to register_operand.
9223 2002-02-18 Kazu Hirata <kazu@hxi.com>
9225 * config/h8300/h8300-protos.h: Remove the prototype for
9227 * config/h8300/h8300.c (p_operand): Remove.
9228 * config/h8300/h8300.md: Replace p_operand with
9231 2002-02-18 Philip Blundell <pb@nexus.co.uk>
9233 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
9235 (output_return_instruction): Allow use of LDR to unstack
9236 return addresss even for interrupt handlers or when
9237 interworking. If compiling for ARMv5, use interworking-safe
9238 return instructions by default. Remove duplicated code and
9239 lengthy "strcat" sequences.
9241 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9243 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
9244 (LINK_EH_SPEC): Define.
9245 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
9247 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
9249 * config/s390/s390.c (s390_emit_prologue): Do not set the
9250 frame_related flag for call-clobbered registers.
9252 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
9254 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
9255 (construct_container): Fix handling of SSE operands.
9256 (ix86_expand_builtin): Fix handling of 64bit pointers.
9257 (mmx_maskmovq_rex): New pattern.
9259 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
9261 * regrename.c (kill_set_value): Handle subregs properly.
9263 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
9265 * objc/objc-act.c (handle_impent): Remove leading '*'
9266 from objc_class_name.
9268 2002-02-17 Richard Henderson <rth@redhat.com>
9270 * config/alpha/alpha.c (some_small_symbolic_operand,
9271 some_small_symbolic_operand_1, split_small_symbolic_operand,
9272 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
9273 Handle small SYMBOL_REFs anywhere, not just inside memories.
9274 * config/alpha/alpha-protos.h: Update.
9275 * config/alpha/alpha.h (PREDICATE_CODES): Update.
9276 * config/alpha/alpha.md (small symbolic operand splitter): Update.
9278 2002-02-17 Roland McGrath <roland@frob.com>
9280 * config.gcc (powerpc-*-gnu-gnualtivec*,
9281 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
9282 * config/rs6000/gnu.h: New file.
9283 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
9284 Grok "gnu" in rs6000_abi_name.
9285 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
9286 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
9287 Grok -mcall-gnu analogous to -mcall-linux et al.
9288 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9289 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
9290 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
9292 2002-02-17 Jakub Jelinek <jakub@redhat.com>
9295 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
9298 2002-02-17 Philipp Thomas <pthomas@suse.de>
9300 * config/cris/cris.h: Undefine STARTFILE_SPEC and
9301 ENDFILE_SPEC before (re)defining them.
9303 2002-02-17 Kazu Hirata <kazu@hxi.com>
9305 * config/h8300/h8300.c: Fix formatting.
9306 * config/h8300/h8300.h: Likewise.
9308 2002-02-17 Philipp Thomas <pthomas@suse.de>
9310 * doc/tm.texi: Explain why empty strings should not be
9311 marked for translation.
9313 2002-02-17 Philipp Thomas <pthomas@suse.de>
9315 * final.c (output_operand_lossage): Changed to accept
9316 printf style arguments. Change calls where necessary.
9317 * output.h (output_operand_lossage): Change declaration
9318 accordingly. Update copyright.
9319 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
9320 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
9321 Update copyright date where necessary.
9323 * config/i386/i386.c (print_operand): Likewise. Remove use of
9326 * config/cris/cris.c (cris_operand_lossage): Likewise.
9327 Rename parameter so that exgettext recognizes it as
9328 translatable message.
9329 (LOSE_AND_RETURN): Rename parameter to msgid.
9331 2002-02-17 Kazu Hirata <kazu@hxi.com>
9333 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
9334 hard coded register number with an appropriate macro.
9335 (HARD_REGNO_MODE_OK): Likewise.
9336 (ARG_POINTER_REGNUM): Likewise.
9337 (STATIC_CHAIN_REGNUM): Likewise.
9338 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
9339 * config/h8300/h8300.md (define_constants): Define more
9342 2002-02-17 Philipp Thomas <pthomas@suse.de>
9344 * config/i386/i386.h: Don't mark empty strings for translation.
9346 2002-02-16 H.J. Lu <hjl@gnu.org>
9348 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
9350 2002-02-16 Zack Weinberg <zack@codesourcery.com>
9352 * cppinit.c (merge_include_chains): Check for brack being
9353 NULL before attempting to merge it with qtail.
9355 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9357 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
9360 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
9362 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
9364 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
9366 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
9367 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
9368 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
9370 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9372 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
9373 now only if !TARGET_FIX.
9374 (*movsi_nt_vms_fix): New pattern.
9376 2002-02-16 Douglas B Rupp <rupp@gnat.com>
9378 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
9379 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
9380 (alpha_sa_mask, alpha_sa_size): Reflect above change.
9381 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
9382 (alpha_start_function, alpha_expand_epilogue): Likewise.
9383 (unicosmk_gen_dsib): Likewise.
9385 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9387 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
9389 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
9391 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
9392 check_and_change_labels, s390_final_chunkify): Delete.
9393 (s390_split_branches, s390_chunkify_pool): New functions.
9394 (s390_function_prologue): Call them.
9396 * config/s390/s390.h (S390_REL_MAX): Delete.
9397 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
9399 * config/s390/s390.md (cjump, icjump, jump): Fix length
9400 attribute calculation.
9403 2002-02-15 David Edelsohn <edelsohn@gnu.org>
9405 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
9406 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
9408 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
9410 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
9411 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
9412 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
9414 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
9416 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
9418 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
9420 * reload.c (find_dummy_reload): Check that an output register
9421 is valid for its mode.
9423 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
9425 * combine.c (known_cond): After replacing the REG of a SUBREG, try
9428 * function.c (assign_parms): Demote promoted argument passed by
9429 transparent reference.
9431 2001-02-14 Joel Sherrill <joel@OARcorp.com>
9433 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
9434 -Acpu() and -Amachine() to eliminate warnings.
9436 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
9438 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
9440 2002-02-14 Kazu Hirata <kazu@hxi.com>
9442 * config/h8300/h8300-protos.h: Update the prototype for
9444 * config/h8300/h8300.c (const_costs): Treat SET as a little
9445 more expensive operation.
9446 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
9447 reference to const_costs.
9449 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
9451 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
9453 2002-02-14 Jakub Jelinek <jakub@redhat.com>
9456 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
9457 use arguments from newtype.
9459 2002-02-13 Eric Christopher <echristo@redhat.com>
9461 * config/mips/mips.c (override_options): Add check for march/mipsX
9462 on the same command line. Fix error message in cpu processing.
9463 Remove architecture and ISA checks.
9465 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
9467 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
9469 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
9471 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
9473 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
9475 ("*movv8hi_internal1"): Same.
9476 ("*movv16qi_internal1"): Same.
9477 ("*movv4sf_internal1"): Same.
9479 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
9480 not push_reload for altivec modes.
9482 2002-02-13 Joel Sherrill <joel@OARcorp.com>
9484 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
9485 all RTEMS targets including removal of #includes from config/*/rtems*.h
9486 file and adding them to tm_file setting. Added xm_defines=POSIX to
9488 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
9489 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
9490 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
9491 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
9492 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
9493 config/m68k/rtemself.h: Ditto.
9494 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
9495 config/mips/rtems64.h: Ditto.
9496 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
9497 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
9499 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
9500 config/sparc/rtemself.h: Ditto.
9501 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
9502 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
9503 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
9505 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
9506 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
9507 target made more similar to i386-elf.
9508 * config/i386/t-rtems-i386: Added soft float support and multilibs.
9509 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
9510 be similar to config/m68k/t-m68kelf.
9511 * gthr-rtems.h: Encapsulate with extern "C" for C++.
9513 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
9515 * regmove.c (kill_value): Handle subregs.
9517 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
9519 * i386.md (mul patterns): Allow memory operand to be first;
9520 add expanders where needed; fix constraints.
9521 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
9522 Allow memory operand to be the first.
9524 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
9527 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9530 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
9533 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9535 PR optimization/5547:
9536 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
9537 all valid IA-32 address modes involving non-scaled %ebx and
9538 GOT/GOTOFF as displacement.
9540 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
9542 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
9543 after emitting ltorg insns.
9545 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
9546 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
9547 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
9548 *abssf2): Fix "op_type" attribute.
9550 2002-02-13 Douglas B Rupp <rupp@gnat.com>
9552 * mkconfig.sh: Avoid using a subshell redirect.
9553 ($output.T): Change to $(output)T.
9554 (ENABLE_NLS): Remove unneeded undef.
9556 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
9557 * config/alpha/x-vms (libsubdir): Define.
9559 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
9560 register frame procedures. Optimize retrieving context.
9562 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
9563 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
9564 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
9566 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9568 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
9569 Make same change as for find_base_value.
9571 2002-02-13 Kazu Hirata <kazu@hxi.com>
9573 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
9574 of QImode and SImode.
9576 2002-02-13 Kazu Hirata <kazu@hxi.com>
9578 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
9579 length computation of movsi.
9580 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
9582 2002-02-13 Kazu Hirata <kazu@hxi.com>
9584 * config/h8300/h8300.md (subqi3): Tighten the predicate for
9585 operands[2] to register_operand.
9587 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
9589 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
9591 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
9593 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
9594 for altivec_lvx* and altivec_stvx*.
9595 ("*movv4si_internal"): Add constraint for loading from GPRs.
9596 ("*movv8hi_internal1"): Same.
9597 ("*movv16qi_internal1"): Same.
9598 ("*movv4sf_internal1"): Same.
9600 * config/rs6000/rs6000.c (altivec_register_operand): New.
9602 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
9603 altivec_register_operand.
9605 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
9607 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
9610 2002-02-13 Stan Shebs <shebs@apple.com>
9612 * c-typeck.c (digest_init): Handle vectors.
9613 (really_start_incremental_init): Same.
9614 (pop_init_level): Same.
9615 (process_init_element): Same.
9617 * varasm.c (output_constant): Same.
9619 * expr.c (clear_storage): Same.
9620 (store_constructor): Same.
9622 2002-02-12 Eric Christopher <echristo@redhat.com>
9624 * explow.c (hard_function_value): Add comment explaining
9625 signed/unsigned comparison.
9627 2002-02-12 Jakub Jelinek <jakub@redhat.com>
9629 * jump.c (never_reached_warning): Add finish argument.
9630 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
9631 real insn after end.
9632 * rtl.h (never_reached_warning): Adjust prototype.
9633 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
9634 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
9635 never_reached_warning.
9637 2002-02-12 Graham Stott <grahams@redhat.com>
9639 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
9641 2002-02-12 Kazu Hirata <kazu@hxi.com>
9643 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
9644 logical shifts on H8/300.
9645 (shift_alg_si): Improve several shifts on H8/300.
9646 (get_shift_alg): Likewise.
9648 2002-02-12 Graham Stott <grahams@redhat.com>
9650 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
9652 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9654 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
9655 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
9657 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
9659 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
9660 non-CONST_INT through default_assemble_integer.
9661 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
9662 <case 8>: Abort for CONST_DOUBLE.
9664 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9666 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
9668 * config/pa/pa-linux.h (LIB_SPEC): Delete.
9669 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
9671 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
9673 * config/stormy16/stormy16.md (zero_extendqihi2): New.
9675 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
9677 * regrename.c (regrename_optimize): Don't accept a
9678 part-clobbered register if the replaced register is not part
9681 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
9682 take padding into account when computing the argument value.
9684 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
9686 * combine.c (try_combine): Apply substitutions in
9687 CALL_INSN_FUNCTION_USAGE too.
9689 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
9691 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
9692 __builtin_altivec_abs*.
9695 * config/rs6000/rs6000.h (rs6000_builtins): Add
9696 ALTIVEC_BUILTIN_ABS*.
9698 * config/rs6000/altivec.h: Use const char for builtins expecting
9700 (vec_abs): New versions for C and C++.
9703 2002-02-10 Kazu Hirata <kazu@hxi.com>
9705 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
9708 2002-02-10 Kazu Hirata <kazu@hxi.com>
9710 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
9711 constant definition from h8300.md.
9712 (FRAME_POINTER_REGNUM): Likewise.
9713 * config/h8300/h8300.md (define_constants): Add FP_REG.
9715 2002-02-10 Kazu Hirata <kazu@hxi.com>
9717 * config/h8300/h8300.c (print_operand): Remove redundant code.
9719 2002-02-10 Kazu Hirata <kazu@hxi.com>
9721 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
9722 * config/h8300/h8300.c (byte_reg): Make it static.
9724 2002-02-10 Richard Henderson <rth@redhat.com>
9727 * c-typeck.c (incomplete_type_error): Handle flexible array members.
9729 2002-02-10 Richard Henderson <rth@redhat.com>
9732 * tree.c (append_random_chars): Don't abort if main_input_filename
9735 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
9737 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
9739 2002-02-10 Kazu Hirata <kazu@hxi.com>
9741 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
9742 (pushhi1): Likewise.
9744 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
9746 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
9747 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
9749 2002-02-09 David O'Brien <obrien@FreeBSD.org>
9751 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
9753 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
9755 2002-02-09 Kazu Hirata <kazu@hxi.com>
9757 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
9758 a half of an SImode register on H8/300.
9760 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
9762 * i386.md (movdi_2): Add missing '!'.
9764 2002-02-09 Kazu Hirata <kazu@hxi.com>
9766 * config/h8300/h8300.h: Fix formatting. Remove commented-out
9769 2002-02-09 Kazu Hirata <kazu@hxi.com>
9771 * config/h8300/h8300.md (length): Correct the distance valid
9772 for the short branch.
9774 2002-02-09 Kazu Hirata <kazu@hxi.com>
9776 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
9778 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
9780 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
9781 registers in SImode.
9782 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
9785 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
9788 Contribute sh64-elf.
9789 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
9790 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
9791 (sh_cannot_modify_jumps_p): New function.
9792 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
9793 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
9794 (sh_ms_bitfield_layout_p): New function.
9795 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
9796 Zack Weinberg <zack@codesourcery.com>
9797 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
9798 expand_simple_binop instead of expand_binop.
9799 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
9800 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
9801 use of .quad and .uaquad.
9802 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
9803 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
9804 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9805 * config/sh/sh.md (movdi_const, movdi_const_32bit,
9806 movdi_const_16bit): Make sure all CONSTs have modes.
9807 (sym2PIC): Ditto, but by adjusting all callers.
9808 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
9809 if the prologue calls the SHmedia argument decoder or register
9811 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9812 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
9813 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
9814 (sh_expand_epilogue): Don't emit USE of return target register.
9815 (prepare_move_operands): Legitimize DImode PIC addresses.
9816 (sh_media_register_for_return): Skip tr0, used to initialize the
9818 (sh_expand_prologue): Remove explicit USE of return register.
9819 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
9820 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
9821 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
9822 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
9823 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
9825 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
9826 (MOVI_SHORI_BASE_OPERAND_P): New.
9827 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
9828 (EXTRA_CONSTRAINT_T): Define in terms of them.
9829 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
9830 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
9831 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
9832 alternatives supporting TARGET_REGS.
9833 (UNSPEC_GOTPLT): New constant.
9834 (movdi split): Move incrementing of LABEL_NUSES...
9835 (movdi_const, movdi_const_32bit): Here. Use
9836 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
9837 (movdi_const_16bit): New.
9838 (call, call_value) [flag_pic]: Use GOTPLT.
9839 (call_pop, call_value_pop): New expands.
9840 (call_pop_compact, call_pop_rettramp): New insns.
9841 (call_value_pop_compact, call_value_pop_rettramp): New insns.
9842 (sibcall) [flag_pic]: Use GOT.
9843 (builtint_setjmp_receiver): Remove bogus, unused expand.
9844 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
9845 (*pt, *ptb, ptrel): New insns.
9846 (sym2GOT): Handle DImode GOT.
9847 (sym2GOTPLT, symGOTPLT2reg): New expands.
9848 (sym2PIC): New expand.
9849 (shcompact_return_tramp): Use GOTPLT to return trampoline.
9850 (shcompact_return_tramp_i): Use return register explicitly.
9851 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
9852 disable flag_reorder_blocks.
9853 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
9854 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
9855 clobbers, for clarity.
9856 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
9857 restoring of r0 in macl as MAYBE_DEAD.
9858 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
9859 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
9860 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
9861 alter_subreg all over.
9862 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
9863 reload, instead of emitting instructions that would require
9865 (casesi_load_media): Add missing modes.
9866 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
9867 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
9868 as used if the argument decoder is called.
9869 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
9870 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
9871 Pmode, then extend it to DImode if necessary.
9872 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
9873 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
9874 constants in FPU-enabled SHmedia, let them be loaded from memory.
9875 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
9876 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
9877 Adjust whitespace in assembly output templates.
9878 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
9879 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
9880 mode of if_then_else.
9881 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
9882 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
9884 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
9885 Joern Rennecke <amylaar@redhat.com>
9886 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
9887 (SUBTARGET_CPP_PTR_SPEC): New.
9888 (SUBTARGET_CPP_SPEC): Remove.
9889 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
9890 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9891 Fix typo in previous checkin.
9892 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
9893 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
9894 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
9895 Alexandre Oliva <aoliva@redhat.com>
9896 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
9897 what single FP register can hold for SHmedia target.
9898 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
9899 Alexandre Oliva <aoliva@redhat.com>
9900 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9901 Do not split into SUBREG.
9902 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
9903 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
9904 and added new functions as specified in SH5 ABI r9.
9905 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
9906 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
9908 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
9909 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
9910 gen_consttable_4 and gen_consttable_8. Emit multiple labels
9911 and consttable_window_ends.
9912 2001-06-03 Graham Stott <grahams@redhat,com>
9913 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
9914 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
9915 * config/sh/sh.c (print_operand): Handle floating-point pair,
9916 vector and matrix registers.
9917 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
9918 vector modes into account.
9919 * config/sh/sh.md (movv2sf): Split move between registers into
9921 (movv4sf, movv16sf): Introduce insns that get split only after
9923 * config/sh/shmedia.h: Fix Copyright dates.
9924 * config/sh/ushmedia.h: Likewise. Move loop counter
9925 declarations into conditionals that uses them.
9926 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
9928 * config/sh/sshmedia.h: Fix Copyright dates.
9929 (sh_media_PUTCFG): Fix constraints.
9930 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
9931 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
9932 ptrmemfunc_vbit_in_delta for SH5.
9933 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
9934 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
9935 * invoke.texi: Likewise.
9936 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
9937 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
9938 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
9939 GCC_pop_shmedia_regs_nofpu): New global symbols.
9940 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
9941 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
9942 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
9943 compact function with nonlocal labels.
9944 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
9945 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
9946 (initial_elimination_offset): Account for their stack space.
9947 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
9948 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
9949 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
9950 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
9951 least one of the operands to be a register.
9952 (movv2sf): Likewise. Renamed to movv2sf_i.
9953 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
9954 prepare_move_operands() before emitting SHmedia insns.
9955 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
9956 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
9957 Don't save nor initialize r12. Don't mis-align the stack.
9958 Pad the code with a nop.
9959 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
9961 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
9962 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
9963 [__SHMEDIA__]: Implement.
9964 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
9965 * config/sh/sh.md: Set latency of `pt' closer to reality.
9966 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
9967 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
9968 Set move, load and store type attributes.
9969 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
9970 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
9972 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
9973 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
9974 * config/sh/sh.c (sh_media_register_for_return): New function.
9975 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
9976 branch-target register.
9977 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
9978 * config/sh/sh.md (return_media_i): Use any call-clobbered
9979 branch-target register.
9980 (return_media): If r18 wasn't copied in the prologue, copy it
9982 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
9983 Clear class FP0_REGS.
9984 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
9986 2001-03-08 DJ Delorie <dj@redhat.com>
9987 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
9988 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
9989 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
9990 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
9991 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
9992 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
9993 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
9994 return value correctly for call_cookie.
9995 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
9996 * config/sh/crt1.asm (start): Modified so as to call
9997 ___setup_argv_and_call_main.
9998 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
9999 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
10001 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
10002 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
10003 (STRIP_NAME_ENCODING): Use it.
10004 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
10005 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
10006 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
10007 prepare_scc_operands().
10008 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
10009 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
10010 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
10011 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
10012 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
10013 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
10014 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
10015 used in shcompact_incoming_args.
10016 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
10018 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
10020 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
10021 Adjust accordingly.
10022 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
10023 Simplify. Adjust. Add sanity check.
10024 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
10026 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
10028 (udivsi3, divsi3): Use them.
10029 (force_mode_for_call): New insn.
10030 (call, call_value, sibcall_value): Emit it before SHcompact
10032 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
10033 * config/sh/sh.md (call, call_value, sibcall): Make sure the
10034 call cookie is non-NULL before taking its value.
10035 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
10036 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
10037 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
10038 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
10040 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
10041 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
10042 temporary for stack adjusts. Use MACL and MACH to pass
10043 arguments to shcompact_incoming_args.
10044 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
10046 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
10047 (nested_trampoline): Load static chain address into r1.
10048 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
10049 2001-01-07 Alexandre Oliva <aoliva@redhat.com
10050 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
10051 fp_arith_reg_operand().
10052 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
10053 * config/sh/sh.md (casesi): Sign-extend the first two operands,
10054 and use signed compares for them.
10055 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
10056 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
10057 ones properly aligned.
10058 (find_barrier): Account for extra alignment needed for 8-byte wide
10060 (machine_dependent_reorg): Require a label for the second 4-byte
10061 constant after an 8-byte one.
10062 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
10064 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
10065 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
10066 last_float when switching float modes.
10067 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
10068 auto-increment for general-purpose registers.
10069 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
10071 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
10073 * config/sh/sh.c (sh_builtin_saveregs): Support using all
10074 registers for varargs.
10075 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
10076 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
10077 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
10078 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
10079 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
10080 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
10081 call_cookie accordingly.
10082 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
10083 (SHCOMPACT_BYREF): Likewise.
10084 (SHCOMPACT_FORCE_ON_STACK): New macro.
10085 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
10086 (sh_builtin_saveregs): Likewise.
10087 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10088 shcompact_incoming_args): Use new shift values. Support
10089 sequences of consecutive and non-consecutive pushes/pops.
10090 * config/sh/sh.md (return): Don't explicitly use PR_REG.
10091 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
10092 * config/sh/sh.h (TEXT_SECTION): Define.
10093 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
10094 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
10095 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
10096 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
10097 return values on FPU-enabled SHmedia.
10098 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
10099 FPU-enabled SHmedia.
10100 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
10101 value is returned in a non-FP reg and is not returned by
10103 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
10105 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
10106 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
10107 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
10108 quad-aligned to be passed by callee-copy reference.
10109 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
10110 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
10111 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
10112 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
10113 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
10114 copying low-numbered FP regs to r7 and r8.
10115 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
10116 FP regs to general-purpose regs only if the copy was passed on the
10118 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
10119 copying FP reg to r9.
10120 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
10121 copy FP regs to general-purpose regs only in outgoing calls.
10122 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
10123 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
10125 * config/sh/sh.h (struct sh_args): Document all fields.
10126 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
10127 passed partially on the stack should not consider making
10129 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
10130 stack_regs only for incoming calls. When passing FP args,
10131 make sure there are FP regs available before modifying
10133 (SHCOMPACT_BYREF): Pass double args in general-purpose
10134 registers by reference.
10135 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
10136 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
10137 attempt to generate sibcalls if the caller got any arguments
10139 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
10140 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
10141 to 8-byte boundaries.
10142 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
10143 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
10144 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
10145 stored in the stack.
10146 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
10147 for the offsets to have the ISA bit set.
10148 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
10149 invocation. Use beq instead of bgt to mark end of sequence of
10151 (shcompact_incoming_args): Fix store of r2. Use beq instead of
10152 bgt to mark end of sequence of stores.
10153 * config/sh/sh.c (arith_operand): Don't check whether
10154 CONST_OK_FOR_J for now.
10155 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
10156 instead of long for conversion.
10157 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
10158 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
10159 before passing it to fprintf.
10160 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
10161 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
10162 Call set_fpscr before reading/writing SR.
10163 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
10165 * config/sh/lib1funcs.asm: Add `.align 2' directives before
10167 (FMOVD_WORKS): Define on SH5 with FPU.
10168 (set_fpscr): Define on SH5. Remove separate _fpscr_values
10170 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
10172 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
10173 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
10175 (ia_main_table): Ditto.
10176 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
10177 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10178 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
10179 the definitions from sh.h.
10180 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
10182 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
10183 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
10184 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10185 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
10186 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
10187 Increment LABEL_NUSES.
10189 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
10191 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
10193 * config/sh/elf.h (SIZE_TYPE): Likewise.
10194 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10195 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10196 shcompact_incoming_args): Load switch table addresses using
10198 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10199 (NO_BUILTIN_SIZE_TYPE): Define.
10200 (SIZE_TYPE): Don't define.
10201 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10202 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
10203 definition of __SH5__=32 for -m5-compact-nofpu.
10204 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
10206 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
10207 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
10208 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
10209 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
10210 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
10211 (INSN_LENGTH_ALIGNMENT): Likewise.
10212 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
10213 * config/sh/sh.md (call, call_value, sibcall): Simplify
10214 copying of non-branch-target register.
10215 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
10216 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
10217 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
10218 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
10219 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
10220 floating-point values as structs.
10221 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
10222 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
10223 general-purpose register.
10224 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
10225 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
10226 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
10227 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
10228 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
10229 (ENCODE_SECTION_INFO): Enclose variables and constants in
10231 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
10232 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
10233 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
10234 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
10235 only for LABEL_REFs. For SYMBOL_REFs, prepend
10236 SH_DATALABEL_ENCODING to the symbol name.
10237 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
10239 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
10240 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
10242 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
10243 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
10244 (DATALABEL_REF_P): Don't require CONST.
10245 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
10247 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
10248 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
10250 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
10251 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
10252 Use shallow_copy_rtx and PUT_MODE to change the mode of
10253 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
10254 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
10255 on SHmedia using GENERAL_REGs.
10256 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10257 bltu_media_i): Fix reversion of conditions.
10258 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
10259 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
10260 * config/sh/sh.c (output_far_jump): Save r13 in macl.
10261 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
10262 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
10263 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
10264 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
10265 (GCC_nested_trampoline): Likewise.
10266 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
10267 * config/sh/sh.c (gen_datalabel_ref): Define.
10268 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
10269 (INITIALIZE_TRAMPOLINE): Likewise.
10270 (TRAMPOLINE_ADJUST_ADDRESS): Define.
10271 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
10272 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
10273 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
10274 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
10275 (ic_invalidate): Adjust for SH5.
10276 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
10277 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
10278 _nested_trampoline.
10279 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
10280 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
10281 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
10282 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
10283 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
10284 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
10285 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
10286 * config/sh/sh.c (target_reg_operand): Match only target-branch
10287 registers and pseudos that aren't virtual registers.
10288 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10289 Copy operands that don't match target_reg_operand to pseudos.
10290 (call_media, call_value_media, sibcall_media): Use
10291 target_reg_operand instead of target_operand.
10292 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
10293 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
10294 * config/sh/sh.c (target_reg_operand): Match hardware registers
10295 other than branch-target registers.
10296 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
10297 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
10298 (fpscr_values) [SH5 == 32]: Define.
10299 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
10300 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10301 Handle function addresses coming in SUBREGs.
10302 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
10303 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10304 shcompact_return_trampoline): Use datalabel where appropriate.
10305 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
10306 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
10307 general-purpose register to copy one branch-target register to
10309 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
10310 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
10311 SYMBOL_REFs with VOIDmode.
10312 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10313 bltu_media_i): New insns.
10314 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
10315 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
10316 (INIT_CUMULATIVE_ARGS): Likewise.
10317 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
10318 * machmode.def (V16SFmode): New mode.
10319 * c-common.c (type_for_mode): Support V2SF and V16SF.
10320 * tree.c (build_common_tree_nodes_2): Likewise.
10321 * tree.h (tree_index): Likewise.
10322 * calls.c (emit_call_1): Take args_so_far. Adjust all
10323 callers. Introduce CALL_POPS_ARGS.
10324 * tm.texi (CALL_POPS_ARGS): Document.
10325 * config/sh/crt1.asm: Implement in SHmedia mode.
10326 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
10327 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
10328 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
10329 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
10330 Implement divsi and udivsi in SHmedia mode. Introduce
10331 SHcompact trampolines.
10332 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
10334 (regno_reg_class): Rewrite.
10335 (fp_reg_names): Remove.
10336 (sh_register_names, sh_additional_register_names): New.
10337 (print_operand): Added `u'. Support SUBREGs in addresses.
10338 Add parentheses around shifted CONSTs.
10339 (output_file_start): Output .mode and .abi directives.
10340 (shiftcosts, addsubcosts, multcosts): Adjust.
10341 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
10342 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
10343 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
10344 bytes, not registers. Take into account the need for the
10345 SHcompact incoming args trampoline. Adjust all callers.
10346 (sh_expand_prologue): Take stack_regs into account. Call
10347 incoming args trampoline. Keep stack aligned as per SH5 ABI.
10348 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
10349 stack aligned as per SH5 ABI.
10350 (sh_builtin_saveregs): Support SH5 ABI.
10351 (sh_build_va_list, sh_va_start): Likewise.
10352 (initial_elimination_offset): Take alignment into account.
10353 Compute location of PR according to the SH5 stack frame.
10354 (arith_reg_operand): Reject branch-target registers.
10355 (shmedia_6bit_operand): New.
10356 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
10357 (target_reg_operand): Match DImode only. Accept SUBREGs.
10358 (target_operand): New.
10359 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
10360 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
10361 SIBCALL_REGS for SHmedia.
10362 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
10363 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
10364 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
10365 (TARGET_SWITCHES): New SH5 flags.
10366 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
10367 VALID_REGISTER_P to disable unsupported registers.
10368 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
10369 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
10370 (FUNCTION_ARG_PADDING): Define.
10371 (FASTEST_ALIGNMENT): Adjust.
10372 (SH_REGISTER_NAMES_INITIALIZER): New.
10373 (sh_register_names): Declare.
10374 (DEBUG_REGISTER_NAMES): Define.
10375 (REGISTER_NAMES): Define based on sh_register_names.
10376 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
10377 (sh_additional_register_names): Declare.
10378 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
10379 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
10380 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
10381 (REGISTER_NATURAL_MODE): Define.
10382 (FIRST_PSEUDO_REGISTER): Adjust.
10383 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
10384 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
10385 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
10386 (VECTOR_MODE_SUPPORTED_P): Define.
10387 (REG_CLASS_CONTENTS): Adjust.
10388 (SMALL_REGISTER_CLASSES): Adjust.
10389 (REG_ALLOC_ORDER): Adjust.
10390 (INDEX_REG_CLASS): Adjust.
10391 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
10392 (CONST_OK_FOR_LETTER_P): Adjust.
10393 (PREFERRED_RELOAD_CLASS): Adjust.
10394 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
10395 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
10396 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
10397 (FIRST_FP_PARM_REG): Adjust.
10398 (CALL_POPS_ARGS): Define.
10399 (FUNCTION_ARG_REGNO_P): Adjust.
10400 (struct sh_args): New fields.
10401 (GET_SH_ARG_CLASS): Adjust.
10402 (INIT_CUMULATIVE_ARGS): Adjust.
10403 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
10404 (FUNCTION_ARG_ADVANCE): Adjust.
10405 (FUNCTION_ARG): Adjust.
10406 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
10407 (FUNCTION_ARG_CALLEE_COPIES): Define.
10408 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
10409 (STRICT_ARGUMENT_NAMING): Define.
10410 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
10411 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
10412 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
10413 (SETUP_INCOMING_VARARGS): Adjust.
10414 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
10415 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
10416 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
10417 (SUBREG_OK_FOR_INDEX_P): Adjust.
10418 (EXTRA_CONSTRAINT_S): Update.
10419 (EXTRA_CONSTRAINT_T): New.
10420 (EXTRA_CONSTRAINT): Adjust.
10421 (GO_IF_LEGITIMATE_INDEX): Adjust.
10422 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
10423 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
10424 (MOVE_MAX): Adjust.
10425 (MAX_MOVE_MAX): Define.
10427 (CONST_COSTS): Adjust.
10428 (REGISTER_MOVE_COST): Adjust.
10429 (BRANCH_COST): Adjust.
10430 (TEXT_SECTION_ASM_OP): Adjust.
10431 (DBX_REGISTER_NUMBER): Adjust.
10432 (ASM_OUTPUT_DOUBLE_INT): New.
10433 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
10434 (PREDICATE_CODES): Adjust.
10435 (PROMOTE_MODE): Adjust.
10436 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
10437 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
10438 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
10439 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
10440 (DR0_REG, DR2_REG, DR4_REG): Renumber.
10441 (TR0_REG, TR1_REG, TR2_REG): New.
10442 (XD0_REG): Renumber.
10443 (UNSPEC_COMPACT_ARGS): New.
10444 (type): Added pt and ptabs.
10445 (length): Default to 4 on SHmedia. Default pt length to 12
10446 and 20 on SHmedia32 and SHmedia64, respectively.
10447 (pt): New function unit.
10448 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
10449 Add whitespace between operands of SHmedia instructions.
10451 (adddi3_media, addsi3_media): Adjust constraints.
10452 (subsi3) [SHmedia]: Force operand 1 into a register.
10453 (udivsi3_i1_media, udivsi3_i4_media): New.
10454 (udivsi3): Support SHmedia.
10455 (divsi3_i1_media, divsi3_i4_media): New.
10456 (divsi3): Support SHmedia.
10457 (anddi3, iordi3, xordi3): Adjust constraints.
10458 (zero_extendhidi2, zero_extendqidi2): New.
10459 (extendsidi2, extendhidi2, extendqidi2): New.
10460 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
10461 (pop_e, pop_fpul, pop_4): Likewise.
10462 (movsi_media): Support FP and BT registers.
10463 (movsi_media_nofpu): New. Adjust splits to DImode.
10464 (lduw, ldub): Renamed to zero_extend* above.
10465 (movqi_media): Fix typo.
10466 (movdi_media): Support FP and BT registers.
10467 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
10468 (movdi_const_32bit): New.
10469 (shori_media): Require immediate operand. Use `u' for output.
10470 (movdf_media, movsf_media): Simplified.
10471 (movdf_media_nofpu, movsf_media_nofpu): New.
10472 (movdf, movsf): Adjust
10473 (movv2sf, movv2sf, movv16sf): New.
10474 (beq_media, beq_media_i): Adjust constraints. Don't use
10475 scratch BT register.
10476 (bne_media, bne_media_i): Likewise.
10477 (bgt_media, bgt_media_i): Likewise.
10478 (bge_media, bge_media_i): Likewise.
10479 (bgtu_media, bgtu_media_i): Likewise.
10480 (bgeu_media, bgeu_media_i): Likewise.
10481 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
10482 bunordered): Emit jump insn. Force operands to registers when
10484 (jump_media, jump): Simplify.
10485 (call_compact, call_compact_rettramp): New.
10486 (call_value_compact, call_value_compact_rettramp): New.
10487 (call_media, call_value_media): Simplify.
10488 (sibcall_compact, sibcall_media): New.
10489 (call, call_value): Adjust for SHmedia and SHcompact.
10490 (sibcall, sibcall_value, untyped_call): Likewise.
10491 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
10492 (indirect_jump): Adjust for SHmedia.
10493 (casesi_jump_media): New.
10494 (nop): Re-enable for SHmedia.
10495 (call_site): Restrict to SH1.
10496 (casesi): Adjust for SHmedia.
10497 (casesi_shift_media, casesi_load_media): New.
10498 (return): Explicitly use PR register. Call return trampoline
10500 (return_i): Explicitly use PR register.
10501 (shcompact_return_tramp, shcompact_return_tramp_i): New.
10502 (return_media): Adjust.
10503 (shcompact_incoming_args): New.
10504 (epilogue): Adjust.
10505 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10506 (movstrsi): Disable on SH5.
10507 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
10508 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
10509 (subsf3, subsf3_media): Likewise.
10510 (mulsf3, mulsf3_media, mac_media): Likewise.
10511 (divsf3, divsf3_media): Likewise.
10512 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
10513 (floatsisf2, fux_truncsfsi2): Likewise.
10514 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
10516 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
10517 (cmpunsf_media, cmpsf): Likewise.
10518 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
10519 (abssf2, abssf2_media): Likewise.
10520 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
10521 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
10522 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
10523 (floatsidf2, fix_truncdfsi2): Likewise.
10524 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
10526 (cmpeqdf_media, cmpgtdf_media): Likewise.
10527 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
10528 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
10529 (absdf2, absdf2_media): Likewise.
10530 (extendsfdf2, extendsfdf2_media): Likewise.
10531 (truncsfdf2, truncsfdf2_media): Likewise.
10532 * config/sh/sh64.h: New file.
10533 * config/sh/t-sh64: New file.
10534 * config/sh/shmedia.h: New file.
10535 * config/sh/ushmedia.h: New file.
10536 * config/sh/sshmedia.h: New file.
10537 * configure.in: Added sh64-*-elf.
10538 * configure: Rebuilt.
10539 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
10540 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
10541 (reg_class_from_letter): Use `b' for TARGET_REGS.
10542 (print_operand): Support `%M', `%m', `AND' and
10543 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
10544 (andcosts): Adjust for SHmedia.
10545 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
10547 (target_reg_operand): New function.
10548 * config/sh/sh-protos.h (target_reg_operand): Declare.
10549 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
10550 FP registers on SH5.
10551 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
10553 (TARGET_REGISTER_P): New macro.
10554 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
10555 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
10556 (EXTRA_CONSTRAINT_S): New macro.
10557 (EXTRA_CONSTRAINT): Adjust.
10558 (FLOAT_TYPE_SIZE): Define to 32.
10559 (Pmode): DImode on SHmedia.
10560 (CONST_COSTS): Adjust for SHmedia literals.
10561 (PREDICATE_CODES): Added target_reg_operand.
10562 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
10563 * config/sh/sh.md: Remove all attrs from SHmedia insns.
10564 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
10565 (cmpdi): Accept SHmedia.
10566 (movdicc_false, movdicc_true): New insns.
10567 (movdicc): New expand.
10568 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
10570 (addsi3_media): Match `S' constraint.
10571 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
10572 (negdi2): Expand for SHmedia.
10573 (one_cmpldi2): New expand.
10574 (zero_extendsidi2): Change from expand to insn.
10575 (extendsidi2): Add constraints.
10576 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
10577 LD/ST address. Fix SI immediate loading split.
10578 (movhi_media, movqi_media, lduw, ldub): New insns.
10579 (movhi, movqi): Accept SHmedia.
10580 (shori_media, movdi_media): Relax input constraints. Split
10581 symbolic constants.
10582 (movdf_media, movsf_media): New insn. New split to movdi.
10583 (movdf, movsf): Match on SHmedia.
10584 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
10585 bgeu_media): New insns and splits. New insns with `_i' suffix.
10586 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
10587 (bunordered): New expand.
10588 (jump_compact): Renamed from `jump'.
10589 (jump_media): New insn.
10590 (jump): New expand.
10591 (call_media, call_value_media): New insns.
10592 (call, call_value): Adjust.
10593 (indirect_jump_compact): Renamed from `indirect_jump'.
10594 (indirect_jump_media): New insn.
10595 (indirect_jump): New expand.
10596 (untyped_call, return): Accept SHmedia.
10597 (return_media): New insn.
10598 (prologue, epilogue, blockage): Accept SHmedia.
10599 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10600 (sunordered): New expand.
10601 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
10602 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
10603 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
10604 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
10605 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
10606 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
10607 abssf2_media): New insns.
10608 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
10609 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
10610 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
10611 floatdidf2, floatsidf2_media, fix_truncdfdi2,
10612 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
10613 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
10614 absdf2_media): New insns.
10615 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
10616 (extendsfdf2_media, truncdfsf2_media): New insns.
10617 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
10618 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
10619 * config/sh/sh.h (CONST_OK_FOR_J): Document.
10620 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
10621 * config/sh/sh.md (adddi3): New expand.
10622 (adddi3_media, adddi3z_media): New insns.
10623 (adddi3_compact): Renamed from adddi3.
10624 (addsi3_media): Use add.l r63 to add constant zero.
10625 (subdi3): New expand.
10626 (subdi3_media): New insn.
10627 (subdi3_compact): Renamed from subdi3.
10628 (mulsidi3): New expand.
10629 (mulsidi3_media): New insn.
10630 (mulsidi3_compact): Renamed from mulsidi3.
10631 (umulsidi3): New expand.
10632 (umulsidi3_media): New insn.
10633 (umulsidi3_compact): Renamed from umulsidi3.
10634 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
10635 (ashlsi3, ashrsi3, lshrsi3): Use them.
10636 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
10637 (ashldi3, ashrdi3, lshrdi3): Use them.
10638 (zero_extendsidi2): New expand.
10639 (extendsidi2): New insn.
10640 (movsi_media): New insn. Split to movdi to load constants.
10641 (movsi): Enable for shmedia.
10642 (movdi_media): New insn. Use shori_media to load wide constants.
10643 (short_media): New insn.
10644 (movdi): Enable for shmedia.
10645 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
10646 * config/sh/sh.h (CPP_SPEC): Added `m5'.
10647 (SUBTARGET_CPP_SPEC): Added `!m5'.
10648 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
10649 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
10650 to all other SH variants.
10651 (TARGET_DEFAULT): Set to SH1_BIT.
10652 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
10653 (BITS_PER_WORD): Raise to 64 on shmedia.
10654 (MAX_BITS_PER_WORD): Change to 64.
10655 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
10656 (INT_TYPE_SIZE): Keep as 32.
10657 (UNITS_PER_WORD): Raise to 8 on shmedia.
10658 (MIN_UNITS_PER_WORD): Keep as 4.
10659 (POINTER_SIZE): Raise to 64 on shmedia.
10660 (CONST_OK_FOR_J): New macro.
10661 (CONST_OK_FOR_LETTER_P): Use it.
10662 (processor_type): Add PROCESSOR_SH5.
10663 * config/sh/sh.md: Conditionalize all expands, insns and
10664 splits to TARGET_SH1.
10666 (addsi3_compact): Renamed from...
10667 (addsi3): Now an expand.
10668 (addsi3_media, subsi3_media): New insns.
10669 (subsi3): Don't negate constants with SHmedia.
10671 * hooks.c: New file.
10672 * hooks.h: New file.
10673 * Makefile.in (HOOKS_H): New.
10674 (TARGET_DEF_H): Added $(HOOKS_H).
10675 (OBJS): Added hooks.o.
10676 (cfgcleanup.o, bb-reorder.o): Added target.h.
10677 (hooks.o): Added dependencies.
10678 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
10679 (TARGET_INITIALIZER): this.
10680 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
10681 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
10682 * bb-reorder.c: Include target.h.
10683 (reorder_basic_blocks): Skip if cannot modify jumps.
10684 * cfgcleanup.c: Include target.h.
10685 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
10687 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10689 * config/mips/mips.md (casesi_internal, casesi_internal_di):
10690 Protect jump delay slot instructions with .set noreorder and
10693 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10695 * config/mips/mips.md (casesi_internal_di): Calculate
10696 the index into the target offset table correctly.
10698 2002-02-08 Richard Henderson <rth@redhat.com>
10700 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
10701 * final.c (output_addr_const): Accept and discard SUBREG.
10702 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
10703 mark them unknown instead.
10704 (simplify_subtraction): Handle RTX_UNKNOWN.
10705 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
10707 2002-02-08 David Edelsohn <edelsohn@gnu.org>
10709 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
10711 2002-02-08 Richard Henderson <rth@redhat.com>
10713 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
10715 2002-02-08 Andreas Jaeger <aj@suse.de>
10717 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
10718 * config/i386/t-linux64: New file.
10720 2002-02-08 Jakub Jelinek <jakub@redhat.com>
10722 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
10723 * c-parse.in (compstmt): Clear last_expr_type.
10725 2002-02-07 Richard Henderson <rth@redhat.com>
10727 * loop.c (strength_reduce): Sink final_value when not
10730 2002-02-07 David O'Brien <obrien@FreeBSD.org>
10732 * config/sparc/freebsd.h: Fix mismatched spec {.
10734 2002-02-07 Richard Henderson <rth@redhat.com>
10736 * cfgrtl.c: Include recog.h and insn-config.h.
10737 (keep_with_call_p): Fix general_operand invocation.
10738 * Makefile.in (cfgrtl.o): Update dependencies.
10740 2002-02-07 Kazu Hirata <kazu@hxi.com>
10742 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
10743 comment. Accept HImode only if TARGET_H8300.
10745 2002-02-07 Eric Christopher <echristo@redhat.com>
10747 * config/mips/crtn.asm: Cleanup #ifdefs.
10749 2002-02-07 Eric Christopher <echristo@redhat.com>
10751 * config/mips/crti.asm: Add changes for mips16. mips16 uses
10752 register 7 as RA instead of $31.
10753 * config/mips/crtn.asm: Ditto.
10754 * config/mips/mips.c (mips_move_2words): Add case for
10755 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
10756 (compute_frame_size): Fix typo.
10757 (save_restore_insns): Ditto. Make documentation about using
10758 register $7 as return register more precise.
10759 (mips_expand_epilogue): Fix comment. Add code to work around not
10760 being able to add to the stack pointer directly.
10761 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
10762 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
10765 2002-02-07 Tom Rix <trix@redhat.com>
10767 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
10768 immediates in ldu and stdu DS opcode field.
10769 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
10770 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
10771 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
10773 2002-02-07 Jeff Sturm <jsturm@one-point.com>
10775 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
10776 offset for stack bias.
10778 2002-02-07 H.J. Lu <hjl@gnu.org>
10780 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
10782 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
10784 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
10786 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
10788 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
10789 * i386.c (x86_order_regs_for_local_alloc): New global function.
10790 * i386.h (REG_ALLOC_ORDER): CLeanup.
10791 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
10793 2002-02-07 Richard Henderson <rth@redhat.com>
10795 PR optimization/2463
10796 * alias.c (find_base_value): Recall base values for fixed hard regs.
10797 * loop.c (loop_regs_update): Don't use single_set on non-insns.
10799 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
10801 * config/mips/mips.md (define_delay) [mips16]: Adjust required
10804 2002-02-06 Richard Henderson <rth@redhat.com>
10807 * stmt.c (resolve_operand_name_1): Take more care with mixed
10808 named and unnamed operands.
10810 2002-02-06 Janis Johnson <janis187@us.ibm.com>
10811 Jan Hubicka <jh@suse.cz>
10813 * loop.c (remove_constant_addition): Avoid clobbering a shared
10816 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
10818 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
10819 * config/s390/t-linux64: New file.
10820 * config/s390/libgcc-glibc.ver: New file.
10822 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
10824 * config/s390/linux64.h: Delete file.
10825 * config/s390/s390x.h: New file.
10826 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
10827 as target header file.
10828 * config/s390/linux.h (TARGET_VERSION): Define depending on
10829 DEFAULT_TARGET_64BIT.
10830 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
10831 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
10832 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
10833 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
10834 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
10835 (EXTRA_SPEC): New define.
10836 * config/s390/s390.h (TARGET_VERSION): Define depending on
10837 DEFAULT_TARGET_64BIT.
10838 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
10840 2002-02-06 Jason Merrill <jason@redhat.com>
10842 * c-decl.c (finish_function): Warn about a non-void function with
10843 no return statement and no abnormal exit.
10844 (current_function_returns_abnormally): New variable.
10845 (start_function): Clear it.
10846 (struct c_language_function): Add returns_abnormally.
10847 (push_c_function_context): Save it.
10848 (pop_c_function_context): Restore it.
10849 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
10850 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
10851 an explicit return type.
10852 * c-tree.h: Declare current_function_returns_abnormally.
10853 (C_FUNCTION_IMPLICIT_INT): New macro.
10854 * c-typeck.c (build_function_call): Set it.
10855 (c_expand_return): Set current_function_returns_value even if the
10856 value is erroneous.
10858 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10861 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
10862 unsafe for reevaluation.
10864 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10867 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
10868 EXPR_STMT, but COMPOUND_STMT, recurse into it.
10870 2002-02-06 Richard Henderson <rth@redhat.com>
10872 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
10873 be a general_operand. Dest for function value must be a pseudo.
10875 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10877 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
10878 as SYMBOL_REFs from the constant pool.
10880 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
10882 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
10883 passed by invisible reference.
10885 2002-02-05 Richard Henderson <rth@redhat.com>
10887 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
10889 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
10891 Implement using "base addresses" in insn operands as default.
10892 * config/mmix/mmix.c (mmix_conditional_register_usage): if
10893 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
10894 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
10895 used to read the rtx value.
10896 (mmix_target_asm_function_epilogue): Fix spacing.
10897 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
10898 (mmix_legitimate_address): Ditto.
10899 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
10900 should be loaded with a GETA insn. Don't allocate needless extra
10901 char for nul termination and fix misleading comment.
10902 (mmix_print_operand_address): Handle constants if
10903 TARGET_BASE_ADDRESSES.
10904 (mmix_output_register_setting): Use base addressing if
10905 TARGET_BASE_ADDRESSES and the number of insns is 3.
10906 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
10907 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
10908 to use R as constraint, add LDA to match s.
10909 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
10910 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
10911 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
10912 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
10913 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
10914 order with other fixed registers.
10915 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
10916 other parameter/call-clobbered registers.
10917 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
10918 -mbase-addresses, -mno-base-addresses.
10919 (MMIX Options): Ditto.
10921 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10923 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
10925 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
10927 * config/rs6000/altivec.h: Change elem to _S_elem.
10929 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
10931 * config/netbsd.h (WCHAR_TYPE): Define.
10932 (WCHAR_TYPE_SIZE): Ditto.
10933 (WINT_TYPE): Ditto.
10934 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
10935 (WCHAR_UNSIGNED): Ditto.
10936 (WCHAR_TYPE_SIZE): Ditto.
10937 (WINT_TYPE): Ditto.
10938 * config/arm/netbsd.h: Likewise.
10939 * config/i386/netbsd-elf.h: Likewise.
10940 * config/i386/netbsd.h: Likewise.
10941 * config/m68k/netbsd-elf.h: Likewise.
10942 * config/m68k/netbsd.h: Likewise.
10943 * config/ns32k/netbsd.h: Likewise.
10944 * config/sparc/netbsd.h: Likewise.
10945 * config/vax/netbsd.: Likewise.
10947 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
10949 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
10950 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
10951 (TARGET_INITIALIZER): this.
10952 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
10953 (BITFIELD_NBYTES_LIMITED): Markup fix.
10954 * tree.h (default_ms_bitfield_layout_p): Declare.
10955 (record_layout_info): Added prev_field.
10956 * tree.c (default_ms_bitfield_layout_p): New fn.
10957 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
10958 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
10959 * stor-layout.c: Include target.h.
10960 (start_record_layout): Initialize prev_field.
10961 (place_field): Handle MS bit-field layout, and disregard
10962 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
10963 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
10964 * Makefile.in (stor-layout.o): Adjust dependencies.
10966 2002-02-05 Jason Merrill <jason@redhat.com>
10968 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
10970 2002-02-05 Andreas Jaeger <aj@suse.de>
10972 * crtstuff.c: Fix comments.
10974 2002-02-05 Richard Henderson <rth@redhat.com>
10977 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
10978 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
10981 * config/mips/mips.c (function_arg): Handle TImode.
10982 (function_arg_advance): Likewise.
10984 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10986 * config/rs6000/altivec.h (vec_step_help): Rename to
10989 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10991 * config/rs6000/altivec.h: Fix typos.
10993 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
10995 * config/arm/netbsd.h: Correct a comment.
10997 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10999 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
11000 building void typed builtins.
11002 * config/rs6000/altivec.h (vec_ld*): Fix typos.
11003 (vec_step): Implement for C++.
11005 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11007 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
11009 2002-02-04 Richard Henderson <rth@redhat.com>
11011 * combine.c (nonzero_bits): Re-introduce special case for
11012 sp/fp/ap wrt REGNO_POINTER_ALIGN.
11014 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11016 * doc/extend.texi: Warn about unsupported usage of altivec
11019 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
11020 (altivec_predicate_*): New.
11022 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
11023 Add C++ version of vec_*() functions.
11025 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
11026 (bdesc_2arg): Remove altivec predicates.
11027 (altivec_expand_builtin): Handle predicates.
11028 (altivec_init_builtins): Handle predicates.
11029 (altivec_expand_predicate_builtin): New.
11031 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11033 * pa.c (DO_FRAME_NOTES): Move forward.
11034 (store_reg): Revise handling of frame notes.
11035 (load_reg): Likewise.
11036 (set_reg_plus_d): Likewise.
11037 (hppa_expand_prologue): Likewise.
11038 (hppa_expand_epilogue): Likewise.
11040 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11042 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
11044 2002-02-04 Jakub Jelinek <jakub@redhat.com>
11046 PR c/4475, c++/3780:
11047 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
11048 * c-common.h (SWITCH_TYPE): Define.
11049 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
11050 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
11051 Rename spareness variable to sparseness.
11052 (expand_end_case_type): Renamed from expand_end_case, use orig_type
11053 if non-NULL instead of TREE_TYPE (orig_index).
11054 * tree.h (expand_end_case_type): Renamed from expand_end_case.
11055 (expand_end_case): Define using expand_end_case_type.
11056 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
11057 to expand_end_case_type.
11058 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
11060 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11062 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
11063 (BIGGEST_ALIGNMENT): Change to 128.
11065 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11067 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
11069 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11071 * pa.md (call_internal_reg_64bit): Remove unused variable.
11073 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
11075 * config/arm/arm.h (machine_function): Add uses_anonymous_args
11077 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
11078 * config/arm/arm.c (current_function_anonymous_args): Delete,
11079 replace uses with cfun->machine->uses_anonymous_args.
11080 (arm_reorg): Do not reset uses_anonymous_args.
11082 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
11083 any geenral register.
11085 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
11087 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
11090 2002-02-04 Richard Henderson <rth@redhat.com>
11092 * combine.c (force_to_mode): Remove STACK_BIAS code.
11093 (nonzero_bits): Likewise. Replace sp/fp special case with
11094 REGNO_POINTER_ALIGN.
11096 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
11097 (HARD_FRAME_POINTER_REGNUM): New.
11098 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
11099 (FIXED_REGS, CALL_USED_REGS): Update.
11100 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
11101 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
11102 (HARD_REGNO_NREGS): Update for SFP.
11103 (STACK_POINTER_OFFSET): Include bias here ...
11104 (FIRST_PARM_OFFSET): ... not here.
11105 (STACK_BIAS): Remove.
11106 (INIT_EXPANDERS): New.
11107 (STARTING_FRAME_OFFSET): Do not include bias.
11108 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
11109 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
11110 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
11111 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
11112 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
11113 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
11114 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
11115 (MUST_SAVE_REGISTER): Likewise.
11116 (sparc_flat_function_prologue): Likewise.
11117 (sparc_flat_function_epilogue): Likewise.
11118 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
11119 (sparc_init_modes): SFP is GENERAL_REGS.
11120 (sparc_builtin_saveregs): SFP does not have bias applied.
11122 2002-02-04 Richard Henderson <rth@redhat.com>
11124 * config/alpha/alpha.c (current_function_is_thunk): Don't check
11125 current_function_is_thunk.
11126 (alpha_sa_mask): Distinguish between current_function_is_thunk
11127 called from ASM_OUTPUT_MI_THUNK and not.
11128 (alpha_does_function_need_gp): Thunks always need gp.
11129 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11130 (alpha_output_mi_thunk_osf): New.
11131 * config/alpha/alpha-protos.h: Update.
11132 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
11134 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
11136 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
11137 function types, not when they're taken away.
11139 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
11141 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
11142 CODE_LABEL and jump table when replacing a table jump with a
11145 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11147 * config/s390/s390-protos.h (legitimize_la_operand,
11148 s390_secondary_input_reload_class, s390_plus_operand,
11149 s390_expand_plus_operand): Add prototypes.
11151 config/s390/s390.c (s390_secondary_input_reload_class,
11152 s390_plus_operand, s390_expand_plus_operand): New functions.
11154 (struct s390_address): New member 'pointer'.
11155 (s390_decompose_address): Compute it.
11156 (legitimate_la_operand_p): Use it.
11157 (legitimize_la_operand): New function.
11158 (movti, movdi, movdf splitters): Call it.
11160 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
11161 (PREDICATE_CODES): Add s390_plus_operand.
11163 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
11164 (la_ccclobber): Allow GENERAL_REGS as output operand.
11166 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
11167 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
11168 (*la_64, *la_31, reload_indi, reload_insi): ... these.
11170 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11172 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
11173 register names for regular asm () construct.
11175 2002-02-04 Jakub Jelinek <jakub@redhat.com>
11177 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
11180 2002-02-04 Jakub Jelinek <jakub@redhat.com>
11182 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
11185 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
11187 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
11188 constant pool to be identical by string address and index.
11190 2002-02-04 Anthony Green <green@redhat.com>
11192 * output.h (SECTION_OVERRIDE): Define.
11193 * varasm.c (named_section): Obey SECTION_OVERRIDE.
11195 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
11197 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
11198 by existing arm*-*-netbsd* (a.out) target.
11199 (ns32k-*-netbsdelf*): Likewise.
11200 (sparc-*-netbsdelf*): Likewise.
11201 (vax-*-netbsdelf*): Likewise.
11203 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
11205 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
11206 headers and libobjc headers.
11208 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
11210 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
11211 (_mingw.h): Remove duplicate include.
11213 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
11215 * config.gcc: Set cpu_type to m68k for 68010, as well.
11216 (m68010-*-netbsdelf*): New...
11217 (m68k*-*-netbsdelf*): ...targets.
11218 * config/m68k/netbsd-elf.h: New file.
11220 2002-02-02 Kazu Hirata <kazu@hxi.com>
11222 * config/h8300/h8300.c (hand_list): Move inside function_arg.
11224 2002-02-02 Kazu Hirata <kazu@hxi.com>
11226 * config/h8300/h8300.c (h8_push_ops): Move inside
11228 (h8_pop_ops): Likewise.
11229 (h8_move_ops): Likewise.
11231 2002-02-02 Kazu Hirata <kazu@hxi.com>
11233 * config/h8300/h8300.c (os_task): Make it static.
11234 (monitor): Likewise.
11235 (pragma_saveall): Likewise.
11237 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
11239 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
11240 constant is a valid sign-extension for Pmode.
11242 2002-02-02 Kazu Hirata <kazu@hxi.com>
11244 * config/h8300/h8300.c: Fix formatting.
11246 2002-02-02 Kazu Hirata <kazu@hxi.com>
11248 * config/h8300/h8300.md: Fix formatting.
11250 2002-02-02 Kazu Hirata <kazu@hxi.com>
11252 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
11253 predicates of operands[1]. Split the patterns for each
11256 2002-02-02 Kazu Hirata <kazu@hxi.com>
11258 * config/h8300/h8300.md (xor patterns): Tighten the predicates
11259 of operands[1] to register_operand.
11261 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
11263 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
11264 * cpphash.c (_cpp_init_hashtable): Similarly.
11265 * cppinit.c (cpp_create_reader): Default the signed_char flag.
11266 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
11267 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
11268 (cpp_handle_option): Handle the new options.
11269 * cpplex.c (cpp_interpret_charconst): Use new flag.
11270 * cpplib.h (struct cpp_options): New member signed_char.
11271 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
11272 (cpp_options): Handle -fsigned-char and -funsigned-char.
11273 (static_specs): Remove signed_char_spec.
11274 (do_spec1): Don't handle %c.
11275 * system.h: Poison SIGNED_CHAR_SPEC.
11276 * tradcif.y (yylex): Use flag_signed_char.
11277 * tradcpp.h (flag_signed_char): New.
11278 * tradcpp.c (flag_signed_char): New.
11279 (main): Handle new command-line options.
11280 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
11282 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
11283 * avr/avr.h: Remove old comments.
11284 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
11285 (CC1_SPEC): Pass -fsigned-char if -mic*.
11286 (SIGNED_CHAR_SPEC): Remove.
11288 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
11290 2002-02-01 Eric Christopher <echristo@redhat.com>
11292 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
11293 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
11294 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
11295 (ASM_OUTPUT_REG_POP): Ditto.
11297 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
11299 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
11302 2002-02-02 Jakub Jelinek <jakub@redhat.com>
11304 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
11306 2002-02-02 Jakub Jelinek <jakub@redhat.com>
11309 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
11312 2002-02-01 Janis Johnson <janis187@us.ibm.com>
11314 * cfganal.c: Include tm_p.h.
11315 (keep_with_call_p): Fix the test that determines if a register holds
11316 the return value of a call.
11318 2002-02-01 DJ Delorie <dj@redhat.com>
11320 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
11321 we are given conflicting registers, switch to the other one we
11322 had allocated for us.
11323 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
11324 as TImode so we know when the "other" register is available.
11326 2002-02-01 David O'Brien <obrien@FreeBSD.org>
11328 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
11331 2002-02-01 Janis Johnson <janis187@us.ibm.com>
11333 * cfganal.c (keep_with_call_p): New function.
11334 (flow_call_edges_add): Prevent splitting a block between a call and
11335 a single-set instruction that should be kept in the same block.
11337 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
11339 * doc/install.texi (avr): Update outdated URL.
11341 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
11343 * config/stormy16/stormy16.md (pushqi): New.
11347 (movhi): Remove stack operands.
11349 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
11350 nonimmediate_nonstack_operand.
11351 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
11353 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
11356 2002-01-31 Jason Merrill <jason@redhat.com>
11358 * Makefile.in (c-parse.c): Handle .output file.
11359 * objc/Make-lang.in (objc-parse.c): Likewise.
11361 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
11363 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
11364 the -me[lb] option is given. Don't output the default flag
11367 2002-01-31 Zack Weinberg <zack@codesourcery.com>
11369 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
11370 the primary source file; this has not been done yet.
11371 * c-decl.c (c_expand_body): Reset input_filename from
11372 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
11374 2002-01-31 Kazu Hirata <kazu@hxi.com>
11376 * rtlanal.c (subreg_regno_offset): Do not use
11377 SUBREG_REGNO_OFFSET.
11378 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
11379 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
11381 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
11383 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
11384 version rather than GNATS version in --version output.
11386 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
11388 * ifcvt.c (noce_process_if_block): Make a copy of the destination
11389 when copying back from a temporary.
11391 2002-01-30 Richard Henderson <rth@redhat.com>
11393 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
11394 and new_dest are the same.
11396 2002-01-30 Richard Henderson <rth@redhat.com>
11399 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
11400 * rtl.c (note_insn_name): Update.
11401 * emit-rtl.c (remove_unnecessary_notes): Kill it.
11402 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
11403 to perform loop rotation.
11404 (expand_exit_loop_top_cond): New.
11405 * tree.h (expand_exit_loop_top_cond): Declare it.
11406 * c-semantics.c (genrtl_while_stmt): Use it.
11407 (genrtl_for_stmt): Likewise.
11409 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
11411 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
11412 arguments to 64-bit boundaries on 64-bit ABIs.
11414 2002-01-30 Steve Ellcey <sje@cup.hp.com>
11416 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
11418 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
11420 * c-decl.c (grokdeclarator): Handle type being a typedef for an
11423 2002-01-30 David O'Brien <obrien@FreeBSD.org>
11425 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
11426 * config/sparc/sparc_bi.h: Remove file.
11427 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
11429 2002-01-30 Richard Henderson <rth@redhat.com>
11431 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
11433 2002-01-30 Zack Weinberg <zack@codesourcery.com>
11435 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
11437 2002-01-30 Jason Merrill <jason@redhat.com>
11439 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
11440 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
11441 (reg_save): Use DW_CFA_offset_extended_sf instead.
11443 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
11445 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11447 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
11450 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
11452 * rs6000.md ("*call_value_local32"): Remove constraints.
11453 ("*call_value_local64"): Same.
11454 ("*call_value_indirect_nonlocal_aix32"): Same.
11455 ("*call_value_nonlocal_aix32"): Same.
11456 ("*call_value_indirect_nonlocal_aix64"): Same.
11457 ("*call_value_nonlocal_aix64"): Same.
11458 ("*call_value_nonlocal_sysv"): Same.
11460 2002-01-29 Richard Henderson <rth@redhat.com>
11462 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
11464 2002-01-29 Richard Henderson <rth@redhat.com>
11466 * expr.c (force_operand): Ignore flag_pic for detecting pic
11468 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
11469 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
11470 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
11471 instead of open-coded loop.
11472 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
11473 be fixed when in use.
11475 2002-01-29 Richard Henderson <rth@redhat.com>
11477 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
11478 * sched-rgn.c (propagate_deps): Update them.
11479 * sched-deps.c (sched_analyze_insn): Update them. Flush the
11480 clobbers list when either gets too long.
11482 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11484 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
11485 and INDEX_REGS the same as GENERAL_REGS.
11486 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
11488 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
11490 * tree.c (build_nonstandard_integer_type): Correct prototype.
11492 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
11494 * config/s390/s390.md (movstrsico, movstrdix_64,
11495 movstrsix_31): Remove, replace by ...
11496 (movstrdi_short, movstrsi_short, movstrdi_long,
11497 movstrsi_long): ... these. New.
11498 (movstrdi, movstrsi): Adapt.
11500 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
11501 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
11502 Remove unnecessary CC clobber.
11503 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
11504 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
11506 (divmoddi4): Don't partially initialize TImode register.
11508 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
11510 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
11512 2002-01-29 Richard Henderson <rth@redhat.com>
11514 * flow.c (print_rtl_and_abort): Remove.
11515 (print_rtl_and_abort_fcn): Remove.
11516 (verify_local_live_at_start): Use dump_bb instead.
11517 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
11518 (verify_wide_reg_1): Return 2 on mode test failure.
11520 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
11522 PR c/3325, c/3326, c/2511, c/3347
11523 * c-decl.c (enum_decl_context): Remove BITFIELD.
11524 (grokdeclarator): Take bitfield width as an input.
11525 Ensure bitfields are given the correct type. Perform
11526 bitfield width validation with build_bitfield_integer_type
11527 rather than waiting for finish_struct.
11528 (grok_typename, grok_typename_in_parm_context, start_decl,
11529 push_parmdecl, grokfield, start_function): Update calls to
11531 (build_bitfield_integer_type): New function.
11532 (finish_struct): Move bitfield validation to grokdeclarator
11533 and build_bitfield_integer_type.
11534 * tree.c (build_nonstandard_integer_type): New function.
11535 * tree.h (build_nonstandard_integer_type): New prototype.
11537 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
11539 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11542 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
11543 don't ignore unrecognized -W* options.
11544 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
11545 * cpplib.h (cpp_handle_option): Adjust prototype.
11546 * c-decl.c (c_decode_options): Pass 0 as last argument to
11550 * gcc.c (cpp_unique_options): Split from cpp_options.
11551 (cpp_options): Source cpp_unique_options.
11552 (default_compilers): Use cpp_unique_options instead of cpp_options
11553 when used together with cc1_options.
11554 (static_specs): Add cpp_unique_options.
11555 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
11556 when used together with cc1_options.
11558 2002-01-29 Kazu Hirata <kazu@hxi.com>
11560 * config/h8300/h8300-protos.h: Update the prototype of
11562 * config/h8300/h8300.c (output_a_shift): Remove an unused
11563 argument 'insn'. Remove redundant code.
11564 * config/h8300/h8300.md: Adust to the new prototype of
11567 2002-01-29 Kazu Hirata <kazu@hxi.com>
11569 * config/h8300/h8300-protos.h: Update the prototypes of
11570 emit_a_rotate and expand_a_rotate.
11571 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
11572 first argument to 'enum rtx_code'.
11573 (expand_a_rotate): Likewise.
11575 2002-01-28 Kazu Hirata <kazu@hxi.com>
11577 * config/h8300/h8300-protos.h: Update the prototype of
11579 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
11581 * config/h8300/h8300.md: Adjust to the new prototype.
11583 2002-01-28 Kazu Hirata <kazu@hxi.com>
11585 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
11588 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
11590 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
11591 is a fixed register before returning pic_offset_table_rtx.
11592 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
11593 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
11595 2002-01-28 Jason Merrill <jason@redhat.com>
11597 * dwarf2.h: Sync with src version.
11599 2002-01-28 Paul Koning <pkoning@equallogic.com>
11601 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
11602 BT_FN_VOID_PTR_VAR.
11603 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
11604 * doc/extend.texi (__builtin_prefetch): Update documentation:
11605 first argument is now const void ptr.
11607 2002-01-28 Kazu Hirata <kazu@hxi.com>
11609 * config/h8300/h8300-protos.h: Remove an unused prototype.
11611 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
11613 * toplev.c (lang_independent_init): Round up identifier size.
11615 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
11617 * config.gcc: Revert previous change.
11619 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
11621 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
11623 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
11625 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
11626 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
11627 other non-elf netbsd config frags.
11628 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
11629 collect2 will does that.
11630 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
11631 shared-lib frobbing will work.
11633 2002-01-28 Kazu Hirata <kazu@hxi.com>
11635 * config/h8300/h8300.h: Fix formatting.
11636 * config/h8300/h8300.md: Likewise.
11638 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
11640 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
11641 the old, removed AAA_standards fix.
11642 * fixinc/fixincl.x: Rebuilt.
11644 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
11646 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
11647 atexit call in crtbegin, hooked in after call to frame_dummy;
11648 register EH before registering __fini__start.
11650 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
11652 * config/rs6000/altivec.h: Remove spurious semicolons.
11654 2002-01-27 Kazu Hirata <kazu@hxi.com>
11656 * config/h8300/h8300.md: Replace dead bit extraction patterns
11657 with ones that work.
11659 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11661 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
11662 if not STRICT_ALIGNMENT.
11663 * rtl.h (MEM_ALIGN): Likewise.
11665 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
11667 * doc/invoke.texi (-fdump-translation-unit): Revert this
11668 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
11670 2002-01-27 Kazu Hirata <kazu@hxi.com>
11672 * config/h8300/h8300.md (define_constants): New.
11673 (anonymous patterns) Use defined constants appropriately.
11675 2002-01-27 Kazu Hirata <kazu@hxi.com>
11677 * config/h8300/h8300.c (function_arg): Remove redundant code.
11679 2002-01-26 Richard Henderson <rth@redhat.com>
11681 * sched-deps.c (reg_pending_uses_head): New.
11682 (reg_pending_barrier): Rename from reg_pending_sets_all.
11683 (find_insn_list): Don't mark inline.
11684 (find_insn_mem_list): Remove.
11685 (add_dependence_list, add_dependence_list_and_free): New.
11686 (flush_pending_lists): Replace only_write param with separate
11687 for_read and for_write parameters. Update all callers. Use
11688 add_dependence_list_and_free.
11689 (sched_analyze_1): Do not add reg dependencies here; just set
11690 the pending bits. Use add_dependence_list.
11691 (sched_analyze_2): Likewise.
11692 (sched_analyze_insn): Replace schedule_barrier_found with
11693 reg_pending_barrier. Add all dependencies for pending reg
11694 uses, sets, and clobbers.
11695 (sched_analyze): Don't add reg dependencies for calls, just
11696 set pending bits. Use regs_invalidated_by_call. Treat
11697 sched_before_next_call as a normal list, not a fake insn.
11698 (init_deps): No funny init for sched_before_next_call.
11699 (free_deps): Free pending mems lists. Don't zero reg_last.
11700 (init_deps_global): Init reg_pending_uses.
11701 (finish_deps_global): Free it.
11702 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
11703 (find_insn_mem_list): Remove.
11704 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
11705 (propagate_deps): Use them. Zero temp mem lists.
11707 2002-01-26 Richard Henderson <rth@redhat.com>
11709 * Makefile.in (CRTSTUFF_CFLAGS): New.
11710 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
11711 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
11712 crtstuff.c instead of alpha assembly version.
11713 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
11714 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
11715 not FORCE_{INIT,FINI}_SECTION_ALIGN.
11716 (__do_global_dtors_aux): Mark used.
11717 (frame_dummy, __do_global_ctors_aux): Mark used.
11718 (fini_dummy, init_dummy): Remove.
11720 * config/alpha/crtbegin.asm: Remove file.
11721 * config/alpha/crtend.asm: Remove file.
11722 * config/alpha/t-crtbe: Remove file.
11723 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
11724 (LINK_EH_SPEC): New.
11726 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
11727 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
11728 calling constructors.
11729 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
11731 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
11732 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
11733 CRT_END_INIT_DUMMY hack.
11734 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
11735 FORCE_{INIT,FINI}_SECTION_ALIGN.
11737 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
11738 FORCE_{INIT,FINI}_SECTION_ALIGN.
11740 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
11741 invocation sequence.
11742 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
11744 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
11745 (FORCE_CODE_SECTION_ALIGN): New.
11747 2002-01-26 Richard Henderson <rth@redhat.com>
11749 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
11751 2002-01-26 Richard Henderson <rth@redhat.com>
11753 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
11754 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
11756 2002-01-26 Kazu Hirata <kazu@hxi.com>
11758 * config/h8300/h8300.md: Remove bit extraction patterns that
11759 cannot be triggered.
11760 Restrict each bit extraction pattern to a variant on which the
11763 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
11765 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
11767 2002-01-26 Kazu Hirata <kazu@hxi.com>
11769 * config/h8300/h8300.md: Remove bit test patterns that cannot
11771 Restrict each bit test pattern to a variant on which the
11774 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11776 * builtins.c (expand_builtin_strncat): Remove redundant check for
11779 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11781 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
11783 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
11786 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11788 * dbxout.c (dbxout_init): Use assemble_name rather than just
11789 stripping off the first character.
11790 (dbxout_source_file): Likewise.
11792 2002-01-25 DJ Delorie <dj@redhat.com>
11794 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
11795 using rtx_equal_p, not by comparing pointers.
11797 2002-01-25 Steve Ellcey <sje@cup.hp.com>
11799 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
11800 for PIC_OFFSET_TABLE_REGNUM.
11801 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
11803 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11805 * config.gcc (x86_64-*-freebsd*): New target.
11806 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
11808 (i[34567]86-*-freebsd*): Don't include svr4.h.
11809 * config/i386/freebsd64.h: New file.
11811 2002-01-25 Douglas B Rupp <rupp@gnat.com>
11813 * config/alpha/x-vms (version): Make static.
11815 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
11816 in previous checkin.
11818 * Makefile.in (install-headers-cp): New target.
11819 * config.gcc (alpha-dec-*vms*): Install headers with
11822 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
11824 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
11827 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11829 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
11830 of compare_tree_int.
11831 (expand_builtin_strncat): Likewise.
11832 * c-decl.c (finish_struct): Use tree_low_cst.
11833 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
11834 * tree.c (compare_tree_int): Likewise.
11836 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
11838 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
11839 adjustments even if they are implemented by more than two insns.
11841 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
11843 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
11844 * df.h (struct ref): Kill B.
11845 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
11847 * basic-block.h (PROP_EQUAL_NOTES): New flag.
11848 * flow.c (propagate_one_insn): Use it.
11849 (mark_used_regs): Handle NIL.
11851 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11853 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
11856 2002-01-25 David Edelsohn <edelsohn@gnu.org>
11858 * rs6000.md (prefetch): Make address V4SI mode so that the address
11859 is restricted to legitimate form for instruction.
11861 2002-01-25 Bob Wilson <bob.wilson@acm.org>
11863 * doc/install.texi (xtensa-*-elf): New target.
11864 (xtensa-*-linux*): New target.
11865 * doc/contrib.texi: Add myself.
11867 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
11869 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
11870 purpose register to hold an SImode (or smaller) value.
11872 2002-01-25 Jakub Jelinek <jakub@redhat.com>
11874 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
11876 * crtstuff.c: Likewise.
11878 2002-01-25 Kazu Hirata <kazu@hxi.com>
11880 * config/h8300/h8300.md (negation patterns): Tighten
11881 predicates to register_operand.
11883 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
11885 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
11888 * builtins.c (expand_builtin_prefetch): Same.
11890 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11892 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
11895 2002-01-24 Kazu Hirata <kazu@hxi.com>
11897 * config/h8300/h8300.c (print_operand): Remove support for
11898 operand character 'A'.
11899 * config/h8300/h8300.md (three anonymous patterns): Replace
11900 operand character 'A' with either 'T' or 'S'.
11902 2002-01-24 Kazu Hirata <kazu@hxi.com>
11904 * config/h8300/h8300.c (print_operand): Remove support for
11905 operand character 'U'.
11907 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
11909 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
11911 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
11913 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
11914 values to be assigned to the stack pointer.
11916 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
11918 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
11919 to const_double needs to be done right for big-endian systems.
11921 2002-01-24 Jason Merrill <jason@redhat.com>
11924 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
11925 to can_throw_internal.
11927 2002-01-23 Richard Henderson <rth@redhat.com>
11929 * fold-const.c (fold): Change UINT_MAX test to check vs precision
11930 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
11932 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11934 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
11935 (symGOT2reg): Use them, then set as GOT value as unchanging.
11936 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
11937 as a temporary, if possible.
11938 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
11939 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
11941 2002-01-23 Kazu Hirata <kazu@hxi.com>
11943 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
11944 accept to accept 0x80 as operands[2].
11946 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11948 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
11950 2002-01-23 Richard Henderson <rth@redhat.com>
11952 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
11954 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
11956 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
11957 (parmlist_or_identifiers_1): Verify that only a parmlist follows
11960 2002-01-23 Richard Henderson <rth@redhat.com>
11962 * expr.c (move_by_pieces_1): Extend size before negation.
11964 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
11965 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
11966 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
11967 * config/m68k/t-m68kelf: Likewise.
11969 2002-01-23 Bob Wilson <bob.wilson@acm.org>
11971 * config/xtensa/elf.h: New file.
11972 * config/xtensa/lib1funcs.asm: New file.
11973 * config/xtensa/lib2funcs.S: New file.
11974 * config/xtensa/linux.h: New file.
11975 * config/xtensa/t-xtensa: New file.
11976 * config/xtensa/xtensa-config.h: New file.
11977 * config/xtensa/xtensa-protos.h: New file.
11978 * config/xtensa/xtensa.c: New file.
11979 * config/xtensa/xtensa.h: New file.
11980 * config/xtensa/xtensa.md: New file.
11981 * config.gcc (xtensa-*-elf*): New target.
11982 (xtensa-*-linux*): New target.
11983 * cse.c (canon_hash): Compare rtx pointers instead of register
11984 numbers. This is required for the Xtensa port.
11985 * integrate.c (copy_insn_list): Handle case where the static
11986 chain is in memory and the memory address has to be copied to
11988 * doc/invoke.texi (Option Summary): Add Xtensa options.
11989 (Xtensa Options): New node.
11990 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
11992 2002-01-23 Zack Weinberg <zack@codesourcery.com>
11994 * diagnostic.c (internal_error): Do ICE suppression only
11995 when ENABLE_CHECKING is not defined.
11997 * c-typeck.c (require_complete_type): Return error_mark_node
11998 if type is error_mark_node.
12000 2002-01-23 Janis Johnson <janis187@us.ibm.com>
12002 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
12003 -Os and issue a warning.
12005 2002-01-23 Zack Weinberg <zack@codesourcery.com>
12007 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
12008 current (lack of) need for host configuration by hand.
12010 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
12011 references. Documentation of some target macros moved from
12012 hostconfig.texi to tm.texi.
12014 2002-01-23 Will Cohen <wcohen@redhat.com>
12016 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
12019 2002-01-23 Kazu Hirata <kazu@hxi.com>
12021 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
12024 2002-01-23 Jason Merrill <jason@redhat.com>
12026 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
12028 * function.c (assign_parms): Don't put args of inline functions
12029 into registers when not optimizing.
12031 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
12033 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
12034 (prologue_use): New pattern.
12035 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
12036 preference to gen_rtx_USE.
12037 (thumb_expand_prologue): Use gen_prologue_use in preference to
12039 (thumb_expand_epilogue): Use gen_prologue_use in preference to
12042 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
12044 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
12046 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
12049 * doc/extend.texi: Correct documentation of __alignof__.
12051 2002-01-22 Zack Weinberg <zack@codesourcery.com>
12053 * params.h: Rename arguments of DEFPARAM so that it will be
12054 recognized as a translation keyword.
12056 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12058 * extend.texi: Document altivec functions.
12059 Fix N-bit adjectives in X86 builtin documentation.
12061 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
12063 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
12064 auto_inc_dec values.
12066 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
12068 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
12070 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
12072 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
12074 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
12076 2002-01-22 Richard Henderson <rth@redhat.com>
12078 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
12079 copy_insn not copy_rtx.
12081 2002-01-23 Alan Modra <amodra@bigpond.net.au>
12083 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
12084 "nonzero" as that might add "1" bits. Ensure "constop" is
12085 properly sign extened.
12086 (force_to_mode): Tweak for sign extended constop.
12088 2002-01-22 Richard Henderson <rth@redhat.com>
12090 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
12091 for_each_rtx instead of assuming we're already looking at the MEM.
12092 (split_small_symbolic_mem_operand): Likewise.
12093 * config/alpha/alpha.h (PREDICATE_CODES): Update.
12094 * config/alpha/alpha.md (small symbolic memory splitters): Update.
12096 2002-01-22 Richard Henderson <rth@redhat.com>
12098 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
12099 sequence number for the literal.
12100 (divmoddi_internal_er): Likewise.
12102 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
12105 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
12106 in LIBICONV variable.
12107 * configure: Regenerated.
12109 2002-01-22 Krister Walfridsson <cato@df.lth.se>
12111 * dependence.c (build_def_use): Remove array_idx.
12113 * dwarfout.c (last_filename): Remove.
12114 (output_compile_unit_die): Remove last_filename.
12116 2002-01-22 Roger Sayle <roger@eyesopen.com>
12117 Richard Henderson <rth@redhat.com>
12120 * fold-const.c (fold): Optimize unsigned comparisons against
12121 UINT_MAX (and similar unsigned constants).
12123 2002-01-22 Janis Johnson <janis187@us.ibm.com>
12125 * Makefile.in (loop.o): Depend on OPTABS_H.
12126 * loop.c (emit_prefetch_instructions): Check the prefetch operand
12127 against the predicate.
12130 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
12131 for the address operand.
12133 2002-01-22 Richard Henderson <rth@redhat.com>
12135 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
12137 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
12140 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
12141 preprocessor flags.
12143 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
12145 * config.gcc (x86_64-*-netbsd*): New target.
12146 * config/i386/netbsd64.h: New file.
12148 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12150 * regrename.c (kill_value): Fix typo.
12152 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12154 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
12156 * config/rs6000/rs6000.h: Same.
12158 * function.c (instantiate_virtual_regs): Remove
12159 STARTING_FRAME_PHASE.
12160 (assign_stack_local_1): Same.
12161 Calculate frame phase.
12163 2002-01-22 Nick Clifton <nickc@redhat.com>
12165 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
12166 variable declaration to outer scope in order to simplify
12168 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
12169 arm_hard_regno_mode_ok.
12170 * config/arm/arm-protos.h: Add a prototype for
12171 arm_hard_regno_mode_ok.
12172 * config/arm/arm.c (soft_df_operand): Remove now redundant
12173 check for DImode values using IP_REGNUM.
12174 (nonimmediate_soft_df_operand): Remove now redundant check for
12175 DImode values using IP_REGNUM.
12176 (arm_hard_regno_mode_ok): New function. New check: make sure
12177 that DImode values are not stored in IP_REGNUM.
12179 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
12181 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
12183 2002-01-22 Jason Merrill <jason@redhat.com>
12185 * c-semantics.c (genrtl_compound_stmt): Only check nesting
12186 consistency if this COMPOUND_STMT is scoped.
12188 2002-01-22 Kazu Hirata <kazu@hxi.com>
12190 * predict.c: Fix formatting.
12191 * print-tree.c: Likewise.
12192 * protoize.c: Likewise.
12193 * real.h: Likewise.
12195 * sbitmap.h: Likewise.
12196 * scan.c: Likewise.
12197 * sched-deps.c: Likewise.
12198 * sched-vis.c: Likewise.
12199 * sdbout.c: Likewise.
12200 * sibcall.c: Likewise.
12202 * ssa-ccp.c: Likewise.
12203 * ssa-dce.c: Likewise.
12204 * stmt.c: Likewise.
12205 * stor-layout.c: Likewise.
12206 * system.h: Likewise.
12208 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12210 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
12211 if fits in bounds of base type.
12213 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
12214 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
12215 (add_bound_info, default): If can't find a context, make a
12217 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
12219 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
12221 * c-typeck.c (parser_build_binary_op): If result from
12222 build_binary_op is ERROR_MARK just return error_mark_node without
12223 further processing.
12225 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
12227 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
12228 Split a.out-specific bits into...
12229 * config/netbsd-aout.h: ...this.
12230 * config/netbsd-elf.h: New file.
12231 * config/alpha/netbsd-elf.h: Remove.
12232 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
12233 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
12234 (STARTFILE_SPEC): Remove redundant definition.
12235 (ENDFILE_SPEC): Likewise.
12236 (LINK_SPEC): Likewise.
12237 (CPP_SPEC): Likewise.
12238 (ASM_SPEC): Likewise.
12239 (LIB_SPEC): Likewise.
12240 (SWITCH_TAKES_ARG): Likewise.
12241 (TARGET_MEM_FUNCTIONS): Likewise.
12242 (CPP_PREDEFINES): Redefine.
12243 (ASM_FINAL_SPEC): Remove redefinition.
12244 (ASM_COMMENT_START): Redefine.
12245 (FUNCTION_PROFILER): Define.
12246 (TARGET_VERSION): Redefine.
12247 Comment and formatting cleanup.
12248 * config/i386/netbsd.h: Include <netbsd-aout.h>.
12249 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
12250 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
12251 big- or little-endian.
12252 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
12253 * config.gcc (*-*-netbsd*): Add definitions common to all
12255 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
12256 gnu_ld definitions. Add netbsd-elf.h to and remove
12257 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
12258 tmake_file, and don't lose previous tmake_file contents.
12259 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
12260 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
12261 gnu_ld definitions. Add netbsd-elf.h to tm_file.
12262 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
12263 (mipsel-*-netbsd*): Rename this to...
12264 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
12265 mips/little.h to tm_file for mips*el-*.
12266 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
12267 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
12268 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
12270 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
12272 * pa-protos.h (reg_before_reload_operand): New function prototype.
12273 * pa.c (reg_before_reload_operand): New function implementation.
12274 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
12275 contraints to "*m".
12277 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12279 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
12281 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
12283 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
12284 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
12285 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
12286 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
12287 (ENDFILE_SPEC): Undefine.
12288 (STARTFILE_SPEC): Redefine for PA.
12290 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12292 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
12294 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
12296 * config.gcc: Add entries to supported PowerPC --with-cpu
12299 2002-01-21 Jakub Jelinek <jakub@redhat.com>
12301 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
12302 true for 64-bit mode only SSE registers in 32-bit mode.
12304 2002-01-21 Kazu Hirata <kazu@hxi.com>
12306 * unwind-dw2.c: Fix formatting.
12307 * unwind-dw2-fde.c: Likewise.
12308 * unwind-dw2-fde.h: Likewise.
12309 * unwind-pe.h: Likewise.
12310 * varasm.c: Likewise.
12311 * varray.h: Likewise.
12313 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
12315 Remove workaround for register stack overwrite bug in mmix.
12316 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
12317 support for TARGET_REG_STACK_FILL_BUG.
12318 * config/mmix/mmix.h: Remove member has_call_without_parameters.
12319 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
12321 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
12322 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
12323 -mno-reg-stack-fill-bug-workaround.
12324 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
12325 machine member has_call_without_parameters.
12326 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
12327 -mreg-stack-fill-bug-workaround and
12328 -mno-reg-stack-fill-bug-workaround.
12329 (MMIX Options): Ditto.
12331 2002-01-21 Kazu Hirata <kazu@hxi.com>
12333 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
12335 Remove redundant code.
12337 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
12339 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
12340 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12341 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12342 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
12343 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
12344 out target macro definitions and non-target-specific comments
12345 mostly taken from old versions of the manual.
12347 2002-01-20 Kazu Hirata <kazu@hxi.com>
12349 * config/h8300/h8300.h: Fix comment formatting.
12350 * config/ia64/aix.h: Likewise.
12351 * config/ia64/ia64-protos.h: Likewise.
12352 * config/ia64/ia64.c: Likewise.
12353 * config/ia64/ia64.h: Likewise.
12354 * config/ia64/ia64intrin.h: Likewise.
12355 * config/ia64/linux.h: Likewise.
12356 * config/ia64/unwind-aix.c: Likewise.
12357 * config/ia64/unwind-ia64.c: Likewise.
12359 2002-01-20 Kazu Hirata <kazu@hxi.com>
12361 * config/h8300/h8300.c: Revise comments about shift code.
12363 2002-01-20 Kazu Hirata <kazu@hxi.com>
12365 * config/h8300/h8300.c (function_arg): Update a comment.
12367 2002-01-20 Kazu Hirata <kazu@hxi.com>
12369 * config/h8300/h8300.md: Update the comments at the beginning
12372 2002-01-20 Kazu Hirata <kazu@hxi.com>
12374 * config/i370/i370.c: Fix comment formatting.
12375 * config/i370/i370.h: Likewise.
12376 * config/i370/i370.md: Likewise.
12377 * config/i370/linux.h: Likewise.
12379 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12381 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
12383 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
12384 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
12385 in incomplete case.
12387 2002-01-20 Graham Stott <grahams@redhat.com>
12389 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
12391 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
12393 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
12395 2002-01-19 Tom Rix <trix@redhat.com>
12397 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
12399 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
12401 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
12403 * function.c (assign_stack_local_1): Adjust x_frame_offset with
12404 STARTING_FRAME_PHASE.
12405 (STARTING_FRAME_PHASE): New.
12406 (instantiate_virtual_regs): Check saneness of
12407 STARTING_FRAME_PHASE.
12409 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
12411 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12413 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
12415 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
12417 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
12418 be used for bootstrapping GCC 3.0.
12420 2002-01-18 Kazu Hirata <kazu@hxi.com>
12422 * config/h8300/h8300.md: Fix an insn length.
12424 2002-01-18 Kazu Hirata <kazu@hxi.com>
12426 * bitmap.h: Fix comment formatting.
12427 * combine.c: Likewise.
12428 * cppfiles.c: Likewise.
12429 * c-pragma.h: Likewise.
12430 * c-typeck.c: Likewise.
12432 * dwarf2out.c: Likewise.
12433 * function.c: Likewise.
12435 * genattrtab.c: Likewise.
12436 * gthr-win32.h: Likewise.
12437 * haifa-sched.c: Likewise.
12438 * predict.c: Likewise.
12439 * rtlanal.c: Likewise.
12441 * unwind-dw2-fde.h: Likewise.
12442 * unwind-pe.h: Likewise.
12443 * vmsdbgout.c: Likewise.
12445 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12447 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
12448 if type_required and passed decl.
12450 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
12452 * config.gcc (cpu_type): Include altivec.h in powerpc
12456 * config/rs6000/altivec.h: New.
12458 2002-01-17 David Edelsohn <edelsohn@gnu.org>
12460 * doc/install.texi (*-ibm-aix*): Update assembler and exception
12461 handling information.
12462 * doc/trouble.texi (Interoperation): Add libstdc++ information
12464 (Misunderstandings): Add template instantiation and static template
12465 member information for AIX.
12467 2002-01-17 Jason Merrill <jason@redhat.com>
12469 * dbxout.c (dbxout_type): Support const and volatile.
12471 * except.c (add_partial_entry): Remove backwards compatibility code.
12472 (end_protect_partials): Likewise.
12474 2002-01-17 Jakub Jelinek <jakub@redhat.com>
12476 * config/ia64/ia64.md (prologue_use): New.
12477 * config/ia64/ia64.c (ia64_expand_prologue): Use
12478 gen_prologue_use instead of gen_rtx_USE.
12479 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
12480 as CODE_FOR_pred_rel_mutex.
12481 (ia64_sched_reorder2): Likewise.
12483 2002-01-16 Eric Christopher <echristo@redhat.com>
12485 * config/mips/r3900.h: Reformat.
12486 (SUBTARGET_CPP_SIZE_SPEC): Remove.
12487 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
12488 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
12489 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
12490 * config/mips/t-elf: Remove mips3 multilib.
12492 2002-01-16 H.J. Lu <hjl@gnu.org>
12494 * config/mips/linux.h: Include "mips/abi64.h".
12496 2002-01-16 H.J. Lu <hjl@gnu.org>
12498 * config/mips/t-linux: New.
12500 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
12502 * config/mips/linux.h: Don't include "gofast.h".
12503 (INIT_SUBTARGET_OPTABS): Removed.
12505 2002-01-16 Kazu Hirata <kazu@hxi.com>
12507 * config/h8300/h8300-protos.h: Replace emit_a_shift with
12509 * config/h8300/h8300.c: Likewise.
12510 * config/h8300/h8300.md: Likewise.
12512 2002-01-16 Kazu Hirata <kazu@hxi.com>
12514 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
12515 spaces after an opcode name.
12516 (pushqi1_h8300hs): Likewise.
12517 (pushhi1_h8300hs): Likewise.
12519 2002-01-16 Kazu Hirata <kazu@hxi.com>
12521 * doc/extend.texi: Replace "option" with "attribute"
12524 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12526 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
12527 (and:DI () (const_int -8)).
12528 (split_small_symbolic_mem_operand): Split
12529 (mem (and:DI () (const_int -8)).
12531 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12534 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
12535 same way as TYPE_IMUL.
12536 (ultrasparc_sched_reorder): Likewise.
12537 * config/sparc/sparc.md (type): Add comment to update
12538 ultrasparc_sched_reorder when making changes.
12540 2002-01-16 Kazu Hirata <kazu@hxi.com>
12542 * doc/invoke.texi: Change the dump file name of block
12543 reordering pass from 28.bbro to 29.bbro.
12544 Mention -dk option.
12546 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
12548 * i386.md (minsf splitter): Fix pasto.
12550 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
12552 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
12553 to frame pointer initialisation instruction.
12554 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
12555 initialisation instruction.
12556 (soft_df_operand): Do not accept the IP register.
12557 (nonimmediate_soft_df_operand): Do not accept the IP register.
12559 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12562 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
12563 MASK_V8 being both set.
12565 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
12567 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
12568 insn for GOT register; add REG_MAYBE_DEAD notes instead.
12569 config/s390/s390.md (call, call_value): Add GOT register to
12570 CALL_INSN_FUNCTION_USAGE where needed.
12571 (call_exp, call_value_exp): New.
12573 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
12575 * config/arm/arm.c: General formatting tidy up.
12577 2002-01-16 Graham Stott <grahams@redhat.com>
12579 * calls.c (try_to_integrate): Use "(size_t)" intermediate
12580 cast and when casting an integer literal to "rtx" pointer.
12581 (expand_call): Likewise.
12582 * flow.c (try_pre_increment): Likewise.
12583 (find_use_as_address): Likewise.
12584 * integrate.c (expand_iline_function): Likewise.
12585 * regmove.c (try_auto_increment): Likewise.
12587 2002-01-16 Graham Stott <grahams@redhat.com>
12589 * sched-rgn.c (passed): Use sbitmap_free.
12590 (header): Likewise.
12592 (in_queue): Likewise.
12593 (in_stack): Likewise.
12595 2002-01-15 Eric Christopher <echristo@redhat.com>
12597 * flow.c (propagate_one_insn): Change to use fatal_insn.
12599 2002-01-15 Kazu Hirata <kazu@hxi.com>
12601 * expmed.c (extract_fixed_bit_field): Remove unused code.
12602 * system.h: Poison SLOW_ZERO_EXTEND.
12603 * doc/tm.texi: Remove.
12604 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
12605 * config/arm/arm.h: Likewise.
12606 * config/avr/avr.h: Likewise.
12607 * config/clipper/clipper.h: Likewise.
12608 * config/convex/convex.h: Likewise.
12609 * config/d30v/d30v.h: Likewise.
12610 * config/dsp16xx/dsp16xx.h: Likewise.
12611 * config/elxsi/elxsi.h: Likewise.
12612 * config/fr30/fr30.h: Likewise.
12613 * config/h8300/h8300.h: Likewise.
12614 * config/i370/i370.h: Likewise.
12615 * config/i386/i386.h: Likewise.
12616 * config/m68k/m68k.h: Likewise.
12617 * config/mips/mips.h: Likewise.
12618 * config/ns32k/ns32k.h: Likewise.
12619 * config/pdp11/pdp11.h: Likewise.
12620 * config/pj/pj.h: Likewise.
12621 * config/s390/s390.h: Likewise.
12622 * config/sh/sh.h: Likewise.
12623 * config/stormy16/stormy16.h: Likewise.
12624 * config/v850/v850.h: Likewise.
12625 * config/vax/vax.h: Likewise.
12626 * config/we32k/we32k.h: Likewise.
12628 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
12630 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
12631 (altivec_lvsl): Change constraint to b.
12632 (altivec_lvsr): Same.
12633 (altivec_lvebx): Same.
12634 (altivec_lvehx): Same.
12635 (altivec_lvewx): Same.
12636 (altivec_lvxl): Same.
12637 (altivec_lvx): Same.
12638 (altivec_stvx): Add parallel.
12639 (altivec_stvxl): Same.
12640 (altivec_stvehx): Same.
12641 (altivec_stvebx): Same.
12642 (altivec_stvebx): Same.
12644 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
12646 * config.gcc: Change altivec.h to altivec-defs.h.
12648 * config/rs6000/altivec.h: Delete.
12650 * config/rs6000/altivec-defs.h: Add.
12652 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
12654 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
12657 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
12658 less than or equal to eight bytes.
12660 * vax.md (andsi3): Remove constraints and change SET destination
12661 operand type to nonimmediate_operand.
12662 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
12663 when it is a CONST_INT.
12665 2002-01-15 Jason Merrill <jason@redhat.com>
12667 * c-common.def (FILE_STMT): New code.
12668 * c-common.c (statement_code_p): It's a statement.
12669 * c-common.h (stmt_tree_s): Add x_last_filename.
12670 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
12671 (last_expr_filename): New macro.
12672 * c-semantics.c (begin_stmt_tree): Initialize it.
12673 (add_stmt): If the filename changed, also insert a
12675 (expand_stmt): Handle seeing one.
12677 2002-01-15 Eric Christopher <echristo@redhat.com>
12679 * flow.c (propagate_one_insn): Add error message and print out
12680 insn for debugging.
12682 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
12684 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
12685 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
12686 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
12687 TRAMPOLINE_ALIGNMENT.
12688 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
12690 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
12691 PCC_BITFIELD_TYPE_MATTERS.
12692 * config/interix.h (STDC_VALUE): Remove. Use
12693 STDC_0_IN_SYSTEM_HEADERS.
12694 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
12695 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
12696 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
12698 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
12700 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
12701 not work on this platform currently.
12703 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
12705 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
12706 readonly_warning in _().
12708 2002-01-15 Douglas B Rupp <rupp@gnat.com>
12710 * gcc.c (delete_if_ordinary): Backout previous change.
12712 2002-01-15 Kazu Hirata <kazu@hxi.com>
12714 * config/h8300/h8300.c (print_operand): Remove support for
12715 unused operand characters.
12717 * read-rtl.c: Fix formatting.
12718 * real.c: Likewise.
12719 * recog.c: Likewise.
12720 * regclass.c: Likewise.
12721 * regmove.c: Likewise.
12722 * reg-stack.c: Likewise.
12723 * reload1.c: Likewise.
12724 * rtlanal.c: Likewise.
12726 2002-01-15 Kazu Hirata <kazu@hxi.com>
12728 * config/i386/i386.c: Fix formatting.
12730 2002-01-15 Jakub Jelinek <jakub@redhat.com>
12732 * c-typeck.c (process_init_element): Don't save_expr
12733 COMPOUND_LITERAL_EXPR if just its initializer will be used.
12735 2002-01-15 David Edelsohn <edelsohn@gnu.org>
12737 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
12738 emit optional traceback table if optimize_size or TARGET_ELF.
12739 * config/rs6000/rs6000.md (prefetch): New.
12741 2002-01-15 Andreas Jaeger <aj@suse.de>
12743 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
12745 2002-01-15 Kazu Hirata <kazu@hxi.com>
12747 * mips-tfile.c: Fix formatting.
12749 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
12751 * unroll.c (final_reg_note_copy): Fix previous commit.
12753 2002-01-14 Kazu Hirata <kazu@hxi.com>
12755 * config/h8300/h8300-protos.h: Remove the prototype for
12757 * config/h8300/h8300.c (eq_operator): Remove.
12759 2002-01-14 Richard Henderson <rth@redhat.com>
12761 * config/i386/i386.md (prefetch): Tidy.
12762 (prefetch_3dnow): Fix locality operand.
12764 2002-01-14 Richard Henderson <rth@redhat.com>
12766 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
12767 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
12769 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
12771 * reload1.c (reload_combine): Pass reg_sum replacement through
12772 copy_rtx in loop performing multiple changes.
12774 2002-01-14 Jakub Jelinek <jakub@redhat.com>
12776 * except.c (remove_unreachable_regions): New.
12777 (free_eh_status): Clear exception_handler_labels.
12778 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
12779 (find_exception_handler_labels): Don't add the same label more than
12781 (remove_exception_handler_label): Don't die if
12782 find_exception_handler_labels hasn't been called for the current
12785 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
12787 * toplev.c (rest_of_compilation): Rebuild jump labels after
12790 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
12792 * doc/extend.texi: Move documentation of X86 built-in functions
12794 * doc/invoke.texi: From here.
12795 * doc/sourcebuild.texi: Document location of documentation for
12796 machine built-in functions.
12798 2002-01-13 Christopher Faylor <cgf@redhat.com>
12800 * cppfiles.c (TEST_THRESHOLD): New macro.
12801 (SHOULD_MMAP): Ditto.
12802 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
12805 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
12807 * unroll.c (final_reg_note_copy): Properly handle
12809 (unroll_loops): Fix LOOP_CONDITION heuristics.
12811 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
12813 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
12814 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
12816 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
12818 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
12821 2002-01-14 Tom Rix <trix@redhat.com>
12823 * config/rs6000/rs6000.md: Fix typo with sradi.
12825 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
12827 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
12828 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
12829 (clrstrdi, clrstrsi): Adapt callers.
12831 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
12833 (movti splitter): Never use register 0 as base register.
12835 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
12837 * combine.c (simplify_shift_const): Always generate new rtx
12838 for shift expression instead of reusing given expression.
12840 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12842 * config/alpha/alpha.c (alpha_expand_mov): Don't call
12843 alpha_legitimize_address unless mode is Pmode.
12845 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
12847 * doc/md.texi (Modifiers): Document the '*' constraint for the
12850 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
12851 * doc/extend.texi (Function Attributes): 'interrupt' is valid
12854 2002-01-13 Richard Henderson <rth@redhat.com>
12856 * reload.c (find_reloads): Use a hard reg destination as reload reg
12857 for an input reload of the source.
12859 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12861 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
12864 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
12866 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12867 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12869 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
12871 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12873 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
12875 2002-01-12 Tom Rix <trix@redhat.com>
12877 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
12880 2002-01-12 Richard Henderson <rth@redhat.com>
12882 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
12884 * doc/invoke.texi: Update Alpha options.
12886 * doc/invoke.texi: Update i386 built-in function lists.
12888 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
12890 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
12891 referencing outside.
12893 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12895 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
12896 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
12897 offsets, and change line folding.
12898 * optabs.c (expand_binop): Remove warnings.
12899 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
12901 2002-01-12 Graham Stott <grahams@redhat.com>
12903 * attribs.c (handle_deprecated_attribute): constify WHAT.
12904 * diagnostic.c (warn_deprecated_use): Add braces, fixes
12905 dangling else warning and constify WHAT.
12906 * except.h (struct function, struct inline_remap): Move
12907 struct tag forward defs before all prototypes.
12908 (duplicate_eh_regions): Whitespace.
12910 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
12912 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12913 MODE_BASE_REG_CLASS.
12914 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
12916 2002-01-12 Richard Henderson <rth@redhat.com>
12918 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
12919 (ix86_expand_vector_move): New.
12920 (bdesc_2arg): Remove andps, andnps, orps, xorps.
12921 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
12922 Remove old prefetch builtins. Special case the logicals removed above.
12923 (ix86_expand_builtin): Likewise.
12924 (safe_vector_operand): Use V4SFmode, not TImode.
12925 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
12926 (ix86_expand_timode_binop_builtin): New.
12927 * config/i386/i386-protos.h: Update.
12928 * config/i386/i386.h (enum ix86_builtins): Update.
12929 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
12930 Use ix86_expand_vector_move in vector move expanders.
12931 (movti_internal, movti_rex64): Add xorps alternative.
12932 (sse_clrv4sf): Rename and adjust from sse_clrti.
12933 (prefetch): Don't work so hard.
12934 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
12935 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
12936 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
12938 2002-01-11 Richard Henderson <rth@redhat.com>
12940 * config/i386/mmintrin.h: New file.
12941 * config/i386/xmmintrin.h: New file.
12942 * config.gcc (i?86-*-*): Add extra_headers.
12943 * simplify-rtx.c (simplify_unary_operation): Handle saturating
12945 (simplify_binary_operation): Handle saturating arithmetic codes.
12946 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
12947 not the lowpart subreg.
12948 (ix86_expand_builtin): Return a TImode dummy register instead of 0
12950 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
12952 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12954 * conflict.c (conflict_graph_compute): Free regsets when finished.
12955 * ssa.c (compute_coalesced_reg_partition): Likewise.
12957 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12959 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
12960 every where we allocate a register.
12962 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12964 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
12965 * lcm.c (compute_earliest, compute_farthest): Likewise.
12967 2002-01-11 Janis Johnson <janis187@us.ibm.com>
12969 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
12971 2002-01-11 Janis Johnson <janis187@us.ibm.com>
12973 * doc/rtl.texi (Insns): Fix 2 typos.
12975 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
12977 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
12978 options. Use @table @gcctabopt for MMIX options. Add index
12979 entries for MMIX options. Start new paragraph with first
12980 heading of the machine-dependent options.
12982 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
12985 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
12986 * combine.c (force_to_mode): Same.
12987 * reload1.c (clear_reload_reg_in_use): Same.
12989 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
12991 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
12994 2002-01-11 Andreas Jaeger <aj@suse.de>,
12995 Brad Lucier <lucier@math.purdue.edu>
12997 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
13000 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
13002 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
13003 Protect with IN_LIBGCC.
13004 (LINK_EH_SPEC): Add required trailing space.
13006 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
13008 * c-tree.h: Move function declarations so that they are listed
13009 under the filename which contains them.
13010 (check_identifier, finish_decl_top_level,
13011 lookup_name_current_level_global, shadow_record_fields): Remove.
13013 2002-01-11 Andreas Jaeger <aj@suse.de>
13015 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
13018 2002-01-10 Richard Henderson <rth@redhat.com>
13020 * config/alpha/alpha.c (print_operand): Add 'J'.
13021 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
13022 new operand with the sequence number for the lituse. When splitting
13023 the insns, use gen_movdi_er_high_g and generate a sequence number.
13024 (gen_movdi_er_high_g): Print the sequence number if non-zero.
13026 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
13028 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
13029 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
13031 (altivec_expand_builtin): Same.
13032 (altivec_expand_stv_builtin): New.
13034 * config/rs6000/rs6000.h (rs6000_builtins): Same.
13036 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
13037 ("altivec_lvehx"): New.
13038 ("altivec_lvewx"): New.
13039 ("altivec_lvxl"): New.
13040 ("altivec_lvx"): New.
13041 ("altivec_stvx"): New.
13042 ("altivec_stvebx"): New.
13043 ("altivec_stvehx"): New.
13044 ("altivec_stvewx"): New.
13045 ("altivec_stvxl"): New.
13047 2002-01-10 Richard Henderson <rth@redhat.com>
13049 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
13050 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
13051 care not to delete instructions twice.
13053 2002-01-10 Zack Weinberg <zack@codesourcery.com>
13055 * toplev.c: Don't declare environ (it's not used anywhere).
13056 * configure.in: Don't check for declaration of environ.
13057 * config/i386/xm-mingw32.h: Don't #define environ.
13058 * config.in, configure: Regenerate.
13060 2002-01-10 Zack Weinberg <zack@codesourcery.com>
13062 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
13063 * configure: Regenerate.
13065 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
13066 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
13067 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
13069 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
13070 LIMITS_H_TEST here, not in m68k/x-next.
13071 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
13072 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
13074 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
13075 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
13076 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
13078 * config/i386/x-djgpp: Renamed i386/t-djgpp.
13079 * config/m88k/x-dolph: Renamed m88k/t-dolph.
13080 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
13081 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
13082 replacement of quadlib.asm with quadlib.c.
13084 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
13085 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
13086 config/rs6000/xm-beos.h: Delete file.
13088 * config.gcc: Update to match above changes.
13090 2002-01-10 Kazu Hirata <kazu@hxi.com>
13092 * config/h8300/h8300.h: Fix comment typos.
13093 * config/h8300/h8300.md: Likewise.
13094 * config/h8300/lib1funcs.asm: Likewise.
13096 2002-01-10 Dale Johannesen <dalej@apple.com>
13098 PR optimization/5269
13099 * unroll.c (precondition_loop_p): Make *increment be the correct
13100 sign when n_iterations known, to avoid confusing caller.
13102 2002-01-10 Kazu Hirata <kazu@hxi.com>
13104 * doc/extend.texi (deprecated): Fix a typo.
13106 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
13108 * basic-block.h (update_br_prob_note): Declare.
13109 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
13110 (try_forward_edges): Care negative frequencies and update note.
13111 (outgoing_edges_match): Tweek conditional merging heuristics.
13112 (try_crossjump_to_edge): use update_br_prob_note.
13113 * cfglayout.c (fixup_reorder_chain): Likewise.
13114 * cfrtl.c (update_br_prob_note): New.
13115 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
13117 * i386.c (ix86_decompose_address): Return -1 if address contains
13119 (legitimate_address_p): Require ix86_decompose_address to return 1.
13121 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
13122 (cprop_insn): Likewise.
13124 2002-01-10 Kazu Hirata <kazu@hxi.com>
13126 * toplev.c: Fix formatting.
13127 * tree.c: Likewise.
13128 * tree-dump.c: Likewise.
13129 * unroll.c: Likewise.
13130 * unwind-dw2.c: Likewise.
13131 * unwind-dw2-fde.c: Likewise.
13132 * unwind-dw2-fde-glibc.c: Likewise.
13133 * unwind-sjlj.c: Likewise.
13135 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
13137 * doc/invoke.texi: Document PDP-11 options.
13139 2002-01-10 Kazu Hirata <kazu@hxi.com>
13141 * config/h8300/h8300.h: Fix formatting.
13143 2002-01-10 Ira Ruben <ira@apple.com>
13145 Add __attribute__ ((deprecated)).
13146 * extend.texi: Document __attribute__ ((deprecated)).
13147 * invoke.texi: Document -Wno-deprecated-declarations.
13148 * testsuite/g++.dg/other/deprecated.C: New C++ test.
13149 * testsuite/gcc.dg/deprecated.c: New C test.
13150 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
13151 (c_common_attribute_table): Add "deprecated" entry.
13152 (handle_deprecated_attribute): New function.
13153 * c-decl.c (deprecated_states): New enum.
13154 deprecated_state: State of "deprecated" handling.
13155 (start_decl): Set deprecated_state based on attributes.
13156 (grokdeclarator): Test for deprecated uses, propagate attribute.
13157 * c-typeck.c (build_component_ref): Test for deprecated fields.
13158 (build_external_ref): Test for deprecated primaries.
13159 * diagnostic.c (warn_deprecated_use) New function to issue
13160 warnings about __attribute__ ((depricated)) references.
13161 * flags.h (warn_deprecated_decl): Extern declared for
13162 -W[no-]deprecated-declarations option.
13163 * print-tree.c (print_node): Show deprecated flag status.
13164 * toplev.c (warn_deprecated_decl): Defined.
13165 (W_options): Added "deprecated-declaration".
13166 * toplev.h (warn_deprecated_use): Extern declared.
13167 * tree.h (struct tree_common): Define deprecated_flag.
13168 (TREE_DEPRECATED): New macro to access flag.
13169 * cp/call.c (build_call): Test for deprecated calls.
13170 * cp/class.c (add_implicitly_declared_members): Set global
13171 flag to tell grokdeclarator to not issue deprecated warnings.
13172 * cp/cp-tree.h: Add extern for adding_implicit_members.
13173 * cp/decl.c (deprecated_states): New enum.
13174 (start_decl): Set deprecated_state based on attributes.
13175 (grokdeclarator): Test for deprecated uses, propagate attribute.
13176 * cp/lex.c (do_identifier): Test for deprecated primaries.
13177 * cp/typeck.c (build_component_ref): Test for deprecated fields.
13179 2002-01-10 Ira Ruben <ira@apple.com>
13181 Fix to assign attributes to inline member functions.
13182 * cp/decl.c (start_method): Handle attrlist.
13184 2002-01-10 Kazu Hirata <kazu@hxi.com>
13186 * combine.c (expand_field_assignment): Use subreg_lsb().
13188 2002-01-10 David Edelsohn <edelsohn@gnu.org>
13190 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
13191 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
13192 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
13193 Recurse for any operand of AND as long as constant is non-zero.
13195 2002-01-10 Kazu Hirata <kazu@hxi.com>
13197 * config/h8300/h8300.md: Remove constraints from expanders.
13199 2002-01-10 Kazu Hirata <kazu@hxi.com>
13201 * varasm.c: Fix formatting.
13202 * varray.c: Likewise.
13203 * vmsdbgout.c: Likewise.
13204 * xcoffout.c: Likewise.
13206 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
13208 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
13209 update edge probabilities to match.
13211 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
13213 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
13215 * doc/languages.texi, doc/sourcebuild.texi: New files.
13216 * doc/configfiles.texi: Make a subsubsection. Update.
13217 * doc/configterms.texi: Add @node. Remove warning that this isn't
13218 instructions for building GCC.
13219 * doc/makefile.texi: Make a subsection.
13220 * doc/gccint.texi: Update.
13222 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
13224 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
13226 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
13228 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
13230 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
13232 * optabs.c (expand_fix): Look for wider integer modes first.
13234 * i386.md (mov?f): Avoid the fake const double trick for medium
13236 (min?f*/max?f*): Prohibit memory operands for i387 variant.
13237 (fop_df_4): Disable for SSE compilation.
13239 2002-01-10 Graham Stott <grahams@redhat.com>
13241 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
13242 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
13244 2002-01-10 Richard Henderson <rth@redhat.com>
13246 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
13248 2002-01-10 Richard Henderson <rth@redhat.com>
13250 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
13251 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
13253 2002-01-10 Kazu Hirata <kazu@hxi.com>
13255 * combine.c (can_combine_p): Fix a comment typo.
13257 2002-01-09 Zack Weinberg <zack@codesourcery.com>
13259 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
13260 empty list correctly. Change loop index $t to $f for
13261 consistency with rest of Makefile.
13263 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
13265 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
13266 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13268 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
13269 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
13270 (altivec_init_builtins): Same.
13271 (altivec_expand_unop_builtin): Return NULL_RTX on error.
13272 (altivec_expand_binop_builtin): Same.
13273 (altivec_expand_ternop_builtin): Same.
13276 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
13277 ("altivec_vctuxs"): Fix typo.
13278 ("altivec_vnmsubfp"): Same.
13279 ("altivec_dssall"): New.
13280 ("altivec_mfvscr"): New.
13281 ("altivec_dss"): New.
13282 ("altivec_lvsl"): New.
13283 ("altivec_lvsr"): New.
13284 ("altivec_dstt"): New.
13285 ("altivec_dstst"): New.
13286 ("altivec_dststt"): New.
13287 ("altivec_dst"): New.
13289 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
13290 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13292 2002-01-09 Richard Henderson <rth@redhat.com>
13294 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
13296 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
13298 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
13300 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
13302 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
13304 2002-01-09 Kazu Hirata <kazu@hxi.com>
13306 * read-rtl.c: Fix formatting.
13307 * real.c: Likewise.
13308 * regclass.c: Likewise.
13309 * regrename.c: Likewise.
13310 * reg-stack.c: Likewise.
13311 * reload1.c: Likewise.
13312 * reload.c: Likewise.
13315 2002-01-09 Kazu Hirata <kazu@hxi.com>
13317 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
13318 to extract items in the expr_list chain.
13320 2002-01-09 Richard Henderson <rth@redhat.com>
13322 * config/vax/vax.c (vax_rtx_cost): Never abort.
13324 * config/vax/vax.h (REAL_ARITHMETIC): Define.
13326 2002-01-09 Jan Hubicka <jh@suse.cz>
13328 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
13330 2002-01-09 Richard Henderson <rth@redhat.com>
13332 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
13333 Unify code from various alternatives.
13335 2002-01-09 Richard Henderson <rth@redhat.com>
13337 * regrename.c (copy_value): Ignore the copy if the source register
13338 is present in the value chain with a narrower mode.
13340 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13342 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
13343 for the c4x target. Also improve layout.
13345 2002-01-09 Richard Henderson <rth@redhat.com>
13347 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
13348 * config/m32r/m32r.md (and ior xor splitters): Swap operands
13349 to match insn patterns.
13351 2002-01-09 Richard Henderson <rth@redhat.com>
13353 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
13354 (copyprop_hardreg_forward_1): Likewise.
13356 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
13358 * pa.md (decrement_and_branch_until_zero): Change predicate for
13359 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
13361 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
13363 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
13364 gets undefined. For Darwin.
13366 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13368 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
13370 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13372 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
13374 2002-01-08 Richard Henderson <rth@redhat.com>
13376 * regrename.c (copy_value): Ignore overlapping copies.
13378 2002-01-08 Richard Henderson <rth@redhat.com>
13380 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
13381 as needed to avoid shared structure.
13383 2002-01-08 Kazu Hirata <kazu@hxi.com>
13385 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
13388 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13390 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
13391 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
13392 documentation of obsolete macros.
13393 * system.h: Poison these macros.
13394 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
13395 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
13396 config/c4x/c4x.h, config/clipper/clipper.h,
13397 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
13398 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
13399 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
13400 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
13401 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
13402 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
13403 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
13404 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
13405 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
13406 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
13407 config/sparc/sparc.h, config/stormy16/stormy16.h,
13408 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
13409 definitions and commented out definitions of obsolete macros.
13410 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
13411 of MAX_INT_TYPE_SIZE.
13413 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
13415 * config/s390/s390.c (s390_preferred_reload_class): Never
13416 return ADDR_REGS if it isn't a subset of the given class.
13417 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
13418 FP_REGS, but all superclasses as well.
13420 * config/s390/s390.c (s390_function_profiler): Fix thinko.
13422 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
13423 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
13424 must not be a const_int.
13426 2002-01-08 Richard Henderson <rth@redhat.com>
13428 * Makefile.in (toplev.o): Depend on options.h.
13429 (gcc.o): Depend on specs.h.
13431 2002-01-08 Jakub Jelinek <jakub@redhat.com>
13433 * expr.c (store_expr): Convert VOIDmode constants back to target's
13436 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13438 * doc/invoke.texi: Markup gcc as @command. Refer to
13439 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
13440 of http://gcc.gnu.org/thanks.html.
13442 2002-01-08 Dale Johannesen <dalej@apple.com>
13444 * config/rs6000/rs6000.md: Add missing int register
13445 target case to movdf_low.
13447 2002-01-08 Zack Weinberg <zack@codesourcery.com>
13449 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
13450 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
13451 (cppinit.o): Depend on except.h.
13452 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
13453 s-specs): New rules.
13455 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
13456 Don't create specs.h/options.h/gencheck.h here. Remove
13457 unnecessary variable settings from last argument of AC_OUTPUT.
13458 * config.in, configure: Regenerate.
13459 * intl.c: Hardcode package name as "gcc".
13461 * cppinit.c: Include except.h.
13462 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
13464 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
13465 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
13466 (!)USING_SJLJ_EXCEPTIONS.
13467 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
13469 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13471 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
13472 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
13473 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
13474 documentation of obsolete macros.
13475 * system.h: Poison these macros.
13476 * config/d30v/d30v.h, config/ns32k/encore.h,
13477 config/stormy16/stormy16.h: Remove definitions and commented out
13478 definitions of obsolete macros.
13480 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
13482 * objc/objc-act.c (handle_class_ref): Mark the declaration of
13483 %sobjc_class_ref_%s as used - to prevent unwanted compiler
13486 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
13488 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
13489 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
13490 to insn adjusting stack/frame pointer.
13491 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
13492 accept operands that cause the insn to be non-splittable.
13494 2002-01-08 Graham Stott <grahams@redhat.com>
13496 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
13497 (C_TYPE_FIELDS_VOLATILE): Likewise.
13498 (C_TYPE_BEING_DEFINED): Likewise.
13499 (C_IS_RESERVED_WORD): Likewise.
13500 (C_TYPE_VARIABLE_SIZE): Likewise.
13501 (C_DECL_VARIABLE_SIZE): Likewise.
13502 (C_MISSING_PROTOTYPE_WARNED): Likewise.
13503 (C_SET_EXP_ORIGINAL_CODE): Likewise.
13504 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
13506 (C_DECL_ANTICIPATED): Likewise.
13507 (c_build_type_variant): Add parenthesis.
13509 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13511 * gcc.c (option_map): Remove --version.
13512 (process_command): Handle -fversion following the GNU Coding
13513 Standards. Partially addresses PR other/704.
13515 2002-01-08 Graham Stott <grahams@redhat.com>
13517 * combine.c (combine_instructions): Fix typo.
13519 2002-01-08 Graham Stott <grahams@redhat.com>
13521 * debug.h: Use "tree" and "rtx" throughout.
13523 * debug.c: Likewise.
13525 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
13527 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
13528 constant pool, use the pool's version of the symbol instead.
13530 2002-01-07 Richard Henderson <rth@redhat.com>
13532 * regrename.c (find_oldest_value_reg): Ignore the value chain if
13533 the original register was copied in a mode with a fewer number of
13534 hard registers than the desired mode.
13535 (copyprop_hardreg_forward_1): Likewise.
13536 (debug_value_data): Fix loop test.
13537 * toplev.c (parse_options_and_default_flags): Reenable
13538 -fcprop-registers at -O1.
13540 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13542 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
13543 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
13545 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
13548 * config/rs6000/rs6000.md: Add altivec predicate patterns.
13550 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
13552 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
13553 (pa_output_function_prologue): Output local label at the beginning of
13554 the prologue when profiling.
13555 (hppa_profile_hook): Use the local label rather than the function label.
13556 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
13558 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13560 * config/rs6000/rs6000.c (print_operand): Remove extra space.
13561 (altivec_expand_unop_builtin): Fix thinko.
13562 (altivec_expand_binop_builtin): Same.
13563 (altivec_expand_ternop_builtin): Same.
13564 (altivec_expand_builtin): Same.
13566 2002-01-07 Richard Henderson <rth@redhat.com>
13568 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
13570 2002-01-07 Jason Merrill <jason@redhat.com>
13572 * unwind-dw2.c (execute_cfa_program): Use < again.
13574 2002-01-07 Jakub Jelinek <jakub@redhat.com>
13576 * predict.c (combine_predictions_for_insn): Avoid division by zero.
13578 2002-01-07 Jakub Jelinek <jakub@redhat.com>
13580 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
13581 Don't allow -1 - x -> ~x simplifications in the first pass.
13583 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13585 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
13587 (altivec_expand_binop_builtin): Same.
13588 (altivec_expand_unop_builtin): Same.
13589 (print_operand): Fix typo.
13590 (bdesc_1arg): Add vupk* variants.
13592 * rs6000.h (rs6000_builtins): Add vupk* enums.
13594 * rs6000.md: Add altivec_vupk* variants.
13596 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
13598 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
13599 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
13600 and last update dates.
13602 2002-01-07 Janis Johnson <janis187@us.ibm.com>
13604 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
13606 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
13608 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
13609 * config/avr/avr.h (CPP_SPEC): Likewise.
13610 (LINK_SPEC): Likewise.
13611 (CRT_BINUTILS_SPECS): Likewise.
13612 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13613 * doc/invoke.texi (AVR Options): Document them.
13615 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
13617 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
13620 2002-01-07 Graham Stott <grahams@redhat.com>
13622 * config/i386/i386.h: Update copyright date.
13623 (HALF_PIC_PTR): Add parenthesis.
13624 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
13625 (CONSTANT_ALIGNMENT): Add parenthesis.
13626 (DATA_ALIGNMENT): Likewise.
13627 (LOCAL_ALIGNMENT): Likewise.
13628 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
13629 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
13630 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
13631 (HARD_REGNO_NREGS): Add paranethesis.
13632 (VALID_SSE_REG_MODE): Whitespace.
13633 (VALID_MMX_REG_MODE): Whitespace.
13634 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
13635 (ix86_hard_regno_mode_ok): Add parenthesis.
13636 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
13637 (RETURN_IN_MEMORY): Whitespace.
13638 (N_REG_CLASSES): Add parenthesis.
13639 (INTEGER_CLASS_P): Add parenthesis and wrap.
13640 (FLOAT_CLASS_P): Likewise.
13641 (SSE_CLASS_P): Likewise.
13642 (MMX_CLASS_P): Likewise.
13643 (MAYBE_INTEGER_CLASS_P): Likewise.
13644 (MAYBE_FLOAT_CLASS_P): Likewise.
13645 (MAYBE_SSE_CLASS_P): Likewise.
13646 (MAYBE_MMX_CLASS_P): Likewise.
13647 (Q_CLASS_P): Likewise.
13648 (GENERAL_REGNO_P): Uppercase macro parameter.
13649 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
13650 (FP_REGNO_P): Likewise.
13651 (ANY_FP_REGNO_P): Uppercase macro parameter.
13652 (SSE_REGNO_P): Likewise.
13653 (SSE_REGNO): Likewise.
13654 (SSE_REG_P): Likewise.
13655 (SSE_FLOAT_MODE_P): Likewise.
13656 (MMX_REGNO_P): Likewise.
13657 (MMX_REG_P):Likewise.
13658 (STACK_REG_P): Likewise.
13659 (NON_STACK_REG_P): Likewise.
13660 (STACK_TOP_P): Likewise.
13661 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
13662 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
13663 (SECONDARY_MEMORY_NEEDED): Likewise.
13664 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
13665 (MD_ASM_CLOBBERS): Whitespace and wrap.
13666 (MUST_PASS_IN_STACK): Whitespace and wrap.
13667 (RETURN_POPS_ARGS): Add parenthesis.
13668 (INIT_CUMULATIVE_ARGS): Likewise.
13669 (FUNCTION_ARG): Likewise.
13670 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
13671 (SETUP_INCOMING_VARARGS): Likewise.
13672 (BUILD_VA_LIST_TYPE): Add parenthesis.
13673 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
13675 (EXPAND_BUILTIN_VA_ARG): Likewise.
13676 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
13677 (INITIALIZE_TRAMPOLINE): Add parenthesis.
13678 (INITIAL_ELIMINATION_OFFSET): Likewise.
13679 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
13680 (REGNO_OK_FOR_BASE_P): Likewise.
13681 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
13682 (REGNO_OK_FOR_DIREG_P): Likewise.
13683 (REG_OK_FOR_INDEX_P): Whitespace.
13684 (REG_OK_FOR_BASE_P): Whitespace.
13685 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
13687 (FIND_BASE_TERM): Fix typo.
13688 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
13689 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
13690 (SYMBOLIC_CONST; Whitespace.
13691 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
13692 (ENCODE_SECTION_INFO): Whitespace.
13693 (FINALIZE_PIC): Remove do { ... } while (0).
13694 (PROMOTE_MODE): Wrap in do { ... } while (0).
13695 (CONST_COSTS): Whitespace.
13696 (RTX_COSTS): Add paramethesis, whitespace and wrap.
13697 (REGISTER_MOVE_COST): Add parenthesis.
13698 (MEMORY_MOVE_COST): Likewise.
13699 (EXTRA_CC_MODES): Whitespace.
13700 (SELECT_CC_MODE): Add parenthesis and whitespace.
13701 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
13702 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
13703 (ASM_OUTPUT_LABEL): Add paramethesis.
13704 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
13705 (ASM_OUTPUT_REG_POP): Likewise.
13706 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
13707 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13709 * config/i386/i386.c: Update copyright.
13710 (CHECK_STACK_LIMIT): Add parenthesis.
13711 (AT_BP): Uppercase macro parameter.
13712 (x86_64_int_parameter_registers): Constify.
13713 (x86_64_int_return_registers): Likewise.
13714 (ix86_compare_op0): Use rtx.
13715 (construct_container): Constify INTREG parameter.
13716 (function_arg): Use rtx.
13718 * diagnostic.h: Update copyright date.
13719 (output_buffer_state): Add parenthesis.
13720 (output_buffer_format_args): Likewise.
13722 * combine.c (combine_instructions): Replace XEXP (links, 0)
13725 2002-01-06 H.J. Lu <hjl@gnu.org>
13727 * cfgcleanup.c (thread_jump): Fix 2 typos.
13729 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
13731 * config.gcc: Add support for --enable-altivec.
13733 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13735 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
13737 2002-01-06 Jakub Jelinek <jakub@redhat.com>
13739 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
13740 __objc_class_name_*.
13742 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13744 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
13746 2002-01-06 Richard Henderson <rth@redhat.com>
13748 * reorg.c (emit_delay_sequence): Remove death notes, not merely
13749 nop them out. Increment label reference count for REG_LABEL.
13750 (fill_slots_from_thread): Frob label reference count around
13751 delete_related_insns.
13753 2002-01-05 Richard Henderson <rth@redhat.com>
13755 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
13758 2002-01-05 Richard Henderson <rth@redhat.com>
13760 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
13761 * integrate.c (output_inline_function): Likewise.
13762 * toplev.c (rest_of_compilation): Do it here instead. Move call
13763 to remove_unnecessary_notes after emitting abstract instance.
13764 Force an emitted nested function to have its parent emited as well.
13765 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
13767 (rtl_for_decl_location): Do not look at reload data structures
13768 before reload has run.
13770 2002-01-05 Kazu Hirata <kazu@hxi.com>
13772 * cse.c: Fix formatting.
13773 * dwarf2asm.c: Likewise.
13774 * dwarf2out.c: Likewise.
13775 * explow.c: Likewise.
13776 * expmed.c: Likewise.
13777 * function.c: Likewise.
13778 * gcov.c: Likewise.
13779 * gencheck.c: Likewise.
13780 * genrecog.c: Likewise.
13781 * ggc-common.c: Likewise.
13782 * ggc-page.c: Likewise.
13783 * global.c: Likewise.
13785 2002-01-05 Kazu Hirata <kazu@hxi.com>
13787 * combine.c: Fix formatting.
13789 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
13792 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
13794 2002-01-05 David Edelsohn <edelsohn@gnu.org>
13796 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
13797 as 1 for __powerpc64__ as well.
13799 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
13801 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
13804 2002-01-05 Daniel Berlin <dan@dberlin.org>
13806 * lcm.c: Revert change, due to performance regression it causes on
13807 SPEC because it's slightly more conservative (sigh, I hate
13810 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
13812 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
13814 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
13816 * doc/cppinternals.texi: Update.
13818 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
13820 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
13821 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
13823 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
13824 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
13825 kludge for pre-october-14th mmix versions to handle new-found bug
13826 with PUSHJ/PUSHGO and the register stack.
13827 * config/mmix/mmix.h (struct machine_function): Rename member
13828 has_call_value_without_parameters to has_call_without_parameters.
13829 All referers changed.
13830 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
13831 TARGET_MASK_BRANCH_PREDICT): New macros.
13832 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
13833 -mno-reg-stack-fill-bug-workaround.
13834 * config/mmix/mmix.md ("call"): Set struct machine member
13835 has_call_without_parameters.
13837 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
13839 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
13841 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
13843 * cfgcleanup.c: Include tm_p.h
13844 (mark_effect): Fix handling of hard register; fix handling of SET
13846 2002-01-04 Kazu Hirata <kazu@hxi.com>
13848 * config/h8300/h8300.md (anonymous patterns): Check that
13849 operands are registers before using REGNO on them.
13851 2002-01-03 Roland McGrath <roland@frob.com>
13853 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
13855 2002-01-04 Jakub Jelinek <jakub@redhat.com>
13857 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
13858 * c-common.h (genrtl_expr_stmt_value): Likewise.
13859 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
13860 (expand_expr_stmt_value): Add maybe_last argument.
13861 Don't warn about statement with no effect if it is the last statement
13862 in expression statement.
13863 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
13864 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
13865 expand_expr_stmt_value.
13866 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
13867 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
13868 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
13869 as maybe_last to expand_expr_stmt_value.
13871 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
13873 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
13874 be passed in, do not build it.
13875 (c_begin_if_stmt): New function.
13876 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13877 * c-common.h (c_expand_start_cond): Update prototype.
13878 (c_begin_if_stmt): Prototype new function.
13879 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13880 * c-parse.in (if_prefix): Use c_begin_if_stmt,
13881 c_begin_while_stmt and c_finish_while_stmt_cond.
13883 2002-01-04 William Cohen <wcohen@redhat.com>
13885 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
13886 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
13887 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
13888 * config/pa/som.h (ASM_FILE_START): Likewise.
13890 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
13892 * lcm.c: Include df.h.
13893 Add available_transfer_function prototype.
13894 (compute_available): Rework to use iterative dataflow framework.
13895 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
13896 with bb_info in df.h
13897 (available_transfer_function): New function.
13899 * Makefile.in (lcm.o): add df.h to dependencies.
13901 2002-01-04 Richard Henderson <rth@redhat.com>
13903 * config/alpha/alpha.c (some_operand): Accept HIGH.
13904 (input_operand): Likewise; accept simple references to globals.
13905 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
13906 (alpha_const_double_ok_for_letter_p): Likewise.
13907 (alpha_extra_constraint): Likewise.
13908 (alpha_preferred_reload_class): Likewise. Do not force
13909 symbolic constants to memory.
13910 (alpha_legitimate_address_p): Accept simple references
13911 to small_symbolic_operand.
13912 (alpha_legitimize_address): New arg scratch. Be prepared to be
13913 called when no_new_pseudos. Emit simple symbolic references.
13914 Split integers into low, high, and rest.
13915 (alpha_expand_mov): Use alpha_legitimize_address.
13916 (some_small_symbolic_mem_operand): New.
13917 (split_small_symbolic_mem_operand): New.
13918 * config/alpha/alpha-protos.h: Update.
13919 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
13920 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
13921 (EXTRA_CONSTRAINT): Likewise.
13922 (PREFERRED_RELOAD_CLASS): Likewise.
13923 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
13924 (PREDICATE_CODES): Update.
13925 * config/alpha/alpha.md: New post-reload splitters to convert
13926 simplfied symbolic operands to the form that references $29.
13927 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
13928 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
13930 2002-01-03 Richard Henderson <rth@redhat.com>
13932 * local-alloc.c (function_invariant_p): Update commentary.
13934 2002-01-04 H.J. Lu <hjl@gnu.org>
13936 * toplev.c (rest_of_compilation): Fix a typo when calling
13939 2002-01-03 Kazu Hirata <kazu@hxi.com>
13941 * c-common.c: Fix formatting.
13942 * diagnostic.c: Likewise.
13943 * doloop.c: Likewise.
13944 * dwarf2out.c: Likewise.
13946 2002-01-03 Kazu Hirata <kazu@hxi.com>
13948 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
13949 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
13951 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
13953 * cpperror.c: Update comments and copyright.
13954 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
13955 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
13957 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
13959 * collect2.c (main): Use strcmp when testing for "-shared".
13961 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
13963 * cppmacro.c: Don't include intl.h. Update comments.
13964 (new_number_token): Allocate enough buffer for 64-bit unsigned
13965 integers; update prototype.
13966 * cppmain.c: Update comments.
13968 2002-01-03 William Cohen <wcohen@redhat.com>
13970 * function.h (struct function): Add profile.
13971 (current_function_profile): New.
13972 doc/extend.texi: Update documentation.
13973 * final.c (final_start_function): Use current_function_profile
13974 instead of profile_flag.
13975 (profile_after_prologue): Likewise.
13976 * function.c (expand_function_start): Likewise.
13977 (expand_function_start): Likewise.
13978 * config/alpha/alpha.c (direct_call_operand):
13979 (alpha_does_function_need_gp): Likewise.
13980 (alpha_expand_prologue): Likewise.
13981 * config/arm/arm.c (arm_expand_prologue): Likewise.
13982 thumb_expand_prologue: Likewise.
13983 * config/d30v/d30v.c (d30v_stack_info): Likewise.
13984 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
13985 (fr30_expand_prologue): Likewise.
13986 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
13987 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
13988 * config/i386/i386.h (FINALIZE_PIC): Likewise.
13989 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
13990 * config/i960/i960.c (i960_output_function_prologue): Likewise.
13991 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13992 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
13993 (m32r_expand_prologue): Likewise.
13994 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
13995 (m88k_expand_prologue): Likewise.
13996 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
13997 * config/mips/mips.c (compute_frame_size): Likewise.
13998 (mips_expand_prologue): Likewise.
13999 (mips_can_use_return_insn): Likewise.
14000 * config/pa/elf.h (ASM_FILE_START): Likewise.
14001 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14002 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14003 * config/pa/som.h (ASM_FILE_START): Likewise.
14004 * config/romp/romp.c (romp_using_r14): Likewise.
14005 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
14006 (rs6000_stack_info): Likewise.
14007 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14008 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
14009 * config/v850/v850.c (compute_register_save_size): Likewise.
14011 2002-01-03 Jakub Jelinek <jakub@redhat.com>
14013 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
14014 gen_lowpart_common fails, use gen_lowpart_SUBREG.
14016 2002-01-03 Turly O'Connor <turly@apple.com>
14018 * darwin.c (machopic_output_possible_stub_label): Don't generate
14019 stub routines for pseudo-stubs which we've just defined.
14021 2002-01-03 Kazu Hirata <kazu@hxi.com>
14023 * builtins.c: Fix formatting.
14024 * c-typeck.c: Likewise.
14025 * combine.c: Likewise.
14026 * expr.c: Likewise.
14027 * loop.c: Likewise.
14029 2002-01-03 Andreas Schwab <schwab@suse.de>
14031 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
14032 and return true if _cpp_push_next_buffer pushed a new include
14034 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
14035 _cpp_pop_file_buffer did not push a new file.
14036 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
14038 2002-01-02 Eric Christopher <echristo@redhat.com>
14040 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
14041 FIND_REG_INC_NOTE call. Update copyright.
14042 * loop.c (canonicalize_condition): Ditto.
14043 * reorg.c (delete_scheduled_jump): Ditto.
14045 2002-01-03 Kazu Hirata <kazu@hxi.com>
14047 * gcse.c: Fix formatting.
14049 2002-01-03 Graham Stott <grahams@redhat.com>
14051 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
14052 forward defs for struct tags rtx_def, union_tree, rtvec_def
14053 also output corresponding typedefs for rtx, tree, and rtvec.
14055 * system.h: Move forward defs for struct tags rtx_def, union_tree,
14056 rtvec_def along with corresponding typedefs for rtx, tree, and
14057 rtvec to config.h, hconfig.h, tconfig.h.
14059 2002-01-03 Graham Stott <grahams@redhat.com>
14061 * tree.h: Update copyright date.
14062 (IS_EXPR_CODE_CLASS): Add parenthesis.
14063 (TREE_SET_CODE): Add whitespace.
14064 (TREE_CHECK): Add parenthesis.
14065 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
14066 (CST_OR_CONSTRUCTOR_CHECK):
14067 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
14068 (TREE_SYMBOL_REFERENCED): Whitespace.
14069 (INT_CST_LT): Likewise.
14070 (INT_CST_LT_UNSIGNED): Likewise.
14071 (tree_real_cst): Unwrap comment.
14072 (tree_string): Likewise.
14073 (tree_complex): Likewise.
14074 (IDENTIFIER_POINTER): correct cast.
14075 (SAVE_EXPR_CONTEXT): Whitespace.
14076 (EXPR_WFL_FILENAME_NODE): Likewise.
14077 (EXPR_WFL_FILENAME): Remove parenthesis.
14078 (DECL_ORIGIN): Add parenthesis.
14079 (DECL_FROM_INLINE): Use NULL_TREE.
14080 (build_int_2): Whitespace.
14081 (build_type_variant): Add parenthesis.
14083 * gcc/jcf-parse.c: Update copyright date.
14084 (yyparse): Constify resource_filename.
14086 2002-01-03 Graham Stott <grahams@redhat.com>
14088 * rtl.h: Update copyright date.
14089 (RTL_CHECK1): Wrap long line.
14090 (RTL_CHECK2): Likewise.
14091 (RTL_CHECKC1): Wrap long line and whitespace.
14092 (RTL_CHECKC2): Likewise.
14093 (XWINT): Whitespace.
14099 (XBITMAP): Likewise.
14101 (XBBDEF): Likewise.
14103 (X0WINT): Likewise.
14105 (X0UINT): Likewise.
14109 (X0MODE): Likewise.
14110 (X0BITMAP): Likewise.
14111 (X0TREE): Likewise.
14112 (X0BBDEF): Likewise.
14113 (X0ADVFLAGS): Likewise.
14114 (X0CSELIB): Likewise.
14115 (X0MEMATTR): Likewise.
14116 (XCWINT): Likewise.
14118 (XCUINT): Likewise.
14122 (XCMODE): Likewise.
14123 (XCBITMAP): Likewise.
14124 (XCTREE): Likewise.
14125 (XCBBDEF): Likewise.
14126 (XCADVFLAGS): Likewise.
14127 (XCCSELIB): Likewise.
14128 (XC2EXP): Likewise.
14129 (INSN_UID): Likewise.
14130 (PREV_INSN): Likewise.
14131 (PATTERN): Likewise.
14132 (INSN_CODE): Likewise.
14133 (PUT_REG_NOTE_KIND): Likewise.
14134 (CODE_LABEL_NUMBER): Likewise.
14135 (NOTE_SOURCE_FILE): Likewise.
14136 (NOTE_BLOCK): Likewise.
14137 (NOTE_EH_HANDLER): Likewise.
14138 (NOTE_RANGE_INFO): Likewise.
14139 (NOTE_LIVE_INFO): Likewise.
14140 (NOTE_BASIC_BLOCK): Likewise.
14141 (NOTE_EXPECTED_VALUE): Likewise.
14142 (NOTE_LINE_NUMBER): Likewise.
14143 (LABEL_NAME): Likewise.
14144 (LABEL_NUSES): Likewise.
14145 (LABEL_ALTERNATE_NAME): Likewise.
14146 (ADDRESSOF_DECL): Likewise.
14147 (JUMP_LABEL): Likewise.
14148 (LABEL_NEXTREF): Likewise.
14150 (ORIGINAL_REGNO: Likewise.
14151 (HARD_REGISTER_NUM_P): Add parenthesis.
14152 (SUBREG_REG): Whitespace.
14153 (SUBREG_BYTE): Likewise.
14154 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
14155 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
14156 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
14157 (ASM_OPERANDS_INPUT_VEC): Likewise.
14158 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
14159 (ASM_OPERANDS_INPUT): Likewise.
14160 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
14161 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
14162 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
14163 (ASM_OPERANDS_INPUT_MODE): Likewise.
14164 (ASM_OPERANDS_SOURCE_FILE): Likewise.
14165 (ASM_OPERANDS_SOURCE_LINE): Likewise.
14166 (MEM_SET_IN_STRUCT_P): Minor reformat.
14167 (TRAP_CONDITION): Whitespace.
14168 (TRAP_CODE): Likewise.
14169 (COND_EXEC_TEST): Likewise.
14170 (COND_EXEC_CODE): Likewise.
14171 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
14172 (PHI_NODE_P): Add parenthesis.
14173 (plus_constant): Whitespace and add parenthesis.
14175 2002-01-03 Kazu Hirata <kazu@hxi.com>
14177 * config/avr/avr.c: Fix comment typos.
14178 * config/c4x/c4x.md: Likewise.
14179 * config/dsp16xx/dsp16xx.h: Likewise.
14180 * config/dsp16xx/dsp16xx.md: Likewise.
14181 * config/i386/i386.md: Likewise.
14182 * config/ia64/ia64.c: Likewise.
14183 * config/m32r/m32r.h: Likewise.
14184 * config/m68hc11/m68hc11.md: Likewise.
14185 * config/mmix/mmix.c: Likewise.
14186 * config/mn10200/mn10200.c: Likewise.
14187 * config/romp/romp.c: Likewise.
14188 * config/sh/sh.c: Likewise.
14189 * config/stormy16/stormy16.c: Likewise.
14190 * config/stormy16/stormy16.h: Likewise.
14191 * config/stormy16/stormy16.md: Likewise.
14193 2002-01-03 Graham Stott <grahams@redhat.com>
14195 * loop.h: Update copyright date.
14196 (LOOP_MOVABLES): Fix typo.
14197 (LOOP_REGS): Likewise.
14198 (LOOP_IVS): Likewise.
14200 2002-01-03 Graham Stott <grahams@redhat.com>
14202 * cppinit.c: Update copyright date.
14203 Don't include output.h
14204 * Makefile.in: Update copyright date.
14207 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
14210 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
14211 (-pthread) Add to RS/6000 options.
14213 2002-01-02 Kazu Hirata <kazu@hxi.com>
14215 * except.c: Fix comment typos.
14216 * loop.c: Likewise.
14217 * varasm.c: Likewise.
14218 * doc/tm.texi: Fix a typo.
14220 2002-01-02 Jakub Jelinek <jakub@redhat.com>
14222 * c-typeck.c (output_init_element): Allow initializing static storage
14223 duration objects with compound literals.
14225 2002-01-02 Richard Henderson <rth@redhat.com>
14227 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
14230 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14232 * gcc.c (default_compilers): Const-ify.
14233 * mips-tdump.c (stab_names): Likewise.
14234 * mips-tfile.c (map_coff_types, map_coff_storage,
14235 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
14236 pseudo_ops_t, pseudo_ops): Likewise.
14237 * protoize.c (default_include): Likewise
14239 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
14240 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
14241 Add array size in declaration.
14242 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
14243 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
14244 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
14245 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
14246 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
14247 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
14248 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
14249 emtens, make_nan): Const-ify.
14250 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
14251 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
14253 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
14255 * config.gcc (ia64-*-*): Set extra_headers.
14256 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
14257 * config/alpha/t-osf: Remove.
14258 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
14260 2002-01-02 David Edelsohn <edelsohn@gnu.org>
14262 * config/rs6000/t-aix43: Revert previous change.
14264 2002-01-02 Jason Merrill <jason@redhat.com>
14266 * c-decl.c (c_expand_body): Call outlining_inline_function when
14267 emitting an inline function out of line.
14269 2002-01-02 Richard Henderson <rth@redhat.com>
14271 * dwarf2out.c (limbo_die_node): Add created_for member.
14272 (new_die): New argument created_for. Update all callers.
14273 (mark_limbo_die_list): New.
14274 (dwarf2out_init): Register limbo_die_list as a root.
14275 (dwarf2out_finish): Force insert limbo dies into their function
14278 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
14281 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
14283 2002-01-02 Kazu Hirata <kazu@hxi.com>
14285 * config/h8300/fixunssfsi.c: Update copyright.
14288 * config/h8300/h8300.c: Update copyright.
14289 Eliminate warnings.
14291 2002-01-02 Kazu Hirata <kazu@hxi.com>
14293 * config/romp/romp.c: Fix comment formatting.
14294 * config/romp/romp.h: Likewise.
14295 * config/romp/romp.md: Likewise.
14296 * config/s390/s390.c: Likewise.
14297 * config/stormy16/stormy16.c: Likewise.
14298 * config/stormy16/stormy16.h: Likewise.
14300 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
14302 * c-common.h (genrtl_expr_stmt_value): Declare.
14303 * c-semantics.c (genrtl_goto_stmt): Redirect to...
14304 (genrtl_goto_stmt_value): ... this new function. Pass new
14305 argument down to expand_expr_stmt_value, taking
14306 TREE_ADDRESSABLE into account.
14307 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
14308 STMT_EXPR as addressable, i.e., one whose result we want.
14309 * expr.c (expand_expr): Don't save expression statement value
14310 of labeled_blocks or loop_exprs.
14311 * stmt.c (expand_expr_stmt): Redirect to...
14312 (expand_expr_stmt_value): ... this new function. Use new
14313 argument to tell whether to save expression value.
14314 (expand_end_stmt_expr): Reset last_expr_type and
14315 last_expr_value if we don't have either.
14316 * tree-inline.c (declare_return_variable): Mark its use
14317 statement as addressable.
14318 * tree.h: Document new use of TREE_ADDRESSABLE.
14319 (expand_expr_stmt_value): Declare.
14321 2002-01-01 Tom Rix <trix@redhat.com>
14323 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
14324 rs6000_emit_allocate_stack.
14326 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
14328 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
14329 ${srcdir}/ginclude/ to every entry in extra_headers.
14330 * configure: Regenerate.
14331 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
14332 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
14333 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
14334 * ginclude/proto.h: Rename to config/convex/proto.h.
14336 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14338 * attribs.c (handle_vector_size_attribute): Use host_integerp
14339 and tree_int_cst; remove warnings.
14340 * caller-save.c (insert_restore): Add cast to get rid of warning.
14341 (insert_save): Likewise.
14342 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
14343 * regmove.c (find_matches): Add temporary var to kill a warning.
14345 2002-01-01 Douglas B Rupp <rupp@gnat.com>
14347 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
14348 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
14349 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
14350 (vms-dwarf2eh.o): Add Makefile rule.
14351 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
14352 * config/alpha/vms-dwarf2eh.asm: New file.
14354 * gcc.c (delete_if_ordinary): Delete all versions.
14356 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
14358 * config/mmix/mmix.md: Update FIXME to not mention
14360 (MMIX_rJ_REGNUM): New define_constants constant.
14361 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
14362 "*movdicc_real"): Adjust contraints formatting.
14363 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
14364 for branch prediction.
14365 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
14367 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
14368 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
14369 number. Delete related FIXMEs.
14370 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
14371 from number to MMIX_rJ_REGNUM.
14372 (TARGET_MASK_BRANCH_PREDICT): New.
14373 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
14374 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
14375 value. Add -mbranch-predict and -mno-branch-predict.
14376 (TARGET_VERSION): Drop date.
14377 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
14378 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
14379 for finding out global symbols.
14380 (mmix_asm_output_labelref): Revert condition for global symbol.
14381 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
14382 (mmix_print_operand_punct_valid_p): A '+' is valid.
14384 See ChangeLog.6 for earlier changes.