1 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
4 with only extant block numbers.
6 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
8 * lcm.c (optimize_mode_switching): Fix typo.
10 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12 * flow.c (calculate_global_regs_live): Queue blocks in program order.
14 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16 * doc/install.texi (Configuration): Document PWDCMD.
18 2002-05-16 Dale Johannesen <dalej@apple.com>
20 * combine.c (cant_combine_insn_p): Reenable combinations
21 involving hard regs unless CLASS_LIKELY_SPILLED_P.
23 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
25 * c-common.c (cb_register_builtins): Handle more built-ins
26 here rather than in gcc.c specs.
27 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
28 (cpp_options): Pass -O flags even when only preprocessing.
29 * toplev.c (set_fast_math_flags): New prototype.
30 (fast_math_flags_set_p): New.
31 (set_no_fast_math_flags): Remove.
32 (decode_f_option): Update.
33 * toplev.h (set_fast_math_flags): Update.
34 (fast_math_flags_set_p): New.
35 (set_no_fast_math_flags): Remove.
37 * c4x/c4x.c (c4x_override_options): Update.
39 2002-05-16 Zack Weinberg <zack@codesourcery.com>
41 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
43 (builtin_define_with_value): Can now wrap the expansion in
44 quotation marks if such is wanted.
45 (cb_register_builtins): Update calls to builtin_define_with_value.
46 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
48 (c_common_init): Set options->stdc_0_in_system_headers.
49 * c-lex.h: Update prototype of builtin_define_with_value.
50 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
53 * cppinit.c (VERS, ULP, C, X): Kill.
54 (builtin_array): Remove entries for __VERSION__,
55 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
56 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
58 (init_builtins): Kill off a bunch of now-dead code.
59 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
60 -fno-leading-underscore.
61 (cpp_handle_option): Remove code to set user_label_prefix.
62 (cpp_post_options): Likewise.
64 * cpplib.h (struct cpp_options): Remove user_label_prefix.
65 (stdc_0_in_system_headers): New.
66 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
67 stdc_0_in_system_headers) too to decide the value of __STDC__.
69 * tradcpp.c (user_label_prefix): Kill.
70 (main): Remove code handling -f(no-)leading-underscore.
71 (initialize_builtins): Don't define __REGISTER_PREFIX__
72 or __USER_LABEL_PREFIX__.
73 (install_value): Wrap compound statement in dummy loop so the
74 macro works properly in an if statement.
77 2002-05-16 Janis Johnson <janis187@us.ibm.com>
79 * loop.h (struct loop_info): Add member has_prefetch.
80 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
81 (prescan_loop): Initialize has_prefetch.
82 (struct prefetch_info): Change prefetch_in_loop and
83 prefetch_before_loop from bit fields to ints.
84 (emit_prefetch_instructions): Several small fixes.
85 (check_dbra_loop): Don't reverse loop that uses prefetch.
87 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
89 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
90 * configure.in: Likewise.
91 * fixinc/check.tpl: Likewise.
92 * fixinc/fixinc.dgux: Likewise.
93 * fixinc/fixinc.svr4: Likewise.
94 * fixinc/fixinc.winnt: Likewise.
95 * fixinc/fixincl.sh: Likewise.
97 * configure: Regenerate.
99 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
101 Basic block renumbering removal:
102 * basic_block.h (struct basic_block_def): Renamed index to sindex,
103 added prev_bb and next_bb fields.
104 (n_basic_blocks): Renamed to num_basic_blocks.
105 (last_basic_block): New, index of last basic block.
106 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
107 traversing basic block chain.
108 (BLOCK_NUM): index -> sindex.
109 (create_basic_block_structure, create_basic_block): Declaration changed.
110 (debug_num2bb): Declare.
111 (expunge_block_nocompact): Declaration removed.
112 (link_block, unlink_block, compact_blocks): Declare.
113 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
114 * cfg.c (entry_exit_blocks): Initialize new fields.
115 (clear_edges, alloc_block, expunge_block, cached_make_edge,
116 redirect_edge_pred, dump_flow_info, dump_edge_info,
117 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
118 free_aux_for_edges): Modified.
119 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
120 (expunge_block_nocompact): Removed.
121 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
122 find_unreachable_blocks, create_edge_list, print_edge_list,
123 verify_edge_list, flow_edge_list_print, remove_fake_successors,
124 remove_fake_edges, flow_reverse_top_sort_order_compute,
125 flow_depth_first_order_compute, flow_preorder_transversal_compute,
126 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
127 flow_dfs_compute_reverse_execute): Modified.
128 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
129 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
131 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
132 merge_blocks_move_predecessor_nojumps,
133 merge_blocks_move_successor_nojumps, merge_blocks,
134 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
135 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
136 * cfglayout.c (skip_insns_after_block, label_for_bb,
137 record_effective_endpoints, scope_to_insns_finalize,
138 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
139 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
140 cfg_layout_duplicate_bb): Modified.
141 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
142 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
143 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
144 flow_loops_find, flow_loop_outside_edge_p): Modified.
145 * cfgrtl.c (create_basic_block_structure, create_basic_block,
146 flow_delete_block, compute_bb_for_insn, split_block,
147 try_redirect_by_replacing_jump, redirect_edge_and_branch,
148 force_nonfallthru_and_redirect, tidy_fallthru_edge,
149 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
150 commit_edge_insertions, commit_edge_insertions_watch_calls,
151 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
152 purge_all_dead_edges): Modified.
153 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
154 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
155 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
157 * conflict.c (conflict_graph_compute): Modified.
158 * df.c (FOR_ALL_BBS): Removed.
159 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
160 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
161 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
162 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
163 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
164 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
165 * final.c (compute_alignments, final_scan_insn): Modified.
166 * flow.c (verify_local_live_at_start, update_life_info,
167 update_life_info_in_dirty_blocks, free_basic_block_vars,
168 delete_noop_moves, calculate_global_regs_live,
169 initialize_uninitialized_subregs, allocate_bb_life_data,
170 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
171 mark_used_reg, count_or_remove_death_notes): Modified.
172 * function.c (thread_prologue_and_epilogue_insns): Modified.
173 * gcse.c (struct null_pointer_info): Change typo of current_block
175 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
176 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
177 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
178 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
179 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
180 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
181 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
182 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
183 pre_delete, one_pre_gcse_pass, compute_transpout,
184 invalidate_nonnull_info, delete_null_pointer_checks_1,
185 free_code_hoist_mem, compute_code_hoist_vbeinout,
186 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
187 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
188 compute_store_table, build_store_vectors, insert_insn_start_bb,
189 insert_store, replace_store_insn, free_store_memory, store_motion):
191 * global.c (global_alloc, global_conflicts, mark_elimination,
192 build_insn_chain): Modified.
193 * graph.c (print_rtl_graph_with_bb): Modified.
194 * haifa-sched.c (sched_init): Modified.
195 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
196 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
197 if_convert): Modified.
198 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
199 compute_insert_delete, pre_edge_lcm, compute_available,
200 compute_farthest, compute_nearerout, compute_rev_insert_delete,
201 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
203 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
204 * loop.c (loop_dump_aux): Modified.
205 * predict.c (combine_predictions_for_insn, estimate_probability,
206 last_basic_block_p, process_note_prediction, process_note_predictions,
207 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
208 expensive_function_p, estimate_bb_frequencies,
209 compute_function_frequency): Modified.
210 * print-rtl.c (print_rtx): Modified.
211 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
212 get_exec_counts, compute_branch_probabilities, compute_checksum,
213 branch_prob, find_spanning_tree): Modified.
214 * recog.c (split_all_insns, peephole2_optimize): Modified.
215 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
216 convert_regs_1, convert_regs_2, convert_regs): Modified.
217 * regclass.c (scan_one_insn, regclass): Modified.
218 * regmove.c (mark_flags_life_zones, regmove_optimize,
219 combine_stack_adjustments): Modified.
220 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
221 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
222 * reorg.c (dbr_schedule): Modified.
223 * resource.c (find_basic_block, init_resource_info): Modified.
224 * sbitmap.c (sbitmap_intersection_of_succs,
225 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
226 sbitmap_union_of_preds): Modified.
227 * sched-deps.c (init_dependency_caches): Modified.
228 * sched-ebb.c (schedule_ebbs): Modified.
229 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
230 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
231 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
232 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
233 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
234 ssa_const_prop): Modified.
235 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
236 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
237 * ssa.c (remove_phi_alternative, find_evaluations,
238 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
239 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
240 make_regs_equivalent_over_bad_edges,
241 make_equivalent_phi_alternatives_equival,
242 compute_conservative_reg_partition,
243 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
244 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
247 2002-05-16 Mark Mitchell <mark@codesourcery.com>
249 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
251 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
253 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
254 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
255 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
256 calling CONSTANT_POOL_ADDRESS_P.
257 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
258 to decide whether to define __arm__ or __thumb.
259 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
260 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
262 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
264 * config/arc/arc.h (CPP_PREDEFINES): Remove.
266 (TARGET_CPU_CPP_BUILTINS): New.
268 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
270 * cpphash.h (cpp_macro): Move here, and make expansion a union.
271 * cppmacro.c (cpp_macro): Remove.
272 (enter_macro_context, replace_args, warn_of_redefinition,
273 _cpp_create_definition, cpp_macro_definition): Update.
275 2002-05-16 Jason Merrill <jason@redhat.com>
277 * config/mips/mips.c (mips_output_external): Don't do sdata
278 optimization for a variable with DECL_COMDAT set.
280 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
282 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
283 Cleanups for accepting modifiers on pointers.
285 Allow long pointers as well as int pointers.
287 2002-05-15 Richard Henderson <rth@redhat.com>
289 * varasm.c (merge_weak): Remove special case for extern and common.
291 2002-05-15 Matt Hiller <hiller@redhat.com>
293 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
295 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
296 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
297 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
298 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
299 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
300 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
302 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
304 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
306 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
308 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
309 ("altivec_mfvscr"): Read from VSCR.
311 Add vscr sets for the following insns: altivec_vctuxs,
312 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
313 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
314 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
315 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
316 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
317 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
318 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
319 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
320 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
321 altivec_vsum2sws, altivec_vsumsws.
323 * config/rs6000/rs6000.h: Add VSCR fixed register.
324 (CALL_REALLY_USED_REGISTERS): Add vscr.
325 (CALL_USED_REGISTERS): Same.
326 (FIXED_REGISTERS): Same.
327 (REG_ALLOC_ORDER): Same.
328 (reg_class): Add VSCR_REGS.
329 (REG_CLASS_NAMES): Same.
330 (REG_CLASS_CONTENTS): Same.
332 (REGISTER_NAMES): Add vscr.
333 (DEBUG_REGISTER_NAMES): Same.
334 (ADDITIONAL_REGISTER_NAMES): Same.
335 (FIRST_PSEUDO_REGISTER): Increment.
336 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
338 2002-05-15 Jakub Jelinek <jakub@redhat.com>
340 * fold-const.c (fold): Fix a typo.
342 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
344 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
345 comparison against the highest or lowest integer value before
346 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
347 transformation and that of an unsigned comparison against 0
350 2002-05-15 Richard Henderson <rth@redhat.com>
352 * varasm.c (merge_weak): Error for any weakening after definition.
353 Adjust weakening after use warning to catch more cases.
354 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
355 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
357 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
359 * invoke.texi (-malign-double): Re-add lost warning.
361 * i386-protos.h (x86_output_mi_thunk): Declare.
362 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
363 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
365 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
366 when flag_asynchronous_unwind_tables is set.
368 * flags.h (flag_reorder_functions): Declare.
369 * function.c (prepare_function_start): Initialize frequnecy.
370 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
371 * Makefile.in (predict.o): Add dependency on target.h and params.h
372 * defaults.h (HOT_TEXT_SECTION_NAME,
373 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
374 * predict.c (choose_function_section): New function.
375 (estimate_bb_frequencies): Use it.
376 * toplev.c (flag_reorder_functions): New global variable.
377 (lang_independent_options): New.
378 (parse_options_and_default_flags): Set.
379 * varasm.c (assemble_start_function): Bypass functdion alignment
380 for never executed functions.
381 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
382 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
383 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
386 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
388 * predict.c: Inlude profile.h
389 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
390 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
391 Use the information about maximal counter in the program.
393 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
395 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
396 probably_never_executed_bb_p): New functions.
397 * cfgcleanup.c (outgoing_edges_match): Use them.
398 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
399 (maybe_hot_bb_p, probably_cold_bb_p,
400 probably_never_executed_bb_p): New functions.
402 * function.h (function): Add new field function_frequency.
403 * predict.c (compute_function_frequency): New function.
404 (estimate_probability): Call it.
406 2002-03-09 Jakub Jelinek <jakub@redhat.com>
408 PR optimization/5172, optimization/5200
409 * gcse.c (gcse_main): Disable store_motion.
411 2002-05-14 Zack Weinberg <zack@codesourcery.com>
413 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
414 (c_common_nodes_and_builtins): Use it.
415 (builtin_define_with_value): New function.
416 (cb_register_builtins): Define __SIZE_TYPE__,
417 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
418 using builtin_define_with_value. Use consistent notation when
419 defining __GXX_WEAK__.
420 (WCHAR_TYPE_SIZE): Don't redefine.
421 (combine_strings): Don't use WCHAR_TYPE_SIZE.
423 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
424 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
425 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
426 * tradcpp.c (initialize_builtins): Likewise.
427 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
429 * c-lex.h (builtin_define_with_value): Prototype.
430 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
431 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
432 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
434 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
435 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
436 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
437 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
438 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
439 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
440 config/sparc/sol2-bi.h, config/sparc/sparc.h:
441 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
442 to __SIZE_TYPE__ etc from all spec strings. When this makes
443 extra specs empty, delete them.
445 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
447 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
448 for PA8000 or generating dwarf2 call frame information.
449 (output_call): Remove DO_FRAME_NOTES check from return pointer
451 (following_call): Return 0 when scheduling for PA8000 or generating
452 dwarf2 call frame information. Revise comment.
454 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
457 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
458 and __IEEE_FP_INEXACT as appropriate.
459 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
460 (CPP_SPEC): Remove ieee defines.
461 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
463 2002-05-14 Richard Henderson <rth@redhat.com>
465 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
466 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
468 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
470 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
472 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
473 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
474 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
475 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
476 (EXTRA_SPECS): Update.
477 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
478 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
479 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
480 define TARGET_OS_CPP_BUILTINS if necessary.
482 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
484 * gcc.c (cpp_options): Must pass -m* and -f* options
485 to the front end even when only preprocessing.
486 (cc1_options): Remove redundant -lang-c.
487 * tradcpp.c (main): Ignore -m options.
489 * lang-specs.h: Similarly.
491 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
493 * genautomata.c (transform_3): Add code for transformation
494 `(A,B,...)+C -> A+C,B,...'.
496 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
498 * final.c (end_final): Do not output profile_arcs constructor, when
499 no functions are instrumented.
501 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
503 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
505 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
507 * doc/install.texi: Remove special markup originally required for
508 HTML generation with texi2html.
510 2002-05-14 Andreas Schwab <schwab@suse.de>
512 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
514 (UNIQUE_SECTION): Define to get small data correctly.
516 * varasm.c (resolve_unique_section): Add third parameter
517 flag_function_or_data_sections and use it instead of
518 flag_function_sections.
519 (assemble_start_function): Pass flag_function_sections.
520 (asm_emit_uninitialised): Pass flag_data_sections.
521 (assemble_variable): Likewise.
523 2002-05-14 Richard Henderson <rth@redhat.com>
525 * config/i386/i386.md: Use define_constants for unspec numbers.
526 * config/i386/i386.c: Likewise.
528 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
530 * doc/contrib.texi: Update my entry.
532 2002-05-13 Mark Mitchell <mark@codesourcery.com>
534 * fixinc/inclhack.def (winidss_valist): Limit applicability.
535 * fixinc/fixincl.x: Regenerated.
536 * fixinc/tests/base/math.h: Update.
537 * fixinc/tests/base/testing.h: Likewise.
539 2002-05-13 Zack Weinberg <zack@codesourcery.com>
541 * genattr.c (gen_attr): Don't emit a comma after the last
544 2002-05-13 Richard Henderson <rth@redhat.com>
546 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
548 * recog.c (peephole2_optimize): Likewise.
550 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
552 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
555 2002-05-13 Jeffrey A Law (law@redhat.com)
557 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
558 Update prototype and callers.
559 (propagate_one_insn): Stack pointer adjustments kill MEMs on
560 the mem_set_list which reference the stack pointer, as do
561 calls to constant functions as they may clobber outgoing
564 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
566 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
567 (ia32_multipass_dfa_lookahead): New function.
569 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
571 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
572 (translate_options): Remove 'V'.
573 (process_command): Similarly.
575 * invoke.texi: Remove documentation of 'V'.
577 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
579 * config/s390/linux.h: Revert 2002-04-22 changes.
581 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
583 * config/fr30/fr30.md: Only allow splits of immediate loads
584 if the destination is a register.
586 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
588 * Makefile.in (c-common.o, cppinit.o): Update.
589 * c-common.c: Include except.h.
590 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
591 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
592 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
593 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
594 CPP_PREDEFINES): Handle here.
596 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
597 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
598 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
599 TARGET_OS_CPP_BUILTINS.
600 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
601 (CPP_SPEC, EXTRA_SPECS): Update.
602 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
603 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
604 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
605 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
606 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
608 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
609 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
611 2002-05-12 Zack Weinberg <zack@codesourcery.com>
613 * emit-rtl.c (global_rtl): Update comment.
614 (const_double_htab, const_double_htab_hash,
615 const_double_htab_hash, lookup_const_double): New.
616 (const_int_htab_hash, const_int_htab_eq): Remove const
617 qualifiers, which cause tons of warnings with RTL checking on.
618 (gen_rtx_CONST_DOUBLE): Deleted.
619 (const_double_from_real_value): New function - bears some
620 resemblance to the former immed_real_const_1.
621 (immed_double_const): Moved here from varasm.c and
623 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
624 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
625 (gen_rtx): Use immed_double_const.
626 (init_emit_once): Initialize the const_double_htab. Use
627 REAL_VALUE_FROM_INT where possible. Can now use
628 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
629 * varasm.c (struct varasm_status): Remove x_const_double_chain.
630 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
631 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
632 (init_varasm_status, mark_varasm_status): Don't touch
633 x_const_double_chain.
635 * output.h: Delete prototype for clear_const_double_mem.
636 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
637 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
638 const_double_from_real_value, not immed_real_const_1, and use
639 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
641 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
642 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
643 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
644 (gen_rtx_REG): Second arg is unsigned.
646 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
647 (excluded_rtx): New, return true for CONST_DOUBLE.
648 (genmacro): Write nothing for excluded codes.
649 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
650 * expr.c (expand_expr): Likewise.
651 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
653 * toplev.c (rest_of_compilation): Don't call
654 clear_const_double_mem.
656 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
657 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
658 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
659 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
660 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
661 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
662 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
663 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
665 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
667 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
669 2002-05-12 Tom Tromey <tromey@redhat.com>
671 * tree.h (copy_node): Don't mention TREE_PERMANENT.
673 2002-05-12 Zack Weinberg <zack@codesourcery.com>
675 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
676 (scan_comma_elt): New function. Accepts whitespace in comma lists.
677 * gensupport.h: Prototype new routines.
678 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
680 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
681 (next_comma_elt): Use scan_comma_elt.
683 * config/i386/i386.md: Use new attribute notation to break up
684 long lines in define_attr forms.
686 2002-05-12 Richard Henderson <rth@redhat.com>
688 * expr.c (compress_float_constant): New.
689 (emit_move_insn): Use it.
690 (float_extend_from_mem): New.
691 (init_expr_once): Initialize it.
692 * real.c (exact_real_truncate): New.
694 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
695 dropped into memory; penalize for size.
696 (RTX_COSTS): FLOAT_EXTEND is free.
697 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
698 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
700 2002-05-12 Richard Henderson <rth@redhat.com>
702 * profile.h (profile_info): Add missing extern to declaration.
703 * profile.c (profile_info): Define it.
705 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
707 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
708 used for DImode and TImode.
710 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
712 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
715 2002-05-11 Zack Weinberg <zack@codesourcery.com>
717 * config/rs6000/rs6000.c (rs6000_default_long_calls,
718 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
719 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
720 (rs6000_override_options): Handle -m(no-)longcall.
721 (init_cumulative_args, output_mi_thunk): Check for both
722 longcall and shortcall attributes on the function.
723 (rs6000_attribute_table): Add "shortcall".
724 (rs6000_handle_longcall_attribute): Update comment.
725 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
726 altivec_expand_ternop_builtin): Add default clauses to switches
729 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
730 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
731 (TARGET_OPTIONS): Add longcall and no-longcall.
733 * config/rs6000/rs6000.md (call_nonlocal_sysv,
734 call_value_nonlocal_sysv): Split by alternatives. One pair
735 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
736 the call cookie. The other pair accepts only LR/CTR and has
739 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
740 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
742 * config/rs6000/rs6000-c.c: New file.
743 * config/rs6000/t-rs6000-c-rule: New file.
744 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
745 Prototype rs6000_pragma_longcall.
747 * doc/extend.texi: Document shortcall attribute.
748 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
750 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
752 * reorg.c (dbr_schedule): Remove unnecessary test.
754 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
756 * i386.md (testsi to testqi spliters): New.
758 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
760 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
762 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
764 * basic-block.h: New flag EDGE_CAN_FALLTHRU
765 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
766 that can be made fallthru.
768 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
770 * cfglayout.c (cleanup_unconditional_jumps): New static function.
771 (cfg_layout_initialize): Use it.
773 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
775 * config/avr/avr.c (avr_mcu_types): Update supported devices.
776 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
777 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
779 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
781 * dbxout.c: Fix formatting.
782 * dependence.c: Likewise.
784 * diagnostic.c: Likewise.
785 * doloop.c: Likewise.
786 * dominance.c: Likewise.
787 * doschk.c: Likewise.
788 * dwarf2asm.c: Likewise.
789 * dwarf2out.c: Likewise.
790 * dwarfout.c: Likewise.
792 2002-05-10 Richard Henderson <rth@redhat.com>
794 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
795 Convert integers constants as needed. Replace "nwords" field with
797 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
798 * function.h: Fix typo in comment.
799 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
801 2002-05-10 Roger Sayle <roger@eyesopen.com>
803 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
804 into the equivalent (signed char)c > 0.
806 2002-05-10 Janis Johnson <janis187@us.ibm.com>
808 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
809 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
810 (struct prefetch_info): Fix spelling of member bytes_accessed.
811 (emit_prefetch_instructions): Make dump messages more regular;
812 restructure code to add more dump messages; use new macros for
813 heuristics. (There are no code generation changes in any of this).
815 2002-05-10 David S. Miller <davem@redhat.com>
817 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
818 (struct rtx_def): Update unchanging flag comment.
819 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
820 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
821 to be handled to INSN too.
822 (dbr_schedule): Likewise.
823 * resource.c (next_insn_no_annul): Likewise.
825 * cse.c (rtx_cost): Remove multiplication by power of 2 special
828 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
830 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
831 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
832 (possibly) work around broken /bin/sh.
834 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
836 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
837 . as N64/N32 libgcc_s.so subdirs.
839 2002-05-10 David S. Miller <davem@redhat.com>
841 * config/sparc/sparc.md: Use define_constants for unspec numbers.
843 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
845 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
847 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
848 * doc/rtl.texi: Document these macros more accurately.
849 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
850 JUMP_INSNs and CALL_INSNs.
851 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
852 or INSN_FROM_TARGET_P if the code is appropriate.
854 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
856 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
857 before using SYMBOL_REF_FLAG (addr).
859 * config/avr/avr-protos.h (avr_io_address_p): Declare.
860 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
861 Make non-static. Update all callers.
862 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
863 New insns to clear/set/test a single bit in I/O address space.
865 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
867 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
869 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
871 * Makefile.in: Update.
872 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
873 builtin_define_std): New.
874 (c_common_init): Register CPP builtins callback.
875 * c-common.h (flag_iso, flag_undef): New.
876 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
877 * c-lex.c: Don't include target.h.
878 (cb_register_builtins): Move to c-common.c.
879 (init_c_lex): Don't register hook here.
880 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
881 (cpp_define, cpp_assert): Remove.
882 * gcc.c (cc1_options): Pass -undef to front end.
883 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
884 (TARGET_INITIALIZER): Update.
885 * target.h (struct cpp_reader): Don't predeclare.
886 (struct gcc_target): Remove cpp builtin hook.
887 * tree.c (default_register_cpp_builtins): Remove.
891 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
893 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
895 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
897 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
898 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
900 2002-05-09 Jakub Jelinek <jakub@redhat.com>
902 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
903 * config/sparc/libgcc-sparc-glibc.ver: New file.
904 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
905 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
907 2002-05-09 Jakub Jelinek <jakub@redhat.com>
910 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
911 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
912 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
914 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
915 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
916 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
917 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
919 2002-05-09 Richard Henderson <rth@redhat.com>
921 * config/ia64/ia64.md: Use define_constants for unspec numbers.
922 * config/ia64/ia64.c: Likewise.
924 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
926 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
927 (save_restore_insns): Likewise.
928 (mips_expand_prologue, mips_expand_epilogue): Update callers.
929 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
931 Thu May 9 11:50:09 2002 Jeffrey A Law (law@cygnus.com)
933 * athlon.md, k6.md, pentium.md, ppro.md): New files.
934 * i386.md: Move scheduling information into new files.
936 * i386.md (type attribute): Add "rotate" for rotate insns.
937 (rotate insns): Set type to "rotate".
938 (various attributes and function units): Treat rotate like shift.
939 (pent_pair attribute): Only rotates by one bit position are
941 (sbb insns): Explicitly set pent_pair attribute on a couple
942 that were missing it.
944 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
946 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
947 make sure that buffer starts on odd word address.
948 (sh_va_arg): Skip odd fp registers when reading a double precision
951 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
953 * tree.h (preserve_data, object_permanent_p, type_precision):
956 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
958 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
959 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
961 * cpp.texi: Update for removal of obsolete features.
963 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
964 Jeffrey A Law (law@redhat.com)
966 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
967 the DFA interface for Pentium processors.
968 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
969 (attr_pent_pair, ix86_pent_find_pair): Remove.
970 (ix86_sched_reorder_pentium): Remove.
971 (ix86_sched_reorder): Remove reordering for Pentium.
972 * i386.md (Pentium scheduling): Rewrite using DFA description.
974 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
976 * cfganal.c (can_fallthru): Fix fast path.
977 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
978 with edges to the next block.
980 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
981 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
983 * final.c (end_final): Use C trees to output data structures for profiling.
985 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
986 (profile.o): New dependency profile.h
987 (final.o): New dependency profile.h
988 * profile.h: New file. New global structure profile_info.
989 * final.h (count_edges_instrumented_now): Declare.
990 (current_function_cfg_checksum): Declare.
991 (function_list): New structure.
992 (functions_head, functions_tail): New static variables.
993 (end_final): Emits more data, removed some -ax stuff.
994 (final): Stores function names and chcksums.
995 * gcov-io.h (__write_gcov_string): New function.
996 (__read_gcov_string): New function.
997 * gcov.c (read_profile): New function.
998 (create_program_flow_graph): Uses read_profile instead of reading
1000 (read_files): Removed da_file checking, it's done by read_profile now.
1001 * libgcc2.c (bb_function_info): New structure.
1002 (bb): New field in structure, removed some -ax stuff.
1003 (__bb_exit_func): Changed structure of da_file.
1004 * profile.c (count_edges_instrumented_now): New global variable.
1005 (current_function_cfg_checksum): New global variable.
1006 (max_counter_in_program): New global variable.
1007 (get_exec_counts): New function.
1008 (compute_checksum): New function.
1009 (instrument_edges): Sets count_edges_instrumented_now.
1010 (compute_branch_probabilities): Uses get_exec_counts instead of
1012 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
1013 (init_branch_prob): Removed da_file checking, done in get_exec_counts
1015 (end_branch_prob): Removed da_file checking, done in get_exec_counts
1017 * gcov.texi: Updated information about gcov file format.
1019 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
1021 * sbitmap.c: Fix formatting.
1023 * scan-decls.c: Likewise.
1024 * sched-deps.c: Likewise.
1025 * sched-ebb.c: Likewise.
1026 * sched-rgn.c: Likewise.
1027 * sched-vis.c: Likewise.
1028 * sdbout.c: Likewise.
1029 * sibcall.c: Likewise.
1030 * simplify-rtx.c: Likewise.
1032 * ssa-ccp.c: Likewise.
1033 * ssa-dce.c: Likewise.
1035 * stor-layout.c: Likewise.
1036 * stringpool.c: Likewise.
1038 2002-05-09 David S. Miller <davem@redhat.com>
1040 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
1042 2002-05-07 David S. Miller <davem@redhat.com>
1044 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
1045 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
1046 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
1047 library implementation clobbers the output before the inputs
1048 are fully consumed, use stack temporary for the output.
1050 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
1052 * config/netbsd.h (CPP_SPEC): Remove.
1053 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
1054 * config/i386/netbsd.h (CPP_SPEC): Define.
1055 * config/ns32k/netbsd.h (CPP_SPEC): Define.
1056 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
1057 * config/sparc/netbsd.h (CPP_SPEC): Define.
1058 * config/vax/netbsd.h (CPP_SPEC): Define.
1060 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
1062 * read-rtl.c: Fix formatting.
1064 * recog.c: Likewise.
1065 * regclass.c: Likewise.
1066 * regmove.c: Likewise.
1067 * reg-stack.c: Likewise.
1068 * reload1.c: Likewise.
1069 * reload.c: Likewise.
1070 * resource.c: Likewise.
1071 * rtlanal.c: Likewise.
1073 * rtl-error.c: Likewise.
1075 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
1077 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
1078 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
1080 2002-05-08 Bernd Schmidt <bernds@redhat.com>
1082 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
1083 use __SSE2__ macro instead.
1084 * config/i386/xmmintrin.h: Likewise.
1086 2002-05-08 Janis Johnson <janis187@us.ibm.com>
1088 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
1089 and use it in all invocations of these macros. Clean up comments.
1090 * rtl.c (rtl_check_failed_flag): Add an argument for the name
1091 of the flag access macro whose check failed.
1092 * doc/rtl.texi (Flags): Document additional flag uses.
1094 2002-05-08 Robert Spier <rspier@pobox.com>
1095 Neil Booth <neil@daikokuya.demon.co.uk>
1097 PR preprocessor/6521
1098 * cppfiles.c (handle_missing_header): Don't do anything
1099 different for <> includes.
1101 * cppopts.texi: Update documentation for -MG.
1103 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
1105 * cpplex.c (cpp_interpret_charconst): Truncate as well as
1108 * cpp.texi: Clarify multichar charconst valuation.
1110 2002-05-08 Mark Mitchell <mark@codesourcery.com>
1112 * doc/invoke.texi: Document -mwindiss option.
1114 2002-05-08 Jason Merrill <jason@redhat.com>
1116 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
1118 * dwarf2out.c (gen_type_die): Abort on broken recursion.
1121 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
1124 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
1126 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
1127 little-endian multilibs to override arm/thumb multilibs.
1128 Do not build hardware floating point multilibs, nor apcs-26
1129 multilibs for the Thumb.
1131 2002-05-08 Mark Mitchell <mark@codesourcery.com>
1134 * varasm.c (mark_weak): New function.
1135 (merge_weak): Use it. Do not call declare_weak.
1136 (declare_weak): Use merge_weak.
1138 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1140 * cse.c (dead_libcall_p): Update counts.
1141 (delete_trivially_dead_insns): Update call of dead_libcall_p.
1143 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
1145 * cfglayout.c (function_tail_eff_head): Rename to ...
1146 (function_footer): ... this one.
1147 (unlink_insn_chain): New functions.
1148 (label_for_bb): Only call block_label and emit debug message.
1149 (record_effective_endpoints): Actually unlink the headers and footers.
1150 (fixup_reorder_cahin): Re-insert the unlinked sequences.
1151 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
1152 * cfglayout.h (struct reorder_block_def): New fields footer/header;
1153 remove eff_head/eff_end.
1154 * rtl.h (set_first_insn): Declare.
1155 * emit-rtl.c (set_first_insn): New function.
1157 * cfglayout.c (fixup_reorder_chain): Dump duplicated
1158 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1159 cfg_layout_duplicate_bb): New global function.
1160 (duplicate_insn_chain): New static function.
1161 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1162 cfg_layout_duplicate_bb): Declare.
1163 (struct reorder_block_def): Add "original" field.
1164 * emit-rtl.c (emit_copy_of_insn_after): New function.
1165 * rtl.h (emit_copy_of_insn_after): Declare.
1167 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
1168 (fixup_reorder_chain): properly handle edges to exit block.
1170 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1171 Jan Hubicka <jh@suse.cz>
1173 * basic-block.h (note_prediction_to_br_prob): declare.
1174 * c-semantics.c: Inlucde predit.h
1175 (expand_stmt): predict GOTO_STMT as not taken.
1176 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
1177 (cleanup_cfg): Do not free tail_recursion_list.
1178 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
1179 (flow_delete_block): Kill predictions past end of basic block.
1180 * output.h (delete_unreachable_blocks): Declare.
1181 * predict.c (predicted_by_p, process_note_predictions,
1182 process_note_prediction, last_block_p): New function.
1183 (estimate_probability): Bypass loop on PRED_CONTINUE;
1184 do not handle noreturn heuristics; kill PRED_RETURN; add
1186 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
1187 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
1188 * predict.h (IS_TAKEN): New constant.
1189 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
1190 * rtl.c (NOTE_INSN_PREDICTION): New.
1191 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
1193 (insn_note): add NOTE_INSN_PREDICTION.
1194 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
1195 CFG; free tail_recursion_label_list.
1196 * stmt.c: Include predict.h;
1197 (return_prediction): New.
1198 (expand_value_return): Use it.
1199 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
1201 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
1203 * config/mips/mips.md: Name the unspecs with define_constant.
1204 (*HILO_delay): Rename to 'hilo_delay' (no star).
1205 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
1206 (reload_outdi, reload_outsi): Likewise.
1208 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
1210 * toplev.c: Fix formatting.
1212 2002-05-07 Janis Johnson <janis187@us.ibm.com>
1214 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
1215 * configure.in (ac_rtlflag_checking): New.
1216 * doc/install.texi (--enable-checking): Document RTL flag checking.
1218 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
1220 * c-common.c (c_common_init): Set options->unsigned_wchar.
1221 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
1222 group target dependencies.
1223 (init_builtins, cpp_handle_option): Update.
1224 * cpplex.c (cpp_interpret_charconst): Update.
1225 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
1226 signed_char to unsigned_char, group target dependencies.
1227 * defaults.h (WCHAR_UNSIGNED): Remove.
1228 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
1230 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
1231 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
1232 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
1233 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
1234 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
1236 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
1238 2002-05-07 Mark Mitchell <mark@codesourcery.com>
1240 * fixinc/inclhack.def (windiss_math1): New fix.
1241 (windiss_math2): Likewise.
1242 (windiss_valist): Likewise.
1243 * fixinc/fixincl.x: Regenerated.
1245 2002-05-07 Andreas Jaeger <aj@suse.de>
1247 * genautomata.c (output_internal_min_issue_delay_func): Add
1248 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
1249 (output_internal_trans_func): Likewise.
1251 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
1253 * pa.c (hppa_profile_hook): Use force_reg to get the address
1254 of the profile hook into an appropriate pseudo register.
1256 2002-05-07 Mark Mitchell <mark@codesourcery.com>
1258 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
1259 (LINK_START_SPEC): Handle it.
1260 (LINK_OS_SPEC): Likewise.
1261 (CPP_SPEC): Likewise.
1262 (STARTFILE_SPEC): Likewise.
1263 (LIB_SPEC): Likewise.
1264 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
1266 (CRTSAVRES_DEFAULT_SPEC): New macro.
1267 (LIB_WINDISS_SPEC): New macro.
1268 (CPP_OS_WINDISS_SPEC): Likewise.
1269 (STARTFILE_WINDISS_SPEC): Likewise.
1270 (ENDFILE_WINDISS_SPEC): Likewise.
1271 (LINK_START_WINDISS_SPEC): Likewise.
1272 (LINK_OS_WINDISS_SPEC): Likewise.
1273 * config/rs6000/windiss.h: New file.
1275 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
1277 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
1279 2002-05-06 David S. Miller <davem@redhat.com>
1281 * config/sparc/sparc.md (shift insns): Do not mask off
1282 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
1285 2002-05-06 Richard Henderson <rth@redhat.com>
1288 * expr.c (highest_pow2_factor_for_type): New.
1289 (expand_assignment): Use it.
1291 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
1293 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
1295 ("altivec_mfvscr"): Same.
1297 2002-05-06 Janis Johnson <janis187@us.ibm.com>
1299 * rtl.h (struct rtx_def): Update comments.
1300 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
1301 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
1302 RTL_FLAG_CHECK macros with list of expected RTL codes.
1303 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
1304 (rtl_check_failed_flag): New.
1305 * reload1.c (reload): Use REG macro before changing rtx to MEM.
1306 (reload_cse_noop_set_p): Check rtx code before using access macro.
1307 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
1308 before using access macro.
1310 2002-05-06 Janis Johnson <janis187@us.ibm.com>
1312 * doc/rtl.texi (Flags): Update to reflect current usage.
1314 2002-05-06 Roger Sayle <roger@eyesopen.com>
1317 * fold-const.c (sign_bit_p): New function.
1318 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
1319 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1320 Reapply fold when converting (A & C) == C into (A & C) != 0.
1321 (fold_binary_op_with_conditional_arg): Fix typo in comment.
1323 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
1325 * c-common.c (warn_multichar): New.
1326 (c_common_init): Set CPP's warn_multichar.
1327 * c-common.h (warn_multichar): New.
1328 * c-decl.c (warn_multichar): Remove.
1329 * c-lex.c (lex_charconst): Update.
1330 * c-tree.h (warn_multichar): Remove.
1331 * cppexp.c (eval_token): Sign-extend charconst value.
1332 * cppinit.c (cpp_create_reader): Set warn_multichar.
1333 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
1334 each character. Update prototype. Sign-extend the result.
1335 * cpplib.h: Fix conditions.
1336 (struct cpp_options): Add new warning flag.
1337 (cpp_interpret_charconst): Update prototype.
1339 * cpp.texi: Update documentation.
1341 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
1343 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
1344 Fix typo in usage of allof instead of unit.
1346 2002-05-06 Richard Henderson <rth@redhat.com>
1348 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
1349 and any jump or call for IN.
1351 2002-05-06 Bernd Schmidt <bernds@redhat.com>
1353 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
1355 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
1357 2002-05-06 Roger Sayle <roger@eyesopen.com>
1359 * fold-const.c (lshift-double): Cast the high word to an unsigned
1360 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
1361 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
1362 avoid compiler warning. (fold): Remove redundant code from
1363 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
1365 2002-05-06 Jeff Law <law@redhat.com>
1367 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
1368 * pa.c (pa_adjust_cost): Remove all true dependency cost
1369 adjustments. Also remove support for non-DFA scheduling.
1370 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
1371 to adjust true dependency costs. Update various comments.
1372 (7100lc, 7200, 7300 scheduling): Simplify by combining the
1373 FP ALU & MPY units into a single unit.
1375 2002-05-06 Catherine Moore <clm@redhat.com>
1377 * config/v850/v850.c (compute_register_save_size): Make sure
1378 to count all of the registers that will be saved.
1380 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1382 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
1384 2002-05-06 David S. Miller <davem@redhat.com>
1386 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
1387 allow result to overlap input operands in memory.
1389 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
1392 * cpp.texi: Update multichar charconst docs.
1394 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
1396 * cpplex.c (cpp_interpret_charconst): Sign-extend each
1397 character. Don't ignore excess characters. Treat
1398 multicharacter character constants as signed.
1399 (cpp_parse_escape): Clarify diagnostic.
1401 2002-05-05 Jakub Jelinek <jakub@redhat.com>
1403 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
1404 use add instead of shift.
1405 (ashldi3_sp64): Likewise.
1406 (ashlsi3_const1, ashldi3_const1): Remove.
1407 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
1408 * config/sparc/sparc.c (const1_operand): New.
1410 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
1412 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
1414 2002-05-05 Jakub Jelinek <jakub@redhat.com>
1417 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
1419 2002-05-05 Richard Henderson <rth@redhat.com>
1421 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
1422 memory latency adjustments.
1423 (alpha_variable_issue): Remove.
1424 (alpha_use_dfa_pipeline_interface): New.
1425 (alpha_multipass_dfa_lookahead): New.
1426 * config/alpha/alpha.md: Remove define_function_unit scheduling;
1427 include new dfa scheduling.
1428 (attr type): Add none.
1430 * config/alpha/ev4.md: New.
1431 * config/alpha/ev5.md: New.
1432 * config/alpha/ev6.md: New.
1434 2002-05-05 David S. Miller <davem@redhat.com>
1436 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
1438 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
1440 * cse.c: Fix formatting.
1441 * emit-rtl.c: Likewise.
1443 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
1445 * genautomata.c (initiate_states): Add additional guard to
1446 initialize `units_array'.
1448 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
1450 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
1451 process_unit_to_form_the_same_automaton_unit_lists,
1452 form_the_same_automaton_unit_lists
1453 check_unit_distributions_to_automata): New prototypes and
1455 (check_automata): Rename it into `check_automata_insn_issues'.
1456 (unit_decl): New fields `the_same_automaton_unit' and
1457 `the_same_automaton_message_reported_p'.
1458 (unit_decl_t): New typedef.
1459 (the_same_automaton_lists): New gloval variable.
1460 (unit_regexp, unit_set_el, units_array, units_cmp,
1461 output_get_cpu_unit_code_func): Use the typedef.
1462 (evaluate_max_reserv_cycles): Increment
1463 `description->max_insn_reserv_cycles'.
1464 (initiate_states): Don't increment `max_cycles_num'.
1465 (transform_insn_regexps): Move code around transformation of
1466 regexps from `generate'.
1467 (generate): Remove call of `transform_insn_regexps'.
1468 (expand_automata): Call `transform_insn_regexps' and
1469 `check_unit_distributions_to_automata'. Check errors before
1472 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
1473 automaton `ultrasparc3_1'.
1475 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
1477 * c-common.c (c_common_init): Set up CPP arithmetic.
1478 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
1479 something reasonable for the host.
1480 (sanity_checks): Add checks.
1481 (cpp_read_main_file): Call sanity_checks() from here...
1482 (cpp_post_options): ... not here.
1483 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
1484 * cpplib.h (struct cpp_options): New member int_precision.
1486 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1488 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
1490 2002-05-04 David S. Miller <davem@redhat.com>
1492 * config/sparc/linux.h, config/sparc/linux64.h
1493 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
1495 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
1497 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
1499 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
1502 2002-05-05 Tim Josling <tej@melbpc.org.au>
1504 * treelang; New directory for new sample language treelang.
1506 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1508 * Makefile.in (c-lex.o): Update.
1509 * c-lex.c: Include target.h.
1510 (cb_register_builtins): New.
1511 (init_c_lex): Set builtins callback.
1512 * c-lex.h (cpp_define, cpp_assert): New prototypes.
1513 * cppinit.c (init_builtins): Use callback, including for
1515 * cpplib.h (struct cpp_callbacks): New member.
1516 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
1517 (TARGET_INITIALIZER): Update.
1518 * target.h (struct gcc_target): New hook.
1519 * tree.c (default_register_cpp_builtins): New.
1520 * tree.h (default_register_cpp_builtins): New.
1522 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
1524 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1526 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
1527 (cpp_post_options): Move sanity checks to...
1528 (sanity_checks): New.
1529 * cpplex.c (maybe_read_ucs): Fix prototype.
1530 (parse_string, cpp_parse_escape): Cast for %c format specifier.
1531 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
1534 2002-05-04 Bernd Schmidt <bernds@redhat.com>
1536 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
1537 builtins. Use V2DI patterns instead of TI for logical operations.
1538 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
1539 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
1540 (ix86_expand_builtins): Change the pattern used for movntdq.
1541 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
1542 sse2_nandv2di3): New patterns.
1543 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
1545 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
1546 (cvtdq2pd): Correct mode on operand 1.
1547 (sse2_umulsidi3): Describe without unspec.
1548 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
1550 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
1551 (ashlv2di3): Likewise, from sse2_ashlv2di3.
1552 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
1553 ashlv4si3, ashlv2di3): Use SImode for shift count.
1554 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
1555 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
1557 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
1559 (__m128i, __m128d): New macros.
1560 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
1561 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
1562 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
1563 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
1564 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
1565 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
1566 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
1567 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
1568 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
1569 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
1570 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
1571 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
1572 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
1573 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
1574 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
1575 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
1576 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
1577 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
1578 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
1579 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
1580 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
1581 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
1582 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
1583 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
1584 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
1585 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
1586 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
1587 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
1588 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
1589 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
1590 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
1591 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
1592 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
1593 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
1594 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
1595 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
1596 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
1598 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
1599 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
1601 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
1603 * dwarf2out.c: Fix formatting.
1604 * varasm.c: Likewise.
1606 2002-05-04 David Edelsohn <edelsohn@gnu.org>
1609 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
1610 clobber and use result as temporary value.
1612 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1614 * expr.c (force_operand): Use expand_simple_* to handle more
1617 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1619 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
1621 (lex_charconst): Update for change in prototype of
1622 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
1624 * cpphash.h (BITS_PER_CPPCHAR_T): New.
1625 * cppinit.c (cpp_create_reader): Initialize them for no
1626 change in semantics.
1627 (cpp_post_options): Add sanity checks.
1628 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
1629 and truncation issues. Calculate in type cppchar_t.
1630 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
1631 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
1632 run-time dependent precision correctly. Return whether the
1633 result is signed or not.
1634 * cpplib.c (dequote_string): Use cppchar_t; update.
1635 * cpplib.h (cppchar_signed_t): New.
1636 struct cpp_options): New precision members.
1637 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
1638 * cppexp.c (eval_token): Update.
1640 2002-05-03 David S. Miller <davem@redhat.com>
1642 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
1643 * config/sparc/sparc.c (sparc_rtx_costs): New function
1644 implementing RTX_COSTS and CONST_COSTS.
1645 * config/sparc/sparc.h (CONST_COSTS): Delete.
1646 (RTX_COSTS_CASES): Define.
1647 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
1650 * config/sparc/sparc.md (DFA schedulers): Split out...
1651 * config/sparc/cypress.md, config/sparc/hypersparc.md,
1652 config/sparc/sparclet.md, config/sparc/supersparc.md,
1653 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
1655 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
1656 checks on it, always defined for Sparc.
1658 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
1659 Tweak, and add more detailed comments.
1661 2002-05-03 Zack Weinberg <zack@codesourcery.com>
1663 * Re-apply patch accidentally reverted with
1664 DFA scheduler merge: remove all rules and variables to slurp
1665 source files out of libiberty and rebuild them with HOST_CC.
1666 ($(HOST_PREFIX_1)varray.o): New rule.
1667 (genattrtab rule): Word wrap.
1669 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1671 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
1672 (CPP_SUBTARGET_SPEC): Define.
1673 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
1674 cpp_subtarget specs.
1675 (CPP_SPEC): Redefine to include %(cpp_subtarget).
1677 2002-05-03 David S. Miller <davem@redhat.com>
1679 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
1680 * target.h (struct gcc_target): Delete cycle_display member.
1682 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
1683 (rtx_needs_barrier): Delete reference to cycle_display unspec.
1684 (ia64_sched_reorder2): Mention need for cycle display handling
1685 once such notes exist.
1687 2002-05-03 Richard Henderson <rth@redhat.com>
1689 * real.c (etoasc): Strip most trailing zeros for clarity.
1690 * sched-vis.c: Include real.h.
1691 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
1692 * Makefile.in (sched-vis.o): Add real.h.
1694 2002-05-03 David S. Miller <davem@redhat.com>
1696 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
1699 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
1701 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
1702 when we get an out of range literal.
1703 (altivec_expand_ternop_builtin): Same.
1704 (altivec_expand_unop_builtin): Same.
1705 (altivec_expand_builtin): Same, for dss.
1706 (altivec_expand_builtin): Use trees instead of rtl when
1707 determining literal argument validity.
1709 2002-05-03 David S. Miller <davem@redhat.com>
1711 Delete cycle display scheduling hook.
1712 * config/ia64/ia64.c (ia64_cycle_display,
1713 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
1714 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
1715 and use emit_insn_before instead of ia64_emit_insn_before.
1716 * config/ia64/ia64.md (unspec usage): Delete cycle display.
1717 (cycle_display): Delete insn pattern.
1718 * config/sparc/sparc.md (unspec usage): Delete cycle display.
1719 (cycle_display): Delete insn pattern.
1720 * config/sparc/sparc.c (sparc_cycle_display,
1721 TARGET_SCHED_CYCLE_DISPLAY): Delete.
1722 * doc/md.texi (cycle_display): Don't mention.
1723 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
1725 2002-05-03 Richard Henderson <rth@redhat.com>
1727 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
1728 * recog.h: Declare them.
1730 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
1731 * config/sparc/sparc.md: Use store_data_bypass_p instead.
1732 * config/sparc/sparc-protos.h: Update.
1734 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1736 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
1737 -D__arch64__. Add -D_LP64.
1738 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
1740 (CPP_ARCH64_SPEC): Likewise.
1741 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
1742 (NO_BUILTIN_SIZE_TYPE): Undef.
1744 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
1746 * genautomata.c (min_issue_delay_pass_states): Change return type
1748 (min_issue_delay_pass_states): Change the algorithm.
1749 (min_issue_delay): Set up min_insn_issue_delay for the state.
1750 (output_min_issue_delay_table): Interchange the nested loops and
1751 and initiate min_insn_issue_delay for states.
1753 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
1755 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
1758 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
1760 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
1763 2002-05-03 Richard Henderson <rth@redhat.com>
1766 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1767 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
1768 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
1769 code before JUMP, not EARLIEST.
1771 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
1773 * c-format.c (check_format_info_main): Don't check for presence of
1774 parameter for * width until after operand number has been read,
1775 and only check for it if format parameters are available.
1778 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1780 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
1781 (LINK_SPEC): Undef before defining.
1783 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1785 PR preprocessor/6489
1786 * tradcpp.c (fixup_newlines): New.
1787 (main, finclude): Use it.
1789 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
1791 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
1792 * config/mips/mips.c (mips_unique_section): Strip encoding from
1795 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1797 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
1800 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1802 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
1803 (Specific): Removed buildstats references.
1804 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
1805 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
1806 Accomodate Solaris versions beyond 8.
1807 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
1808 (Specific, *-*-solaris2.8): Removed, obsolete.
1810 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1813 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
1814 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
1815 fill leaf_reg_remap with identity.
1816 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
1818 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1820 * config/h8300/crti.asm: Remove trailing spaces.
1821 * config/h8300/h8300.c: Likewise.
1822 * config/h8300/lib1funcs.asm: Likewise.
1824 2002-05-02 Jason Merrill <jason@redhat.com>
1826 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
1827 * c-decl.c (c_init_decl_processing): Use it.
1828 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
1829 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
1830 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
1832 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1834 * regrename.c: Fix formatting.
1837 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
1839 * i386.md (attribute memory): Handle compares properly.
1841 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
1843 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
1846 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
1848 * function.c: Fix formatting.
1850 2002-05-02 Jan Hubicka <jh@suse.cz>
1852 * haifa-sched.c (schedule_insn): Print table of instructions and
1854 (sched_block): Do not print ready list at verbosity level 1.
1855 * sched-vis.c (print_insn): Make global.
1856 * sched-ebb.c (ebb_print_insn): Rename from...
1857 (print_insn): ... this one.
1858 * sched-int.h (print_insn): Declare
1860 2002-05-02 Richard Henderson <rth@redhat.com>
1862 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
1863 emitted by cycle_display.
1865 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
1867 * doc/install.texi (*-*-freebsd*): Update to latest status.
1869 2002-05-02 Jakub Jelinek <jakub@redhat.com>
1872 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
1873 * config/float-sparc.h: Assume 128-bit long double if
1874 __LONG_DOUBLE_128__ is defined.
1876 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
1878 * genattrtab.c (write_function_unit_info): Add a dummy element
1879 when num_units == 0.
1881 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1883 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
1884 TYPE_MODE (double_type_node) instead of DFmode.
1886 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
1888 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
1890 * toplev.c (rest_of_compilation): Revert Richard's patch.
1892 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
1894 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
1896 2002-05-02 Catherine Moore <clm@redhat.com>
1898 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
1900 2002-05-02 Kazu Hirata <kazu@hxi.com>
1902 * combine.c: Fix comment typos.
1904 * genautomata.c: Likewise.
1908 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
1910 * doc/install.texi: State GNAT version requirements.
1912 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
1914 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
1915 of the frame pointer or arg pointer register which strict register
1916 checking is not enabled.
1918 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
1920 * gcc.dg/altivec-8.c: New.
1922 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
1923 PRE_INC and PRE_DEC for altivec modes.
1925 2002-05-01 Bruce Korb <bkorb@gnu.org>
1927 * fixinc/check.tpl(set-writable): make sure the function exists first
1928 * fixinc/inclhack.def(alpha_assert): fix test_text
1929 * fixinc/tests/base/assert.h: add in missing result
1931 2002-05-01 Jeff Law <law@redhat.com>
1933 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
1936 2002-05-01 Joel Brobecker <brobecker@gnat.com>
1938 * dbxout.c (dbxout_type): Emit size information for range types,
1939 as well, but only when using GDB extensions.
1941 2002-05-01 Richard Henderson <rth@redhat.com>
1943 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
1944 target-independent gnu binutils date test.
1946 2002-05-01 Richard Henderson <rth@redhat.com>
1948 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
1949 info before expunging the block.
1951 2002-05-01 Jakub Jelinek <jakub@redhat.com>
1953 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
1954 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
1955 -M -or -MM is in effect.
1957 2002-05-01 Zack Weinberg <zack@codesourcery.com>
1959 * config.gcc: Correct test of --enable-obsolete. Obsolete all
1960 A29k configurations.
1961 * doc/install.texi: Update to match.
1963 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1966 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
1967 for duplicates. Always loop over whole list.
1969 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1971 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
1973 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1975 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
1978 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1980 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
1982 2002-05-01 David Edelsohn <edelsohn@gnu.org>
1984 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
1985 (nabs_nopower): Same.
1986 (floatdisf2): New pattern.
1987 (absdi2): Convert to define_insn_and_split.
1992 (fix_trunctfdi2): Same.
1993 (fix_trunctfsi2): Same.
1995 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
1997 * doc/install.texi: Update Texinfo version requirement
2000 2002-05-01 Jakub Jelinek <jakub@redhat.com>
2002 PR target/6512, PR target/5628
2003 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
2004 when memory is not aligned.
2005 (movdf_insn_v9only_vis): Likewise.
2006 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
2007 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
2008 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
2010 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
2012 * gcc.dg/altivec-7.c: New.
2014 * config/rs6000/altivec.h: Cleanup.
2016 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
2018 * doc/invoke.texi (Option Summary): Add -mvrsave=.
2019 (RS/6000 and PowerPC Options): Document -mvrsave=.
2021 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
2022 (rs6000_altivec_vrsave_string): Same.
2023 (rs6000_override_options): Call rs6000_parse_vrsave_option.
2024 (rs6000_parse_vrsave_option): New.
2025 (rs6000_stack_info): Only generate vrsave instructions when
2026 TARGET_ALTIVEC_VRSAVE.
2028 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
2029 (rs6000_altivec_vrsave_string): Define extern.
2030 (rs6000_altivec_vrsave): Same.
2031 (TARGET_ALTIVEC_VRSAVE): New.
2033 2002-04-30 Richard Henderson <rth@redhat.com>
2036 * toplev.c (rest_of_compilation): Don't run cross-jump before
2039 2002-04-30 Tom Rix <trix@redhat.com>
2041 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
2042 check which_alternative.
2044 2002-04-30 Kazu Hirata <kazu@hxi.com>
2046 * cpplex.c: Fix comment formatting.
2047 * function.c: Likewise.
2048 * integrate.c: Likewise.
2049 * regrename.c: Likewise.
2050 * sibcall.c: Likewise.
2051 * simplify-rtx.c: Likewise.
2052 * tree-inline.c: Likewise.
2054 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2056 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
2057 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
2058 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
2059 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
2060 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
2061 * pa/x-ada: New file. Define ADA_CFLAGS.
2063 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
2065 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
2066 from MMIX_LAST_REGISTER_FILE_REGNUM.
2067 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
2068 (struct machine_function): New member highest_saved_stack_register
2069 previously static variable in mmix.c.
2070 (MACHINE_DEPENDENT_REORG): Define.
2071 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
2072 (MMIX_OUTPUT_REGNO): New.
2073 (mmix_target_asm_function_prologue): Move calculation of last used
2074 saved-stack-register into...
2075 (mmix_machine_dependent_reorg): New function. Update to also handle
2077 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
2078 register names, simplify somewhat by new variable regno.
2079 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
2081 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
2082 emitting register names.
2083 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
2084 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
2086 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
2089 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
2091 2002-04-30 Richard Henderson <rth@redhat.com>
2093 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
2094 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
2095 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
2096 emit_tfmode_cvt): New.
2097 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
2098 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
2099 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
2100 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
2101 * config/sparc/sparc-protos.h: Update.
2103 2002-04-30 Janis Johnson <janis187@us.ibm.com>
2105 * install.texi (Final install): Add to the list of info to include
2106 in a report of a successful bootstrap, and add link to 3.1 list.
2108 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
2110 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
2111 (mode): Add vector modes
2112 (i387): Kill attribute.
2113 (unit): New attribute.
2114 (length_immediate): Grok new types.
2115 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
2116 (modrm): Use "unit".
2117 (memory): Handle MMX/SSE properly.
2118 (scheduling descriptions): Kill uses of fop1.
2119 (sse, mmx, fp patterns): Set type and mode properly.
2121 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
2123 * pa.c (override_options): Default to PA8000 scheduling.
2124 * doc/invoke.texi (HP-PA options): Mention newly added 7300
2125 scheduling parameter.
2127 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
2128 handling of double precision multiplies.
2130 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
2131 fpdiv and fpsqrt instructions.
2132 (7200 & 7300 scheduling): Fix typo in handling of
2133 store-load and store-store penalties.
2135 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2137 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
2138 mips. Add two missing commas.
2140 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
2142 * doc/contrib.texi (Contributors): Update Paolo Carlini's
2143 and Benjamin Kosnik's entries.
2145 2002-04-29 David S. Miller <davem@redhat.com>
2147 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
2148 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
2149 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
2150 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
2152 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2154 * combine.c (find_split_point): Use gen_int_mode.
2156 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
2158 Merging code from dfa-branch:
2160 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
2162 * genautomata.c (output_reserv_sets): Fix typo.
2164 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
2166 * genautomata.c (output_reserv_sets): Remove
2167 next_cycle_output_flag.
2169 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
2171 * sched-rgn.c (init_ready_list): Make the DFA code handle
2172 USE/CLOBBER insns in the same way as the traditional
2174 (new_ready): Similarly..
2176 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
2178 * haifa-sched.c (schedule_block): Change the DFA state only after
2181 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
2183 * pa.c (hppa_use_dfa_pipeline_interface): New function.
2184 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
2185 (override_options): Add PA7300 scheduling support.
2186 (pa_adjust_cost): Update various comments. Properly
2187 handle anti and output dependencies when using the
2189 (pa_issue_rate): Add PA7300 scheduling support.
2190 (pa_can_combine_p): Call extract_insn before calling
2191 constrain_operands (taken from mainline tree).
2192 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
2193 * pa.md (cpu attr): Add 7300. Rewrite pipeline
2194 descriptions using DFA descriptions. Add PA7300
2197 2002-03-30 David S. Miller <davem@redhat.com>
2199 Add UltraSPARC-III DFA scheduling support.
2200 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
2201 Update FP conditional move on register insn patterns to use it, as
2203 (define_attr cpu): Add ultrasparc3.
2204 (define_attr us3load_type): New, update integer load patterns to
2205 set it, as appropriate.
2206 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
2207 (rest): Add UltraSPARC3 scheduling description.
2208 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
2209 (PROCESSOR_ULTRASPARC3): New.
2210 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
2211 ({ASM,CPP}_CPU_SPEC): Likewise.
2212 (REGISTER_MOVE_COST): Likewise.
2213 (RTX_COSTS): Likewise.
2214 * config/sparc/sparc.c (sparc_override_options,
2215 sparc_initialize_trampoline, sparc64_initialize_trampoline,
2216 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2217 sparc_issue_rate): Likewise.
2218 * config/sparc/sol2.h: Likewise.
2219 * config/sparc/sol2-sld-64.h: Likewise.
2220 * config/sparc/linux64.h: Likewise.
2222 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
2224 * doc/md.texi: Add comments about usage the latency time for the
2225 different dependencies and about case when two or more conditions
2226 in different define_insn_reservations returns TRUE for an insn.
2228 * doc/md.texi: Add reference for automaton based pipeline
2231 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
2233 * doc/passes.texi: Add missed information about genattrtab.
2235 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
2237 * genautomata.c (output_automata_list_transition_code): Check
2238 automata_list on NULL.
2240 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
2242 * genautomata.c (output_insn_code_cases,
2243 output_automata_list_min_issue_delay_code,
2244 output_automata_list_transition_code,
2245 output_automata_list_state_alts_code): Comment the functions.
2247 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
2249 * genautomata.c (automata_list_el_t): New typedef.
2250 (get_free_automata_list_el,free_automata_list_el,
2251 free_automata_list, automata_list_hash, automata_list_eq_p,
2252 initiate_automata_lists, automata_list_start, automata_list_add,
2253 automata_list_finish, finish_automata_lists,
2254 output_insn_code_cases, output_automata_list_min_issue_delay_code,
2255 output_automata_list_transition_code,
2256 output_automata_list_state_alts_code, add_automaton_state,
2257 form_important_insn_automata_lists): New functions and prototypes.
2258 (insn_reserv_decl): Add members important_automata_list and
2260 (ainsn): Add members important_p.
2261 (automata_list_el): New structure.
2262 (first_free_automata_list_el, current_automata_list,
2263 automata_list_table): New global variables.
2264 (create_ainsns): Initiate member important_p.
2265 (output_internal_min_issue_delay_func): Generate the switch and
2266 call output_insn_code_cases.
2267 (output_internal_trans_func, output_internal_state_alts_func):
2269 (generate): Call initiate_automata_lists.
2270 (automaton_states): New global variable.
2271 (expand_automata): Call form_important_insn_automata_lists.
2272 (write_automata): Call finish_automata_lists.
2274 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
2276 * genautomata.c (add_excls, add_presence_absence): Check that
2277 cpu units in the sets belong the same automaton.
2279 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
2280 about that cpu units in the sets belong the same automaton.
2282 * doc/md.texi: Ditto.
2284 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
2285 Nitin Gupta <niting@noida.hcltech.com>
2287 * config/sh/sh.c (sh_use_dfa_interface): New function.
2289 (sh_issue_rate): New Function.
2290 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
2291 TARGET_SCHED_ISSUE_RATE: define.
2293 * config/sh/sh.md: Add DFA based pipeline description for SH4.
2295 (define_attr insn_class): New attribute used for DFA
2297 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
2298 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
2299 cmpeqdi_t): Likewise.
2301 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
2302 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
2304 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
2306 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
2308 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
2311 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
2313 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
2314 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
2316 (output_dfa_start_func): Initiate new variable insn_codes_length,
2317 (write_automata): Output definition of the new variable.
2319 2001-10-02 David S. Miller <davem@redhat.com>
2321 * haifa-sched.c (advance_one_cycle): New function.
2322 (schedule_block): Use it.
2323 (queue_to_ready): Use it, and also make sure to advance the DFA
2324 state on all stall cycles, not just those where insn_queue links
2327 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
2329 * haifa-sched.c (max_issue): Remove last_p argument. Only return
2330 non-zero if the highest-priority instruction could be scheduled.
2331 (choose_ready): Remove last argument from max_issue call.
2333 2001-09-28 David S. Miller <davem@redhat.com>
2335 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
2336 ultrasparc and 3 for other multi-issue sparcs.
2338 2001-09-27 David S. Miller <davem@redhat.com>
2340 * config/sparc/sparc.md (cycle_display): New pattern.
2341 * config/sparc/sparc.c (sparc_cycle_display): New.
2342 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
2344 2001-09-25 David S. Miller <davem@redhat.com>
2346 Convert all of Sparc scheduling to DFA
2347 * config/sparc/sparc.md: Kill all define_function_unit
2348 directives and replace with DFA equivalent.
2349 * config/sparc/sparc.c (ultrasparc_adjust_cost,
2350 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
2351 ultra_fpmode_conflict_exists, ultra_find_type,
2352 ultra_build_types_avail, ultra_flush_pipeline,
2353 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
2354 ultrasparc_variable_issue, ultrasparc_sched_init,
2355 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
2356 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
2357 ultra_cur_hist, ultra_cycles_elapsed): Kill.
2358 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2359 ultrasparc_store_bypass_p): New.
2360 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
2363 2001-09-24 David S. Miller <davem@redhat.com>
2365 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
2366 ready->vec[foo] not ready[foo].
2368 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
2370 * doc/md.texi: Correct examples for define_insn_reservations
2373 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
2375 * genautomata.c (create_automata): Print message about creation of
2377 (generate): Remove printing meease about creation of
2380 2001-09-05 David S. Miller <davem@redhat.com>
2382 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
2383 * config/sparc/linux64.h: Likewise.
2385 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
2387 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
2388 schedule_block, sched_init, sched_finish): Add missed calls of
2389 use_dfa_pipeline_interface.
2391 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
2394 * sched-vis.c (get_visual_tbl_length): Ditto.
2396 2001-08-27 Richard Henderson <rth@redhat.com>
2398 * genattr.c (main): Emit state_t even when not doing scheduling.
2400 2001-08-27 Richard Henderson <rth@redhat.com>
2402 * genautomata.c (expand_automata): Always create a description.
2404 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
2406 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
2407 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
2408 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
2411 * genattr.c (main): New variable num_insn_reservations. Increase
2412 it if there is DEFINE_INSN_RESERVATION. Output automaton based
2413 pipeline hazard recognizer interface.
2415 * genattrtab.h: New file.
2417 * genattrtab.c: Include genattrtab.h.
2418 (attr_printf, check_attr_test, make_internal_attr,
2419 make_numeric_value): Move protypes into genattrtab.h. Define them
2421 (num_dfa_decls): New global variable.
2422 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
2423 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
2424 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
2425 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
2427 * genautomata.c: New file.
2429 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
2431 * sched-int.h: (curr_state): Add the external definition for
2432 automaton pipeline interface.
2433 (haifa_insn_data): Add comments for members blockage and units.
2435 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2436 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2437 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2438 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2439 TARGET_SCHED_DFA_POST_CYCLE_INSN,
2440 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2441 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
2443 (TARGET_SCHED): Use the new macros.
2445 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
2446 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
2447 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
2448 dfa_bubble): New members in gcc_target.sched.
2450 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
2451 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
2452 (insn_queue): Redefine it as pointer to array.
2453 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
2455 (max_insn_queue_index_macro_value): New variable.
2456 (curr_state, dfa_state_size, ready_try): New varaibles for
2457 automaton interface.
2458 (ready_element, ready_remove, max_issue): New function prototypes
2459 for automaton interface.
2460 (choose_ready): New function prototype.
2461 (insn_unit, blockage_range): Add comments.
2462 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
2463 FUNCTION_UNITS_SIZE == 0.
2464 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
2465 actual_hazard, potential_hazard): Add comments.
2466 (insn_cost): Use cost -1 as undefined value. Remove
2467 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
2469 (ready_element, ready_remove): New functions for automaton
2471 (schedule_insn): Add new code for automaton pipeline interface.
2472 (queue_to_ready): Add new code for automaton pipeline interface.
2473 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
2474 (debug_ready_list): Print newline when the queue is empty.
2475 (max_issue): New function for automaton pipeline interface.
2476 (choose_ready): New function.
2477 (schedule_block): Add new code for automaton pipeline interface.
2478 Print ready list before scheduling each insn.
2479 (sched_init): Add new code for automaton pipeline interface.
2480 Initiate insn cost by -1.
2481 (sched_finish): Free the current automaton state and finalize
2482 automaton pipeline interface.
2484 * sched-rgn.c: Include target.h.
2485 (init_ready_list, new_ready, debug_dependencies): Add new code for
2486 automaton pipeline interface.
2488 * sched-vis.c: Include target.h.
2489 (get_visual_tbl_length): Add code for automaton interface.
2490 (target_units, print_block_visualization): Add comments.
2492 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
2493 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
2494 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
2495 (getruntime.o, genautomata.o): New entries.
2496 (genattrtab.o): Add new dependency file genattrtab.h.
2497 (genattrtab): Add new dependencies. Link it with `libm.a'.
2498 (getruntime.o, hashtab.o): New entries for canadian cross.
2500 * doc/md.texi: Description of automaton based model.
2502 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
2504 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2505 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2506 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2507 TARGET_SCHED_DFA_POST_CYCLE_INSN,
2508 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2509 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2510 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
2512 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
2513 MAX_DFA_ISSUE_RATE): New macro descriptions.
2515 * doc/contrib.texi: Add dfa based scheduler contribution.
2517 * doc/gcc.texi: Add more information about genattrtab.
2519 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2521 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
2522 adjust_address_nv call.
2524 2002-04-29 Janis Johnson <janis187@us.ibm.com>
2526 * doc/install.texi (Testing): Provide additional information, and
2527 a stronger encouragement, for running the testsuites.
2529 2002-04-29 DJ Delorie <dj@redhat.com>
2531 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
2532 given in upper case.
2534 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2536 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
2537 Solaris 2 <widec.h> if missing.
2538 * fixinc/fixincl.x: Regenerate.
2539 * fixinc/tests/base/widec.h: New file.
2541 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
2543 * toplev.c (f_options): Add "profile" switch so that
2544 -fno-profile can be used to disable -p.
2546 2002-04-29 Bernd Schmidt <bernds@redhat.com>
2548 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
2550 * tree.c (build_common_tree_nodes_2): Likewise.
2551 * tree.h (enum tree_index): Likewise.
2552 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
2554 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
2556 (init_mmx_sse_builtins): Initialize SSE2 builtins.
2557 (ix86_expand_builtin): Add support for SSE2 builtins.
2558 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
2559 (VALID_SSE_REG_MODE): Use it.
2560 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
2561 (enum ix86_builtins): Add SSE2 builtins.
2562 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
2563 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
2564 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
2565 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
2566 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
2567 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
2568 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
2569 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
2570 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
2571 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
2572 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
2573 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
2574 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
2575 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
2576 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
2577 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
2578 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
2579 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
2580 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
2581 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
2582 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
2583 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
2584 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
2585 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
2586 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
2587 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
2588 lfence_insn): New patterns.
2589 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
2590 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
2592 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
2594 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
2596 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2598 * doc/contrib.texi (Contributors): Add Paolo Carlini and
2600 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
2601 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
2602 and CPU instead of cpu.
2604 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
2606 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
2608 (lang_independent_options): Add -fif-conversion, -fif-conversion2
2609 (rest_of_compilation): Do if conversion only when asked for.
2610 (parse_options_and_default_flags): Set new variables to 1 for -O1
2611 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
2613 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
2615 * i386.c (dbx64_register_map): Fix typo.
2617 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
2619 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
2620 real_one_half, real_bb_freq_max): New static variables.
2621 (debug_profile_bbauxs): Kill.
2622 (process_note_predictions): Kill unused variable.
2623 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
2625 (propagate_freq): Use REAL_ARITHMETICS.
2626 (estimate_bb_frequencies): Likevise; init new static variables.
2627 * Makefile.in (predict.o): Add dependency on real.h
2629 2002-04-28 David S. Miller <davem@redhat.com>
2632 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
2633 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
2634 several {reads,writes} instead.
2635 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
2638 2002-04-27 David S. Miller <davem@redhat.com>
2641 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
2644 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
2645 including signal.h and sys/ucontext.h, not needed.
2647 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
2649 * varasm.c (output_constant_def): Correct test for not calling
2650 ENCODE_SECTION_INFO for INTEGER_CST.
2652 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
2654 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
2655 keep most cases as function eval_token.
2656 (eval_token): New function.
2657 (_cpp_parse_expr): Read token here for improved diagnostics.
2658 Don't use op_as_text. Detect bad ':' here.
2659 (reduce): Don't detect bad ':' here.
2660 (op_as_text): Remove.
2661 * cpphash.h (_cpp_test_assertion): Change prototype.
2662 * cpplib.c (_cpp_test_assertion): Change prototype.
2664 2002-04-28 Richard Henderson <rth@redhat.com>
2667 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
2668 (ggc_mark_rtx_children): New.
2670 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2673 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
2674 after call peepholes for UltraSPARC.
2675 (call + jump 64-bit peepholes): Remove.
2677 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2680 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
2681 result as temporary value.
2683 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2686 * toplev.c (rest_of_compilation): Only run regrename and copy
2687 propagation if optimizing.
2689 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2691 PR optimization/6475
2692 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
2693 register of REGNO_DECL (i).
2694 * Makefile.in (reload1.o): Add $(TREE_H).
2696 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
2698 * cppexp.c (lex): Update to use state.skip_eval.
2699 (struct op): Remove prio and flags members.
2700 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
2701 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
2702 (LEFT_ASSOC): New macro.
2703 (optab): New table of operator priorities and flags.
2705 (_cpp_parse_expr): Clean up logic. Return bool. Use a
2706 malloc-ed parser stack.
2707 (reduce): New; reduce the operator stack.
2708 (_cpp_expand_op_stack): Expand the operator stack as necessary.
2709 * cpphash.h (struct op): Predeclare.
2710 (struct cpp_reader): New members op_stack, op_limit.
2711 (struct lexer_state): New member skip_eval.
2712 (_cpp_parse_expr): Update.
2713 (_cpp_expand_op_stack): New.
2714 * cpplib.c (do_if): Update.
2715 * cppinit.c (cpp_create_reader): Create op stack.
2716 (cpp_destroy): And destroy it.
2717 * cpplib.h (CPP_LAST_CPP_OP): Correct.
2718 (TTYPE_TABLE): Correct.
2720 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2723 * c-decl.c (duplicate_decls): Call merge_weak.
2724 * c-pragma.c (apply_pragma_weak): Warn about misuse.
2725 * output.h (merge_weak): Prototype merge_weak.
2726 * varasm.c (merge_weak): New function.
2727 (declare_weak): Make sure we don't give an error on VAR_DECLs.
2728 Mark RTL with SYMBOL_REF_WEAK.
2730 2002-04-27 Kurt Garloff <garloff@suse.de>
2732 * tree-inline.c (inlinable_function_p): Improve heuristics
2733 by using a smoother function to cut down allowable inlinable size.
2734 * param.def: Add parameters max-inline-insns-single,
2735 max-inline-slope, min-inline-insns that determine the exact
2736 shape of the above function.
2737 * param.h: Likewise.
2739 2002-04-26 Richard Henderson <rth@redhat.com>
2741 * c-parse.in (malloced_yyss, malloced_yyvs): New.
2742 (yyoverflow): Re-add. Set them.
2743 (free_parser_stacks): New.
2744 * c-common.h: Declare it.
2745 * c-lex.c (c_common_parse_file): Call it.
2747 2002-04-26 Richard Henderson <rth@redhat.com>
2749 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
2750 for fallthru search.
2752 2002-04-26 Eric Christopher <echristo@redhat.com>
2754 PR optimization/3700
2755 * config/mips/mips.c (mips_issue_rate): Define. New function.
2756 (TARGET_SCHED_ISSUE_RATE): Use.
2758 2002-04-25 David S. Miller <davem@redhat.com>
2761 * reorg.c (optimize_skip): Do not allow exception causing
2762 instructions to be considered for delay slots.
2763 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
2764 (relax_delay_slots): Do not try to consider exception causing
2765 instructions as redundant.
2767 2002-04-26 Richard Henderson <rth@redhat.com>
2770 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
2772 2002-04-26 Mark Mitchell <mark@codesourcery.com>
2775 * config/i386/i386.md (untyped_call): Return the value in a float
2776 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
2779 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
2781 * tree.c (tree_int_cst_lt): Compare constants whose types differ
2782 in unsigned-ness correctly.
2784 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
2786 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
2787 portable runtime model.
2789 2002-04-26 Richard Henderson <rth@redhat.com>
2791 * c-parse.in (yyoverflow): Revert.
2793 2002-04-26 David Edelsohn <edelsohn@gnu.org>
2794 Richard Henderson <rth@redhat.com>
2796 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
2797 result as temporary value.
2799 2002-04-26 Richard Henderson <rth@redhat.com>
2802 * c-common.c (fix_string_type): Split out of ...
2803 (combine_strings): ... here. Take a varray, not a tree list.
2804 (c_expand_builtin_printf): Use fix_string_type.
2805 * c-common.h: Update decls.
2806 * c-parse.in (string): Remove. Update all uses to use STRING
2807 instead, and not call combine_strings.
2810 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
2811 (build_asm_stmt): Likewise.
2812 * objc/objc-act.c (my_build_string): Use fix_string_type.
2813 (build_objc_string_object): Build varray for combine_strings.
2815 2002-04-26 Bo Thorsen <bo@suse.co.uk>
2817 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
2820 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
2822 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
2823 (HAVE_NO_R_OPERAND): Remove.
2824 (HAVE_VALUE): Remove.
2825 (op_to_prio): Update.
2826 (UNARY): Don't alter flags.
2827 (_cpp_parse_expr): want_value used to indicate whether
2828 a number or unary operator is expected next. Distinguish
2829 unary and binary +/-.
2830 (op_as_text): Update for unary operators.
2832 2002-04-25 Richard Henderson <rth@redhat.com>
2835 * c-parse.in (yyoverflow): New.
2837 2002-04-25 Richard Henderson <rth@redhat.com>
2840 * c-common.c (shorten_compare): Simplfy conditions leading to
2841 the generation of a warning.
2843 2002-04-25 Richard Henderson <rth@redhat.com>
2846 * expmed.c (extract_bit_field): Fall through to generic code rather
2847 than aborting on subreg special case.
2849 2002-04-25 David S. Miller <davem@redhat.com>
2851 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
2852 for DECL being NULL.
2854 2002-04-25 Steve Christiansen <smc@us.ibm.com>
2856 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
2858 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
2860 * c-decl.c (grokdeclarator): Remove outdated ??? note
2861 on invalid declaration of flexible array members.
2863 2002-04-25 Richard Henderson <rth@redhat.com>
2865 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
2867 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2869 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
2870 needed by the compiler, even if they are used as global regs.
2872 2002-04-25 Matt Hiller <hiller@redhat.com>
2874 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
2876 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
2877 of the corresponding functions.
2878 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
2881 2002-04-25 Matt Hiller <hiller@redhat.com>
2883 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
2885 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
2886 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
2887 registers, adjust comment accordingly.
2888 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
2889 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
2890 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
2891 for coprocessor registers.
2892 (ADDITIONAL_REGISTER_NAMES): Include
2893 ALL_COP_ADDITIONAL_REGISTER_NAMES.
2895 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
2896 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
2897 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
2898 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
2899 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
2901 (mips_char_to_class): Adjust comment to include coprocessor
2904 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
2906 (mips_reg_names, mips_regno_to_class): Include coprocessor
2908 (mips_sw_reg_names): Ditto, make non-static.
2909 (mips_move_1word): Handle moves to and from coprocessor registers.
2910 (mips_move_2words): Handle moves to and from coprocessor
2912 (mips_class_max_nregs, mips_register_move_cost): Handle
2913 coprocessor register classes.
2914 (override_options): Initialize mips_char_to_class and
2915 mips_hard_regno_mode_ok properly for coprocessor registers.
2917 * config/mips/mips.md (movdi_internal, movdi_internal2,
2918 movsi_internal1, movsi_internal2): Add constraint-sets for
2919 coprocessor registers.
2920 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
2921 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
2923 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
2924 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
2926 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
2927 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
2929 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
2930 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
2933 * doc/tm.texi: Document feature.
2935 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
2937 * integrate.c (function_attribute_inlinable_p): Simplify.
2938 Check the table pointer is not NULL.
2940 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
2942 * doc/c-tree.texi: Fix typo in introduction.
2944 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
2946 * c-common.h (c_common_parse_file): Update.
2947 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2948 * c-lex.c (YYDEBUG): Get from c-lex.h.
2949 (c_common_parse_file): Update.
2950 * c-lex.h (YYDEBUG, yydebug): New.
2951 * c-parse.in (YYDEBUG): Get from c-lex.h.
2952 (c_set_yydebug): Remove.
2953 * c-tree.h (c_set_yydebug): Remove.
2954 * langhooks-def.h (lhd_do_nothing_i): New.
2955 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
2956 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
2957 * langhooks.c (lhd_do_nothing_i): New.
2958 (lhd_set_yydebug): Remove.
2959 * langhooks.h (struct lang_hooks): Update.
2960 * toplev.c (set_yydebug): New.
2961 (compile_file): Update call to parse_file hook.
2962 (decode_d_option): Update.
2964 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2966 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
2968 * loop.c (load_mems): Don't change the interface of called functions.
2970 * calls.c (expand_call): Take current_function_pretend_args_size
2971 into account when setting argblock for sibcalls.
2973 2002-04-24 Matt Hiller <hiller@redhat.com>
2975 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
2978 * cpplex.c (skip_line_comment): Process comment one multibyte
2979 character at a time rather than one char at a time, if
2981 (parse_string): Process string one multibyte character at a time
2982 rather than one char at a time, if appropriate.
2983 * c-lex.c (lex_string): Lex and copy multibyte strings
2985 * cpplib.h (cppchar_t): Change to unsigned.
2987 2002-04-24 Richard Henderson <rth@redhat.com>
2990 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
2993 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
2995 * sh.c (sh_va_arg): If argument was passed by reference,
2996 dereference the pointer.
2998 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3000 * sh.md (divsi3_i4_media): Use match_operand for input values
3001 rather than hard registers.
3002 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
3003 unnecessarily through hard registers. Keep copies of pseudo
3004 registers outside of the libcall sequence.
3006 * sh.md (casesi_shift_media): Add modes.
3008 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
3011 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
3013 * attribs.c (c_common_attribute_table): Move table and handlers
3015 (format_attribute_table, lang_attribute_table,
3016 lang_attribute_common): Remove.
3017 (init_attributes): Replace NULL pointers with pointers to the
3019 (handle_packed_attribute, handle_nocommon_attribute,
3020 handle_common_attribute, handle_noreturn_attribute,
3021 handle_noinline_attribute, handle_always_inline_attribute,
3022 handle_used_attribute, handle_unused_attribute,
3023 handle_const_attribute, handle_transparent_union_attribute,
3024 handle_constructor_attribute, handle_destructor_attribute,
3025 handle_mode_attribute, handle_section_attribute,
3026 handle_aligned_attribute, handle_weak_attribute,
3027 handle_alias_attribute, handle_visibility_attribute,
3028 handle_no_instrument_function_attribute, handle_malloc_attribute,
3029 handle_no_limit_stack_attribute, handle_pure_attribute,
3030 handle_deprecated_attribute, handle_vector_size_attribute,
3031 vector_size_helper): Move to c-common.c.
3032 * c-common.c (c_common_attribute_table,
3033 handle_packed_attribute, handle_nocommon_attribute,
3034 handle_common_attribute, handle_noreturn_attribute,
3035 handle_noinline_attribute, handle_always_inline_attribute,
3036 handle_used_attribute, handle_unused_attribute,
3037 handle_const_attribute, handle_transparent_union_attribute,
3038 handle_constructor_attribute, handle_destructor_attribute,
3039 handle_mode_attribute, handle_section_attribute,
3040 handle_aligned_attribute, handle_weak_attribute,
3041 handle_alias_attribute, handle_visibility_attribute,
3042 handle_no_instrument_function_attribute, handle_malloc_attribute,
3043 handle_no_limit_stack_attribute, handle_pure_attribute,
3044 handle_deprecated_attribute, handle_vector_size_attribute,
3045 vector_size_helper): Move from attribs.c.
3046 * c-common.h (c_common_attribute_table,
3047 c_common_format_attribute_table): New.
3048 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3049 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3050 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
3051 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
3052 (LANG_HOOKS_INITIALIZER): Update.
3053 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
3054 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
3055 * target.h: Update comment.
3056 * tree.c (default_target_attribute_table): Remove.
3057 * tree.h (default_target_attribute_table, format_attribute_table,
3058 lang_attribute_table, lang_attribute_common): Remove.
3060 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3061 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3063 2002-04-24 Jason Merrill <jason@redhat.com>
3065 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
3066 * dwarf2out.c (dwarf_attr_name): Support it.
3067 (gen_array_type_die): Emit it.
3068 (lookup_type_die): No special handling for VECTOR_TYPE.
3069 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
3071 2002-04-24 Richard Henderson <rth@redhat.com>
3073 * config/mips/mips.md (movdi_usd): Renumber.
3075 2002-04-24 David S. Miller <davem@redhat.com>
3078 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
3079 32-bit Sparc and current_function_returns_struct is true.
3081 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
3083 * loop.c (canonicalize_condition): Use gen_int_mode.
3085 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
3087 * config/rs6000/altivec.h: Cleanup file. Add non individual
3109 (vec_vcmpequb): New.
3110 (vec_vcmpequh): New.
3111 (vec_vcmpequw): New.
3112 (vec_vcmpeqfp): New.
3113 (vec_vcmpgefp): New.
3114 (vec_vcmpgtub): New.
3115 (vec_vcmpgtsb): New.
3116 (vec_vcmpgtuh): New.
3117 (vec_vcmpgtsh): New.
3118 (vec_vcmpgtuw): New.
3119 (vec_vcmpgtsw): New.
3120 (vec_vcmpgtfp): New.
3121 (vec_vcmpgefp): New.
3126 (vec_vexptefp): New.
3131 (vec_lde): Add vector float variant.
3136 (vec_vmhaddshs): New.
3158 (vec_vmladduhm): New.
3159 (vec_vmhraddshs): New.
3161 (vec_vmsummbm): New.
3162 (vec_vmsumuhm): New.
3163 (vec_vmsumshm): New.
3164 (vec_vmsumuhs): New.
3165 (vec_vmsumshs): New.
3174 (vec_vnmsubfp): New.
3192 (vec_vrsqrtefp): New.
3203 (vec_vspltisb): New.
3204 (vec_vspltish): New.
3205 (vec_vspltisw): New.
3230 (vec_vsum4ubs): New.
3231 (vec_vsum4sbs): New.
3232 (vec_vsum4shs): New.
3233 (vec_vsum2sws): New.
3244 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
3247 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
3248 added literals from substracted literals.
3249 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
3250 (fold) [associate]: Preserve MINUS_EXPR if needed.
3252 2002-04-23 Zack Weinberg <zack@codesourcery.com>
3254 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
3257 2002-04-23 Tom Tromey <tromey@redhat.com>
3259 * gcc.c: Added --resource. For PR java/6314.
3261 2002-04-23 David O'Brien <obrien@FreeBSD.org>
3263 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
3264 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
3267 2002-04-23 David O'Brien <obrien@FreeBSD.org>
3269 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
3271 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
3273 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
3275 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
3276 (ix86_expand_clrstr): Fix typo.
3277 * loop.c (gen_load_of_final_value): New.
3278 (loop_givs_rescan, strength_reduce, check_dbra_loop):
3281 2002-04-23 Roger Sayle <roger@eyesopen.com>
3283 * builtins.c (builtin_memset_gen_str): New function.
3284 (expand_builtin_memset): Optimize the case of constant length, but
3287 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
3289 * config/rs6000/altivec.h (vec_step): Remove extraneous
3291 (vec_ctu): Cast return.
3293 2002-04-23 Alan Modra <amodra@bigpond.net.au>
3296 * function.h: (struct function): Add profile_label_no field.
3297 (current_function_profile_label_no): Define.
3298 * function.c: (profile_label_no): New static var.
3299 (expand_function_start): Increment it, and copy to
3300 current_function_profile_label_no.
3301 * output.h (profile_label_no): Delete.
3302 * final.c (profile_label_no): Delete.
3303 (profile_function): Use current_function_profile_label_no.
3304 (final_end_function): Don't increment profile_label_no here.
3305 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
3306 profile_label_no with current_function_profile_label_no.
3307 * config/pa/pa.c (current_function_number): Delete.
3308 (pa_output_function_prologue): Don't output profile label here.
3309 (hppa_profile_hook): Use label_no param rather than
3310 current_function_number.
3311 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
3312 * config/pa/pa.h: .. here.
3313 (FUNCTION_PROFILER): Output profile label here.
3315 2002-04-22 Eric Christopher <echristo@redhat.com>
3317 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
3318 patch of 2002-04-09 due to binutils issues.
3319 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
3321 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
3323 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
3324 constraint to 'o' for m=r and r=m alternatives.
3325 ("*movv8hi_internal1"): Same.
3326 ("*movv16qi_internal1"): Same.
3327 ("*movv4sf_internal1"): Same.
3329 2002-04-22 Janis Johnson <janis187@us.ibm.com>
3331 * rtl.h (RTX_FLAG): New macro.
3332 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
3333 * final.c (alter_subreg): Use macro to access rtx flag.
3334 * integrate.c (copy_rtx_and_substitute): Use new access macro.
3335 * print-rtl.c (print_rtx): Use new access macro.
3337 * cse.c (insert): Check rtx code before accessing flag.
3339 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
3340 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
3341 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
3342 convert_const_symbol_ref, make_canonical, make_alternative_compare,
3343 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
3344 simplify_test_exp, optimize_attrs, simplify_by_exploding,
3345 find_and_mark_used_attributes, unmark_used_attributes,
3346 add_values_to_cover, simplify_with_current_value,
3347 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
3348 copy_rtx_unchanging, main): Use new access macros.
3350 2002-04-22 Tom Rix <trix@redhat.com>
3352 * expmed.c (init_expmed): Generate shifted constant once.
3354 2002-04-22 Zack Weinberg <zack@codesourcery.com>
3356 * c-lex.c (lex_charconst): Call convert to get constant in
3357 proper type; don't just smash the type field.
3360 * config.gcc: Add list of obsolete configurations. Disallow
3361 building these without --enable-obsolete.
3362 * doc/install.texi: Document --enable-obsolete and obsoletion
3363 policy. Mention obsoletion of individual targets in
3366 2002-04-22 Richard Henderson <rth@redhat.com>
3368 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
3370 2002-04-22 Mark Mitchell <mark@codesourcery.com>
3373 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
3374 (walk_fixup_memory_subreg): Likewise.
3375 (fixup_var_refs_insn): Adjust accordingly.
3376 (fixup_var_refs_1): Likewise.
3378 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
3380 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
3381 LIBPATH_ARCH64_SPEC): Define.
3382 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
3383 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
3384 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
3385 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
3387 2002-04-22 Joel Sherrill <joel@OARcorp.com>
3389 * gthr-rtems.h: Correct prototypes to remove warnings.
3391 2002-04-22 Richard Henderson <rth@redhat.com>
3394 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
3396 * gcse.c (free_insn_expr_list_list): New.
3397 (clear_modify_mem_tables): Use it. Fix bit set usage.
3398 (canon_list_insert): Use EXPR_LISTs for expressions.
3399 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
3401 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
3403 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
3404 file change and include code to _cpp_pop_buffer.
3405 * cpphash.h (struct pending_option): Predeclare.
3406 (struct cpp_reader): New member next_include_file.
3407 (_cpp_pop_file_buffer): Update.
3408 (_cpp_push_next_buffer): Update, rename.
3409 * cppinit.c (cpp_destroy): Free include chain and pending here.
3410 (cpp_finish_options): Simplify.
3411 (_cpp_push_next_buffer): Rename and clean up.
3412 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
3414 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
3416 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
3418 * config/rs6000/altivec.h (vec_xor): Add variant for both args
3419 being vector signed int.
3421 (vec_xor): Add variant for both args being vector signed char.
3422 Remove redundant variant.
3425 2002-04-21 David S. Miller <davem@redhat.com>
3427 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
3428 compare mode in output RTL.
3430 2002-04-22 David Edelsohn <edelsohn@gnu.org>
3432 * config/rs6000/rs6000.c (rs6000_override_options): Correct
3433 style and formatting of previous patch.
3435 2002-04-22 Alan Modra <amodra@bigpond.net.au>
3437 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
3438 flag_pic for ABI_AIX.
3440 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
3442 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
3443 * cppfiles.c (read_include_file): Similarly.
3444 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
3445 uxstrdup ustrchr, ufputs): Similarly.
3446 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
3447 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
3448 cpp_ideq, parse_identifier, parse_number): Similarly.
3449 * cpplib.c (struct directive, dequote_string, D, run_directive,
3450 cpp_push_buffer): Similarly.
3451 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
3452 _cpp_create_definition, check_trad_stringification,
3453 cpp_macro_definition): Similarly.
3455 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
3457 * cppmacro.c (funlike_invocation_p): Don't step back
3460 2002-04-21 David Edelsohn <edelsohn@gnu.org>
3462 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
3465 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
3467 * doc/invoke.texi: Remove Chill references.
3468 * doc/gcc.texi: Update last modified date.
3470 2002-04-20 Kazu Hirata <kazu@hxi.com>
3472 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
3473 push and pop. Replace add.l with add.w.
3475 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3477 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
3478 multiply instructions for H8/300H case.
3480 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3482 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
3483 Bum three instructions from each routine.
3485 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
3487 * Makefile.in: Update.
3488 * decl.c (push_c_function_context, pop_c_function_context,
3489 mark_c_function_context): Rename for consistency.
3490 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
3491 * c-tree.h (push_c_function_context, pop_c_function_context,
3492 mark_c_function_context): Rename for consistency.
3493 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3494 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3495 * function.c (init_lang_status, save_lang_status,
3496 restore_lang_status, mark_lang_status, free_lang_status):
3497 Move to langhooks.h.
3498 (push_function_context_to, pop_function_context_from,
3499 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
3501 * function.h (init_lang_status, save_lang_status,
3502 restore_lang_status, mark_lang_status, free_lang_status):
3503 Move to langhooks.h.
3504 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
3505 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
3506 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
3507 LANG_HOOKS_FUNCTION_INITIALIZER): New.
3508 (LANG_HOOKS_INITIALIZER): Update.
3509 (lhd_do_nothing_f): New.
3510 * langhooks.h (struct lang_hooks_for_functions): New.
3511 (struct lang_hooks): New hooks.
3512 * langhooks.c (lhd_do_nothing_f): New.
3514 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3515 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3517 2002-04-19 David S. Miller <davem@redhat.com>
3519 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
3520 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
3522 2002-04-19 Jakub Jelinek <jakub@redhat.com>
3524 PR optimization/3756
3525 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
3526 x = ((int) y < 0) ? cst1 : cst2.
3528 2002-04-19 Jakub Jelinek <jakub@redhat.com>
3531 * function.c: Reapply patch for c/6358.
3532 (expand_function_end): Copy decl_rtl's mode, not
3533 current_function_return_rtx mode.
3535 2002-04-19 Joel Sherrill <joel@OARcorp.com>
3537 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
3540 2002-04-19 Tom Tromey <tromey@redhat.com>
3542 * doc/install.texi (Specific): Update status of Solaris 2.8.
3545 2002-04-19 Andreas Schwab <schwab@suse.de>
3547 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
3548 (PUT_REAL): Restore old definition.
3550 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
3551 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3553 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
3554 binutils 2.11.2 and higher generate smaller binaries than Sun's
3557 2002-04-19 Mark Mitchell <mark@codesourcery.com>
3560 * toplev.c (rest_of_compilation): Do not defer functions for which
3561 TREE_SYMBOL_REFERENCED has already been set.
3563 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
3565 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
3568 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
3570 * builtins.c: Include langhooks.h.
3571 (lang_type_promotes_to): Remove.
3572 (expand_builtin_va_arg): Use new hook.
3573 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
3574 (simple_type_promotes_to): Move to c-typeck.c.
3575 * c-common.h (simple_type_promotes_to): Remove.
3576 * c-decl.c (duplicate_decls, grokdeclarator): Update.
3577 * c-format.c: Include langhooks.h.
3578 (check_format_types): Update.
3579 * c-tree.h (c_type_promotes_to): New.
3580 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
3581 (type_lists_compatible_p): Update.
3582 * langhooks-def.h (lhd_type_promotes_to): New.
3583 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
3584 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3585 * langhooks.c (lhd_type_promotes_to): New.
3586 * langhooks.h (struct lang_hooks_for_types): New hook.
3587 * tree.h (lang_type_promotes_to): Remove.
3589 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
3591 2002-04-18 Richard Henderson <rth@redhat.com>
3593 * function.c: Revert patch for c/6358.
3595 2002-04-18 Richard Henderson <rth@redhat.com>
3597 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
3598 blocks. Handle multiple references to the TRAP block. Handle
3599 non-adjacent THEN and OTHER blocks.
3601 2002-04-18 Richard Henderson <rth@redhat.com>
3603 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
3604 crash with no type for by-mode libcalls.
3606 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
3608 2002-04-18 Bob Wilson <bob.wilson@acm.org>
3610 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
3611 __xtensa_nonlocal_goto): Use a syscall instructions to flush
3612 the register windows.
3614 2002-04-18 Zack Weinberg <zack@codesourcery.com>
3616 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
3617 appropriate. Document need for extended precision even when
3618 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
3619 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
3620 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
3621 instead of relying on later syntax error when REAL_WIDTH > 5.
3622 * real.c: Define NE based only on whether or not we have a
3623 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
3624 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
3625 define GET_REAL and PUT_REAL as simple memcpy operations; no
3626 need to byteswap or round.
3627 Use #error instead of #ifdef-ing out the entire file, for
3628 prompt error detection.
3630 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
3632 2002-04-18 David S. Miller <davem@redhat.com>
3634 * config/sparc/sparc.h (BRANCH_COST): Define.
3636 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
3639 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
3641 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
3642 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
3643 propagate_block calls after relaxation loop using new variable
3644 stabilized_prop_flags.
3646 2002-04-18 Richard Henderson <rth@redhat.com>
3648 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
3649 (ia64_va_arg): Expect variable sized types by reference.
3650 * config/ia64/ia64-protos.h: Update.
3651 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
3652 ia64_function_arg_pass_by_reference.
3654 2002-04-18 Richard Henderson <rth@redhat.com>
3656 * ifcvt.c: Include except.h.
3657 (block_has_only_trap): Break out from find_cond_trap.
3658 (find_cond_trap): Use it. Always delete the trap block.
3659 (merge_if_block): Allow then block null. Be less simplistic about
3660 what insns can end a block.
3661 * Makefile.in (ifcvt.o): Depend on except.h.
3663 * config/ia64/ia64.md (trap, conditional_trap): New.
3665 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3668 * function.c (assign_parms): Assign hard current_function_return_rtx
3670 (expand_function_end): ...not here.
3672 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
3674 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3675 * c-tree.h (c_incomplete_type_error): New.
3676 * c-typeck.c (require_complete_type, build_component_ref): Update.
3677 (incomplete_type_error): Rename.
3678 * langhooks-def.h (lhd_incomplete_type_error): New.
3679 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
3680 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3681 * langhooks.c (lhd_incomplete_type_error): New.
3682 * langhooks.h (struct lang_hooks_for_types): New hook.
3683 * tree.c (size_in_bytes): Use new hook.
3684 * tree.h (incomplete_type_error): Remove.
3686 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3688 2002-04-18 Zack Weinberg <zack@codesourcery.com>
3690 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
3691 TARGET_FLOAT_FORMAT blocks.
3693 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3695 * doc/install.texi (Downloading the source): Do not mention Chill
3696 any longer, but mention Ada.
3697 (Configuration): Do not mention Chill any longer.
3699 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
3701 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
3703 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
3705 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
3708 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3710 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
3711 instead of unsigned_type.
3713 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
3715 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
3716 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
3719 2002-04-18 Bernd Schmidt <bernds@redhat.com>
3721 * attribs.c (vector_type_node_list): New static variable.
3722 (handle_vector_size_attribute): Use it to avoid generating a
3723 new type node each time we are called.
3725 * combine.c (subst): Avoid trying to make a vector mode subreg of
3726 an integer constant.
3727 (gen_lowpart_for_combine): Likewise.
3729 2002-04-18 Roger Sayle <roger@eyesopen.com>
3730 Jakub Jelinek <jakub@redhat.com>
3732 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
3733 for integer constant c (if x has unsigned type or sign bit is not
3734 set in c). This folds the zero/sign extension into the bit-wise and
3737 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3740 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
3743 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
3745 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
3747 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
3749 * gcc.c (read_specs): Detect and fail if an attempt is made to
3750 rename a spec string to an already existing string.
3752 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3754 * config/s390/s390.c (legitimize_pic_address): Do not generate
3755 illegal address constant without CONST.
3757 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3759 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
3760 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
3762 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3764 PR optimization/6305
3765 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
3766 to make sure previous reloads are taken into account. Generate
3767 better code if one operand is an in-range immediate constant.
3769 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
3771 * doc/install.texi (Building): libgcj requires GNU make.
3773 2002-04-17 Jakub Jelinek <jakub@redhat.com>
3776 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
3777 even if hard quad and register is not floating.
3778 (movtf reg<-mem split): Disallow splitting if hard quad and
3779 register is floating.
3780 (movtf mem<-reg split): Likewise.
3781 * config/sparc/sparc.c (fp_register_operand): New predicate.
3782 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
3784 2002-04-17 Zack Weinberg <zack@codesourcery.com>
3786 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
3787 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
3788 (unprotoize.o): Ditto. Build from protoize.c. Define
3789 UNPROTOIZE on command line.
3790 * protoize.c: Include cppdefault.h. Delete include_defaults.
3791 (in_system_include_dir): Use cpp_include_defaults (defined in
3793 * unprotoize.c: Delete file.
3795 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
3797 * config/rs6000/altivec.h (vec_ld): Add array variants.
3801 2002-04-17 Alan Matsuoka <alanm@redhat.com>
3802 Aldy Hernandez <aldyh@redhat.com>
3804 * config/rs6000/altivec.h: Define __ALTIVEC__.
3811 Add parentheses to all macro arguments.
3813 2002-04-16 Richard Henderson <rth@redhat.com>
3816 * except.c (remove_eh_handler): Insert inner regions at beginning
3817 of sibling chain. Refactor expressions.
3819 2002-04-16 Richard Henderson <rth@redhat.com>
3821 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
3822 * config/sparc/sol2-gas-bi.h: New file.
3823 * config.gcc (sparc*-solaris): Add it as needed.
3824 * configure.in (AS_SPARC64_FLAG): Remove check.
3825 * config.in, configure: Regenerate.
3827 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
3829 2002-04-16 Richard Henderson <rth@redhat.com>
3831 * config/mips/mips.c (override_options): Don't override N32 for
3835 * config/mips/mips.md (can_delay): Split out of existing define_delays.
3836 (HILO_delay): Set can_delay false.
3838 2002-04-16 Dale Johannesen <dalej@apple.com>
3840 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
3841 instruction addresses.
3842 (rs6000_output_function_epilogue): Likewise.
3844 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
3846 * c-parse.in (poplevel, compstmt_start,
3847 compstmt_primary_start): Add ending ';', in accordance
3850 2002-04-16 Richard Henderson <rth@redhat.com>
3852 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
3853 Adjust tm_file order to get TARGET_DEFAULT set properly.
3854 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
3855 * doc/install.texi (sparc-solaris): Update.
3857 2002-04-16 Dale Johannesen <dalej@apple.com>
3859 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
3860 comparison operands do not match each other or if modes of
3861 conditions do not match result.
3863 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
3866 * config/s390/s390.md (mulsidi3): Set both subregs of the
3869 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
3871 * config/rs6000/altivec.h (vec_addc): Type check.
3873 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3876 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
3878 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
3880 2002-04-15 Richard Henderson <rth@redhat.com>
3882 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
3883 call_really_used_regs too.
3885 2002-04-15 Richard Henderson <rth@redhat.com>
3887 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
3889 2002-04-15 David S. Miller <davem@redhat.com>
3891 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
3894 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3897 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
3898 CONST_VECTOR is { 0, ... 0 }.
3900 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
3902 * doc/install.texi (Installing GCC: Configuration): Clarify
3903 the only supported ways to configure gcc.
3905 2002-04-15 Roland McGrath <roland@frob.com>
3907 * config.gcc (alpha*-*-gnu*): New target configuration.
3908 * config/alpha/gnu.h: New file for it.
3909 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
3911 2002-04-16 Mark Mitchell <mark@codesourcery.com>
3913 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
3914 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
3915 * tree.h (expand_start_stmt_expr): Update prototype.
3916 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
3917 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
3918 on the STMT_EXPR created for the inline function.
3920 2002-04-15 Richard Henderson <rth@redhat.com>
3922 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
3923 config/i386/linux-aout.h, config/i386/linux-oldld.h,
3924 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
3925 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
3926 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
3927 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
3928 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
3929 Define __gnu_linux__, not gnu_linux.
3930 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
3932 2002-04-15 Mark Mitchell <mark@codesourcery.com>
3934 Remove Chill front end.
3935 * gcc.c (default_compilers): Remove Chill entries.
3936 * ch: Remove directory.
3937 * doc/frontends.texi: Remove information about Chill.
3938 * doc/sourcebuild.texi: Likewise.
3939 * doc/standards.texi: Likewise.
3941 2002-04-15 Douglas B Rupp <rupp@gnat.com>
3943 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
3944 (LONGLONG_STANDALONE): Define.
3946 2002-04-15 David S. Miller <davem@redhat.com>
3948 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
3949 Call emit_library_call with LCT_NORMAL.
3950 (sparc_initialize_trampoline): Use LCT_foo instead of
3951 magic constant in emit_library_call invocations.
3952 (sparc64_initialize_trampoline): Likewise.
3953 (sparc_profile_hook): Likewise.
3954 * config/sparc/sparc.md: Likewise.
3956 * config/sparc/sparc.c (sparc_extra_constraint_check):
3957 Fix type of argument 'c'.
3958 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
3961 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3963 * diagnostic.h (output_buffer_state): Redefine.
3964 (output_format_decoder): New macro.
3965 (output_prefixing_rule): Likewise.
3966 (output_line_cutoff): Likewise.
3967 (diagnostic_format_decoder): Adjust.
3968 (diagnostic_prefixing_rule): Likewise.
3969 (diagnostic_line_cutoff): Likewise.
3970 (diagnostic_state): Likewise.
3971 (diagnostic_kind_count): Likewise.
3972 (diagnostic_buffer): Now a macro.
3974 * diagnostic.c (diagnostic_buffer): Remove definition.
3975 (output_is_line_wrapping): Adjust.
3976 (set_real_maximum_length): Likewise.
3977 (output_set_maximum_length): Likewise.
3978 (init_output_buffer): Likewise.
3979 (lhd_print_error_function): Likewise.
3980 (output_do_verbatim): Likewise.
3982 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
3984 * cpperror.c (print_location): Don't print include chain
3986 (cpp_begin_message): Update to use DL_ macros.
3987 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
3988 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3989 cpp_notice, cpp_notice_from_errno): Remove.
3990 (cpp_error, cpp_error_with_line): Update to take a diagnostic
3993 * cppexp.c (CPP_ICE): Remove.
3994 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
3995 lex, integer_overflow, _cpp_parse_expr): Update.
3996 * cppfiles.c (read_include_file, find_include_file,
3997 handle_missing_header, _cpp_read_file, remap_filename): Update.
3998 * cpphash.h (enum error_type): Remove.
3999 (_cpp_begin_message): Update.
4000 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
4001 cpp_handle_option, cpp_post_options): Update.
4002 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
4003 skip_whitespace, parse_identifier, parse_slow, parse_string,
4004 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
4005 cpp_interpret_charconst): Update.
4006 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
4007 lex_macro_node, do_undef, glue_header_name, parse_include,
4008 do_include_common, read_flag, do_line, do_linemarker, do_ident,
4009 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
4010 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
4011 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
4012 _cpp_pop_buffer, do_diagnostic): Update.
4013 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
4014 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
4015 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4016 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4017 cpp_notice, cpp_notice_from_errno): Remove.
4018 (cpp_error, cpp_error_with_line): Update to take a diagnostic
4021 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
4022 collect_args, enter_macro_context, save_parameter, parse_params,
4023 _cpp_create_definition, check_trad_stringification,
4024 cpp_macro_definition): Update.
4025 * cppmain.c (cpp_preprocess_file): Update.
4026 * fix-header.c (read_scan_file): Update.
4028 2002-04-14 Andreas Schwab <schwab@suse.de>
4030 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
4032 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4034 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
4036 2002-04-13 Mark Mitchell <mark@codesourcery.com>
4038 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
4041 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
4043 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
4045 2002-04-13 Joel Sherrill <joel@OARcorp.com>
4047 * config/sparc/t-elf: Enable v8 multilibs. Impacts
4048 sparc-elf and sparc-rtems targets.
4050 2002-04-13 Mark Mitchell <mark@codesourcery.com>
4052 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
4053 defined, and __gnu_hurd__ wherever __GNU__ is defined.
4054 * arm/linux-elf.h: Likewise.
4055 * cris/aout.h: Likewise.
4056 * cris/linux.h: Likewise.
4057 * i370/linux.h: Likewise.
4058 * i386/gnu.h: Likewise.
4059 * i386/linux-aout.h: Likewise.
4060 * i386/linux-oldld.h: Likewise.
4061 * i386/linux.h: Likewise.
4062 * i386/linux64.h: Likewise.
4063 * ia64/linux.h: Likewise.
4064 * m68k/linux-aout.h: Likewise.
4065 * m68k/linux.h: Likewise.
4066 * mips/linux.h: Likewise.
4067 * pa/pa-linux.h: Likewise.
4068 * pj/linux.h: Likewise.
4069 * rs6000/sysv4.h: Likewise.
4070 * s390/linux.h: Likewise.
4071 * sh/linux.h: Likewise.
4072 * sparc/linux-aout.h: Likewise.
4073 * sparc/linux.h: Likewise.
4074 * sparc/linux64.h: Likewise.
4075 * xtensa/linux.h: Likewise.
4077 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
4079 * stmt.c (check_unique_operand_names): Expect operand names to
4080 be strings rather than identifiers. Use simple_cst_equal to
4082 (resolve_operand_name_1): Make same identifier to string change here.
4083 * c-parse.in (asm_operand): Convert a named operand into a string.
4084 * cp/parse.y (asm_operand): Likewise.
4086 2002-04-13 Andreas Schwab <schwab@suse.de>
4088 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
4090 2002-04-12 Mark Mitchell <mark@codesourcery.com>
4092 Revert these changes:
4094 2002-04-06 Mark Mitchell <mark@codesourcery.com>
4097 * stor-layout.c (layout_decl): Reset the RTL for the decl.
4099 2002-04-12 Richard Henderson <rth@redhat.com>
4101 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
4102 (sparc*-*-solaris): Clean up header files.
4103 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
4104 and plan on generating 64-bit code.
4105 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
4106 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
4107 * config/sparc/sol2-sld-64.h: Rename ...
4108 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
4109 for AS_SPARC64_FLAG not defined.
4110 * config/sparc/sol2-gld-bi.h: New.
4111 * config/sparc/sol2-sld.h: Remove.
4112 * config/sparc/sol26-sld.h: New.
4113 * config/sparc/sol2.h: Tidy comments.
4114 * doc/install.texi: Document sparc-solaris configury changes.
4116 2002-04-12 Richard Henderson <rth@redhat.com>
4118 * recog.c (offsettable_address_p): Match the logic in adjust_address.
4120 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
4121 in 64-bit mode only. Use only for 32-bit or MEDLOW.
4123 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4125 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
4127 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
4129 * pa.c (pa_can_combine_p): Call extract_insn before calling
4132 2002-04-12 Douglas B Rupp <rupp@gnat.com>
4134 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
4135 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
4136 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
4137 (CPP_PREDEFINES): Handle __declspec.
4138 * config/i386/t-interix (USER_H): Remove.
4140 2002-04-12 DJ Delorie <dj@redhat.com>
4142 * integrate.c (compare_blocks): Make comparisons safe for when
4143 sizeof(int) < sizeof(char *).
4144 (find_block): Likewise.
4146 2002-04-12 Jan Hubicka <jh@suse.cz>
4147 David Edelsohn <edelsohn@gnu.org>
4149 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
4151 (symbol_ref_operand): New.
4152 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
4153 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
4155 2002-04-12 Andreas Schwab <schwab@suse.de>
4157 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
4158 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
4159 overrides the definition in config/svr4.h.
4161 2002-04-12 Eric Norum <eric.norum@usask.ca>
4163 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
4164 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
4165 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
4166 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
4167 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
4168 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
4169 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
4170 definitions to config/rtems.h and make the targets more similar.
4172 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4174 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
4175 POINTERS_EXTEND_UNSIGNED.
4176 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
4177 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
4179 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
4182 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
4184 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
4185 depends on TARGET_SHMEDIA, not TARGET_SH5.
4187 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
4189 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
4190 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
4192 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
4194 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
4197 2002-04-12 Andreas Schwab <schwab@suse.de>
4199 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
4201 2002-04-12 Richard Henderson <rth@redhat.com>
4204 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
4206 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
4207 modes spanning multiple hard regs.
4209 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
4211 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
4213 * pa.c (pa_output_function_prologue): Don't accumulate the total
4214 number of code bytes when using TARGET_64BIT, or gas, SOM and not
4215 the portable runtime.
4216 (output_deferred_plabels): Handle 64bit plabels.
4217 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
4218 generating pic code using the GAS assembler for object formats that
4219 are not SOM (ie., ELF32 and ELF64).
4220 (output_millicode_call): Check attribute type if attribute length is 28.
4221 Likewise use $PIC_pcrel$0. Only call get_attr_length and
4222 dbr_sequence_length once.
4223 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
4224 dbr_sequence_length once.
4225 * pa.h (TARGET_SOM): Define if not defined.
4226 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
4227 with GAS and not SOM.
4228 (jump, call_internal_reg, call_value_internal_reg): Likewise.
4229 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
4231 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4233 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
4234 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
4235 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
4236 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
4237 elfos.h and dbxelf.h values are fine now.
4238 * config/i386/freebsd.h, config/alpha/freebsd.h
4239 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
4241 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4243 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
4244 or set Acpu or Amachine. Reformat.
4245 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4247 (LINK_SPEC): Do not need to undef.
4248 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
4249 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
4250 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4252 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
4253 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
4254 (LINK_SPEC): Do not need to undef.
4255 (DONT_USE_BUILTIN_SETJMP): Do not define.
4256 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
4257 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
4258 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
4259 Remove trailing spaces.
4260 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
4261 __ELF__, or set Acpu or Amachine. Reformat.
4262 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4265 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4267 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
4268 all other *-*-freebsd* targets.
4270 2002-04-11 Richard Henderson <rth@redhat.com>
4272 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
4274 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4276 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
4277 Include {cpu}/{cpu}.h thru tm_file.
4278 (alpha*-*-linux*ecoff): Remove target.
4279 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
4280 (LINK_SPEC): Remove, is not OS independent.
4281 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
4282 (LINK_SPEC): Do not need to #undef any longer.
4283 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
4285 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
4287 (LINK_SPEC): Moved here from alpha/elf.h.
4288 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
4290 * config/alpha/linux-ecoff.h: Remove.
4291 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
4292 (CPP_SPEC): Define _POSIX_SOURCE as needed.
4293 (CPP_SUBTARGET_SPEC): Do not define.
4294 (LINK_SPEC): Do not need to #undef any longer.
4295 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
4296 * config/alpha/vms.h: Likewise.
4298 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4300 * doc/extend.texi: Remove old claim that typedefs cannot have
4301 an alignment attribute.
4303 2002-04-11 Jakub Jelinek <jakub@redhat.com>
4305 PR optimization/6177
4306 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
4307 bitpos is 0 and bitsize CONCAT size.
4309 2002-04-11 Jakub Jelinek <jakub@redhat.com>
4312 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
4314 2002-04-10 David O'Brien <obrien@FreeBSD.org>
4316 * config/alpha/freebsd.h: Minor reformatting.
4317 (CPP_SPEC): Define ELF and add cpp_subtarget.
4318 (ASM_SPEC): No longer needed.
4320 2002-04-11 Richard Henderson <rth@redhat.com>
4322 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
4323 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
4324 (dimode mem/zero splitter): New.
4326 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
4328 * config/cris/cris.c (cris_override_options): Tweak error message
4329 for PIC not implemented.
4331 * config/cris/cris.h: Tweak comments related to parameter-passing.
4333 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
4335 2002-04-10 Richard Henderson <rth@redhat.com>
4337 * except.c (add_ehl_entry): Allow duplicates after landing pad
4340 2002-04-10 David Edelsohn <edelsohn@gnu.org>
4342 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
4344 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
4346 * c-decl.c (c_init_decl_processing): Move generation of
4347 decls for g77_integer_type_node and friends from here ...
4348 * c-common.c (c_common_nodes_and_builtins): ... to here.
4350 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
4352 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
4353 is only used as frame pointer when frame_pointer_needed is true.
4355 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
4358 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
4359 for the fact that the pool entry uses two words.
4360 (movdf_hard_insn): Similarly. Also, ADR instruction can span
4362 (movdf_soft_insn): Similarly.
4363 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
4364 for the fact that the pool entry uses three words.
4366 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
4368 * config/mips/mips.c (mips_va_arg): When using the struct version
4369 of the EABI va_list, allow arguments in the register save area to
4370 take up less room than a stack argument.
4372 2002-04-10 Richard Henderson <rth@redhat.com>
4374 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
4375 if EXPAND_INITIALIZER.
4377 2002-04-09 Richard Henderson <rth@redhat.com>
4379 * config/alpha/alpha.md (movdi_er_maybe_g): New.
4380 * config/alpha/alpha.c (alpha_expand_mov): Use it.
4382 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4384 PR optimization/6233
4385 * rtlanal.c (pure_call_p): New function.
4386 * rtl.h (pure_call_p): Declare.
4387 * loop.c (prescan_loop): Use it to set has_nonconst_call.
4388 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
4390 2002-04-09 Eric Christopher <echristo@redhat.com>
4392 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
4393 information to .comm directive.
4395 2002-04-09 Richard Henderson <rth@redhat.com>
4398 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
4400 2002-04-09 Richard Henderson <rth@redhat.com>
4402 * basic-block.h (flow_delete_block_noexpunge): Declare.
4403 (expunge_block_nocompact): Declare.
4404 * cfg.c (expunge_block_nocompact): Split out from ...
4405 (expunge_block): ... here.
4406 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
4407 (flow_delete_block_noexpunge): Split out from ...
4408 (flow_delete_block): ... here.
4409 * cfgcleanup.c (delete_unreachable_blocks): Compact while
4410 removing dead blocks.
4411 * except.c (exception_handler_labels): Remove.
4412 (exception_handler_label_map): New.
4413 (struct eh_region): Add aka member.
4414 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
4415 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
4416 (for_each_eh_label, for_each_eh_label_1): New.
4417 (init_eh): Register exception_handler_label_map.
4418 (free_eh_status): Use free_region.
4419 (find_exception_handler_labels): Use the map, not the list.
4420 (remove_exception_handler_label): Likewise.
4421 (maybe_remove_eh_handler): Likewise.
4422 (remove_eh_handler): Use the region aka bitmap.
4423 * except.h (exception_handler_labels): Remove.
4424 (for_each_eh_label): Declare.
4425 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
4426 * loop.c (invalidate_loops_containing_label): New.
4427 (find_and_verify_loops): Use it. Use for_each_eh_label.
4428 * sched-rgn.c (is_cfg_nonregular): Use
4429 current_function_has_exception_handlers.
4431 2002-04-09 Richard Henderson <rth@redhat.com>
4433 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
4434 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
4435 Do not return changed status.
4436 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
4437 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
4438 New functions that do return changed status.
4439 * sbitmap.h: Update decls.
4440 * gcse.c, lcm.c: Use _cg functions as needed.
4442 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
4444 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
4445 (sh64-*-elf*, sh-*-rtemself*): Likewise.
4446 * config/sh/embed_bb.c: New file.
4447 * config/sh/embed-elf.h: New file.
4448 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
4449 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
4450 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4452 (SUBTARGET_CPP_PTR_SPEC): Don't define.
4453 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
4454 Add subtarget_asm_endian_spec.
4455 (ASM_SPEC): Use subtarget_asm_endian_spec.
4456 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
4457 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
4458 (WCHAR_UNSIGNED): Define.
4459 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
4460 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4461 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
4463 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
4464 (sh_adjust_cost): Likewise.
4465 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4467 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
4468 (WCHAR_TYPE_SIZE): Likewise.
4469 (ASM_SPEC): Use subtarget_asm_endian_spec.
4470 (SH_ELF_WCHAR_TYPE): #undef/ #define.
4471 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
4472 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
4473 (MAX_WCHAR_TYPE_SIZE): Don't #define .
4474 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
4475 (USER_LABEL_PREFIX): Don't #undef /#define .
4476 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4477 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
4478 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
4479 (ASM_SPEC): Likewise.
4480 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
4481 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
4482 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
4483 (LIB2FUNCS_EXTRA): Define.
4484 * t-sh64 (LIB2FUNCS_EXTRA): Define.
4485 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
4486 (LIB1ASMFUNCS_CACHE): Define.
4487 (LIB2FUNCS_EXTRA): Redefine empty.
4489 2002-04-08 Richard Henderson <rth@redhat.com>
4491 * reorg.c (get_branch_condition): Use reversed_comparison_code.
4493 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4495 * config/m68hc11/larith.asm (__map_data_section): Fix condition
4496 and optimize for size.
4497 (__do_global_ctors): Fix pointer comparison.
4498 (__do_global_dtors): Likewise.
4500 2002-04-09 David S. Miller <davem@redhat.com>
4502 * config/sparc/sparc.c (sparc_extra_constraint_check): New
4503 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
4504 allow reloading pseudos.
4505 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
4506 * config/sparc/sparc-protos.h: Declare it.
4508 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
4509 unsigned comparison warning.
4510 (output_restore_regs): Mark leaf_function as unused.
4512 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4514 * expr.c (is_aligning_offset): New function.
4515 (expand_expr, case COMPONENT_EXPR): Call it.
4517 2002-04-08 David S. Miller <davem@redhat.com>
4520 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
4522 Make init_priority work on Sparc when using GNU ld.
4523 * config/sparc/linux.h, config/sparc/linux64.h,
4524 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
4525 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
4526 * config/sparc/sol2-gld.h: New file to do the same.
4527 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
4528 sparc/sol2-gld.h to tm_file.
4530 PR optimization/4328
4531 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
4532 * doc/md.texi: Document it.
4533 * config/sparc/sparc.md (movdi_insn_sp64_novis,
4534 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
4535 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
4536 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
4537 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
4539 2002-04-08 Andreas Jaeger <aj@suse.de>
4541 * stmt.c (expand_asm_operands): Revert last patch from Richard
4544 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4546 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
4547 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
4549 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4551 * doc/contrib.texi (Contributors): Add David O'Brien.
4553 2002-04-08 Alan Modra <amodra@bigpond.net.au>
4555 * configure.in (auto-build.h): Use target_alias and build_alias
4556 when running configure.
4557 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
4558 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
4559 * configure: Regenerate.
4561 2002-04-07 David S. Miller <davem@redhat.com>
4563 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
4565 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
4568 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
4569 generating 32-bit pic code.
4571 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
4573 * cppinit.c (cpp_create_reader): Initialize
4574 discard_comments_in_macro_exp.
4575 (COMMAND_LINE_OPTIONS): Add "-CC" option.
4576 (cpp_handle_option): Handle "-CC" option.
4577 * cpplex.c (save_comment): If saving a C++ comment in
4578 a directive, convert it to a C comment.
4579 (_cpp_lex_direct): Pass second comment start character to
4580 save_comment to indicate comment type.
4581 * cpplib.c (_cpp_handle_directive): If processing
4582 a "#define" directive and discard_comments_in_macro_exp
4583 is false, re-enable saving of comments.
4584 (lex_macro_node): If discard_comments_in_macro_exp is false,
4585 discard any comments before the macro identifier.
4586 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
4588 * cppmacro.c (cpp_get_token): If expanding a macro while
4589 processing a directive, discard any comments we might encounter.
4590 (parse_params): If discard_comments_in_macro_exp is false,
4591 ignore comments in the macro parameter list.
4592 * gcc.c (cpp_unique_options): Add "-CC" option.
4593 (option_map): Map "--comments-in-macros" to "-CC".
4594 * doc/cppopts.texi: Document "-CC" option.
4595 * f/lang-specs.h: Add "-CC" option.
4596 * testsuite/gcc.dg/cpp/maccom1.c: New test.
4597 * testsuite/gcc.dg/cpp/maccom2.c: New test.
4598 * testsuite/gcc.dg/cpp/maccom3.c: New test.
4599 * testsuite/gcc.dg/cpp/maccom4.c: New test.
4600 * testsuite/gcc.dg/cpp/maccom5.c: New test.
4601 * testsuite/gcc.dg/cpp/maccom6.c: New test.
4603 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4606 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
4608 2002-04-06 Mark Mitchell <mark@codesourcery.com>
4611 * stor-layout.c (layout_decl): Reset the RTL for the decl.
4614 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
4615 RTX_UNCHANGING_P for the functions arguments when a tail call
4618 2002-04-06 Jason Merrill <jason@redhat.com>
4620 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
4621 (parse_options_and_default_flags): Set them appropriately.
4622 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
4624 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
4626 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
4629 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
4632 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
4633 types come in by-reference. Fix typo in comment.
4635 2002-04-05 David S. Miller <davem@redhat.com>
4637 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
4638 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
4639 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
4640 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
4642 2002-04-05 David S. Miller <davem@redhat.com>
4644 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
4645 are not going to emit return instructions, emit at least a nop
4646 for the sake of sane backtraces.
4648 2002-04-05 Richard Henderson <rth@redhat.com>
4650 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
4652 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
4654 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
4656 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
4658 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
4659 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
4660 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
4662 2002-04-05 Andreas Schwab <schwab@suse.de>
4664 * c-convert.c: Include c-common.h.
4665 * Makefile.in (c-convert.o): Updated.
4667 2002-04-05 Jakub Jelinek <jakub@redhat.com>
4669 * mklibgcc.in: Use separate libgcc.map for each multilib.
4670 * Makefile.in (distclean): Don't remove libgcc.map here.
4672 2002-04-05 Jakub Jelinek <jakub@redhat.com>
4674 * Makefile.in (s-mlib): Handle --disable-multilib by separate
4675 genmultilib invocation.
4677 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
4679 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
4680 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
4681 to num_gprs for symmetry.
4682 * config/mips/mips.c: Adjust accordingly.
4684 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
4686 * c-common.c (truthvalue_conversion): Rename, update.
4687 * c-common.h (c_common_truthvalue_conversion): New.
4688 * c-convert.c (convert): Update.
4689 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4690 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
4691 * c-typeck.c (build_binary_op, build_unary_op,
4692 build_conditional_expr): Update.
4693 * fold-const.c (constant_boolean_node, fold): Use langhook.
4694 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
4695 * langhooks.h (struct lang_hooks): New hook.
4696 * stmt.c (expand_decl_cleanup): Use langhook.
4697 * tree.h (truthvalue_conversion): Remove.
4699 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4701 2002-04-05 Alan Modra <amodra@bigpond.net.au>
4703 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
4704 Add rules to make null object file.
4706 2002-04-04 Jim Blandy <jimb@redhat.com>
4708 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
4709 macro formal parameter names.
4711 2002-04-04 David S. Miller <davem@redhat.com>
4713 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
4715 2002-04-04 Richard Henderson <rth@redhat.com>
4718 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
4719 Support copies into and out of memory. Don't accept allows_reg
4720 and allows_mem as gospel.
4722 2002-04-04 Richard Henderson <rth@redhat.com>
4725 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
4726 (write_dependence_p): Likewise.
4728 2002-04-04 Richard Henderson <rth@redhat.com>
4730 * predict.c (estimate_bb_frequencies): Do frequency calculation
4731 with a volatile temporary.
4733 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
4735 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
4737 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4740 * final.c (final_start_function): Don't bump profile_label_no here...
4741 (final_end_function): ...but here.
4743 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4745 * config/sparc/sparc.md (pic): New attribute.
4746 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
4748 (split after do_builtin_setjmp_setup): New.
4750 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4753 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
4756 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4758 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
4759 UNITS_PER_WORD for zero sized aggregates.
4761 2002-04-03 David S. Miller <davem@redhat.com>
4763 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
4764 one-character spec for this, just use %(link_gcc_c_sequence).
4766 2002-04-03 David S. Miller <davem@redhat.com>
4768 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
4771 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
4773 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
4774 (DWARF_FRAME_RETURN_COLUMN): Move.
4775 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4776 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
4777 * pa.c (except.h, predict.h): Include.
4779 (store_reg_modify, set_reg_plus_d): Revise prototypes.
4780 (output_ascii): Add cast.
4781 (store_reg_modify): Revise to add frame notes.
4782 (set_reg_plus_d): Likewise.
4783 (compute_frame_size): Include space for eh data registers in frame if
4784 the current function calls eh_return.
4785 (hppa_expand_prologue): Ensure register %r2 is saved if the current
4786 function calls eh_return. Save eh data registers if the current
4787 function calls eh_return. Fix code to add frame notes. Emit
4788 blockage to prevent insns with frame notes being scheduled in the
4789 delay slot of calls.
4790 (hppa_expand_epilogue): Restore eh data registers and do final stack
4791 adjustment if the current function calls eh_return. Don't add frame
4793 (output_call): Revise for change in length of call insn. Don't do
4794 return pointer adjustment for an unconditional jump in the delay slot
4795 of a call when using frame notes.
4796 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
4797 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
4798 (ARG_POINTER_CFA_OFFSET): Define.
4799 * pa.md (return_external_pic): New pattern.
4800 (prologue): Correct formatting. Use return_external_pic if current
4801 function calls eh_return.
4802 (call_internal_symref, call_value_internal_symref,
4803 sibcall_internal_symref, sibcall_value_internal_symref): Change default
4804 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
4806 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
4808 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
4809 list of targets to check using "nop" insn.
4810 * configure: Rebuilt.
4812 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4814 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
4816 2002-04-03 David S. Miller <davem@redhat.com>
4818 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
4819 library sequence passed to the linker.
4820 (LINK_COMMAND_SPEC): Use it.
4821 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
4822 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
4823 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4825 2002-04-03 Jason Merrill <jason@redhat.com>
4827 * except.c (struct eh_status): Remove protect_list.
4828 (begin_protect_partials, end_protect_partials): Remove.
4829 (add_partial_entry): Remove.
4830 * except.h: Remove prototypes.
4832 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
4833 expand_decl_cleanup_eh.
4836 * tree.h (CLEANUP_EH_ONLY): New macro.
4837 * stmt.c (expand_decl_cleanup_eh): New fn.
4838 (expand_cleanups): Check CLEANUP_EH_ONLY.
4839 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
4840 Use expand_decl_cleanup_eh.
4841 (expand_stmt): Adjust.
4842 * c-common.h: Adjust prototype.
4844 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
4846 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
4847 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
4848 (cris_target_asm_function_epilogue): Ditto.
4849 (cris_initial_frame_pointer_offset): Ditto.
4850 (cris_simple_epilogue): Ditto.
4851 (cris_expand_builtin_va_arg): Variable-size types come in
4854 2002-04-03 David S. Miller <davem@redhat.com>
4856 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
4858 (set_fast_math): Correct 'fsr' type.
4860 2002-04-03 Richard Henderson <rth@redhat.com>
4863 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
4864 * toplev.c (check_global_declarations): Use it.
4865 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
4866 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4867 (LANG_HOOKS_DECLS): Add it.
4868 * langhooks.c (lhd_warn_unused_global_decl): New.
4869 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4870 * c-objc-common.c (c_warn_unused_global_decl): New.
4871 * c-tree.h (c_warn_unused_global_decl): Declare.
4872 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4874 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
4876 * langhooks-def.h (lhd_set_decl_assembler_name,
4877 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
4878 (LANG_HOOKS_INITIALIZER): Update.
4879 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
4880 * langhooks.h (struct lang_hooks): New hook.
4881 * tree.c (set_decl_assembler_name): Move to langhooks.c.
4882 (lang_set_decl_assembler_name): Remove.
4883 (init_obstacks): Don't set hook.
4884 (decl_assembler_name): New function.
4885 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
4886 (decl_assembler_name): New.
4887 (lang_set_decl_assembler_name): Remove.
4889 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4891 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
4892 works properly with .hidden symbols.
4893 * configure: Rebuilt.
4894 * config.in: Rebuilt.
4895 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
4896 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
4897 properly with .hidden symbols.
4899 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4902 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
4905 2002-04-03 Richard Henderson <rth@redhat.com>
4908 * sched-rgn.c (sets_likely_spilled): New.
4909 (sets_likely_spilled_1): New.
4910 (add_branch_dependences): Use it.
4912 2002-04-02 Richard Henderson <rth@redhat.com>
4915 * loop.h (LOOP_FIRST_PASS): New.
4916 * loop.c (strength_reduce): Mind it when deciding to unroll.
4917 * toplev.c (rest_of_compilation): Set it.
4919 2002-04-02 David S. Miller <davem@redhat.com>
4921 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
4922 mems_ok_for_ldd_peep when the order of the loads being examined
4924 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
4925 existing comment to increase comprehension of this situation.
4927 2002-04-02 Zack Weinberg <zack@codesourcery.com>
4929 * config/sh/sh.md: Don't use union real_extract.
4931 2002-04-02 Richard Henderson <rth@redhat.com>
4933 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
4935 2002-04-02 David O'Brien <obrien@FreeBSD.org>
4937 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
4938 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
4939 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
4940 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
4941 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
4942 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
4943 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
4944 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
4945 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
4946 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
4947 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
4948 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
4949 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
4950 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
4951 Include as many configury headers via tm_file as possible. This
4952 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
4953 * config/openbsd-oldgas.h: New file.
4954 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
4955 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
4956 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
4957 config/i386/i386-coff.h, config/i386/i386-interix.h,
4958 config/i386/iscdbx.h, config/i386/linux-aout.h,
4959 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
4960 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
4961 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
4962 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
4963 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
4964 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
4965 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
4966 config/i386/vxi386.h: Do not directly include configury headers.
4967 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
4968 Directly include configury headers that are no longer automatically
4969 included by the above headers.
4970 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
4971 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
4972 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
4973 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
4974 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
4975 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
4976 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
4977 (TARGET_VERSION): Define.
4978 * config/i386/beos-elf.h, config/i386/freebsd.h,
4979 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
4980 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
4981 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
4982 config/i386/sco5.h, config/i386/sysv4.h
4983 (TARGET_VERSION): Do not need to protect.
4984 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
4985 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
4986 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
4987 config/i386/i386-interix.h, config/i386/linux-aout.h,
4988 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
4989 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
4990 (YES_UNDERSCORES): Do not define - not needed.
4991 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
4992 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
4993 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
4994 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
4995 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
4996 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
4997 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
4998 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
5000 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
5001 Richard Henderson <rth@redhat.com>
5004 * function.c (assign_temp): Accept either type or decl argument.
5005 Detect variables whose size is too large to fit into an integer.
5006 * stmt.c (expand_decl): Pass the decl, not the type.
5008 2002-04-02 David O'Brien <obrien@FreeBSD.org>
5010 * protoize.c: Match include directory usage with cppdefault.c.
5012 2002-04-03 Jeffrey A Law (law@redhat.com)
5013 Hans-Peter Nilsson <hp@bitrange.com>
5015 * combine.c (simplify_comparison): Avoid narrowing a comparison
5016 with a paradoxical subreg when doing so would drop signficant bits.
5018 2002-04-02 Steve Ellcey <sje@cup.hp.com>
5020 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
5021 if POINTERS_EXTEND_UNSIGNED is defined.
5023 2002-04-02 Richard Henderson <rth@redhat.com>
5026 * local-alloc.c (contains_replace_regs): LO_SUM may contain
5029 2002-04-02 Richard Henderson <rth@redhat.com>
5031 * doc/standards.texi: Document required freestanding libc entry points.
5033 2002-04-02 Alan Modra <amodra@bigpond.net.au>
5035 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
5036 associated splitter. Remove MQ constraint.
5037 (ctrdi_internal4): Correct CCmode clobber.
5039 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
5041 * milli64.S ($$dyncall): New function.
5042 * t-linux (LIB1ASMFUNCS): Revise module list.
5043 (LIB1ASMSRC): Use pa/milli64.S.
5045 2002-04-02 Richard Henderson <rth@redhat.com>
5047 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
5048 rename solaris_sys_varargs_h.
5050 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5052 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
5053 the same mode as its component.
5055 2002-04-02 Richard Henderson <rth@redhat.com>
5058 * final.c (this_is_asm_operands): Export.
5059 * output.h (this_is_asm_operands): Declare.
5060 * config/i386/i386.c (print_operand): Error odd asm operands.
5062 2002-04-02 Richard Henderson <rth@redhat.com>
5065 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
5067 2002-04-01 Richard Henderson <rth@redhat.com>
5070 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
5071 * fixinc/fixincl.x: Rebuild.
5073 2002-04-01 Richard Henderson <rth@redhat.com>
5075 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
5076 (atomic_alloc, atomic_free): New.
5077 (SIZE, MASK_FOR, PTR_IN): New.
5078 (emergency_reg_state, emergency_reg_state_free): New.
5079 (emergency_labeled_state, emergency_labeled_state_free): New.
5080 (reg_state_alloced, labeled_state_alloced): New.
5081 (alloc_reg_state, free_reg_state): New.
5082 (alloc_label_state, free_label_state, free_label_states): New.
5083 (push, pop, dup_state_stack, free_state_stack): Use them.
5084 (desc_label_state): Likewise.
5085 (uw_frame_state_for): Free label states and state stack.
5086 (uw_update_reg_address): Eliminate warnings.
5088 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
5090 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
5091 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
5093 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5095 * c-decl.c (grokdeclarator): Update.
5096 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5097 * c-tree.h (c_mark_addressable): New.
5098 * c-typeck.c (default_function_array_conversion, build_unary_op,
5099 build_array_ref, convert_for_assignment): Update.
5100 (mark_addressable): Rename.
5101 * calls.c (try_to_integrate, expand_call): Use langhook.
5102 * expr.c (expand_expr): Use langhook.
5103 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
5104 * langhooks.h (struct lang_hooks): New hook.
5105 * stmt.c (expand_asm_operands): Use langhook.
5106 * tree.h (mark_addressable): Remove.
5108 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5110 2002-04-01 Bob Wilson <bob.wilson@acm.org>
5112 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
5115 2002-04-01 Bob Wilson <bob.wilson@acm.org>
5117 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
5118 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
5120 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5122 * c-common.c (unsigned_conversion_warning, convert_and_check,
5123 unsigned_type, signed_type, shorten_compare,
5124 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
5125 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
5126 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
5128 * c-decl.c (grokdeclarator): Update.
5129 * c-format.c (check_format_types): Update.
5130 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5131 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5132 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
5133 * convert.c (convert_to_integer): Use new hooks.
5134 * expmed.c (make_tree): Use new hooks.
5135 * expr.c (store_expr): Use new hooks.
5136 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
5137 all_ones_mask_p, unextend, fold): Use new hooks.
5138 * langhooks.h (struct lang_hooks_for_types): New hooks.
5139 * tree.h (signed_or_unsigned_type, signed_type,
5140 unsigned_type): Remove.
5142 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5143 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5145 2002-03-31 Richard Henderson <rth@redhat.com>
5147 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
5148 (desc_frgr_mem): Fix reference to f16-f31.
5150 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5152 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
5153 RTVEC_ELT): Const-ify.
5154 * varray.h (VARRAY_CHECK): Const-ify.
5155 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
5156 ggc_mark_rtvec, ggc_mark): Const-ify.
5158 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5160 * diagnostic.c: Include langhooks-def.h.
5161 * Makefile.in (diagnostic.o): Update.
5163 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
5165 * c-common.c (c_unsafe_for_reeval): Rename.
5166 * c-common.h (c_unsafe_for_reeval): Rename.
5167 * c-decl.c (finish_incomplete_decl): Rename.
5168 (c_init_decl_processing): Don't set langhook.
5169 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5170 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5171 * c-objc-common.c (c_objc_common_init): Don't set langhook.
5172 * c-tree.h (finish_incomplete_decl): Rename.
5173 * langhooks-def.h (lhd_unsafe_for_reeval): New.
5174 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
5175 (LANG_HOOKS_INITIALIZER): Update.
5176 * langhooks.c (lhd_unsafe_For_reeval): New.
5177 * langhooks.h (struct langhooks): New hooks.
5178 * toplev.c (incomplete_decl_finalize_hook): Remove.
5179 (wrapup_global_declarations): Update.
5180 * tree.c (lang_unsafe_for_reeval): Remove.
5181 (unsafe_for_reeval): Update.
5182 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
5185 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5186 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5188 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
5190 * diagnostic.c (print_error_function): Remove.
5191 (default_print_error_function): Rename.
5192 (report_error_function): Update.
5193 * diagnostic.h (print_error_function): Remove.
5194 (default_print_error_function): Remove.
5195 * langhooks-def.h (struct diagnostic_context): Predeclare.
5196 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
5197 (LANG_HOOKS_INITIALIZER): Update.
5198 * langhooks.h (struct diagnostic context): Predeclare.
5199 (struct lang_hooks): New hook.
5201 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5203 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
5204 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
5206 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
5207 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
5208 of PIC_OFFSET_TABLE_REGNUM thruout.
5209 * config/rs6000/rs6000.md: Likewise.
5210 * config/rs6000/darwin.h: Likewise.
5212 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5214 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
5215 unsigned HOST_WIDE_INT, not unsigned int.
5217 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5219 PR middle-end/6096, middle-end/6098, middle-end/6099
5220 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
5222 (fill_slots_from_thread): Likewise.
5224 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5226 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
5227 floating fields in float regs.
5228 (function_arg_record_value_2): Likewise.
5230 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
5232 * config/mmix/mmix.md (define_constants): Remove misleading
5233 FIXME. Add MMIX_fp_rO_OFFSET.
5234 ("nonlocal_goto_receiver"): Don't have stack-frame address of
5235 saved rO as part of the pattern. Remove FIXME.
5236 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
5237 here, at output-time.
5239 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5242 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
5244 (output_v9branch): Likewise.
5246 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
5248 * gcc.c: Revert previous patch for now.
5249 * config/i386/djgpp.h: Likewise.
5251 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
5253 * config/mmix/crti.asm (_init): Register _fini with atexit.
5254 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
5256 2002-03-31 Richard Henderson <rth@redhat.com>
5259 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
5260 (ASM_OUTPUT_DEF_FROM_DECLS): New.
5262 2002-03-31 Richard Henderson <rth@redhat.com>
5264 * libgcc2.c (__bb_exit_func): Make static.
5266 * config/alpha/alpha.md (trap): New.
5268 2002-03-31 Richard Henderson <rth@redhat.com>
5270 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
5271 promoted argument types; build trap.
5272 (expand_builtin_trap): New.
5273 (expand_builtin): Use it.
5274 * stmt.c (expand_nl_goto_receivers): Likewise.
5275 * expr.h (expand_builtin_trap): Declare.
5276 * libfuncs.h (LTI_abort, abort_libfunc): New.
5277 * optabs.c (init_optabs): Init abort_libfunc.
5279 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
5281 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
5282 (LINK_COMMAND_SPEC): ... from here.
5283 (init_gcc_specs): Duplicate it here too, omitting
5284 shared_name in the second copy.
5285 (init_spec): Test for duplicate
5286 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
5288 2002-03-30 David S. Miller <davem@redhat.com>
5290 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5291 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
5293 2002-03-30 Roger Sayle <roger@eyesopen.com>
5294 Richard Henderson <rth@redhat.com>
5296 * regmove.c (combine_stack_adjustments_for_block): Avoid
5297 emitting a stack adjustment of zero bytes. Let delete_insn
5300 2002-03-30 Richard Henderson <rth@redhat.com>
5302 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
5303 (sparc_emitting_epilogue): New.
5304 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
5305 * config/sparc/sparc-protos.h: Update.
5306 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
5307 (TARGET_SWITCHES): Update.
5308 * config/sparc/sparc.md (return): Remove.
5309 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
5310 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
5311 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
5312 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5313 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
5314 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
5315 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
5316 Remove MASK_EPILOGUE.
5317 * doc/invoke.texi: Update.
5319 2002-03-30 Daniel Berlin <dan@dberlin.org>
5321 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
5322 CPP will start the file for us.
5324 2002-03-30 Richard Henderson <rth@redhat.com>
5327 * config/ia64/ia64.c (group_barrier_needed_p): Special case
5328 prologue_allocate_stack.
5329 (ia64_single_set): Use insn codes for recognition of special
5330 cases, not rtl matching.
5331 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
5333 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
5335 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
5337 2002-03-30 Richard Henderson <rth@redhat.com>
5340 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
5341 or -fomit-frame-pointer with profiling.
5342 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5343 (FUNCTION_PROFILER): Do nothing.
5344 (PROFILE_HOOK): New.
5345 * config/sparc/sparc.c (sparc_override_options): Don't check
5346 code models for profiling.
5347 (sparc_function_profiler): Remove.
5348 (sparc_profile_hook): New.
5349 * config/sparc/sparc-protos.h: Update.
5351 2002-03-30 Jakub Jelinek <jakub@redhat.com>
5353 PR optimization/6086
5354 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
5355 of SUBREG of volatile MEM or because the MEM was mode dependent,
5356 return CLOBBER instead of unmodified SUBREG.
5358 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
5360 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
5361 when not optimizing.
5363 * toplev.c (rest_of_compilation): Cann mark_constant_function
5364 only when optimizing.
5366 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
5369 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
5370 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
5371 (try_optimize_cfg): clear all AUX fields.
5373 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
5374 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
5375 (ix86_address_cost): Be prepared for SUBREGed registers.
5376 (legitimate_address_p): Accept SUBREGed registers.
5378 2002-03-29 Richard Henderson <rth@redhat.com>
5381 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
5383 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5385 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
5386 for aggregate and TFmode types.
5388 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
5390 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
5392 2002-03-29 Richard Henderson <rth@redhat.com>
5395 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
5396 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
5398 2002-03-29 Richard Henderson <rth@redhat.com>
5401 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
5402 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
5403 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
5404 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
5406 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
5408 2002-03-29 Dale Johannesen <dalej@apple.com>
5410 * loop.c (combine_movables): Do allow combination of pseudos.
5412 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
5414 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
5415 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
5416 No functional change except ...
5417 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
5418 * doc/install.texi (*-*-freebsd*): Document port configuration.
5420 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
5422 * Makefile.in (convert.o, calls.o, expmed.o): Update.
5423 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
5425 * builtin-types.def (BT_PTRMODE): Update.
5426 * c-common.c (type_for_size): Rename c_common_type_for_size.
5427 (type_for_mode): Similarly.
5428 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
5430 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
5431 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
5432 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
5434 * c-typeck.c (common_type, comptypes, default_conversion):
5436 * calls.c: Include langhooks.h.
5437 (emit_library_call_value_1): Use new hooks. Avoid redundant
5439 * convert.c: Include langhooks.h
5440 (convert_to_pointer, convert_to_integer): Use new hooks.
5441 * except.c (init_eh): Similarly.
5442 * expmed.c: Include langhooks.h.
5443 (expand_mult_add): Use new hooks.
5444 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
5445 try_casesi): Similarly.
5446 * fold-const.c (optimize_bit_field_compare, make_range,
5447 decode_field_reference, fold_truthop, fold): Similarly.
5448 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
5449 put_var_into_stack): Similarly.
5450 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
5451 LANG_HOOKS_TYPE_FOR_SIZE): New.
5452 (LANG_HOOKS_TYPES_INITIALIZER): Update.
5453 * langhooks.h (lang_hooks_for_types): New hooks.
5454 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
5455 * tree.c (get_unwidened, get_narrower): Similarly.
5456 * tree.h (type_for_mode, type_for_size): Remove.
5457 * varasm.c (force_const_mem): Use new hooks.
5458 * utils2.c (nonbinary_modular_operation): Update.
5460 * objc-act.c (handle_impent): Update.
5461 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
5464 2002-03-29 Steve Ellcey <sje@cup.hp.com>
5466 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
5467 * config/ia64/ia64.c (basereg_operand): New.
5468 * config/ia64/ia64-protos.h (basereg_operand): Declare.
5469 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
5471 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
5473 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
5474 unwind information when frame_pointer_needed.
5475 (mmix_assemble_integer): Tweak wording in comment.
5477 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
5479 * Makefile.in (except.o): Update.
5480 * except.c: Include langhooks.h.
5481 (init_eh): Use langhook.
5482 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
5483 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
5484 (LANG_HOOKS_INITIALIZER): Update.
5485 * langhooks.h (lang_hooks_for_types): New.
5486 (struct lang_hooks): Add it.
5487 * tree.c (make_lang_type_fn, make_lang_type): Remove.
5488 * tree.h (make_lang_type_fn, make_lang_type): Remove.
5490 * alpha/alpha.c: Include langhooks.h.
5491 (alpha_build_va_list): Use langhook.
5492 * d30v/d30v.c: Include langhooks.h.
5493 (d30v_build_va_list): Use langhook.
5494 * i386/i386.c: Include langhooks.h.
5495 (ix86_build_va_list): Use langhook.
5496 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
5497 * s390/s390.c: Include langhooks.h.
5498 (s390_build_va_list): Use langhook.
5499 * stormy16/stormy16.c: Include langhooks.h.
5500 (stormy16_build_va_list): Use langhook.
5502 2002-03-29 Jakub Jelinek <jakub@redhat.com>
5505 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
5507 (length): Compute variable length for branches/calls/jumps here.
5508 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
5509 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
5510 define branch_type attribute.
5511 (divsi3_sp32): Maximum length is 6 not 7.
5512 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
5513 call_address_untyped_struct_value_sp32,
5514 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
5515 * config/sparc/sparc.c (empty_delay_slot): New function.
5516 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
5517 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
5519 2002-03-29 Jakub Jelinek <jakub@redhat.com>
5521 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
5522 nonzero_bits if not needed.
5523 (nonzero_bits) [XOR]: Likewise.
5524 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
5525 reg_last_set_mode and mode are both MODE_INT, but not equal.
5526 (record_value_for_reg): Compute reg_last_set_nonzero_bits
5527 in nonzero_bits_mode for MODE_INT modes.
5529 2002-03-28 Richard Henderson <rth@redhat.com>
5532 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
5533 to GAS. Correct drift between alternatives.
5535 2002-03-28 Richard Henderson <rth@redhat.com>
5538 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
5540 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
5542 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
5543 emulation to the linker.
5545 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
5547 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
5548 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
5550 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
5552 * combine.c (simplify_and_const_int): Make sure to apply mask
5553 when force_to_mode returns a constant integer. PR3311.
5555 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5557 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
5559 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5561 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
5562 and Objective-C Dialect Options.
5564 2002-03-28 Richard Henderson <rth@redhat.com>
5566 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
5567 comparison should be done vs !=0 not >0 return code. Tidy cases.
5569 2002-03-28 Richard Henderson <rth@redhat.com>
5571 * c-decl.c (finish_function): New arg can_defer_p. Pass it
5572 on to c_expand_body.
5573 * c-tree.h (finish_function): Update decl.
5574 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
5576 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
5578 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
5580 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
5582 * rtlanal.c: Include flags.h
5583 (may_trap_p): Do not mark FP operations if trapping
5584 if !flag_trapping_math
5585 * Makefile.in (rtlanal.o): Add dependency on flag.h
5586 * ifcvt.c (noce_operand_ok): Avoid the lameness.
5588 2002-03-27 Zack Weinberg <zack@codesourcery.com>
5590 * mips.md: Use dconst1, not 1.0, as first argument of
5591 REAL_VALUE_LDEXP. Don't use union real_extract.
5593 2002-03-28 Alan Modra <amodra@bigpond.net.au>
5595 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
5596 rather than $target. Heed program_prefix and
5597 program_transform_name. Search for gas in cross-compiler case too.
5598 "test -x" rather than "test -f".
5599 (gcc_cv_ld): Likewise.
5600 (gcc_cv_nm): Heed program_prefix and program_transform_name.
5601 (gcc_cv_objdump): Likewise.
5602 * configure: Regenerate.
5604 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5606 * Makefile.in (attribs.o): Update.
5607 * attribs.c: Include langhooks.h.
5608 (decl_attributes): Use langhook.
5609 * c-decl.c (insert_default_attributes): Rename.
5610 * c-tree.h (c_insert_default_attributes): New.
5611 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
5612 (LANG_HOOKS_INITIALIZER): Update.
5613 * langhooks.h (struct lang_hooks): New hook.
5614 * tree.h (insert_default_attributes): Remove.
5616 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
5618 2002-03-27 Andreas Schwab <schwab@suse.de>
5620 * config/i386/i386.c (classify_argument): Also check for
5623 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5625 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
5628 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
5630 * i960.md (ret): Set PC.
5631 (nonlocal_goto): Fix expander.
5632 * builtins.c (epxand_builin_longjmp): Check that we've emitted
5635 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
5637 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
5640 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5642 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
5643 assigning to BLOCK_FOR_INSN directly.
5645 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
5647 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
5649 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5651 * c-common.c (c_expand_expr): Fix prototype.
5652 * c-common.h (c_expand_expr): Always declare, update.
5653 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5654 * c-objc-common.c (c_objc_common_init): No global hook.
5655 * expr.c (expand_expr): Use langhook.
5656 * expr.h (enum expand_modifier): Conditionally declare.
5657 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
5658 (LANG_HOOKS_INITIALIZER): Update.
5659 * langhooks.c (lhd_expand_expr): New.
5660 * langhooks.h (struct lang_hooks): New hook.
5661 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
5662 (lang_independent_init): Don't default hook.
5664 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5666 2002-03-27 Richard Henderson <rth@redhat.com>
5669 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
5670 TARGET_CONST_GP. Simplify conditions.
5672 2002-03-27 Richard Henderson <rth@redhat.com>
5674 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5675 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
5676 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
5678 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
5680 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
5681 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
5682 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
5683 Remove unnecessary masks.
5684 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
5685 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
5686 -mwindows, -mdll switches and their negations.
5688 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5690 * gcc-common.c (lang_mark_false_label_stack): Remove.
5691 * ggc.h (lang_mark_false_label_stack): Similarly.
5693 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
5695 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
5697 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
5698 or __rtems_ is defined.
5700 2002-03-26 Richard Henderson <rth@redhat.com>
5702 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
5703 if a non-trivial load was emitted.
5704 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
5705 in high+extra+low case.
5707 2002-03-26 Richard Henderson <rth@redhat.com>
5709 * config.gcc (sparc*-solaris): Use float_format=sparc.
5711 2002-03-26 Richard Henderson <rth@redhat.com>
5713 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
5714 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
5715 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
5716 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
5717 (WINT_TYPE_SIZE): Fix at 32.
5719 2002-03-26 Richard Henderson <rth@redhat.com>
5721 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
5722 until after eh landing pad generation.
5723 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
5724 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
5726 2002-03-26 Richard Henderson <rth@redhat.com>
5728 * expr.h (ADD_PARM_SIZE): One more convert for INC.
5730 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
5732 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
5733 and warning switches.
5734 (cc1_options): Likewise.
5736 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
5738 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
5739 Restore more of the signal context. Set no_reg_stack_frame.
5740 * config/ia64/unwind-ia64.c (unw_state_record):
5741 Add no_reg_stack_frame, comments.
5742 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
5743 (uw_update_context): Adjust bsp when unwinding from leaf,
5744 but not signal frame.
5746 2002-03-26 David Edelsohn <edelsohn@gnu.org>
5748 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
5750 2002-03-26 Bob Wilson <bob.wilson@acm.org>
5752 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
5754 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
5757 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
5758 "Add a pool_range attribute", which was lost during the ARM/Thumb
5761 2002-03-26 Bob Wilson <bob.wilson@acm.org>
5763 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
5764 a register into the MAC16 accumulator.
5766 2002-03-26 Andrew Cagney <ac131313@redhat.com>
5768 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
5769 (Warning Options): Document -Wswitch-enum.
5770 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
5772 (warn_switch_enum): Define variables.
5773 * flags.h (warn_switch_enum): Declare variables.
5774 * stmt.c (expand_end_case_type): When warn_switch_enum /
5775 -Wswitch-enum, perform switch checks.
5778 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
5780 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
5781 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
5782 (reload_muladdsi_compare0_scratch): Delete.
5784 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
5786 * doc/install.texi (*-*-freebsd*): Update.
5788 2002-03-26 Richard Henderson <rth@redhat.com>
5790 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
5791 (SUB_PARM_SIZE): Cast DEC to ssizetype.
5793 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
5794 types from the normal argument frame.
5796 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
5797 variable sized objects by reference.
5798 (sparc_va_arg): Receive them by reference too.
5800 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
5802 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
5803 code to not restoring global registers.
5805 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
5807 * Makefile.in (ggc-common.o): Update.
5808 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
5809 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5810 * c-tree.h (c_mark_tree): New.
5811 * ggc-common.c: Include langhooks.h.
5812 (gcc_mark_trees): Use new langhook.
5813 * ggc-callbacks.c: Delete file.
5814 * ggc.h (lang_mark_tree): Remove.
5815 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
5816 (LANG_HOOKS_INITIALIZER): Update.
5817 * langhooks.h (struct lang_hooks): New hook.
5819 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5821 2002-03-25 Zack Weinberg <zack@codesourcery.com>
5823 * doc/cpp.texi: Exclude entire Top node from printed manual.
5824 Move option index after directive index. Insert page breaks
5825 before GFDL and concept index. Index environment variables
5826 with command line options.
5827 * doc/cppenv.texi: Use @vtable for environment variable list.
5828 Add paragraph explaining semantics of empty elements in path
5829 variables. Exclude a cross-reference to Fishkill from the
5830 manpage. Remove an unnecessary cross-reference of the entry
5831 right above the referer. Don't use @anchor in text that goes
5833 * doc/cppopts.texi: Cross-reference the environment variables
5834 section, not the specific environment variable, for consistency.
5836 2002-03-25 Richard Henderson <rth@redhat.com>
5838 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
5839 anywhere in the block. Don't refer to insns that have been
5840 removed from the chain. Iterate backward through the new insns.
5841 Don't refer to edges that have been removed.
5843 2002-03-26 Alan Modra <amodra@bigpond.net.au>
5845 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
5846 test for overflow of constant.
5848 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
5851 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
5852 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
5853 these patterns on arm_archv4.
5855 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
5857 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
5860 2002-03-25 Zack Weinberg <zack@codesourcery.com>
5862 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
5863 float_handled, float_handler, float_signal, set_float_handler,
5864 and do_float_handler. Set handler for SIGFPE to crash_signal.
5865 * toplev.h: Don't prototype do_float_handler.
5867 * c-lex.c: Fold parse_float into lex_number. Make warning
5868 about portability of hex float constants more informative, and
5869 don't issue it on top of a syntax error.
5870 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
5872 * real.h: Define REAL_VALUE_ABS here...
5873 * simplify-rtx.c: ... not here. Fold check_fold_consts,
5874 simplify_unary_real, simplify_binary_real, and
5875 simplify_binary_is2orm1 into their callers.
5876 * tree.c: Fold build_real_from_int_cst_1 into caller.
5878 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
5880 * tsystem.h: Include float.h here...
5881 * libgcc2.c: ... not here.
5883 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
5885 Fixes for: PR bootstrap/3591, target/5676
5886 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
5887 defined. Do not disable exceptions or rtti.
5888 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
5889 mcore.h. Disable exceptions and rtti, since they are not
5892 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
5894 * c-decl.c (maybe_build_cleanup): Remove.
5895 * expr.c (expand_expr): Use langhook.
5896 * langhooks-def.h (lhd_return_null_tree,
5897 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
5898 (LANGHOOKS_INITIALIZER): Update.
5899 * langhooks.c (lhd_return_null_tree): New.
5900 * langhooks.h (struct lang_hooks): New hook.
5901 * tree-inline.c (initialize_inlined_parameters): Use langhook.
5902 * tree.h (maybe_build_cleanup): Remove.
5904 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5906 * regrename.c (build_def_use): Move recog_memoized
5907 before extract_insn.
5909 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5912 * expr.c (emit_group_store): Handle storing into CONCAT.
5914 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5916 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
5917 corresponding MATCH_DUP.
5919 2002-03-24 Richard Henderson <rth@redhat.com>
5921 * unroll.c (unroll_loop): Zero label_map.
5923 * gcse.c: Include except.h.
5924 * Makefile.in (gcse.o): Update.
5926 2002-03-24 Richard Henderson <rth@redhat.com>
5928 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
5929 Do resolve_unique_section before shared data clause.
5931 2002-03-24 Richard Henderson <rth@redhat.com>
5933 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
5935 2002-03-24 Richard Henderson <rth@redhat.com>
5937 * recog.c (peephole2_optimize): Split blocks when EH insns are
5938 generated in the middle of a block. Do global life update if
5941 2002-03-24 Richard Henderson <rth@redhat.com>
5943 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
5945 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5948 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
5949 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
5950 (init_dependency_output): Don't make no_output decision here.
5952 2002-03-24 Andrew Cagney <ac131313@redhat.com>
5954 * stmt.c (check_for_full_enumeration_handling): Remove tests of
5955 warn_switch. Update description.
5956 (expand_end_case_type): Call check_for_full_enumeration_handling
5959 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5961 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
5962 (m68hc11_split_move): Call it to see if the source and destination
5963 operands use the same direction auto inc/dec mode, otherwise make the
5964 source an offsetable memory operand and generate an add.
5966 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5968 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
5969 register for operand 2.
5970 ("*subsi3_zero_extendqi"): Likewise.
5971 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
5972 bits so that it is compatible with a pop.
5973 ("*andhi3_gen"): Likewise.
5974 ("xorhi3"): Likewise.
5976 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5978 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
5980 (cpp_post_options): ... not here.
5982 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5983 Aldy Hernandez <aldyh@redhat.com>
5985 Removal of separate preprocessor cpp0.
5987 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
5988 cpp0, install-common): Update.
5989 * c-common.c (flag_preprocess_only): New.
5990 (c_common_init): Preprocess for -E.
5991 * c-common.h (flag_preprocess_only): New.
5992 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
5993 * c-objc-common.c (c_init_decl_processing): Exit quickly
5994 for NULL return from c_common_init.
5995 * cpplib.h (cpp_preprocess_file): New.
5996 * cppmain.c (main, general_init, pfile, progname): Remove.
5997 (do_preprocessing): Rename cpp_preprocess_file, don't call
5998 cpp_finish. Don't close stdout here.
5999 (setup_callbacks): Update prototype.
6000 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
6002 * tradcpp.c (main): Ignore -quiet.
6004 * lang-specs.h (default_compilers): Preprocess with cc1obj.
6006 2002-03-24 Richard Henderson <rth@redhat.com>
6008 PR optimization/5742
6009 * machmode.def: Add inner mode field to complex modes.
6010 * config/mips/mips.c (mips_function_value): Always define. Add
6011 new argument to handle libcalls.
6012 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
6013 (FUNCTION_VALUE): Likewise.
6014 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
6015 * config/mips/mips-protos.h: Update.
6017 2002-03-23 Richard Henderson <rth@redhat.com>
6019 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
6020 * config/sparc/sparc-protos.h: Update.
6021 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
6023 2002-03-23 Richard Henderson <rth@redhat.com>
6025 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
6026 _start or _init begins the text segment.
6028 2002-03-23 David Edelsohn <edelsohn@gnu.org>
6030 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
6031 not HOST_WIDEST_INT.
6032 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
6034 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
6037 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
6038 operand argument to output_return_instruction.
6039 * arm.c (arm_print_operand, case 'd'): If the operand is
6040 const_true_rtx then just return.
6041 (arm_print_operand, case 'D'): If the operand is const_true_rtx
6044 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6046 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
6047 (Warning Options): Document -Wswitch-default.
6048 * toplev.c (W_options): Add -Wswitch-default. Update comment on
6050 (warn_switch_default): Define variable.
6051 (warn_switch): Update comment.
6052 * flags.h (warn_switch_default): Declare variable.
6053 (warn_switch): Update comment.
6054 * stmt.c (expand_end_case): Check for and, when
6055 warn_switch_no_default, warn of a missing default case.
6057 2002-03-23 Alan Modra <amodra@bigpond.net.au>
6059 * real.h (N): Special case 128 bit doubles.
6061 * combine.c (simplify_comparison): When widening modes, ignore
6062 sign extension on CONST_INTs.
6064 2002-03-22 Bob Wilson <bob.wilson@acm.org>
6066 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
6067 passed to adjust_address. Fix comment formatting.
6070 2002-03-22 Zack Weinberg <zack@codesourcery.com>
6072 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
6073 Always make REAL_VALUE_TYPE a struct containing an array of
6074 HOST_WIDE_INT, not a double. Tidy up the code deciding how
6075 big it is. Don't declare or use union real_extract.
6077 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
6078 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
6079 (print_operand), config/arm/arm.c (output_move_double),
6080 config/arm/arm.md (consttable_4, consttable_8),
6081 config/romp/romp.c (output_fpops), config/s390/s390.h
6082 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
6083 (xtensa_output_literal): Don't use union real_extract.
6085 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
6086 (sfmode_constant_to_ulong), config/ns32k/merlin.h
6087 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
6088 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
6089 (PRINT_OPERAND): Don't use local version of union
6092 * config/convex/convex.c (check_float_value), config/vax/vax.c
6093 (vax_float_literal), config/m88k/m88k.md (divdf3),
6094 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
6095 config/pdp11/pdp11.c (output_move_quad): Don't do host
6096 arithmetic on target floating point quantities.
6098 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
6099 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
6101 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
6102 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
6104 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
6105 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
6107 * print-rtl.c (print_rtx): Disable code which needs
6108 floating-point emulator.
6109 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
6110 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
6111 depending on HOST_FLOAT_FORMAT to be defined properly.
6113 * config/1750a/1750a.c (get_double, float_label): Delete.
6114 (print_operand): Delete huge commented-out chunk. Use
6115 REAL_VALUE_TO_DECIMAL.
6116 * config/1750a/1750a-protos.h: Delete prototypes of deleted
6118 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
6120 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
6121 Use REAL_VALUE_TO_DECIMAL as ELF version does.
6122 * config/m88k/m88k.c (real_power_of_2_operand,
6123 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
6124 real_extract out of the union; run the input through
6125 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
6126 from that into the union.
6127 * config/pdp11/pdp11.c (output_move_double): Rearrange
6128 parentheses to make automatic indenter happy.
6130 * doc/tm.texi (Cross-compilation): Rename node to "Floating
6131 Point" and rewrite to describe current situation. Also adjust
6132 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
6134 * doc/rtl.texi: Adjust cross reference.
6136 2002-03-22 Bob Wilson <bob.wilson@acm.org>
6138 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
6139 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
6140 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
6141 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
6142 prevent use of sp as a reload register.
6143 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
6144 non_acc_reg_operand.
6145 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
6146 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
6147 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
6148 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
6150 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
6152 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
6153 * cpplex.c (unterminated): Delete.
6154 (parse_string): No string literal may extend over multiple
6155 lines. Suppress the error when preprocessing assembly.
6156 * cppmain.c (scan_translation_unit): Strings are single-line.
6158 * doc/cpp.texi: Update to match.
6160 2002-03-22 Jakub Jelinek <jakub@redhat.com>
6162 PR optimization/5854
6163 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
6165 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
6166 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
6167 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
6168 const0 if scratch register was not allocated.
6169 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
6170 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
6172 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
6173 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
6174 with GEN_INT (...) everywhere. Remove constraints in define_split
6176 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
6177 require scratch register for setting 0 into regs/non-pushable memory.
6179 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
6181 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
6182 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
6184 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
6186 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
6187 * cppinit.c (cpp_create_reader): On by default.
6188 (cpp_handle_option): Handle -W[no-]endif-labels.
6189 (cpp_post_options): Also enable if -pedantic.
6190 * cpplib.c (do_else): Use it.
6191 (do_endif): Likewise.
6192 * doc/cppopts.texi: Document new option.
6193 * doc/invoke.texi: Document new option.
6195 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
6197 * config/i386/i386.c, config/i386/i386.md: Change all occurences
6198 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
6200 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
6202 * flow.c (calculate_global_regs_live): Clear aux fields of
6205 2002-03-22 Jakub Jelinek <jakub@redhat.com>
6207 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
6208 REG or MEM subregs, pass rtx * instead of rtx to it.
6209 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
6210 rtx * instead of rtx to alter_subreg.
6211 * config/m32r/m32r.c (gen_split_move_double): Likewise.
6212 * config/pj/pj.c (pj_output_rval): Likewise.
6214 2002-03-22 Richard Henderson <rth@redhat.com>
6217 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
6218 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
6219 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
6220 (ia64_expand_prologue): Look at int_regs, not words, for number
6221 of incomming int regs.
6223 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
6225 * expr.c (expand_expr): A RESULT_DECL is part of a call.
6227 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
6229 * toplev.c (flag_loop_optimize, flag_crossjumping):
6230 New static variables.
6231 (rest_of_compilation): Conditionalize crossjumping and
6233 (parse_options_and_default_flags): Default loop_optimize and
6235 (lang_independent_options): Add -fcrossjumping and -floop-optimize
6236 * invoke.texi (crossjumping, loop-optimize): Document.
6238 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
6240 * real.c (eiisneg): Move outside #ifdef NANS.
6242 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
6244 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
6245 frequencies match; avoid match on different loop depths.
6246 (try_crossjump_to_bb): Kill tests that no longer brings time
6248 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
6250 (split_edge): Likewise.
6252 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
6255 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
6256 * cfgrtl.c: Include insn-config.h
6257 (split_block) Dirtify block in presence of conditional execution
6259 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
6261 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
6262 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
6263 (function_arg): Constify CUMULATIVE_ARGS.
6264 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
6265 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
6266 (UNITS_PER_DOUBLE): New macro.
6267 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
6268 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
6269 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
6270 fp_regs and stack_words.
6271 (EABI_FLOAT_VARARGS_P): New macro.
6272 * config/mips/mips.c (struct mips_arg_info): New.
6273 (mips_arg_info): New function.
6274 (function_arg_advance): Use it. Add adjustment instructions here
6275 rather than in function_arg.
6276 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
6277 for VOIDmode at the beginning of the function.
6278 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
6279 (function_arg_pass_by_reference): Likewise.
6280 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
6281 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
6282 (mips_va_start): Likewise. Use the new stack_words field of
6283 CUMULATIVE_ARGS to set up overflow area. Reformat.
6284 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
6285 doubles and other types, aligning the overflow pointer for non-doubles
6286 too. Remove some code duplication. Replace hard-coded constants.
6288 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
6290 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
6291 (CLASS_UNITS): Undefine.
6292 (CLASS_MAX_NREGS): Use FP_INC.
6293 * config/mips/mips.c (compute_frame_size): Likewise.
6294 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
6296 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
6298 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
6299 prototype, and handle lexing numbers and identifiers.
6300 (parse_identifier): Update to new form of parse_slow.
6301 (parse_number): Fast path only, use parse_slow otherwise.
6302 (_cpp_lex_direct): Update calls to parse_number.
6304 2002-03-21 DJ Delorie <dj@redhat.com>
6306 * bb-reorder.c (make_reorder_chain_1): Protect against
6307 when redundant edges are omitted.
6308 * predict.c (dump_prediction): Likewise.
6310 2002-03-21 Richard Henderson <rth@redhat.com>
6313 * fixinc/inclhack.def (solaris_stdio_tag): New.
6314 * fixinc/fixincl.x: Regenerate.
6316 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
6319 * c-typeck.c (process_init_element): Flag non-static
6320 initialization of a flexible array member as illegal.
6322 2002-03-22 Alan Modra <amodra@bigpond.net.au>
6324 * config/rs6000/t-linux64: New.
6325 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
6326 t-ppccomm. Use t-rs6000 and t-linux64.
6327 (powerpc64-*-gnu* <tmake_file>): Likewise.
6328 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
6329 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
6330 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
6332 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
6334 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
6335 flag_really_no_inline instead of optimize == 0.
6337 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
6339 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
6341 * flags.h (flag_really_no_inline): New.
6343 * c-common.c (c_common_post_options): Initialize
6344 flag_really_no_inline.
6346 * toplev.c (flag_really_no_inline): New.
6348 2002-03-21 Jakub Jelinek <jakub@redhat.com>
6350 * config/avr/avr.md (length): Fix length computation for
6351 conditional branches.
6353 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
6355 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
6356 sdbout.o, profile.o): Update.
6357 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
6359 * c-common.h (gettags): Move here from tree.h.
6360 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
6361 insert_block, getdecls, kept_level_p, global_bindings_p): New.
6362 * dbxout.c (dbxout_init): Use getdecls langhook.
6363 * expr.c (expand_expr): Use insert_block langhook.
6364 * fold-const.c: Include langhooks.h.
6365 (fold_range_test, fold_binary_op_with_conditional_arg,
6366 fold): Use global_bindings_p langhook.
6367 * integrate.c (expand_inline_function): Use insert_block langhook.
6368 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
6369 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
6370 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
6371 LANG_HOOKS_GETDECLS): New.
6372 (LANG_HOOKS_INITIALIZER): Update.
6373 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
6375 * langhooks.h (struct lang_hooks_for_decls): New.
6376 (struct lang_hooks): Update.
6377 * profile.c: Include langhooks.h.
6378 (output_func_start_profiler): Use new langhooks.
6379 * sdbout.c: Include langhooks.h.
6380 (sdbout_init, sdbout_finish): Use getdecls langhook.
6381 * stmt.c: Include langhooks.h.
6382 (expand_fixup, fixup_gotos): Use new langhooks.
6383 * stor-layout.c: Include langhooks.h.
6384 (variable_size): Use global_bindings_p langhook.
6385 * toplev.c (compile_file): Use getdecls langhook.
6386 * tree-inline.c (remap_block): Use insert_block langhook.
6387 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
6388 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
6390 2002-03-21 Richard Henderson <rth@redhat.com>
6392 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
6393 constants in .data when -fpic.
6395 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6397 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
6400 2002-03-21 Tom Tromey <tromey@redhat.com>
6402 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
6404 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6406 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
6408 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
6410 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
6411 Richard Henderson <rth@redhat.com>
6414 * c-common.c (c_expand_expr): Preserve result of a statement
6415 expression if needed.
6417 2002-03-21 Jakub Jelinek <jakub@redhat.com>
6420 * genrecog.c (maybe_both_true_mode): Remove.
6421 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
6422 * machmode.def (Pmode): Likewise.
6424 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
6426 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
6427 (nonlocal_mentioned_p_1): New function.
6428 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
6429 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
6430 (mark_constant_function): Recognize pure functions.
6431 * rtl.h (global_reg_mentioned_p): New prototype.
6432 * rtlanal.c (global_reg_mentioned_p,
6433 global_reg_mentioned_p_1): New function.
6435 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6437 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
6439 * fixinc/fixincl.x: Regenerate.
6441 2002-03-20 Jason Merrill <jason@redhat.com>
6443 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
6445 2002-03-20 Michael Meissner <meissner@redhat.com>
6447 * doc/invoke.texi (Optimize Options): Document that -O2 sets
6450 2002-03-20 Bob Wilson <bob.wilson@acm.org>
6452 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
6453 ".literal_position" directive before the constant pool.
6455 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6457 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
6458 Add Craig Rodrigues.
6459 Add Brad Lucier to testers.
6461 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6464 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
6466 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
6467 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
6468 instead of insn_extract.
6470 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6473 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
6475 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
6476 stmt if some case has been output.
6478 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6481 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
6482 movsfcc_1, movdfcc_1): Add %O2.
6483 * config/i386/i386.c (print_operand): Handle %ON.
6484 Print . before float condition codes in Sun as cmov syntax.
6485 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
6486 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
6489 2002-03-20 Philip Blundell <pb@nexus.co.uk>
6491 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
6492 return instruction if PC was popped.
6494 2002-03-20 Bob Wilson <bob.wilson@acm.org>
6496 * config/xtensa/xtensa.md: Remove unused type attributes.
6497 (adddi_carry, subddi_carry): Change type attribute to "multi".
6499 2002-03-19 Dale Johannesen <dalej@apple.com>
6501 PR optimization/5999, middle-end/5731
6502 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
6503 multiplications by reciprocals.
6505 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
6507 * Makefile.in: Update.
6508 * c-common.c: Include langhooks.h.
6509 (inline_forbidden_p): Use new hook.
6510 * diagnostic.c: Include langhooks.h.
6511 (format_with_decl, announce_function,
6512 default_print_error_function): Use new hook.
6513 * dwarf2out.c (dwarf2_name): Use new hook.
6514 * function.c: Include langhooks.h.
6515 (init_function_start): Use new hook.
6516 * langhooks-def.h (lhd_decl_printable_name): New.
6517 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
6518 (LANGHOOKS_INITIALIZER): Update.
6519 * langhooks.c (lhd_decl_printable_name): New.
6520 * langhooks.h (struct lang_hooks): New hook.
6521 * toplev.c (decl_name, decl_printable_name): Remove.
6522 (open_dump_file): Use new hook.
6523 (process_options): Remove old hook.
6524 * tree.h (decl_printable_name): Remove.
6526 * objc-act.c (objc_init): Remove old hook.
6527 (objc_printable_name): Export.
6528 * objc-act.h (objc_printable_name): New.
6529 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
6531 2002-03-19 Jim Blandy <jimb@redhat.com>
6533 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
6534 the start_source_file debug hook, not the current line number.
6536 2002-03-19 Richard Henderson <rth@redhat.com>
6538 * flow.c (EH_USES): Provide default.
6539 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
6540 * doc/tm.texi (EH_USES): New.
6542 * config/ia64/ia64.c (ia64_eh_uses): New.
6543 * config/ia64/ia64-protos.h: Update.
6544 * config/ia64/ia64.h (EH_USES): New.
6546 2002-03-19 Richard Henderson <rth@redhat.com>
6548 * varasm.c (output_constant_def): Fix stupid typo.
6550 2002-03-19 Richard Henderson <rth@redhat.com>
6553 * except.c (current_function_has_exception_handlers): New.
6554 * except.h: Declare it.
6555 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
6556 Combine tests that disable all sibcalls for the function.
6558 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
6560 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
6563 2002-03-19 Richard Henderson <rth@redhat.com>
6566 * config/ia64/ia64.c: Revert 2002-03-01 patch.
6567 * config/ia64/ia64.h (INIT_EXPANDERS): New.
6569 2002-03-19 Jim Blandy <jimb@redhat.com>
6571 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
6572 name, even if the replacement list contains no tokens, as required
6575 2002-03-19 Jason Merrill <jason@redhat.com>
6577 * varasm.c (globalize_decl): Get the name from the RTL, not
6578 DECL_ASSEMBLER_NAME.
6580 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
6582 2002-03-19 Bob Wilson <bob.wilson@acm.org>
6584 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
6585 subdi_carry): Define.
6587 2002-03-19 David Edelsohn <edelsohn@gnu.org>
6589 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
6590 about -fpic/-fPIC if extra_warnings set.
6592 2002-03-19 David Edelsohn <edelsohn@gnu.org>
6594 * expr.c (expand_expr): Sign-extend CONST_INT generated from
6595 TREE_STRING_POINTER.
6596 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
6598 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6600 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
6601 in favor of SP if FRAME_POINTER_REQUIRED is false.
6603 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
6605 * emit-rtl.c (gen_int_mode): New function.
6606 * rtl.h: Prototype for it.
6607 * combine.c (make_extraction, simplify_comparison), expmed.c
6608 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
6609 (convert_modes, store_field), optabs.c (expand_fix),
6610 simplify-rtx.c (neg_const_int, simplify_unary_real),
6612 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
6613 Use it instead of GEN_INT (trunc_int_for_mode (...)).
6615 2002-03-19 Jakub Jelinek <jakub@redhat.com>
6618 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
6619 convert_parm_for_inlining.
6620 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
6622 * langhooks-def.h: Likewise.
6623 * objc/objc-lang.c: Likewise.
6624 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
6626 * tree-inline.c (initialize_inlined_parameters):
6627 Call convert_parm_for_inlining lang hook if needed.
6628 * c-typeck.c (c_convert_parm_for_inlining): New function.
6629 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
6631 2002-03-18 Mark Mitchell <mark@codesourcery.com>
6633 * calls.c (precompute_arguments): Do not assume that temporaries
6634 can be destroyed after expanding the argument.
6635 (expand_call): Likewise.
6637 2002-03-15 Eric Christopher <echristo@redhat.com>
6639 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
6640 Fix register preference on last change.
6641 * config/mips/mips.c (mips_return_in_memory): New function.
6642 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
6643 * config/mips/mips-protos.h: Declare.
6644 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
6645 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
6647 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
6649 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
6651 (anddi3, iorsi3): Likewise.
6653 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
6654 use %gprel for symbols that are going to be placed in linkonce
6657 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
6658 RETURN_ADDRESS_POINTER_REGNUM to $ra.
6659 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
6660 not needed. Disregard leaf_function_p().
6661 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
6662 mips16 frame pointer.
6663 * config/mips/mips.md (store ra): Only to small SP offsets.
6664 2001-08-22 Graham Stott <grahams@redhat.com>
6665 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
6666 return a REG rtx for the return address register.
6668 2002-03-18 Bob Wilson <bob.wilson@acm.org>
6670 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
6671 constant-pool addresses as "mode-dependent".
6672 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
6674 2002-03-18 Jakub Jelinek <jakub@redhat.com>
6677 * expr.c (emit_group_load): Use extract_bit_field if
6678 needed for CONCAT arguments.
6680 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
6683 * arm.md (tablejump): Make this a define_expand. For PIC add the
6684 offset to the base of the table.
6685 (thumb_tablejump): Matcher for Thumb tablejump insn.
6686 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
6687 as the difference of two labels.
6688 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6689 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
6691 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
6692 * arm.c (get_jump_table_size): If the table is not in the text
6693 section, return zero.
6695 2002-03-18 Bernd Schmidt <bernds@redhat.com>
6697 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
6699 (arm_reload_out_hi): Use gen_lowpart instead of
6700 gen_rtx_SUBREG to access QImode components.
6701 * config/arm/arm.md: Disable zero_extend split for QImode
6702 subregs in BIG_ENDIAN mode.
6703 (storehi_bigend): Match use of least significant byte.
6704 (storeinthi): Remove extraneous SUBREG.
6705 Add missing construction of operands[2].
6706 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
6707 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
6708 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
6710 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
6712 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
6715 2002-03-17 Richard Henderson <rth@redhat.com>
6717 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
6720 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
6722 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
6723 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
6725 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6727 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
6729 * predict.c (estimate_bb_frequencies): Delete unused variables.
6731 2002-03-17 Richard Henderson <rth@redhat.com>
6733 * config/ia64/ia64.c (ia64_attribute_table): Move before
6734 targetm definition. Make static.
6736 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
6738 * c-common.h (yyparse, c_common_parse_file): New.
6739 * c-lang.c: Include c-common.h.
6740 (LANG_HOOKS_PARSE_FILE): Redefine.
6741 * c-lex.c: Include c-common.h.
6742 (yyparse): Rename c_common_parse_file. Call yyparse.
6743 * c-parse.in (yyparse): Remove macro.
6744 * c-tree.h (yyparse_1): Remove.
6745 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
6746 (LANG_HOOKS_INITIALIZER): Update.
6747 * langhooks.h (struct lang_hoooks): New hook parse_file.
6748 * toplev.c (compile_file): Use parse_file hook.
6749 * tree.h (yyparse): Remove.
6750 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
6752 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
6754 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
6755 float_truncate, not fix.
6756 ("*truncdfsf2_real"): Ditto.
6757 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
6759 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
6761 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
6763 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
6764 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
6765 where appropriate. Make the second reference to
6766 leaf_function_p a function call, as intended. Reindented.
6768 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
6769 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
6771 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
6772 add register to non-constant into sp.
6774 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
6775 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
6776 (mips16_gp_pseudo_rtx): Lose.
6777 (INIT_EXPANDERS): Deleted.
6778 * config/mips/mips.c (mips_init_machine_status): New.
6779 (mips_free_machine_status): New.
6780 (mips_mark_machine_status): New.
6781 (override_options): Set them.
6782 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
6783 (struct machine_function): ... new. Replaced all references.
6784 (mips_add_gc_roots): Don't mark them.
6785 (embedded_pic_fnaddr_reg): New, extracted from...
6786 (embedded_pic_offset): ... here.
6787 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
6790 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
6792 * cppinit.c: Revert -MD removal.
6794 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6796 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
6797 soft registers by default for 68HC12.
6798 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
6799 when compiling with -fomit-frame-pointer.
6800 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
6801 (expand_epilogue): Likewise.
6802 (m68hc11_gen_rotate): Use exg when rotating by 8.
6804 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6806 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
6807 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
6808 (splits): Remove unused add splits.
6809 ("*addhi3_68hc12"): Tune constraints.
6810 ("addhi_sp"): Try to use X instead of Y in all cases and if the
6811 constant fits in 8-bits and D is dead use abx/aby instructions.
6812 ("*addhi3"): Remove extern declaration of ix_reg.
6813 ("*subsi3"): Optimize and provide new split.
6814 ("subhi3"): Cleanup.
6815 ("*subhi3_sp"): Avoid saving X if we know it is dead.
6816 (arith splits): For 68hc12 save the address register on the stack
6817 and do the arithmetic operation with a pop.
6819 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6821 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
6822 allocating QImode in address registers.
6823 ("*movqi_m68hc11"): Likewise.
6825 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
6827 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
6829 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
6831 * cppinit.c (print_help): Display -MD and -MMD.
6832 Don't display usage string. Update assertion syntax and
6834 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
6835 (cpp_handle_option): Update.
6837 2002-03-15 Chris Demetriou <cgd@broadcom.com>
6839 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
6840 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
6841 and define it so that regardless of target CPU size,
6842 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
6843 of "int" rather than "long."
6845 2002-03-15 Richard Henderson <rth@redhat.com>
6847 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
6850 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6852 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
6853 ("tstqi" split): Avoid using memory for tstqi on address register.
6854 (splits): Remove constraints.
6855 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
6856 ("cmpdf", "cmpsf"): Remove since not used.
6857 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
6858 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
6860 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6862 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
6863 ("neghi2"): Tighten constraints.
6864 ("one_cmplsi2"): Optimize and simplify split.
6865 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
6867 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6869 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
6870 and split of AND operation to clear the upper bits.
6871 ("*logicalsi3_zextqi"): Likewise.
6872 ("*logicallhi3_zexthi_ashift8"): Likewise.
6873 ("*logicalsi3_silshr16"): Likewise.
6874 ("logicalsi3_silshl16"): Likewise.
6875 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
6877 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6879 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
6880 (m68hc11_indirect_p): New function.
6881 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
6882 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
6884 (asm_print_register): Likewise.
6885 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
6886 (m68hc11_indirect_p): Declare.
6887 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
6888 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
6889 (TARGET_SWITCHES): New option -mrelax.
6890 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
6892 ("iorsi3", "xorsi3"): Likewise.
6893 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
6894 ("*andhi3_mem"): New to handle destination in memory with bclr
6895 and a scratch register.
6896 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
6897 ("*andhi3_const"): New when operand2 is constant.
6898 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
6899 ("*andhi3_gen"): Cleanup of the old "andhi3".
6900 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
6901 ("xorqi3"): Update constraints.
6903 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6905 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
6906 for reg_equiv_memory_loc when the operand is a register that does
6907 not get a hard register (stack location).
6908 (tst_operand): After reload, accept all memory operand.
6909 (symbolic_memory_operand): Fix detection of symbolic references.
6910 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
6911 accept symbols and any constant.
6913 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6915 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
6916 note on the insn that sets the soft frame register.
6917 (must_parenthesize): ix and iy are also reserved names.
6918 (print_operand_address): One more place where parenthesis are required
6919 to avoid confusion with register names.
6920 (m68hc11_gen_movhi): Allow push of stack pointer.
6921 (m68hc11_check_z_replacement): Fix handling of parallel with a
6923 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
6924 the replacement register is.
6925 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
6926 and D8_REGS classes.
6927 (MODES_TIEABLE_P): All modes are tieable except QImode.
6929 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6931 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
6932 (___subdi3): Likewise.
6933 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
6934 (__map_data_section): Optimize 68hc11 case.
6936 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6938 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
6939 than a shift to avoid adding a register with itself.
6940 (m68hc11_memory_move_cost): Take into account NO_REGS.
6941 (m68hc11_register_move_cost): Update and use memory move cost
6943 (m68hc11_address_cost): Make cost of valid offset not 0 so that
6944 it gives more opportunities to cse to optimize.
6945 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
6946 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
6948 2002-03-15 Mark Mitchell <mark@codesourcery.com>
6950 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
6951 * c-common.def (CLEANUP_STMT): New tree node.
6952 * c-common.h (CLEANUP_DECL): New macro.
6953 (CLEANUP_EXPR): Likewise.
6954 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
6955 * expr.c (expand_expr): Tidy.
6956 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
6957 * tree-inline.c (initialize_inlined_parameters): Clean up
6958 new local variables.
6960 2002-03-15 Jakub Jelinek <jakub@redhat.com>
6963 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
6964 before movrXX only, use reg_overlap_mentioned_p.
6965 Only special case NE if just one insn can be generated.
6967 2002-03-15 Jason Merrill <jason@redhat.com>
6969 * varasm.c (assemble_variable): Call resolve_unique_section before
6970 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
6973 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6976 * arm.md (split pattern for thumb shiftable immediates): Add comment
6977 explaining non-obvious test.
6979 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6982 * arm.md (movaddr, movaddr_insn): Delete.
6984 2002-03-15 Jason Merrill <jason@redhat.com>
6986 * toplev.c (wrapup_global_declarations): Clarify variable handling.
6987 -fkeep-static-consts doesn't apply to comdats.
6989 2002-03-14 Richard Henderson <rth@redhat.com>
6991 * c-decl.c: Include c-pragma.h.
6992 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
6993 (finish_function): Tidy.
6994 * c-pragma.c: Include c-common.h.
6995 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
6996 (handle_pragma_weak): Use them.
6997 (init_pragma): Register pending_weaks.
6998 * c-pragma.h (maybe_apply_pragma_weak): Declare.
6999 * print-tree.c (print_node): Print DECL_WEAK.
7000 * varasm.c (mark_weak_decls): Remove.
7001 (remove_from_pending_weak_list): Remove.
7003 (asm_emit_uninitialised): Call globalize_decl for weak commons.
7004 (weak_decls): Make a tree_list.
7005 (declare_weak): Cons weak_decls directly.
7006 (globalize_decl): Remove weak_decls elements directly.
7007 (weak_finish): Simplify weak_decls walk. Don't weaken unused
7008 symbols. Don't pretend to handle aliases.
7009 (init_varasm_once): Update weak_decls registry.
7010 * Makefile.in: Update dependencies.
7012 2002-03-14 Richard Henderson <rth@redhat.com>
7015 * config/ia64/ia64.c: Include tm_p.h last.
7016 (gen_nop_type): Remove duplicate definition.
7017 (cycle_end_fill_slots): Set sched_data for second L slot.
7018 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
7019 (nop_cycles_until): Fix typos.
7021 2002-03-15 Jakub Jelinek <jakub@redhat.com>
7023 PR optimization/5891
7024 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
7026 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
7028 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
7029 descriptors correctly.
7031 2002-03-14 Michael Meissner <meissner@redhat.com>
7033 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
7034 100, allowing MAX_UNROLLED_INSNS to be overridden.
7036 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
7039 * unroll.c (params.h): Include.
7040 (MAX_UNROLLED_INSNS): Delete, now in params.h.
7042 * doc/invoke.texi (--param max-unroll-insns): Document.
7044 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
7046 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
7048 * arm.md: Fix warnings about constraints in peepholes and splits.
7050 2002-03-14 Zack Weinberg <zack@codesourcery.com>
7052 * cpphash.h (struct lexer_state): Remove line_extension member.
7053 * cpplib.c (dequote_string, do_linemarker): New functions.
7054 (linemarker_dir): New data object.
7055 (DIRECTIVE_TABLE): No longer need to interpret #line in
7056 preprocessed source. Delete obsolete comment about return
7058 (end_directive, directive_diagnostics, _cpp_handle_directive):
7059 Don't muck with line_extension.
7060 (directive_diagnostics): No need to issue warnings for
7062 (_cpp_handle_directive): Issue warnings for linemarkers here,
7063 when appropriate. Dispatch linemarkers to do_linemarker, not
7065 (do_line): Code to handle linemarkers split out to do_linemarker.
7066 Convert escape sequences in filename argument, both places.
7068 * cppmacro.c (quote_string): Rename cpp_quote_string and
7069 export. All callers changed.
7070 * cpplib.h (cpp_quote_string): Prototype.
7071 * cppmain.c (print_line): Call cpp_quote_string on to_file
7074 * doc/cpp.texi: Document that escapes are now interpreted in
7075 #line and in linemarkers, and that non-printing characters are
7076 converted to octal escapes when linemarkers are generated.
7078 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
7080 * emit-rtl.c (try_split): Use delete_insns.
7081 * recog.c (split_all_insns): Fix terminating condition.
7083 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
7084 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7087 * arm.c (arm_output_epilogue): Fix floating-point register save
7088 adjustment when using a frame pointer.
7090 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
7092 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
7093 * config/mips/mips.c (compute_frame_size): Retrofit them here.
7094 (save_restore_insns, mips_expand_epilogue): And here.
7095 (build_mips16_call_stub): And here.
7096 (mips_function_value): Use the new macros to decide whether a single
7097 or complex float can be returned in floating-point registers. Return
7098 a parallel rtx in the complex case.
7100 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
7102 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
7103 call after liveness analysis.
7105 * recog.c (split_insn): Use delete_insn_and_edges.
7107 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
7108 instructions to have branch prediction notes.
7109 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
7111 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
7113 * configure.in: Don't pass -Wno-long-long to a ADA compiler
7114 that doesn't support it.
7115 * configure: Regenerate.
7117 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7120 * config/sparc/sparc.md (normal_branch, inverted_branch,
7121 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
7122 inverted_fp_branch): Adjust calls to output_cbranch.
7123 Set length attribute.
7124 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
7125 output_v9branch. Set length attribute.
7126 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
7128 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
7129 (output_cbranch): Likewise. Handle far branches.
7130 (output_v9branch): Handle far branches.
7131 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
7133 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
7134 noov_compare64_op predicates.
7136 2002-03-13 Jason Merrill <jason@redhat.com>
7138 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
7139 into the function and constify it.
7140 * gthr-dce.h, gthr-solaris.h: Likewise.
7142 2002-03-13 David Edelsohn <edelsohn@gnu.org>
7144 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
7145 * config/rs6000/rs6000.c (rs6000_va_arg): Use
7146 std_expand_builtin_va_arg if not ABI_V4.
7148 2002-03-13 Jason Merrill <jason@redhat.com>
7150 * varasm.c (globalize_decl): New fn.
7151 (assemble_start_function): Use it.
7152 (asm_emit_uninitialized): Use it.
7153 (assemble_alias): Use it.
7154 (assemble_variable): Use it.
7156 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
7158 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
7159 2002-03-12 internal visibility change.
7160 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
7161 visibility into SYMBOL_REF_FLAG.
7163 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
7165 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
7166 VOIDmode operand. Add compile-time optimization for constant results.
7168 2002-03-12 Jason Merrill <jason@redhat.com>
7170 * c-typeck.c (convert_for_assignment): Don't allow conversions
7171 between pointers and references. Only allow lvalues to convert to
7174 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
7176 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
7177 before prologue, to avoid scheduling problems.
7179 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7181 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
7182 (ELIMINABLE_REGS): Add sfp->sp.
7183 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
7185 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7187 PR optimization/5892
7188 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
7190 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7192 * loop.c (basic_induction_var): Don't call convert_modes if mode
7193 classes are different.
7195 2002-03-12 Richard Henderson <rth@redhat.com>
7197 PR optimization/5901
7198 * function.c (reposition_prologue_and_epilogue_notes): Position
7199 the markers after/before the last/first insn not deleted.
7201 2002-03-12 Richard Henderson <rth@redhat.com>
7203 PR optimization/5878
7204 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
7205 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
7206 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7208 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
7209 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
7210 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
7212 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
7213 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
7214 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
7215 also. Don't set it if not flag_pic.
7216 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
7217 to be INVALID_REGNUM when not used.
7219 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
7221 * expmed.c (store_bit_field): Reset alias set for memory.
7222 (extract_bit_field): Same.
7224 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7226 * c-common.c (c_tree_code_type, c_tree_code_length,
7227 c_tree_code_name, add_c_tree_codes): Delete.
7228 * c-common.h (add_c_tree_codes): Delete.
7229 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
7231 * c-objc-common.c (c_objc_common_init): Don't call
7232 add_c_tree_codes, instead set lang_unsafe_for_reeval.
7233 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
7234 objc_tree_code_name, add_objc_tree_codes): Delete.
7235 (objc_init): Don't call add_objc_tree_codes.
7236 * objc/objc-lang.c (tree_code_type, tree_code_length,
7237 tree_code_name): Define.
7238 * toplev.c (lang_independent_init): Don't set
7239 tree_code_length[IDENTIFIER_NODE].
7240 * tree.c (tree_code_type, tree_code_length, tree_code_name):
7241 Delete definitions, moved to language front-ends.
7242 * tree.def (IDENTIFIER_NODE): Hardwire the length.
7243 * tree.h (tree_code_type, tree_code_length, tree_code_name):
7245 (tree_code_length): Change type to unsigned char.
7247 2002-03-12 Richard Henderson <rth@redhat.com>
7249 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
7250 internal visibility change.
7252 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7254 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
7255 validize_mem() instead of change_address to avoid clobbering
7258 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
7260 * c-lex.h (position_after_whitespace): Remove.
7262 2002-03-12 Jakub Jelinek <jakub@redhat.com>
7264 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
7265 (lex_string): Use unsigned char pointers.
7267 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
7269 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
7270 is not a valid memory_operand.
7272 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7274 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
7275 * config/xtensa/lib1funcs.asm: Fix copyright to include
7276 special case for libgcc files.
7277 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
7278 (__divsi3): Likewise.
7279 (__umodsi3): Likewise.
7280 (__modsi3): Likewise.
7281 * config/xtensa/lib2funcs.S: Fix copyright to include
7282 special case for libgcc files.
7284 2002-03-12 Tom Rix <trix@redhat.com>
7286 * collect2.c (resolve_lib_name): Move outside of
7287 OBJECT_FORMAT_COFF ifdef.
7288 (ignore_library): Same.
7290 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7292 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
7294 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7296 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
7297 to function_section before writing out the constant pool.
7299 2002-03-12 David Edelsohn <edelsohn@gnu.org>
7301 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
7303 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
7305 2002-03-12 Alan Modra <amodra@bigpond.net.au>
7307 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
7311 (cmpsi splitter): Likewise.
7312 (modsi3): Fail if <= 0.
7313 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
7314 redundant test when HOST_BITS_PER_WIDE_INT != 32.
7315 (reg_or_sub_cint64_operand): Likewise.
7316 (num_insns_constant_wide): Optimize sign extension.
7317 (rs6000_legitimize_address): Likewise.
7319 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
7321 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7322 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7324 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
7326 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
7327 address calculation.
7329 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
7331 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
7332 scratch register to DImode / TImode.
7333 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
7334 register used does not overlap the target.
7336 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7338 * Makefile.in (debug.o): Depend on debug.h.
7339 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
7340 * debug.c (do_nothing_debug_hooks): Likewise.
7341 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
7342 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
7343 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
7344 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
7345 * dwarfout.c (dwarf_debug_hooks): Likewise.
7346 * integrate.c (output_inline_function): Likewise.
7347 * objc/objc-act.c (synth_module_prologue): Likewise.
7348 * sdbout.c (sdb_debug_hooks): Likewise.
7349 * toplev.c (debug_hooks): Likewise.
7350 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7352 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7354 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
7355 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
7356 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
7357 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
7358 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
7359 * defaults.h (POINTER_SIZE): Define.
7360 * doc/tm.texi (POINTER_SIZE): Document default.
7362 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7364 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
7366 2002-03-11 Richard Henderson <rth@redhat.com>
7368 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
7369 if rebuild_label_notes_after_reload.
7371 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
7373 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
7374 emit pic register load if "internal" visibility.
7375 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
7376 (cris_expand_builtin_va_arg): Do all computations on trees.
7378 2002-03-11 Richard Henderson <rth@redhat.com>
7380 * rtlanal.c: Include recog.h.
7381 (keep_with_call_p): Fix thinko.
7382 * Makefile.in (rtlanal.o): Update dependencies.
7384 2002-03-11 Chris Meyer <cmeyer@gatan.com>
7386 * genflags.c (gen_insn): Use IS_VSPACE.
7387 * genoutput.c (output_insn_data): Likewise.
7388 (process_template): Likewise.
7390 2002-03-11 Richard Henderson <rth@redhat.com>
7392 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
7394 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
7396 * Makefile.in: Update.
7397 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
7398 Update documentation.
7399 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
7400 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
7402 2002-03-11 Zack Weinberg <zack@codesourcery.com>
7404 * Makefile.in: Give texi2pod its input file as a command line
7405 argument, not on stdin.
7407 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
7408 Daniel Berlin <dan@dberlin.org>
7410 C++ alias analysis improvement.
7411 * alias.c (record_component_aliases): Record aliases for base
7414 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
7416 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
7418 2002-03-11 Douglas B Rupp <rupp@gnat.com>
7420 * toplev.c (vms_fopen): Remove, not needed.
7422 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
7424 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
7426 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
7427 for FP, already done later.
7429 * toplev.c (debug_args): Add entry for VMS_DEBUG.
7430 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
7432 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
7434 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
7435 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
7436 LARGEST_EXPONENT_IS_NORMAL for the given mode.
7437 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
7438 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
7439 (ediv, emul, eldexp, esqrt): Likewise.
7440 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
7441 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
7442 (saturate): New function.
7443 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
7444 (make_nan): Use a saturation value instead of a NaN if
7445 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
7446 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
7447 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
7448 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
7449 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
7450 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
7451 !ROUND_TOWARDS_ZERO.
7452 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
7453 (ROUND_TOWARDS_ZERO): Document.
7455 2002-03-11 Andreas Jaeger <aj@suse.de>
7457 * cfg.c (dump_flow_info): Remove unused variable.
7459 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
7461 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
7462 computations on trees.
7464 2002-03-10 Richard Henderson <rth@redhat.com>
7467 * reload.c (copy_replacements_1): New.
7468 (copy_replacements): Use it to recurse through the rtx.
7470 2002-03-10 Richard Henderson <rth@redhat.com>
7472 * loop.c (strength_reduce): Compute number of iterations as
7473 unsigned HOST_WIDE_INT.
7475 2002-03-10 Richard Henderson <rth@redhat.com>
7477 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
7478 to move away from the end of the block.
7480 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
7482 PR preprocessor/5899
7483 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
7485 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7487 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
7489 * attribs.c (decl_attributes): Fix signed/unsigned warning.
7491 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
7493 * config/mmix/mmix.c: Improve comments.
7494 (mmix_target_asm_function_prologue): Drop variable
7495 empty_stack_frame. Don't allocate unused slot above fp.
7496 (mmix_target_asm_function_epilogue): Mirror prologue changes.
7497 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
7498 brace in first column.
7499 (enum reg_class): Ditto.
7500 (FIRST_PARM_OFFSET): Now 0.
7501 (USER_LABEL_PREFIX): Remove #if 0:d definition.
7503 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7505 * combine.c (make_extraction): Fix error in last change.
7507 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7509 * c4x.c (c4x_fp_reglist): Const-ify.
7510 * cris.c (cris_print_operand): Likewise.
7511 * i386.c (ix86_va_arg): Likewise.
7512 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
7513 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
7514 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
7515 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
7516 * mcore.h (regno_reg_class): Likewise.
7517 * mips.c (gen_int_relational): Likewise.
7518 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
7519 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
7520 * pdp11.c (move_costs): Likewise.
7521 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
7522 * s390.c (s390_branch_condition_mnemonic, regclass_map):
7524 * s390.h (regclass_map): Likewise.
7525 * sh.c (shift_amounts): Likewise.
7526 * sh.md (rotlsi3): Likewise.
7528 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
7530 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
7531 (ne0+5): Use new clobber to generate proper shift pattern.
7532 Patch by Michael Matz <matz@kde.org>.
7534 2002-03-09 Andreas Schwab <schwab@suse.de>
7536 * gcc.c (validate_all_switches): Also handle `%W{...}'.
7538 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
7540 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
7542 2002-03-09 Jakub Jelinek <jakub@redhat.com>
7545 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
7546 even for non-representable constants.
7548 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7550 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
7551 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
7552 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
7553 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
7554 (pop_function_context): Compute MAY_SHARE parameter for
7556 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
7557 (gen_mem_addressof): Call fixup_var_refs with new parm.
7559 * combine.c (make_extraction): Don't make extension of CONST_INT.
7561 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
7563 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
7564 in o32 and o64 ABIs.
7565 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
7566 but getting fixed-size structs passed in registers regardless of
7567 padding in o32 and o64 ABIs.
7569 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
7570 offset before loading address of argument passed by transparent
7573 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
7575 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
7577 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
7579 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
7580 marker such that registers after it are saved.
7582 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7584 * sparc.c (arith_4096_operand): Fix error in last change.
7586 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
7588 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
7591 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
7593 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
7596 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
7598 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
7600 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
7602 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
7603 removed; fix return value.
7604 * combine.c (combine_instructions): Dirtify blocks where we failed to
7605 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
7606 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
7608 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7610 * gcse.c (insert_insn_end_bb): Fix typo in last change.
7612 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
7614 * recog.c (peephole2_optimize): Re-distribute EH edges.
7616 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
7618 * expr.c (expand_expr): Use unsave lang hook.
7619 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
7620 (LANG_HOOKS_INITIALIZER): Update.
7621 * langhooks.h (struct lang_hooks): New hook unsave.
7622 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
7623 (unsave_expr_1): Remove unused lang_unsave_expr_now.
7624 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
7625 (unsave_expr_now): Remove.
7626 * tree.h (unsave_expr_now, lang_unsave,
7627 lang_unsave_expr_now): Remove.
7630 2002-03-08 Andreas Jaeger <aj@suse.de>
7632 * flow.c (propagate_block_delete_insn): Remove unused variable.
7634 2002-03-08 Kazu Hirata <kazu@hxi.com>
7636 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
7637 insn length for memory load/store.
7639 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
7641 * doc/install.texi (--with-libiconv-prefix): Document.
7643 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
7645 * doc/sourcebuild.texi: Fix typo.
7647 2002-03-08 Jakub Jelinek <jakub@redhat.com>
7650 * builtins.c (std_expand_builtin_va_arg): Do all computations on
7653 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7655 * rtl.c (copy_most_rtx): Move from here ...
7656 * emit-rtl.c (copy_most_rtx): ... to here.
7658 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
7660 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
7661 SUBTARGET_CPP_SIZE_SPEC.
7662 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
7664 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
7666 2002-03-07 Matt Hiller <hiller@redhat.com>
7668 * gensupport.c (first_dir_md_include): Renamed from include;
7669 change all references.
7670 (last_dir_md_include): Renamed from last_include; change all
7672 (init_md_reader): Unconditionally initialize base_dir whether or
7673 not filename is a relative path.
7675 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
7677 * config/fp-bit.c (_unord_f2): Compile it in even if
7678 US_SOFTWARE_GOFAST is enabled.
7680 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
7681 NULL_RTX. Set all HFmode operations as NULL_RTX.
7682 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
7683 NULL_RTX, try reversing the comparison and the operands.
7685 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
7687 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
7688 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
7691 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
7693 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
7695 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
7697 * basic-block.h (fixup_abnormal_edges): Declare.
7698 * reload1.c (fixup_abnormal_edges): New function.
7699 * reg-stack.c (convert_regs): Use it.
7701 * gcse.c (insert_insn_end_bb): Handle trapping insns.
7703 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
7705 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
7707 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
7708 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
7709 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
7710 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
7711 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
7712 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
7713 unless x and y could be infinite.
7714 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
7715 Check that the common type of both arguments is a real, even for
7716 targets without unordered comparisons. Allow an integer argument
7717 to be compared against a real.
7718 (expand_tree_builtin): Use expand_unordered_cmp.
7719 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
7720 * cse.c (fold_rtx): Likewise. Fix indentation.
7721 * fold-const.c (fold_real_zero_addition_p): New.
7722 (fold): Use it, and the new HONOR_... macros.
7723 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
7724 * jump.c (reversed_comparison_code_parts): After searching for
7725 the true comparison mode, use HONOR_NANS to decide whether it
7726 can be safely reversed.
7727 (reverse_condition_maybe_unordered): Remove IEEE check.
7728 * simplify-rtx.c (simplify_binary_operation): Use the new macros
7729 to decide which simplifications are valid. Allow the following
7730 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
7731 and (a - -b) to (a + b).
7732 (simplify_relational_operation): Use HONOR_NANS.
7733 * doc/tm.texi: Document the MODE_HAS_... macros.
7735 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7737 * combine.c (simplify_comparison): If simplifying a logical shift
7738 right and compare with constant, force the comparison to unsigned.
7740 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
7742 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
7744 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
7746 (alt_reg_names): Remove % for vrsave.
7748 2002-03-06 Richard Henderson <rth@redhat.com>
7750 PR optimization/5844
7751 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
7752 if used indicates we've already emitted one copy of an operand.
7753 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
7754 (gen_split): Supply a non-null used.
7756 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
7758 * reload1.c (reload): Unshare all rtl after reload is done.
7760 * simplify-rtx.c (simplify_plus_minus): Do not abort,
7761 but simply fail if the expression is too complex to simplify.
7762 (simplify_gen_binary): Handle simplify_plus_minus failures.
7764 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
7766 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
7767 consistently call delete_trivially_dead_insns after CSE and GCSE;
7768 fix DFI_life dumping; do jump threading after liveness; do crossjumping
7769 after liveness2; update comment in last crossjumping.
7770 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
7772 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
7774 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
7775 after completing fast dead code elimination.
7777 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
7780 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
7782 * version.c: Fix misplaced leading blanks on first line.
7784 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
7786 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
7788 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
7790 * cfgcleanup.c (mentions_nonequal_regs): New function.
7791 (thread_jump): Use it.
7792 * toplev.c (rest_of_compilation): Run jump threading after
7795 2002-03-06 Jakub Jelinek <jakub@redhat.com>
7797 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
7800 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
7802 * predict.c (estimate_bb_frequencies): Do not reload the
7803 frequencies from notes.
7805 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
7807 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
7808 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
7810 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
7811 delete_noop_moves): Return indeger.
7812 * flow.c (ndead): New variable.
7813 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
7814 BB argument; update callers.
7815 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
7816 (life_analysis): Do not call purge_all_dead_edges.
7817 (update_life_info): Return number of deleted insns; print statistics.
7818 (update_life_info_in_dirty_blocks): likewise.
7819 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
7820 return number of insns deleted.
7822 * cse.c: Include timevar.h
7823 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
7824 iterate until stabilizes; print statistics; return number of killed
7826 * Makefile.in: (cse.o): Add timevar.h dependency
7827 * rtl.h (delete_trivially_dead_insns): New.
7828 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
7829 * toplev.c (rest_of_compilation): Update callers.
7831 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
7832 (try_optimize_cfg): Do not update liveness.
7833 (cleanup-cfg): Loop until try_optimize_cfg and dead code
7834 removal stabilizes; use delete_trivially_dead_insns.
7836 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
7838 2002-03-05 Zack Weinberg <zack@codesourcery.com>
7840 * cppmain.c (setup_callbacks): Disable #pragma and #ident
7841 callbacks when processing assembly language.
7843 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
7845 * pa.h (ASM_FILE_END): Define.
7846 * som.h (ASM_FILE_END): Delete.
7848 * pa.c (function_arg): Don't pass floats in general registers in
7849 indirect calls if TARGET_ELF32.
7851 2002-03-05 Richard Henderson <rth@redhat.com>
7853 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
7855 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
7857 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
7859 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7861 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
7862 -r command line. Don't hide any symbols if not building
7865 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
7867 * cfg.c (dump_flow_info): Warn about profile mismatches.
7868 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
7869 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
7871 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7873 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
7874 wide volatile memory by parts.
7876 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7878 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
7881 2002-03-05 Richard Henderson <rth@redhat.com>
7883 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
7885 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
7887 * toplev.c (documented_lang_options): Document more
7888 language-specific options.
7889 * doc/invoke.texi (Warning Options): Correct documentation for
7890 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
7891 * c-decl.c (c_decode_option): Use a table to handle warning options.
7893 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
7895 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
7896 parameter to mmix_encode_section_info.
7897 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
7898 relocatably. Always produce ELF, not mmo if linking relocatably.
7899 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
7900 first is non-zero, don't add symbol prefix.
7901 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
7902 prototype accordingly.
7904 2002-03-04 Krister Walfridsson <cato@df.lth.se>
7906 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
7908 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
7910 * configure.in: Increase required makeinfo version to 4.1.
7911 * configure: Regenerate.
7913 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
7915 * .cvsignore: Remove *.info* and genrtl*; these files are generated
7918 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
7920 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
7921 * doc/invoke.texi: Fix @math uses.
7923 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
7925 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
7928 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
7930 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
7931 (powerpc-*-eabisimaltivec*): Same.
7933 * config/rs6000/t-ppcendian: New.
7935 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7937 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
7938 nonimmediate_src_operand and nonimmediate_lsrc_operand to
7939 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
7941 2002-03-03 Richard Henderson <rth@redhat.com>
7943 * toplev.c (rest_of_decl_compilation): Revert last two changes.
7945 2002-03-03 Zack Weinberg <zack@codesourcery.com>
7947 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
7948 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
7949 tree.c, config/m68k/m68k.c:
7950 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
7951 REAL_ARITHMETIC blocks unconditional. Delete some further
7952 #ifdef blocks predicated on REAL_ARITHMETIC.
7953 * flags.h, toplev.c: Delete remaining references to
7956 * doc/invoke.texi: Remove documentation of -fpretend-float.
7957 * doc/tm.texi: Describe the various REAL_* macros as provided by
7958 real.h, not by the target configuration files.
7960 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
7961 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
7962 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
7963 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
7964 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
7965 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
7966 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
7967 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
7968 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
7969 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
7970 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
7971 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
7972 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
7973 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
7974 config/xtensa/xtensa.h:
7975 Do not define, undefine, or mention in comments any of
7976 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
7977 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
7978 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
7979 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
7980 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
7981 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
7982 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
7983 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
7984 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
7986 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7988 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
7989 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
7990 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
7991 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
7992 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
7993 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
7995 * defaults.h (BITS_PER_WORD): Define.
7996 * doc/tm.texi (BITS_PER_WORD): Document default value.
7998 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
7999 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
8000 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
8002 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8004 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
8005 lieu of explicit sizeof/sizeof.
8006 * i386.c (override_options, ix86_init_mmx_sse_builtins,
8007 ix86_expand_builtin): Likewise.
8008 * mips.c (mips_add_gc_roots): Likewise.
8009 * mmix.c (mmix_output_condition): Likewise.
8010 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
8011 altivec_init_builtins): Likewise.
8012 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
8013 * cppexp.c (Nsuff, parse_number): Likewise.
8014 * cppinit.c (builtin_array_end): Likewise.
8015 * gcc.c (n_default_compilers, process_command): Likewise.
8016 * genpreds.c (output_predicate_decls): Likewise.
8017 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
8018 * lcm.c (N_ENTITIES): Likewise.
8019 * stor-layout.c (set_sizetype): Likewise.
8021 2002-03-03 Richard Henderson <rth@redhat.com>
8023 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
8024 for types or labels.
8026 2002-03-03 Richard Henderson <rth@redhat.com>
8028 * c-decl.c (start_decl): Initialized variables are not common.
8030 2002-03-02 Per Bothner <per@bothner.com>
8032 * gcc.c (option_map): Suport new --bootclasspath option.
8033 --CLASSPATH is now just an alias for --classpath.
8035 2002-03-02 Richard Henderson <rth@redhat.com>
8037 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
8038 load if "internal" visibility.
8039 * doc/extend.texi: Document visibility meanings.
8041 2002-03-02 Richard Henderson <rth@redhat.com>
8043 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
8044 to functions as well.
8046 2002-03-02 Richard Henderson <rth@redhat.com>
8048 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
8049 (handle_visibility_attribute): Don't call assemble_visibility.
8050 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
8051 without asmspec. Invoke assemble_alias when needed.
8052 * varasm.c (maybe_assemble_visibility): New.
8053 (assemble_start_function, assemble_variable, assemble_alias): Use it.
8055 2002-03-02 Richard Henderson <rth@redhat.com>
8057 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
8058 invoke ENCODE_SECTION_INFO with first call flag.
8060 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8061 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8062 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
8063 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
8064 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
8065 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
8066 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
8067 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
8068 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
8069 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
8070 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
8071 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
8072 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
8073 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
8074 config/mcore/mcore-protos.h, config/mcore/mcore.c,
8075 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
8076 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
8077 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
8078 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
8079 config/sh/sh.h, config/sparc/sparc.h,
8080 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
8081 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
8082 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
8083 FIRST argument. As needed, examine it and do nothing.
8085 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
8086 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8087 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
8089 * config/arm/t-pe (pe.o): Add dependencies.
8091 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8093 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
8094 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
8095 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
8096 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
8097 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
8098 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
8099 * defaults.h (BITS_PER_UNIT): Define.
8100 * doc/tm.texi (BITS_PER_UNIT): Document default value.
8102 2002-03-02 Kazu Hirata <kazu@hxi.com>
8104 * config/h8300/h8300-protos.h: Add a prototype for
8105 compute_a_shift_length.
8106 * config/h8300/h8300.c (h8300_asm_insn_count): New.
8107 (compute_a_shift_length): Likewise.
8108 (h8300_adjust_insn_length): Do not adjust insn length of shift
8110 * config/h8300/h8300.md (anonymous shift patterns): Use
8111 compute_a_shift_length.
8113 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8115 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
8118 * emit-rtl.c (offset_address): Call update_temp_slot_address.
8120 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8122 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
8123 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
8124 * flags.h (flag_zero_initialized_in_bss): Declare.
8125 * toplev.c (flag_zero_initialized_in_bss): New flag.
8126 (lang_independent_options): Add flag_zero_initialized_in_bss.
8127 * tree.c (initializer_zerop): New function.
8128 * tree.h (initializer_zerop): Declare.
8129 * varasm.c (assemble_variable): If we can emit bss, put zero
8130 initializers in the bss section.
8132 2002-03-02 Alan Modra <amodra@bigpond.net.au>
8134 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
8135 like more than one symbol per .weak directive.
8137 2002-03-01 Richard Henderson <rth@redhat.com>
8139 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
8140 adjust argument_pointer by pretend_args_size.
8141 (ia64_va_start): Adjust va_start address by -pretend_args_size.
8143 2002-03-01 Kazu Hirata <kazu@hxi.com>
8145 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
8147 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
8149 * toplev.c (rest_of_compilation): Delete dead jumptables before
8151 * flow.c (delete_dead_jumptables): Make global.
8152 * rtl.h (delete_dead_jumptables): Declare.
8154 2002-03-01 David Edelsohn <edelsohn@gnu.org>
8156 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
8157 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
8158 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
8160 2002-03-01 Kazu Hirata <kazu@hxi.com>
8162 * config/h8300/h8300-protos.h: Fix formatting.
8163 * config/h8300/h8300.c: Likewise.
8164 * config/h8300/h8300.h: Likewise.
8166 2002-03-01 Kazu Hirata <kazu@hxi.com>
8168 * config/h8300/h8300.c (print_operand): Support 16-bit
8170 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
8172 2002-02-28 Richard Henderson <rth@redhat.com>
8174 * expmed.c (store_bit_field): Prevent generation of CONCATs;
8175 pun complex values as integers; use gen_lowpart instead of
8177 (extract_bit_field): Likewise.
8179 2002-03-01 Alan Modra <amodra@bigpond.net.au>
8180 David Edelsohn <edelsohn@gnu.org>
8182 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
8183 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
8184 (SUPPORTS_WEAK): Likewise.
8185 * output.h (add_weak): Add tree param.
8186 * varasm.c (add_weak): Likewise. Save decl.
8187 (struct weak_syms): Add decl field.
8188 (mark_weak_decls): New function.
8189 (init_varasm_once): ggc_add_root mark_weak_decls.
8190 (assemble_start_function): Use ASM_WEAKEN_DECL.
8191 (assemble_variable): Likewise.
8192 (assemble_alias): Likewise.
8193 (declare_weak): Pass decl to add_weak.
8194 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
8195 (remove_from_pending_weak_list): Declare and define for
8197 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
8198 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
8199 * defaults.h (SUPPORTS_WEAK): Likewise.
8200 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8201 .weak for code sym. Do emit .size for descriptor sym.
8202 (ASM_DECLARE_FUNCTION_SIZE): Define.
8203 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
8204 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
8205 .lglobl unless TARGET_XCOFF. Formatting fixes.
8206 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8208 (HANDLE_PRAGMA_WEAK): Remove.
8209 (ASM_WEAKEN_LABEL): Remove.
8210 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
8212 2002-03-01 Jason Merrill <jason@redhat.com>
8214 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
8215 (TARGET_EXPR_CLEANUP): New macro.
8217 2002-02-28 Steve Ellcey <sje@cup.hp.com>
8219 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
8220 to take ptr_extend into account as third type of extension.
8221 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
8222 fields used by SUBREG_PROMOTED_UNSIGNED_P.
8223 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
8224 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
8225 * calls.c (precompute_arguments): Use new macro.
8226 (expand_call): Ditto.
8227 * combine.c (nonzero_bits): Ditto.
8228 (record_promoted_value): Ditto.
8229 * expr.c (store_expr): Ditto.
8230 (expand_expr): Ditto.
8231 * function.c (assign_parms): Ditto.
8233 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
8235 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
8236 override -shared and -shared-libgcc.
8238 2002-02-28 David O'Brien <obrien@FreeBSD.org>
8240 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
8242 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
8245 2002-02-28 Richard Henderson <rth@redhat.com>
8247 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
8248 4 cycle latency from MM producers.
8249 (ia64_internal_sched_reorder): Likewise with pipeline flush.
8251 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8253 * mklibgcc.in: Don't use GNU make extension.
8255 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
8257 * c-parse.in (STATIC): New terminal.
8258 (scspec): New non-terminal. Update productions accordingly.
8259 (program): Remove bogus ifc / end ifc.
8260 (array_declarator): Simplify production using STATIC.
8262 2002-02-28 Jim Meyering <meyering@lucent.com>
8264 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
8265 \a still means TARGET_BELL.
8267 2002-02-28 Richard Henderson <rth@redhat.com>
8269 * haifa-sched.c (sched_emit_insn): New.
8270 (schedule_block): Use last_scheduled_insn to track last insn.
8271 * sched-int.h (sched_emit_insn): Prototype.
8272 * config/ia64/ia64.c (last_issued): Remove.
8273 (ia64_variable_issue): Don't set it.
8274 (nop_cycles_until): Use sched_emit_insn.
8276 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
8278 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
8281 2002-02-28 Kazu Hirata <kazu@hxi.com>
8283 * config/h8300/h8300.c: Fix formatting.
8284 * config/h8300/h8300.h: Likewise.
8286 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
8288 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
8289 which may overwrite the high byte of the frame pointer.
8291 2002-02-28 Bo Thorsen <bo@suse.de>
8293 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
8294 (STARTFILE_SPEC): Add 64 bit files.
8295 (ENDFILE_SPEC): Likewise.
8297 2002-02-28 Jason Merrill <jason@redhat.com>
8299 * c-decl.c (finish_function): Only warn about missing return
8300 statement with -Wreturn-type.
8302 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
8304 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
8306 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
8307 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
8309 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
8311 * basic-block.h (BB_REACHABLE): Renumber.
8312 (BB_DIRTY, BB_NEW): New flags.
8313 (clear_bb_flags): Declare.
8314 (update_life_info_in_dirty_blocks): Declare.
8315 * cfg.c (clear_bb_flags): New function.
8316 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
8317 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
8318 reorder_insns, emit_insn_after): Mark block as dirty.
8319 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
8320 (update_life_info_in_dirty_blocks): New function.
8321 * recog.c (apply_change_group): Dirtify block.
8323 * cse.c (cse_insn): Reorder emitting of jump insn to keep
8325 * gcse.c (delete_null_pointer_checks): Likewise.
8327 * toplev.c (dump_file_index): Move cse2 after bp,
8329 (dump_file_info): Similary.
8330 (rest_of_compilation): Avoid most of CFG rebuilds;
8331 do first if converision after null pointer checks, do cse2
8332 after branch prediction; avoid full liveness rebuild after
8333 initializing subregs.
8334 * invoke.texi (-d options): Document -du, renumber.
8336 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
8337 (notice_new_block): Do not set BB_UPDATE_LIFE.
8338 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
8339 merge_blocks_move_successor_nojumps, merge_blocks,
8340 try_crossjump_to_edge): Likewise.
8341 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
8342 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
8343 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
8344 (merge_of_block): Do not use life_data_ok.
8345 (find_if_case_1): Do not use SET_UPDATE_LIFE.
8346 (if_convert): Use BB_DIRTY mechanizm to update life.
8347 * lcm.c (optimize_mode_switching): Update
8348 update_life_info_in_dirty_blocks
8350 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
8352 * Makefile.in (integrate.o): Update.
8353 * c-decl.c (copy_lang_decl): Rename.
8354 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8355 * integrate.c: Include langhooks.h.
8356 (copy_decl_for_inlining): Update to use langhook.
8357 * langhooks-def.h (lhd_do_nothing_t,
8358 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
8359 (LANG_HOOKS_INITIALIZER): Update.
8360 * langhooks.c (lhd_do_nothing_t): New.
8361 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
8362 * tree.h (copy_lang_decl): Remove.
8364 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8366 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
8368 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
8369 POST_DEC, and POST_MODIFY.
8371 2002-02-27 Zack Weinberg <zack@codesourcery.com>
8373 * c-typeck.c (digest_init): Remove unused parameter; all
8376 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
8378 * expmed.c (expand_shift): Correctly test for low part of a
8381 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
8383 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
8384 insn UIDs with insn addresses.
8386 2002-02-27 Zack Weinberg <zack@codesourcery.com>
8388 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
8389 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
8390 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
8391 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
8392 gcc.c, toplev.c: Delete code implementing -traditional mode.
8394 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
8395 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
8396 Document removal of -traditional mode for compilation, and
8397 remove documentation only relevant to that mode.
8399 * config/nextstep.h, config/ptx4.h, config/svr4.h,
8400 config/convex/convex.h, config/d30v/d30v.h,
8401 config/i386/dgux.h, config/i386/osf1elf.h,
8402 config/i386/osfelf.h, config/i386/osfrose.h,
8403 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
8404 config/m68k/hp310.h, config/m88k/dgux.h,
8405 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
8406 config/m88k/m88k.h, config/m88k/openbsd.h,
8407 config/mips/abi64.h, config/mips/osfrose.h,
8408 config/mips/svr4-5.h, config/mips/svr4-t.h,
8409 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8410 config/stormy16/stormy16.h: Remove all references to
8411 -traditional from target specs. Delete all mention of the
8412 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
8413 delete a couple of commented-out definitions of
8414 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
8417 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
8418 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
8420 2002-02-27 Zack Weinberg <zack@codesourcery.com>
8422 * mklibgcc.in: Don't use \n in a line subject to
8423 interpretation by echo.
8425 2002-02-27 Graham Stott <grahams@redhat.com>
8427 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
8430 * loop.c (prescan_loop): Handle PARALLEL.
8432 * unroll.c (loop_iterations): Return 0 if the add_val for
8435 * final.c (output_operand_lossage): Constify PFX_STR.
8437 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
8439 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
8441 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
8442 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
8444 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
8446 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8448 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
8450 * cpplex.c (_cpp_lex_token): Handle directives in macro
8452 * cpplib.c (_cpp_handle_directive): Save and restore state
8453 if parsing macro args when entering a directive.
8454 * cppmacro.c (collect_args): No need to handle directives
8456 (enter_macro_context, replace_args): Use the original macro
8457 definition in case it was redefined whilst collecting arguments.
8461 2002-02-26 David Edelsohn <edelsohn@gnu.org>
8463 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
8464 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
8465 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
8467 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
8468 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
8469 (load_toc_v4_PIC_2): Same.
8471 2002-02-26 Alan Modra <amodra@bigpond.net.au>
8473 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
8475 2002-02-26 Richard Henderson <rth@redhat.com>
8477 * config/alpha/alpha.md (ashldi_se): Re-enable.
8479 2002-02-26 Richard Henderson <rth@redhat.com>
8481 * config/alpha/alpha.c (alpha_encode_section_info): Examine
8482 MODULE_LOCAL_P; improve commentary.
8484 2002-02-26 Zack Weinberg <zack@codesourcery.com>
8486 * doc/cpp.texi: Clarify documentation of relationship between
8489 2002-02-26 Kazu Hirata <kazu@hxi.com>
8491 * config/h8300/h8300-protos.h: Update the prototype for
8492 compute_logical_op_length. Add the prototype for
8493 compute_logical_op_cc.
8494 * config/h8300/h8300.c (compute_logical_op_length): Figure out
8496 (compute_logical_op_cc): New.
8497 * config/h8300/h8300.md: Combine all the logical op patterns
8498 in HImode and SImode. Use compute_logical_op_cc.
8500 2002-02-26 Kelley Cook <kelleycook@comcast.net>
8502 * config/i386/i386.c (print_operand): Don't append ATT-style
8503 length suffixs to x87 opcodes when in Intel mode.
8505 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
8507 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
8508 (init_emit_once): Update calls.
8509 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
8510 (init_syntax_once): Prototype.
8512 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
8514 * pa-linux.h (LIB_SPEC): Update definition.
8515 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8517 2002-02-26 Richard Henderson <rth@redhat.com>
8519 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
8520 if we emitted a stop bit.
8522 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8524 * configure.in (libgcc_visibility): Substitute.
8525 * configure: Rebuilt.
8526 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
8527 defined symbols .hidden.
8529 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8531 * attribs.c (c_common_attribute_table): Add visibility.
8532 (handle_visibility_attribute): New function.
8533 * varasm.c (assemble_visibility): New function.
8534 * output.h (assemble_visibility): Add prototype.
8535 * tree.h (MODULE_LOCAL_P): Define.
8536 * crtstuff.c (__dso_handle): Use visibility attribute.
8537 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
8538 for MODULE_LOCAL_P symbols too.
8539 * config/ia64/ia64.c (ia64_encode_section_info): Handle
8540 MODULE_LOCAL_P symbols the same way as local symbols.
8541 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
8542 into .sdata/.sbss by the user.
8543 * doc/extend.texi (Function Attributes): Document visibility
8546 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8549 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
8550 STRING_CST initializer spanning the whole variable without
8552 If expand_expr returned MEM, don't use it.
8554 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
8556 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
8557 generate a die for the lexical block.
8559 2002-02-26 Kazu Hirata <kazu@hxi.com>
8561 * config/h8300/h8300-protos.h: Add a prototype for
8562 compute_logical_op_length.
8563 * config/h8300/h8300.c (compute_logical_op_length): New.
8564 * config/h8300/h8300.md (anonymous logical patterns): Use
8565 compute_logical_op_length for length.
8567 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8569 * dwarf2out.c (modified_type_die): Do not call type_main_variant
8571 (gen_type_die): Same.
8573 * attribs.c (handle_vector_size_attribute): Set debug information.
8575 2002-02-26 Daniel Egger <degger@fhm.edu>
8577 * config/rs6000/rs6000.md: Swap define_insn attributes to
8578 fix incorrect generation of merge high instructions instead
8581 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8583 * c-typeck.c (really_start_incremental_init): Use
8584 bitsize_zero_node for vectors.
8586 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8588 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
8589 ("*set_vrsave_internal"): Same.
8591 2002-02-25 Richard Henderson <rth@redhat.com>
8593 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
8594 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
8596 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8599 * config/i386/i386.c (ix86_return_pops_args): Only pop
8600 fake structure return argument if it was passed on the stack.
8602 2002-02-25 Jason Merrill <jason@redhat.com>
8604 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
8607 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
8609 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
8610 link with shared_name only.
8611 * doc/invoke.texi (Link Options): Document new behavior.
8613 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
8615 * c-typeck.c (push_init_level): Handle vectors.
8617 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
8619 * config/sparc/sparc.c (const64_high_operand): Zero-extend
8620 operands of SPARC_SETHI_P.
8621 (input_operand): Likewise.
8622 (sparc_emit_set_const32): Likewise.
8623 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
8624 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
8625 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
8626 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
8627 (movdi_insn_sp64_vis): Likewise.
8628 (movdi split, movdf split): Use SETHI32.
8629 * doc/md.texi: Document SPARC constraints L, M and N.
8631 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
8633 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
8634 ("*set_vrsave_internal"): use mfspr for Darwin.
8636 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
8637 gen_get_vrsave_internal.
8639 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8641 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
8643 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
8645 * cpplex.c (cpp_interpret_charconst): Get signedness or
8646 otherwise of wide character constants correct.
8647 * cppexp.c (lex): Get signedness of wide charconsts correct.
8649 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8651 * optabs.c (widen_operand): Only call convert_modes for
8652 promoted SUBREG if signedness matches.
8653 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
8655 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8657 * cpplib.c (glue_header_name): Use local buffer to build up
8660 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8662 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
8664 2002-02-23 Kazu Hirata <kazu@hxi.com>
8666 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
8667 H8/300[HS] separately.
8668 * config/h8300/h8300.md: Remove the early clobber constraint
8669 from bit field patterns.
8671 2002-02-23 Kazu Hirata <kazu@hxi.com>
8673 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
8675 (mulhisi3): Likewise.
8676 (umulqisi3): Likewise.
8677 (umulhisi3): Likewise.
8679 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8681 * cppinit.c (output_deps): Correct test for stdout output.
8682 (init_dependency_output): Cure warning.
8684 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8686 * expr.c (store_expr): When converting expression to promoted
8687 equivalent type, allow using SUBREG_REG of TARGET as the target
8688 of the expansion of EXP.
8689 * loop.c (basic_induction_var, case SUBREG): Always look inside.
8690 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
8691 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
8692 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
8693 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
8695 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
8697 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
8698 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
8699 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
8701 2002-02-23 Jakub Jelinek <jakub@redhat.com>
8703 PR optimization/5747
8704 * loop.c (scan_loop): Update reg info if move_movables created new
8707 2002-02-23 David Edelsohn <edelsohn@gnu.org>
8709 * gcc.c (init_gcc_spec): Revert last change.
8711 2002-02-23 David Edelsohn <edelsohn@gnu.org>
8713 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
8714 gpc_reg_operand constraint.
8716 2002-02-23 Alan Modra <amodra@bigpond.net.au>
8718 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
8719 Simplify comparison of `low'.
8720 (add_operand): Fix formatting.
8721 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
8722 (mask_operand): Disallow mask to wrap in 64-bit mode.
8723 (rs6000_stack_info): Remove redundant test setting push_p.
8724 (output_toc): Fix formatting.
8725 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
8726 cc_reg_not_cr0_operand constraint.
8727 (booldi3, boolcdi3 splitters): Same.
8729 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
8731 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
8733 2002-02-22 David Edelsohn <edelsohn@gnu.org>
8735 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
8736 gcc invoked with -shared-libgcc.
8738 2002-02-22 Jakub Jelinek <jakub@redhat.com>
8741 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
8742 decl if any of elements was TREE_USED.
8744 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
8746 * config/sparc/sol2.h: Don't include sys/mman.h.
8747 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
8748 (arith_4096_operand): Don't throw high bits away.
8749 (const64_operand): Take sign extension of CONST_INTs into account.
8750 (const64_high_operand, sparc_emit_set_const32): Likewise.
8751 (GEN_HIGHINT64): Likewise.
8752 (sparc_emit_set_const64_quick1): Likewise.
8753 (const64_is_2insns): Likewise.
8754 (print_operand): Use trunc_int_for_mode for sign extension.
8755 * config/sparc/sparc.h (SMALL_INT32): Likewise.
8756 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
8757 chars. Assume CONST_INT is already properly sign-extended.
8758 (movdi split): Sign-extend each SImode part.
8759 (andsi3 split): Don't mask high bits off, so that result
8760 remains properly sign-extend.
8761 (iorsi3 split): Likewise.
8762 (xorsi3 split): Likewise.
8764 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
8766 * fold-const.c (fold): Fix typo in comments.
8768 2002-02-21 Diego Novillo <dnovillo@redhat.com>
8770 * Makefile.in (langhooks.o): Update dependencies.
8772 2002-02-21 Diego Novillo <dnovillo@redhat.com>
8774 * langhooks.c: Include flags.h.
8776 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
8778 * testsuite/gcc.dg/attr-alwaysinline.c: New.
8780 * c-common.c (c_common_post_options): Set inline trees by
8783 * doc/extend.texi (Function Attributes): Document always_inline
8785 Update documentation about inlining when not optimizing.
8787 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
8789 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
8790 unless DECL_ALWAYS_INLINE.
8792 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
8793 unless DECL_ALWAYS_INLINE.
8794 (c_disregard_inline_limits): Disregard if always_inline set.
8796 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
8797 Disregard if always_inline set.
8798 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
8799 unless DECL_ALWAYS_INLINE.
8801 * attribs.c (handle_always_inline_attribute): New.
8802 (c_common_attribute_table): Add always_inline.
8804 * config/rs6000/altivec.h: Add prototypes for builtins
8805 requiring the always_inline attribute.
8807 2002-02-21 Eric Christopher <echristo@redhat.com>
8809 * expmed.c (store_bit_field): Try to simplify the subreg
8810 before generating a new one when when the mode size of
8811 value is less than maxmode.
8813 2002-02-21 Richard Henderson <rth@redhat.com>
8815 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
8816 than gen_rtx_PLUS to form the sum.
8817 * explow.c (force_reg): Rearrange to not allocate new pseudo
8818 when force_operand returns a register.
8819 * expr.c (expand_assignment): Allow offset_rtx expansion to
8820 return a sum. Do not force addresses into registers.
8821 (expand_expr): Likewise.
8822 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
8823 to canonicalize arithmetic that didn't simpify.
8824 (simplify_plus_minus): New argument force; update
8825 all callers. Don't split CONST unless we can do something with it,
8826 and wouldn't lose the constness of the operands.
8828 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
8829 that we generated earlier.
8831 2002-02-21 Tom Tromey <tromey@redhat.com>
8833 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8834 (output_line_info): Use constant `1', with a long explanatory
8836 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
8838 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
8840 * jump.c (redirect_jump): If old label has no UID, don't try to
8843 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
8845 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
8846 If input is constant, do shifts at compile time.
8848 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
8850 * doc/extend.texi: Fix some more overfull hboxes.
8852 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8854 PR optimization/4994
8855 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
8858 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8861 * expr.h (expand_and): Add mode argument.
8862 * expmed.c (expand_and): Add mode argument.
8863 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
8864 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
8865 * except.c (expand_builtin_extract_return_addr): Likewise.
8866 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
8867 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
8868 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
8869 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
8870 * config/c4x/c4x.md: Use GEN_INT (x) instead of
8871 gen_rtx (CONST_INT, VOIDmode, x).
8873 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8876 * stmt.c (warn_if_unused_value): Move side effects test once more.
8878 2002-02-20 Torbjorn Granlund <tege@swox.com>
8880 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
8881 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
8883 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
8885 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
8886 SUBREG or ZERO_EXTEND.
8888 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
8890 * sh.h (current_function_anonymous_args): Remove.
8891 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
8892 of current_function_varargs and current_function_stdarg is set.
8893 * sh.c (sh_expand_prologue): Check current_function_varargs /
8894 current_function_stdarg / TARGET_SH5 instead of
8895 current_function_anonymous_args.
8897 * sh64.h (TARGET_VERSION): Define.
8899 2002-02-20 David Edelsohn <edelsohn@gnu.org>
8901 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
8902 VRSAVE_REGNO on TARGET_ALTIVEC.
8904 2002-02-20 Alan Modra <amodra@bigpond.net.au>
8906 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
8907 bits of SImode const_int.
8908 (includes_rshift_p): Likewise.
8909 (print_operand): Call mask_operand and mask64_operand with correct
8911 (rs6000_output_function_epilogue): Pad traceback table to word.
8912 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
8913 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
8914 mask64_operand with correct mode.
8915 (FUNCTION_ARG_REGNO_P): Correct parentheses.
8917 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8920 * varasm.c (get_pool_constant_mark): New.
8921 * rtl.h (get_pool_constant_mark): Add prototype.
8922 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
8923 be represented if it has not been output.
8925 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
8927 * combine.c (do_SUBST): Sanity check substitutions of
8928 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
8929 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
8930 CONST_INT into its operand.
8931 (known_cond): Likewise, for ZERO_EXTEND.
8932 * simplify-rtx.c (simplify_unary_operation): Fix condition to
8933 allow for simplification of wide modes. Reject CONST_INTs in
8934 ZERO_EXTEND when their actual mode is not given.
8936 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
8938 * c-decl.c (pushdecl): If no global declaration is found for an
8939 extern declaration in block scope, try a limbo one.
8941 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8944 * c-common.c (pointer_int_sum): Moved from...
8945 * c-typeck.c (pointer_int_sum): ...here.
8946 * c-common.h (pointer_int_sum): Add prototype.
8948 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8951 * c-decl.c (duplicate_decls): Return 0 if issued error about
8954 2002-02-20 Roger Sayle <roger@eyesopen.com>
8955 Jakub Jelinek <jakub@redhat.com>
8958 * tree.c (host_integerp): Ensure that the constant integer is
8959 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
8960 when pos is zero or non-zero respectively. Clarify comment.
8961 * c-format.c (check_format_info_recurse): Fix host_integerp
8962 usage; the pos argument should be zero when assigning to a
8963 signed HOST_WIDE_INT.
8965 2002-02-20 Richard Henderson <rth@redhat.com>
8967 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
8968 of the operand, rather than assuming TImode.
8969 (ix86_expand_binop_builtin): Cope with commutative patterns
8970 using nonimmediate_operand for both operands.
8971 (ix86_expand_timode_binop_builtin): Likewise.
8972 (ix86_expand_store_builtin): Validate operand 1.
8973 (ix86_expand_unop1_builtin): Likewise.
8975 2002-02-20 Philip Blundell <philb@gnu.org>
8978 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
8980 2002-02-20 Richard Henderson <rth@redhat.com>
8983 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
8985 2002-02-20 Tom Tromey <tromey@redhat.com>
8987 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8988 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8989 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8990 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8991 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
8994 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
8996 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
8997 for (const_int 0) in X not just INTVAL.
8999 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
9001 * doc/extend.texi: Avoid or reduce overfull hboxes.
9003 2002-02-20 Diego Novillo <dnovillo@redhat.com>
9005 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
9006 operations if the field does not start at a mode boundary.
9008 2001-02-20 Joel Sherrill <joel@OARcorp.com>
9010 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
9011 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
9012 Also done for -Acpu and -Amachine.
9014 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
9016 * cppinit.c (init_dependency_output): Take deps output file
9017 from -o if none given with -MF. Suppress normal output.
9018 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
9019 * doc/cpp.texi, doc/invoke.texi: Update.
9021 2002-02-19 Zack Weinberg <zack@codesourcery.com>
9023 * toplev.c (output_quoted_string): Write unprintable
9024 characters with octal escapes.
9026 2002-02-19 David Edelsohn <edelsohn@gnu.org>
9028 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
9029 really_call_used[VRSAVE_REGNO] if not Altivec.
9031 2002-02-19 Alan Modra <amodra@bigpond.net.au>
9033 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
9035 (constant_pool_expr_1): Fix formatting.
9036 (rs6000_legitimize_reload_address): Likewise.
9038 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9040 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
9041 now that we have one.
9043 2002-02-19 Zack Weinberg <zack@codesourcery.com>
9045 * tree.h (struct tree_common): Remove aux. Add unused_0 at
9046 end of first block of bitfields (which was only seven bits);
9047 rename dummy to unused_1; remove comment which is no longer true.
9049 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
9051 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
9053 2002-02-19 Philip Blundell <pb@nexus.co.uk>
9056 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
9060 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
9061 arm_is_longcall_p rather than inspecting call-type cookie
9063 (call_value_insn) [TARGET_THUMB]: Likewise.
9065 2002-02-19 Graham Stott <grahams@redhat.com>
9067 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
9069 2002-02-19 David Edelsohn <edelsohn@gnu.org>
9071 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
9072 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
9073 (FP_SAVE_INLINE): Delete.
9075 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
9076 * config/rs6000/eabi.asm: Remove ABI save restore routines.
9077 * config/rs6000/t-ppccomm: Build crtsavres.o.
9078 * config/rs6000/crtsavres.asm: New file.
9080 2002-02-19 Philip Blundell <philb@gnu.org>
9082 * config/arm/arm.c (use_return_insn): Don't reject interrupt
9084 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
9085 (output_return_instruction): Allow interrupt functions to return with
9086 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
9087 (arm_expand_prologue): Subtract 4 before stacking LR in an
9090 2002-02-19 Philip Blundell <pb@nexus.co.uk>
9092 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
9093 decl, not just FUNCTION_DECL.
9094 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
9095 (arm_assemble_integer): Likewise.
9096 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
9099 2002-02-19 matthew green <mrg@eterna.com.au>
9101 * config.gcc (sparc-*-netbsdelf*): Enable target.
9102 (sparc64-*-netbsd*): New target.
9103 * config/sparc/netbsd-elf.h: New file.
9104 * config/sparc/t-netbsd64: New file.
9106 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
9108 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
9110 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
9112 * doc/invoke.texi: explicitly list the style guidelines that
9113 -Weffc++ checks for.
9115 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
9117 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
9119 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
9122 * gcc.c (cpp_unique_options): Treat -o as indicating object file
9123 only if not -E. If -E, pass -o through to the preprocessor.
9125 2002-02-19 Kazu Hirata <kazu@hxi.com>
9127 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
9128 register number with an appropriate macro.
9130 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
9132 * doc/rtl.texi (Constants): Close @code tag.
9134 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
9136 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
9137 ("mmx_uavgv4hi3"): Same.
9138 ("pmulhrwv4hi3"): Same.
9140 * tree-inline.c (walk_tree): Handle vectors.
9142 * c-common.c (constant_expression_warning): Handle vectors.
9143 (overflow_warning): Same.
9145 * sched-deps.c (sched_analyze_2): Handle vectors.
9147 * rtlanal.c (rtx_unstable_p): Handle vectors.
9148 (rtx_varies_p): Same.
9149 (count_occurrences): Same.
9150 (regs_set_between_p): Same.
9151 (modified_between_p): Same.
9152 (modified_in_p): Same.
9153 (volatile_insn_p): Same.
9154 (volatile_refs_p): Same.
9155 (side_effects_p): Same.
9157 (inequality_comparisons_p): Same.
9158 (replace_regs): Same.
9159 (computed_jump_p_1): Same.
9161 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
9163 (inner_mode_array): New.
9164 (copy_rtx): Handle vectors.
9165 (copy_most_rtx): Same.
9166 (rtx_equal_p): Same.
9167 (get_mode_alignment): Adjust for vectors.
9169 * resource.c (mark_referenced_resources): Handle vectors.
9170 (mark_set_resources): Same.
9172 * reload1.c (eliminate_regs): Handle vectors.
9173 (elimination_effects): Same.
9174 (scan_paradoxical_subregs): Same.
9176 * reload.c (subst_reg_equivs): Handle vectors.
9178 * regrename.c (scan_rtx): Handle vectors.
9180 * regclass.c (reg_scan_mark_refs): Handle vectors.
9182 * recog.c (find_single_use_1): Handle vectors.
9184 * local-alloc.c (equiv_init_varies_p): Handle vectors.
9185 (contains_replace_regs): Same.
9186 (memref_referenced_p): Same.
9188 * integrate.c (copy_rtx_and_substitute): Handle vectors.
9189 (subst_constants): Same.
9191 * genattrtab.c (attr_copy_rtx): Handle vectors.
9192 (encode_units_mask): Same.
9193 (clear_struct_flag): Same.
9194 (count_sub_rtxs): Same.
9196 * gcse.c (want_to_gcse_p): Handle vectors.
9197 (oprs_unchanged_p): Same.
9198 (hash_expr_1): Same.
9199 (oprs_not_set_p): Same.
9200 (expr_killed_p): Same.
9201 (compute_transp): Same.
9202 (store_ops_ok): Same.
9204 * function.c (purge_addressof_1): Do not allow paradoxical subregs
9206 (fixup_var_refs_1): Same.
9207 (instantiate_virtual_regs_1): Same.
9209 * fold-const.c (operand_equal_p): Handle vectors.
9211 (rtl_expr_nonnegative_p): Same.
9213 * flow.c (mark_used_regs): Handle vectors.
9215 * df.c (df_uses_record): Handle vectors.
9217 * cselib.c (cselib_subst_to_values): Handle vectors.
9218 (cselib_mem_conflict_p): Same.
9221 * cse.c (canon_reg): Handle vectors.
9223 (cse_process_notes): Same.
9224 (count_reg_usage): Same.
9227 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
9229 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
9231 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
9232 (gen_rtx): Handle CONST_VECTOR.
9233 (gen_const_vector_0): New.
9234 (copy_rtx_if_shared): CONST_VECTORs can be shared.
9235 (reset_used_flags): Same.
9236 (copy_insn_1): Same.
9237 (initializer_constant_valid_p): Handle VECTOR_CST.
9239 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
9241 * doc/rtl.texi (Constants): Document const_vector.
9242 (CONST0_RTX): Update for vectors.
9243 (RTL sharing): Same.
9245 * print-tree.c (print_node): Add case for VECTOR_CST.
9247 * tree.h (TREE_VECTOR_CST_ELTS): New.
9248 (struct tree_vector): New.
9249 (union tree_node): Add vector node.
9250 (build_vector): Add prototype.
9252 * tree.def (VECTOR_CST): New.
9254 * tree.c (build_vector): New.
9256 * expmed.c (make_tree): Handle CONST_VECTOR.
9258 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
9259 (CONST_VECTOR_ELT): New.
9260 (CONST_VECTOR_NUNITS): New.
9262 * machmode.h (GET_MODE_INNER): New.
9263 (DEF_MACHMODE): Accept 8th arg.
9265 * machmode.def: Add 8th argument for vector inner mode.
9266 Add inner vector modes for vectors.
9268 * rtl.def (VEC_CONST): Remove.
9269 (CONST_VECTOR): New.
9271 * expr.c (clear_storage): Allow vectors.
9272 (is_zeros_p): Handle VECTOR_CST.
9274 * varasm.c (output_constant_pool): Handle vectors.
9275 (rtx_const): Add veclo and vechi fields.
9276 (kind): Add RTX_VECTOR.
9277 (decode_rtx_const): Add case for vector.
9279 * config/rs6000/rs6000-protos.h: Add zero_constant.
9281 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
9282 constants. Force easy vector constants into memory.
9283 (easy_vector_constant): New.
9284 (emit_easy_vector_constant): New.
9285 (rs6000_legitimize_reload_address): Do not generate bad reloads on
9288 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
9290 ("altivec_lvxl"): Same.
9291 (altivec_lvebx): Same.
9292 (altivec_lvehx): Same.
9293 (altivec_lvewx): Same.
9294 ("*movv4si_const0"): New.
9295 ("*movv4sf_const0"): New.
9296 ("*movv8hi_const0"): New.
9297 ("*movv16qi_const0"): New.
9299 2002-02-18 Kazu Hirata <kazu@hxi.com>
9301 * config/h8300/h8300.c (notice_update_cc): Use
9304 2002-02-18 Kazu Hirata <kazu@hxi.com>
9306 * config/h8300/h8300.md (divmod patterns): Change the
9307 constraints for operands[1] to register_operand.
9309 2002-02-18 Kazu Hirata <kazu@hxi.com>
9311 * config/h8300/h8300-protos.h: Remove the prototype for
9313 * config/h8300/h8300.c (p_operand): Remove.
9314 * config/h8300/h8300.md: Replace p_operand with
9317 2002-02-18 Philip Blundell <pb@nexus.co.uk>
9319 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
9321 (output_return_instruction): Allow use of LDR to unstack
9322 return addresss even for interrupt handlers or when
9323 interworking. If compiling for ARMv5, use interworking-safe
9324 return instructions by default. Remove duplicated code and
9325 lengthy "strcat" sequences.
9327 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9329 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
9330 (LINK_EH_SPEC): Define.
9331 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
9333 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
9335 * config/s390/s390.c (s390_emit_prologue): Do not set the
9336 frame_related flag for call-clobbered registers.
9338 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
9340 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
9341 (construct_container): Fix handling of SSE operands.
9342 (ix86_expand_builtin): Fix handling of 64bit pointers.
9343 (mmx_maskmovq_rex): New pattern.
9345 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
9347 * regrename.c (kill_set_value): Handle subregs properly.
9349 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
9351 * objc/objc-act.c (handle_impent): Remove leading '*'
9352 from objc_class_name.
9354 2002-02-17 Richard Henderson <rth@redhat.com>
9356 * config/alpha/alpha.c (some_small_symbolic_operand,
9357 some_small_symbolic_operand_1, split_small_symbolic_operand,
9358 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
9359 Handle small SYMBOL_REFs anywhere, not just inside memories.
9360 * config/alpha/alpha-protos.h: Update.
9361 * config/alpha/alpha.h (PREDICATE_CODES): Update.
9362 * config/alpha/alpha.md (small symbolic operand splitter): Update.
9364 2002-02-17 Roland McGrath <roland@frob.com>
9366 * config.gcc (powerpc-*-gnu-gnualtivec*,
9367 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
9368 * config/rs6000/gnu.h: New file.
9369 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
9370 Grok "gnu" in rs6000_abi_name.
9371 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
9372 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
9373 Grok -mcall-gnu analogous to -mcall-linux et al.
9374 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9375 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
9376 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
9378 2002-02-17 Jakub Jelinek <jakub@redhat.com>
9381 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
9384 2002-02-17 Philipp Thomas <pthomas@suse.de>
9386 * config/cris/cris.h: Undefine STARTFILE_SPEC and
9387 ENDFILE_SPEC before (re)defining them.
9389 2002-02-17 Kazu Hirata <kazu@hxi.com>
9391 * config/h8300/h8300.c: Fix formatting.
9392 * config/h8300/h8300.h: Likewise.
9394 2002-02-17 Philipp Thomas <pthomas@suse.de>
9396 * doc/tm.texi: Explain why empty strings should not be
9397 marked for translation.
9399 2002-02-17 Philipp Thomas <pthomas@suse.de>
9401 * final.c (output_operand_lossage): Changed to accept
9402 printf style arguments. Change calls where necessary.
9403 * output.h (output_operand_lossage): Change declaration
9404 accordingly. Update copyright.
9405 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
9406 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
9407 Update copyright date where necessary.
9409 * config/i386/i386.c (print_operand): Likewise. Remove use of
9412 * config/cris/cris.c (cris_operand_lossage): Likewise.
9413 Rename parameter so that exgettext recognizes it as
9414 translatable message.
9415 (LOSE_AND_RETURN): Rename parameter to msgid.
9417 2002-02-17 Kazu Hirata <kazu@hxi.com>
9419 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
9420 hard coded register number with an appropriate macro.
9421 (HARD_REGNO_MODE_OK): Likewise.
9422 (ARG_POINTER_REGNUM): Likewise.
9423 (STATIC_CHAIN_REGNUM): Likewise.
9424 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
9425 * config/h8300/h8300.md (define_constants): Define more
9428 2002-02-17 Philipp Thomas <pthomas@suse.de>
9430 * config/i386/i386.h: Don't mark empty strings for translation.
9432 2002-02-16 H.J. Lu <hjl@gnu.org>
9434 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
9436 2002-02-16 Zack Weinberg <zack@codesourcery.com>
9438 * cppinit.c (merge_include_chains): Check for brack being
9439 NULL before attempting to merge it with qtail.
9441 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9443 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
9446 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
9448 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
9450 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
9452 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
9453 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
9454 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
9456 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9458 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
9459 now only if !TARGET_FIX.
9460 (*movsi_nt_vms_fix): New pattern.
9462 2002-02-16 Douglas B Rupp <rupp@gnat.com>
9464 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
9465 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
9466 (alpha_sa_mask, alpha_sa_size): Reflect above change.
9467 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
9468 (alpha_start_function, alpha_expand_epilogue): Likewise.
9469 (unicosmk_gen_dsib): Likewise.
9471 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9473 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
9475 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
9477 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
9478 check_and_change_labels, s390_final_chunkify): Delete.
9479 (s390_split_branches, s390_chunkify_pool): New functions.
9480 (s390_function_prologue): Call them.
9482 * config/s390/s390.h (S390_REL_MAX): Delete.
9483 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
9485 * config/s390/s390.md (cjump, icjump, jump): Fix length
9486 attribute calculation.
9489 2002-02-15 David Edelsohn <edelsohn@gnu.org>
9491 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
9492 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
9494 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
9496 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
9497 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
9498 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
9500 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
9502 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
9504 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
9506 * reload.c (find_dummy_reload): Check that an output register
9507 is valid for its mode.
9509 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
9511 * combine.c (known_cond): After replacing the REG of a SUBREG, try
9514 * function.c (assign_parms): Demote promoted argument passed by
9515 transparent reference.
9517 2001-02-14 Joel Sherrill <joel@OARcorp.com>
9519 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
9520 -Acpu() and -Amachine() to eliminate warnings.
9522 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
9524 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
9526 2002-02-14 Kazu Hirata <kazu@hxi.com>
9528 * config/h8300/h8300-protos.h: Update the prototype for
9530 * config/h8300/h8300.c (const_costs): Treat SET as a little
9531 more expensive operation.
9532 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
9533 reference to const_costs.
9535 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
9537 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
9539 2002-02-14 Jakub Jelinek <jakub@redhat.com>
9542 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
9543 use arguments from newtype.
9545 2002-02-13 Eric Christopher <echristo@redhat.com>
9547 * config/mips/mips.c (override_options): Add check for march/mipsX
9548 on the same command line. Fix error message in cpu processing.
9549 Remove architecture and ISA checks.
9551 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
9553 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
9555 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
9557 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
9559 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
9561 ("*movv8hi_internal1"): Same.
9562 ("*movv16qi_internal1"): Same.
9563 ("*movv4sf_internal1"): Same.
9565 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
9566 not push_reload for altivec modes.
9568 2002-02-13 Joel Sherrill <joel@OARcorp.com>
9570 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
9571 all RTEMS targets including removal of #includes from config/*/rtems*.h
9572 file and adding them to tm_file setting. Added xm_defines=POSIX to
9574 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
9575 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
9576 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
9577 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
9578 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
9579 config/m68k/rtemself.h: Ditto.
9580 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
9581 config/mips/rtems64.h: Ditto.
9582 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
9583 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
9585 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
9586 config/sparc/rtemself.h: Ditto.
9587 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
9588 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
9589 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
9591 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
9592 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
9593 target made more similar to i386-elf.
9594 * config/i386/t-rtems-i386: Added soft float support and multilibs.
9595 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
9596 be similar to config/m68k/t-m68kelf.
9597 * gthr-rtems.h: Encapsulate with extern "C" for C++.
9599 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
9601 * regmove.c (kill_value): Handle subregs.
9603 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
9605 * i386.md (mul patterns): Allow memory operand to be first;
9606 add expanders where needed; fix constraints.
9607 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
9608 Allow memory operand to be the first.
9610 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
9613 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9616 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
9619 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9621 PR optimization/5547:
9622 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
9623 all valid IA-32 address modes involving non-scaled %ebx and
9624 GOT/GOTOFF as displacement.
9626 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
9628 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
9629 after emitting ltorg insns.
9631 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
9632 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
9633 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
9634 *abssf2): Fix "op_type" attribute.
9636 2002-02-13 Douglas B Rupp <rupp@gnat.com>
9638 * mkconfig.sh: Avoid using a subshell redirect.
9639 ($output.T): Change to $(output)T.
9640 (ENABLE_NLS): Remove unneeded undef.
9642 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
9643 * config/alpha/x-vms (libsubdir): Define.
9645 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
9646 register frame procedures. Optimize retrieving context.
9648 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
9649 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
9650 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
9652 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9654 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
9655 Make same change as for find_base_value.
9657 2002-02-13 Kazu Hirata <kazu@hxi.com>
9659 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
9660 of QImode and SImode.
9662 2002-02-13 Kazu Hirata <kazu@hxi.com>
9664 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
9665 length computation of movsi.
9666 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
9668 2002-02-13 Kazu Hirata <kazu@hxi.com>
9670 * config/h8300/h8300.md (subqi3): Tighten the predicate for
9671 operands[2] to register_operand.
9673 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
9675 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
9677 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
9679 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
9680 for altivec_lvx* and altivec_stvx*.
9681 ("*movv4si_internal"): Add constraint for loading from GPRs.
9682 ("*movv8hi_internal1"): Same.
9683 ("*movv16qi_internal1"): Same.
9684 ("*movv4sf_internal1"): Same.
9686 * config/rs6000/rs6000.c (altivec_register_operand): New.
9688 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
9689 altivec_register_operand.
9691 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
9693 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
9696 2002-02-13 Stan Shebs <shebs@apple.com>
9698 * c-typeck.c (digest_init): Handle vectors.
9699 (really_start_incremental_init): Same.
9700 (pop_init_level): Same.
9701 (process_init_element): Same.
9703 * varasm.c (output_constant): Same.
9705 * expr.c (clear_storage): Same.
9706 (store_constructor): Same.
9708 2002-02-12 Eric Christopher <echristo@redhat.com>
9710 * explow.c (hard_function_value): Add comment explaining
9711 signed/unsigned comparison.
9713 2002-02-12 Jakub Jelinek <jakub@redhat.com>
9715 * jump.c (never_reached_warning): Add finish argument.
9716 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
9717 real insn after end.
9718 * rtl.h (never_reached_warning): Adjust prototype.
9719 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
9720 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
9721 never_reached_warning.
9723 2002-02-12 Graham Stott <grahams@redhat.com>
9725 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
9727 2002-02-12 Kazu Hirata <kazu@hxi.com>
9729 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
9730 logical shifts on H8/300.
9731 (shift_alg_si): Improve several shifts on H8/300.
9732 (get_shift_alg): Likewise.
9734 2002-02-12 Graham Stott <grahams@redhat.com>
9736 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
9738 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9740 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
9741 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
9743 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
9745 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
9746 non-CONST_INT through default_assemble_integer.
9747 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
9748 <case 8>: Abort for CONST_DOUBLE.
9750 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9752 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
9754 * config/pa/pa-linux.h (LIB_SPEC): Delete.
9755 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
9757 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
9759 * config/stormy16/stormy16.md (zero_extendqihi2): New.
9761 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
9763 * regrename.c (regrename_optimize): Don't accept a
9764 part-clobbered register if the replaced register is not part
9767 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
9768 take padding into account when computing the argument value.
9770 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
9772 * combine.c (try_combine): Apply substitutions in
9773 CALL_INSN_FUNCTION_USAGE too.
9775 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
9777 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
9778 __builtin_altivec_abs*.
9781 * config/rs6000/rs6000.h (rs6000_builtins): Add
9782 ALTIVEC_BUILTIN_ABS*.
9784 * config/rs6000/altivec.h: Use const char for builtins expecting
9786 (vec_abs): New versions for C and C++.
9789 2002-02-10 Kazu Hirata <kazu@hxi.com>
9791 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
9794 2002-02-10 Kazu Hirata <kazu@hxi.com>
9796 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
9797 constant definition from h8300.md.
9798 (FRAME_POINTER_REGNUM): Likewise.
9799 * config/h8300/h8300.md (define_constants): Add FP_REG.
9801 2002-02-10 Kazu Hirata <kazu@hxi.com>
9803 * config/h8300/h8300.c (print_operand): Remove redundant code.
9805 2002-02-10 Kazu Hirata <kazu@hxi.com>
9807 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
9808 * config/h8300/h8300.c (byte_reg): Make it static.
9810 2002-02-10 Richard Henderson <rth@redhat.com>
9813 * c-typeck.c (incomplete_type_error): Handle flexible array members.
9815 2002-02-10 Richard Henderson <rth@redhat.com>
9818 * tree.c (append_random_chars): Don't abort if main_input_filename
9821 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
9823 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
9825 2002-02-10 Kazu Hirata <kazu@hxi.com>
9827 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
9828 (pushhi1): Likewise.
9830 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
9832 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
9833 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
9835 2002-02-09 David O'Brien <obrien@FreeBSD.org>
9837 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
9839 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
9841 2002-02-09 Kazu Hirata <kazu@hxi.com>
9843 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
9844 a half of an SImode register on H8/300.
9846 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
9848 * i386.md (movdi_2): Add missing '!'.
9850 2002-02-09 Kazu Hirata <kazu@hxi.com>
9852 * config/h8300/h8300.h: Fix formatting. Remove commented-out
9855 2002-02-09 Kazu Hirata <kazu@hxi.com>
9857 * config/h8300/h8300.md (length): Correct the distance valid
9858 for the short branch.
9860 2002-02-09 Kazu Hirata <kazu@hxi.com>
9862 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
9864 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
9866 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
9867 registers in SImode.
9868 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
9871 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
9874 Contribute sh64-elf.
9875 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
9876 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
9877 (sh_cannot_modify_jumps_p): New function.
9878 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
9879 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
9880 (sh_ms_bitfield_layout_p): New function.
9881 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
9882 Zack Weinberg <zack@codesourcery.com>
9883 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
9884 expand_simple_binop instead of expand_binop.
9885 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
9886 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
9887 use of .quad and .uaquad.
9888 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
9889 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
9890 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9891 * config/sh/sh.md (movdi_const, movdi_const_32bit,
9892 movdi_const_16bit): Make sure all CONSTs have modes.
9893 (sym2PIC): Ditto, but by adjusting all callers.
9894 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
9895 if the prologue calls the SHmedia argument decoder or register
9897 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9898 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
9899 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
9900 (sh_expand_epilogue): Don't emit USE of return target register.
9901 (prepare_move_operands): Legitimize DImode PIC addresses.
9902 (sh_media_register_for_return): Skip tr0, used to initialize the
9904 (sh_expand_prologue): Remove explicit USE of return register.
9905 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
9906 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
9907 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
9908 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
9909 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
9911 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
9912 (MOVI_SHORI_BASE_OPERAND_P): New.
9913 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
9914 (EXTRA_CONSTRAINT_T): Define in terms of them.
9915 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
9916 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
9917 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
9918 alternatives supporting TARGET_REGS.
9919 (UNSPEC_GOTPLT): New constant.
9920 (movdi split): Move incrementing of LABEL_NUSES...
9921 (movdi_const, movdi_const_32bit): Here. Use
9922 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
9923 (movdi_const_16bit): New.
9924 (call, call_value) [flag_pic]: Use GOTPLT.
9925 (call_pop, call_value_pop): New expands.
9926 (call_pop_compact, call_pop_rettramp): New insns.
9927 (call_value_pop_compact, call_value_pop_rettramp): New insns.
9928 (sibcall) [flag_pic]: Use GOT.
9929 (builtint_setjmp_receiver): Remove bogus, unused expand.
9930 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
9931 (*pt, *ptb, ptrel): New insns.
9932 (sym2GOT): Handle DImode GOT.
9933 (sym2GOTPLT, symGOTPLT2reg): New expands.
9934 (sym2PIC): New expand.
9935 (shcompact_return_tramp): Use GOTPLT to return trampoline.
9936 (shcompact_return_tramp_i): Use return register explicitly.
9937 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
9938 disable flag_reorder_blocks.
9939 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
9940 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
9941 clobbers, for clarity.
9942 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
9943 restoring of r0 in macl as MAYBE_DEAD.
9944 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
9945 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
9946 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
9947 alter_subreg all over.
9948 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
9949 reload, instead of emitting instructions that would require
9951 (casesi_load_media): Add missing modes.
9952 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
9953 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
9954 as used if the argument decoder is called.
9955 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
9956 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
9957 Pmode, then extend it to DImode if necessary.
9958 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
9959 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
9960 constants in FPU-enabled SHmedia, let them be loaded from memory.
9961 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
9962 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
9963 Adjust whitespace in assembly output templates.
9964 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
9965 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
9966 mode of if_then_else.
9967 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
9968 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
9970 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
9971 Joern Rennecke <amylaar@redhat.com>
9972 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
9973 (SUBTARGET_CPP_PTR_SPEC): New.
9974 (SUBTARGET_CPP_SPEC): Remove.
9975 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
9976 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9977 Fix typo in previous checkin.
9978 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
9979 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
9980 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
9981 Alexandre Oliva <aoliva@redhat.com>
9982 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
9983 what single FP register can hold for SHmedia target.
9984 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
9985 Alexandre Oliva <aoliva@redhat.com>
9986 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9987 Do not split into SUBREG.
9988 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
9989 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
9990 and added new functions as specified in SH5 ABI r9.
9991 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
9992 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
9994 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
9995 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
9996 gen_consttable_4 and gen_consttable_8. Emit multiple labels
9997 and consttable_window_ends.
9998 2001-06-03 Graham Stott <grahams@redhat,com>
9999 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
10000 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
10001 * config/sh/sh.c (print_operand): Handle floating-point pair,
10002 vector and matrix registers.
10003 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
10004 vector modes into account.
10005 * config/sh/sh.md (movv2sf): Split move between registers into
10007 (movv4sf, movv16sf): Introduce insns that get split only after
10009 * config/sh/shmedia.h: Fix Copyright dates.
10010 * config/sh/ushmedia.h: Likewise. Move loop counter
10011 declarations into conditionals that uses them.
10012 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
10014 * config/sh/sshmedia.h: Fix Copyright dates.
10015 (sh_media_PUTCFG): Fix constraints.
10016 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
10017 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
10018 ptrmemfunc_vbit_in_delta for SH5.
10019 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
10020 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
10021 * invoke.texi: Likewise.
10022 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
10023 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
10024 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
10025 GCC_pop_shmedia_regs_nofpu): New global symbols.
10026 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
10027 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
10028 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
10029 compact function with nonlocal labels.
10030 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
10031 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
10032 (initial_elimination_offset): Account for their stack space.
10033 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
10034 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
10035 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
10036 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
10037 least one of the operands to be a register.
10038 (movv2sf): Likewise. Renamed to movv2sf_i.
10039 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
10040 prepare_move_operands() before emitting SHmedia insns.
10041 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
10042 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
10043 Don't save nor initialize r12. Don't mis-align the stack.
10044 Pad the code with a nop.
10045 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
10047 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
10048 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
10049 [__SHMEDIA__]: Implement.
10050 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
10051 * config/sh/sh.md: Set latency of `pt' closer to reality.
10052 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
10053 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
10054 Set move, load and store type attributes.
10055 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
10056 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
10058 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
10059 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
10060 * config/sh/sh.c (sh_media_register_for_return): New function.
10061 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
10062 branch-target register.
10063 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
10064 * config/sh/sh.md (return_media_i): Use any call-clobbered
10065 branch-target register.
10066 (return_media): If r18 wasn't copied in the prologue, copy it
10068 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
10069 Clear class FP0_REGS.
10070 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
10072 2001-03-08 DJ Delorie <dj@redhat.com>
10073 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
10074 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
10075 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
10076 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
10077 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
10078 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
10079 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
10080 return value correctly for call_cookie.
10081 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
10082 * config/sh/crt1.asm (start): Modified so as to call
10083 ___setup_argv_and_call_main.
10084 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
10085 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
10087 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
10088 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
10089 (STRIP_NAME_ENCODING): Use it.
10090 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
10091 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
10092 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
10093 prepare_scc_operands().
10094 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
10095 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
10096 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
10097 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
10098 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
10099 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
10100 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
10101 used in shcompact_incoming_args.
10102 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
10104 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
10106 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
10107 Adjust accordingly.
10108 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
10109 Simplify. Adjust. Add sanity check.
10110 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
10112 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
10114 (udivsi3, divsi3): Use them.
10115 (force_mode_for_call): New insn.
10116 (call, call_value, sibcall_value): Emit it before SHcompact
10118 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
10119 * config/sh/sh.md (call, call_value, sibcall): Make sure the
10120 call cookie is non-NULL before taking its value.
10121 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
10122 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
10123 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
10124 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
10126 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
10127 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
10128 temporary for stack adjusts. Use MACL and MACH to pass
10129 arguments to shcompact_incoming_args.
10130 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
10132 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
10133 (nested_trampoline): Load static chain address into r1.
10134 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
10135 2001-01-07 Alexandre Oliva <aoliva@redhat.com
10136 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
10137 fp_arith_reg_operand().
10138 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
10139 * config/sh/sh.md (casesi): Sign-extend the first two operands,
10140 and use signed compares for them.
10141 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
10142 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
10143 ones properly aligned.
10144 (find_barrier): Account for extra alignment needed for 8-byte wide
10146 (machine_dependent_reorg): Require a label for the second 4-byte
10147 constant after an 8-byte one.
10148 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
10150 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
10151 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
10152 last_float when switching float modes.
10153 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
10154 auto-increment for general-purpose registers.
10155 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
10157 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
10159 * config/sh/sh.c (sh_builtin_saveregs): Support using all
10160 registers for varargs.
10161 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
10162 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
10163 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
10164 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
10165 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
10166 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
10167 call_cookie accordingly.
10168 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
10169 (SHCOMPACT_BYREF): Likewise.
10170 (SHCOMPACT_FORCE_ON_STACK): New macro.
10171 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
10172 (sh_builtin_saveregs): Likewise.
10173 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10174 shcompact_incoming_args): Use new shift values. Support
10175 sequences of consecutive and non-consecutive pushes/pops.
10176 * config/sh/sh.md (return): Don't explicitly use PR_REG.
10177 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
10178 * config/sh/sh.h (TEXT_SECTION): Define.
10179 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
10180 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
10181 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
10182 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
10183 return values on FPU-enabled SHmedia.
10184 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
10185 FPU-enabled SHmedia.
10186 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
10187 value is returned in a non-FP reg and is not returned by
10189 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
10191 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
10192 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
10193 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
10194 quad-aligned to be passed by callee-copy reference.
10195 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
10196 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
10197 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
10198 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
10199 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
10200 copying low-numbered FP regs to r7 and r8.
10201 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
10202 FP regs to general-purpose regs only if the copy was passed on the
10204 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
10205 copying FP reg to r9.
10206 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
10207 copy FP regs to general-purpose regs only in outgoing calls.
10208 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
10209 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
10211 * config/sh/sh.h (struct sh_args): Document all fields.
10212 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
10213 passed partially on the stack should not consider making
10215 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
10216 stack_regs only for incoming calls. When passing FP args,
10217 make sure there are FP regs available before modifying
10219 (SHCOMPACT_BYREF): Pass double args in general-purpose
10220 registers by reference.
10221 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
10222 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
10223 attempt to generate sibcalls if the caller got any arguments
10225 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
10226 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
10227 to 8-byte boundaries.
10228 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
10229 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
10230 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
10231 stored in the stack.
10232 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
10233 for the offsets to have the ISA bit set.
10234 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
10235 invocation. Use beq instead of bgt to mark end of sequence of
10237 (shcompact_incoming_args): Fix store of r2. Use beq instead of
10238 bgt to mark end of sequence of stores.
10239 * config/sh/sh.c (arith_operand): Don't check whether
10240 CONST_OK_FOR_J for now.
10241 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
10242 instead of long for conversion.
10243 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
10244 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
10245 before passing it to fprintf.
10246 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
10247 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
10248 Call set_fpscr before reading/writing SR.
10249 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
10251 * config/sh/lib1funcs.asm: Add `.align 2' directives before
10253 (FMOVD_WORKS): Define on SH5 with FPU.
10254 (set_fpscr): Define on SH5. Remove separate _fpscr_values
10256 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
10258 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
10259 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
10261 (ia_main_table): Ditto.
10262 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
10263 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10264 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
10265 the definitions from sh.h.
10266 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
10268 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
10269 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
10270 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10271 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
10272 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
10273 Increment LABEL_NUSES.
10275 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
10277 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
10279 * config/sh/elf.h (SIZE_TYPE): Likewise.
10280 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10281 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10282 shcompact_incoming_args): Load switch table addresses using
10284 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10285 (NO_BUILTIN_SIZE_TYPE): Define.
10286 (SIZE_TYPE): Don't define.
10287 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10288 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
10289 definition of __SH5__=32 for -m5-compact-nofpu.
10290 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
10292 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
10293 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
10294 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
10295 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
10296 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
10297 (INSN_LENGTH_ALIGNMENT): Likewise.
10298 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
10299 * config/sh/sh.md (call, call_value, sibcall): Simplify
10300 copying of non-branch-target register.
10301 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
10302 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
10303 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
10304 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
10305 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
10306 floating-point values as structs.
10307 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
10308 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
10309 general-purpose register.
10310 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
10311 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
10312 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
10313 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
10314 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
10315 (ENCODE_SECTION_INFO): Enclose variables and constants in
10317 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
10318 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
10319 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
10320 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
10321 only for LABEL_REFs. For SYMBOL_REFs, prepend
10322 SH_DATALABEL_ENCODING to the symbol name.
10323 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
10325 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
10326 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
10328 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
10329 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
10330 (DATALABEL_REF_P): Don't require CONST.
10331 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
10333 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
10334 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
10336 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
10337 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
10338 Use shallow_copy_rtx and PUT_MODE to change the mode of
10339 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
10340 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
10341 on SHmedia using GENERAL_REGs.
10342 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10343 bltu_media_i): Fix reversion of conditions.
10344 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
10345 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
10346 * config/sh/sh.c (output_far_jump): Save r13 in macl.
10347 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
10348 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
10349 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
10350 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
10351 (GCC_nested_trampoline): Likewise.
10352 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
10353 * config/sh/sh.c (gen_datalabel_ref): Define.
10354 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
10355 (INITIALIZE_TRAMPOLINE): Likewise.
10356 (TRAMPOLINE_ADJUST_ADDRESS): Define.
10357 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
10358 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
10359 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
10360 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
10361 (ic_invalidate): Adjust for SH5.
10362 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
10363 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
10364 _nested_trampoline.
10365 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
10366 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
10367 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
10368 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
10369 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
10370 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
10371 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
10372 * config/sh/sh.c (target_reg_operand): Match only target-branch
10373 registers and pseudos that aren't virtual registers.
10374 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10375 Copy operands that don't match target_reg_operand to pseudos.
10376 (call_media, call_value_media, sibcall_media): Use
10377 target_reg_operand instead of target_operand.
10378 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
10379 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
10380 * config/sh/sh.c (target_reg_operand): Match hardware registers
10381 other than branch-target registers.
10382 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
10383 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
10384 (fpscr_values) [SH5 == 32]: Define.
10385 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
10386 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10387 Handle function addresses coming in SUBREGs.
10388 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
10389 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10390 shcompact_return_trampoline): Use datalabel where appropriate.
10391 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
10392 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
10393 general-purpose register to copy one branch-target register to
10395 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
10396 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
10397 SYMBOL_REFs with VOIDmode.
10398 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10399 bltu_media_i): New insns.
10400 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
10401 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
10402 (INIT_CUMULATIVE_ARGS): Likewise.
10403 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
10404 * machmode.def (V16SFmode): New mode.
10405 * c-common.c (type_for_mode): Support V2SF and V16SF.
10406 * tree.c (build_common_tree_nodes_2): Likewise.
10407 * tree.h (tree_index): Likewise.
10408 * calls.c (emit_call_1): Take args_so_far. Adjust all
10409 callers. Introduce CALL_POPS_ARGS.
10410 * tm.texi (CALL_POPS_ARGS): Document.
10411 * config/sh/crt1.asm: Implement in SHmedia mode.
10412 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
10413 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
10414 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
10415 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
10416 Implement divsi and udivsi in SHmedia mode. Introduce
10417 SHcompact trampolines.
10418 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
10420 (regno_reg_class): Rewrite.
10421 (fp_reg_names): Remove.
10422 (sh_register_names, sh_additional_register_names): New.
10423 (print_operand): Added `u'. Support SUBREGs in addresses.
10424 Add parentheses around shifted CONSTs.
10425 (output_file_start): Output .mode and .abi directives.
10426 (shiftcosts, addsubcosts, multcosts): Adjust.
10427 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
10428 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
10429 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
10430 bytes, not registers. Take into account the need for the
10431 SHcompact incoming args trampoline. Adjust all callers.
10432 (sh_expand_prologue): Take stack_regs into account. Call
10433 incoming args trampoline. Keep stack aligned as per SH5 ABI.
10434 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
10435 stack aligned as per SH5 ABI.
10436 (sh_builtin_saveregs): Support SH5 ABI.
10437 (sh_build_va_list, sh_va_start): Likewise.
10438 (initial_elimination_offset): Take alignment into account.
10439 Compute location of PR according to the SH5 stack frame.
10440 (arith_reg_operand): Reject branch-target registers.
10441 (shmedia_6bit_operand): New.
10442 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
10443 (target_reg_operand): Match DImode only. Accept SUBREGs.
10444 (target_operand): New.
10445 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
10446 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
10447 SIBCALL_REGS for SHmedia.
10448 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
10449 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
10450 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
10451 (TARGET_SWITCHES): New SH5 flags.
10452 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
10453 VALID_REGISTER_P to disable unsupported registers.
10454 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
10455 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
10456 (FUNCTION_ARG_PADDING): Define.
10457 (FASTEST_ALIGNMENT): Adjust.
10458 (SH_REGISTER_NAMES_INITIALIZER): New.
10459 (sh_register_names): Declare.
10460 (DEBUG_REGISTER_NAMES): Define.
10461 (REGISTER_NAMES): Define based on sh_register_names.
10462 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
10463 (sh_additional_register_names): Declare.
10464 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
10465 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
10466 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
10467 (REGISTER_NATURAL_MODE): Define.
10468 (FIRST_PSEUDO_REGISTER): Adjust.
10469 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
10470 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
10471 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
10472 (VECTOR_MODE_SUPPORTED_P): Define.
10473 (REG_CLASS_CONTENTS): Adjust.
10474 (SMALL_REGISTER_CLASSES): Adjust.
10475 (REG_ALLOC_ORDER): Adjust.
10476 (INDEX_REG_CLASS): Adjust.
10477 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
10478 (CONST_OK_FOR_LETTER_P): Adjust.
10479 (PREFERRED_RELOAD_CLASS): Adjust.
10480 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
10481 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
10482 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
10483 (FIRST_FP_PARM_REG): Adjust.
10484 (CALL_POPS_ARGS): Define.
10485 (FUNCTION_ARG_REGNO_P): Adjust.
10486 (struct sh_args): New fields.
10487 (GET_SH_ARG_CLASS): Adjust.
10488 (INIT_CUMULATIVE_ARGS): Adjust.
10489 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
10490 (FUNCTION_ARG_ADVANCE): Adjust.
10491 (FUNCTION_ARG): Adjust.
10492 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
10493 (FUNCTION_ARG_CALLEE_COPIES): Define.
10494 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
10495 (STRICT_ARGUMENT_NAMING): Define.
10496 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
10497 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
10498 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
10499 (SETUP_INCOMING_VARARGS): Adjust.
10500 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
10501 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
10502 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
10503 (SUBREG_OK_FOR_INDEX_P): Adjust.
10504 (EXTRA_CONSTRAINT_S): Update.
10505 (EXTRA_CONSTRAINT_T): New.
10506 (EXTRA_CONSTRAINT): Adjust.
10507 (GO_IF_LEGITIMATE_INDEX): Adjust.
10508 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
10509 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
10510 (MOVE_MAX): Adjust.
10511 (MAX_MOVE_MAX): Define.
10513 (CONST_COSTS): Adjust.
10514 (REGISTER_MOVE_COST): Adjust.
10515 (BRANCH_COST): Adjust.
10516 (TEXT_SECTION_ASM_OP): Adjust.
10517 (DBX_REGISTER_NUMBER): Adjust.
10518 (ASM_OUTPUT_DOUBLE_INT): New.
10519 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
10520 (PREDICATE_CODES): Adjust.
10521 (PROMOTE_MODE): Adjust.
10522 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
10523 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
10524 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
10525 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
10526 (DR0_REG, DR2_REG, DR4_REG): Renumber.
10527 (TR0_REG, TR1_REG, TR2_REG): New.
10528 (XD0_REG): Renumber.
10529 (UNSPEC_COMPACT_ARGS): New.
10530 (type): Added pt and ptabs.
10531 (length): Default to 4 on SHmedia. Default pt length to 12
10532 and 20 on SHmedia32 and SHmedia64, respectively.
10533 (pt): New function unit.
10534 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
10535 Add whitespace between operands of SHmedia instructions.
10537 (adddi3_media, addsi3_media): Adjust constraints.
10538 (subsi3) [SHmedia]: Force operand 1 into a register.
10539 (udivsi3_i1_media, udivsi3_i4_media): New.
10540 (udivsi3): Support SHmedia.
10541 (divsi3_i1_media, divsi3_i4_media): New.
10542 (divsi3): Support SHmedia.
10543 (anddi3, iordi3, xordi3): Adjust constraints.
10544 (zero_extendhidi2, zero_extendqidi2): New.
10545 (extendsidi2, extendhidi2, extendqidi2): New.
10546 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
10547 (pop_e, pop_fpul, pop_4): Likewise.
10548 (movsi_media): Support FP and BT registers.
10549 (movsi_media_nofpu): New. Adjust splits to DImode.
10550 (lduw, ldub): Renamed to zero_extend* above.
10551 (movqi_media): Fix typo.
10552 (movdi_media): Support FP and BT registers.
10553 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
10554 (movdi_const_32bit): New.
10555 (shori_media): Require immediate operand. Use `u' for output.
10556 (movdf_media, movsf_media): Simplified.
10557 (movdf_media_nofpu, movsf_media_nofpu): New.
10558 (movdf, movsf): Adjust
10559 (movv2sf, movv2sf, movv16sf): New.
10560 (beq_media, beq_media_i): Adjust constraints. Don't use
10561 scratch BT register.
10562 (bne_media, bne_media_i): Likewise.
10563 (bgt_media, bgt_media_i): Likewise.
10564 (bge_media, bge_media_i): Likewise.
10565 (bgtu_media, bgtu_media_i): Likewise.
10566 (bgeu_media, bgeu_media_i): Likewise.
10567 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
10568 bunordered): Emit jump insn. Force operands to registers when
10570 (jump_media, jump): Simplify.
10571 (call_compact, call_compact_rettramp): New.
10572 (call_value_compact, call_value_compact_rettramp): New.
10573 (call_media, call_value_media): Simplify.
10574 (sibcall_compact, sibcall_media): New.
10575 (call, call_value): Adjust for SHmedia and SHcompact.
10576 (sibcall, sibcall_value, untyped_call): Likewise.
10577 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
10578 (indirect_jump): Adjust for SHmedia.
10579 (casesi_jump_media): New.
10580 (nop): Re-enable for SHmedia.
10581 (call_site): Restrict to SH1.
10582 (casesi): Adjust for SHmedia.
10583 (casesi_shift_media, casesi_load_media): New.
10584 (return): Explicitly use PR register. Call return trampoline
10586 (return_i): Explicitly use PR register.
10587 (shcompact_return_tramp, shcompact_return_tramp_i): New.
10588 (return_media): Adjust.
10589 (shcompact_incoming_args): New.
10590 (epilogue): Adjust.
10591 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10592 (movstrsi): Disable on SH5.
10593 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
10594 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
10595 (subsf3, subsf3_media): Likewise.
10596 (mulsf3, mulsf3_media, mac_media): Likewise.
10597 (divsf3, divsf3_media): Likewise.
10598 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
10599 (floatsisf2, fux_truncsfsi2): Likewise.
10600 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
10602 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
10603 (cmpunsf_media, cmpsf): Likewise.
10604 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
10605 (abssf2, abssf2_media): Likewise.
10606 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
10607 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
10608 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
10609 (floatsidf2, fix_truncdfsi2): Likewise.
10610 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
10612 (cmpeqdf_media, cmpgtdf_media): Likewise.
10613 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
10614 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
10615 (absdf2, absdf2_media): Likewise.
10616 (extendsfdf2, extendsfdf2_media): Likewise.
10617 (truncsfdf2, truncsfdf2_media): Likewise.
10618 * config/sh/sh64.h: New file.
10619 * config/sh/t-sh64: New file.
10620 * config/sh/shmedia.h: New file.
10621 * config/sh/ushmedia.h: New file.
10622 * config/sh/sshmedia.h: New file.
10623 * configure.in: Added sh64-*-elf.
10624 * configure: Rebuilt.
10625 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
10626 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
10627 (reg_class_from_letter): Use `b' for TARGET_REGS.
10628 (print_operand): Support `%M', `%m', `AND' and
10629 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
10630 (andcosts): Adjust for SHmedia.
10631 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
10633 (target_reg_operand): New function.
10634 * config/sh/sh-protos.h (target_reg_operand): Declare.
10635 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
10636 FP registers on SH5.
10637 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
10639 (TARGET_REGISTER_P): New macro.
10640 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
10641 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
10642 (EXTRA_CONSTRAINT_S): New macro.
10643 (EXTRA_CONSTRAINT): Adjust.
10644 (FLOAT_TYPE_SIZE): Define to 32.
10645 (Pmode): DImode on SHmedia.
10646 (CONST_COSTS): Adjust for SHmedia literals.
10647 (PREDICATE_CODES): Added target_reg_operand.
10648 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
10649 * config/sh/sh.md: Remove all attrs from SHmedia insns.
10650 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
10651 (cmpdi): Accept SHmedia.
10652 (movdicc_false, movdicc_true): New insns.
10653 (movdicc): New expand.
10654 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
10656 (addsi3_media): Match `S' constraint.
10657 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
10658 (negdi2): Expand for SHmedia.
10659 (one_cmpldi2): New expand.
10660 (zero_extendsidi2): Change from expand to insn.
10661 (extendsidi2): Add constraints.
10662 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
10663 LD/ST address. Fix SI immediate loading split.
10664 (movhi_media, movqi_media, lduw, ldub): New insns.
10665 (movhi, movqi): Accept SHmedia.
10666 (shori_media, movdi_media): Relax input constraints. Split
10667 symbolic constants.
10668 (movdf_media, movsf_media): New insn. New split to movdi.
10669 (movdf, movsf): Match on SHmedia.
10670 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
10671 bgeu_media): New insns and splits. New insns with `_i' suffix.
10672 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
10673 (bunordered): New expand.
10674 (jump_compact): Renamed from `jump'.
10675 (jump_media): New insn.
10676 (jump): New expand.
10677 (call_media, call_value_media): New insns.
10678 (call, call_value): Adjust.
10679 (indirect_jump_compact): Renamed from `indirect_jump'.
10680 (indirect_jump_media): New insn.
10681 (indirect_jump): New expand.
10682 (untyped_call, return): Accept SHmedia.
10683 (return_media): New insn.
10684 (prologue, epilogue, blockage): Accept SHmedia.
10685 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10686 (sunordered): New expand.
10687 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
10688 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
10689 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
10690 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
10691 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
10692 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
10693 abssf2_media): New insns.
10694 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
10695 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
10696 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
10697 floatdidf2, floatsidf2_media, fix_truncdfdi2,
10698 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
10699 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
10700 absdf2_media): New insns.
10701 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
10702 (extendsfdf2_media, truncdfsf2_media): New insns.
10703 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
10704 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
10705 * config/sh/sh.h (CONST_OK_FOR_J): Document.
10706 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
10707 * config/sh/sh.md (adddi3): New expand.
10708 (adddi3_media, adddi3z_media): New insns.
10709 (adddi3_compact): Renamed from adddi3.
10710 (addsi3_media): Use add.l r63 to add constant zero.
10711 (subdi3): New expand.
10712 (subdi3_media): New insn.
10713 (subdi3_compact): Renamed from subdi3.
10714 (mulsidi3): New expand.
10715 (mulsidi3_media): New insn.
10716 (mulsidi3_compact): Renamed from mulsidi3.
10717 (umulsidi3): New expand.
10718 (umulsidi3_media): New insn.
10719 (umulsidi3_compact): Renamed from umulsidi3.
10720 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
10721 (ashlsi3, ashrsi3, lshrsi3): Use them.
10722 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
10723 (ashldi3, ashrdi3, lshrdi3): Use them.
10724 (zero_extendsidi2): New expand.
10725 (extendsidi2): New insn.
10726 (movsi_media): New insn. Split to movdi to load constants.
10727 (movsi): Enable for shmedia.
10728 (movdi_media): New insn. Use shori_media to load wide constants.
10729 (short_media): New insn.
10730 (movdi): Enable for shmedia.
10731 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
10732 * config/sh/sh.h (CPP_SPEC): Added `m5'.
10733 (SUBTARGET_CPP_SPEC): Added `!m5'.
10734 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
10735 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
10736 to all other SH variants.
10737 (TARGET_DEFAULT): Set to SH1_BIT.
10738 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
10739 (BITS_PER_WORD): Raise to 64 on shmedia.
10740 (MAX_BITS_PER_WORD): Change to 64.
10741 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
10742 (INT_TYPE_SIZE): Keep as 32.
10743 (UNITS_PER_WORD): Raise to 8 on shmedia.
10744 (MIN_UNITS_PER_WORD): Keep as 4.
10745 (POINTER_SIZE): Raise to 64 on shmedia.
10746 (CONST_OK_FOR_J): New macro.
10747 (CONST_OK_FOR_LETTER_P): Use it.
10748 (processor_type): Add PROCESSOR_SH5.
10749 * config/sh/sh.md: Conditionalize all expands, insns and
10750 splits to TARGET_SH1.
10752 (addsi3_compact): Renamed from...
10753 (addsi3): Now an expand.
10754 (addsi3_media, subsi3_media): New insns.
10755 (subsi3): Don't negate constants with SHmedia.
10757 * hooks.c: New file.
10758 * hooks.h: New file.
10759 * Makefile.in (HOOKS_H): New.
10760 (TARGET_DEF_H): Added $(HOOKS_H).
10761 (OBJS): Added hooks.o.
10762 (cfgcleanup.o, bb-reorder.o): Added target.h.
10763 (hooks.o): Added dependencies.
10764 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
10765 (TARGET_INITIALIZER): this.
10766 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
10767 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
10768 * bb-reorder.c: Include target.h.
10769 (reorder_basic_blocks): Skip if cannot modify jumps.
10770 * cfgcleanup.c: Include target.h.
10771 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
10773 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10775 * config/mips/mips.md (casesi_internal, casesi_internal_di):
10776 Protect jump delay slot instructions with .set noreorder and
10779 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10781 * config/mips/mips.md (casesi_internal_di): Calculate
10782 the index into the target offset table correctly.
10784 2002-02-08 Richard Henderson <rth@redhat.com>
10786 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
10787 * final.c (output_addr_const): Accept and discard SUBREG.
10788 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
10789 mark them unknown instead.
10790 (simplify_subtraction): Handle RTX_UNKNOWN.
10791 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
10793 2002-02-08 David Edelsohn <edelsohn@gnu.org>
10795 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
10797 2002-02-08 Richard Henderson <rth@redhat.com>
10799 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
10801 2002-02-08 Andreas Jaeger <aj@suse.de>
10803 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
10804 * config/i386/t-linux64: New file.
10806 2002-02-08 Jakub Jelinek <jakub@redhat.com>
10808 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
10809 * c-parse.in (compstmt): Clear last_expr_type.
10811 2002-02-07 Richard Henderson <rth@redhat.com>
10813 * loop.c (strength_reduce): Sink final_value when not
10816 2002-02-07 David O'Brien <obrien@FreeBSD.org>
10818 * config/sparc/freebsd.h: Fix mismatched spec {.
10820 2002-02-07 Richard Henderson <rth@redhat.com>
10822 * cfgrtl.c: Include recog.h and insn-config.h.
10823 (keep_with_call_p): Fix general_operand invocation.
10824 * Makefile.in (cfgrtl.o): Update dependencies.
10826 2002-02-07 Kazu Hirata <kazu@hxi.com>
10828 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
10829 comment. Accept HImode only if TARGET_H8300.
10831 2002-02-07 Eric Christopher <echristo@redhat.com>
10833 * config/mips/crtn.asm: Cleanup #ifdefs.
10835 2002-02-07 Eric Christopher <echristo@redhat.com>
10837 * config/mips/crti.asm: Add changes for mips16. mips16 uses
10838 register 7 as RA instead of $31.
10839 * config/mips/crtn.asm: Ditto.
10840 * config/mips/mips.c (mips_move_2words): Add case for
10841 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
10842 (compute_frame_size): Fix typo.
10843 (save_restore_insns): Ditto. Make documentation about using
10844 register $7 as return register more precise.
10845 (mips_expand_epilogue): Fix comment. Add code to work around not
10846 being able to add to the stack pointer directly.
10847 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
10848 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
10851 2002-02-07 Tom Rix <trix@redhat.com>
10853 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
10854 immediates in ldu and stdu DS opcode field.
10855 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
10856 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
10857 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
10859 2002-02-07 Jeff Sturm <jsturm@one-point.com>
10861 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
10862 offset for stack bias.
10864 2002-02-07 H.J. Lu <hjl@gnu.org>
10866 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
10868 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
10870 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
10872 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
10874 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
10875 * i386.c (x86_order_regs_for_local_alloc): New global function.
10876 * i386.h (REG_ALLOC_ORDER): CLeanup.
10877 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
10879 2002-02-07 Richard Henderson <rth@redhat.com>
10881 PR optimization/2463
10882 * alias.c (find_base_value): Recall base values for fixed hard regs.
10883 * loop.c (loop_regs_update): Don't use single_set on non-insns.
10885 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
10887 * config/mips/mips.md (define_delay) [mips16]: Adjust required
10890 2002-02-06 Richard Henderson <rth@redhat.com>
10893 * stmt.c (resolve_operand_name_1): Take more care with mixed
10894 named and unnamed operands.
10896 2002-02-06 Janis Johnson <janis187@us.ibm.com>
10897 Jan Hubicka <jh@suse.cz>
10899 * loop.c (remove_constant_addition): Avoid clobbering a shared
10902 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
10904 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
10905 * config/s390/t-linux64: New file.
10906 * config/s390/libgcc-glibc.ver: New file.
10908 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
10910 * config/s390/linux64.h: Delete file.
10911 * config/s390/s390x.h: New file.
10912 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
10913 as target header file.
10914 * config/s390/linux.h (TARGET_VERSION): Define depending on
10915 DEFAULT_TARGET_64BIT.
10916 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
10917 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
10918 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
10919 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
10920 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
10921 (EXTRA_SPEC): New define.
10922 * config/s390/s390.h (TARGET_VERSION): Define depending on
10923 DEFAULT_TARGET_64BIT.
10924 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
10926 2002-02-06 Jason Merrill <jason@redhat.com>
10928 * c-decl.c (finish_function): Warn about a non-void function with
10929 no return statement and no abnormal exit.
10930 (current_function_returns_abnormally): New variable.
10931 (start_function): Clear it.
10932 (struct c_language_function): Add returns_abnormally.
10933 (push_c_function_context): Save it.
10934 (pop_c_function_context): Restore it.
10935 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
10936 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
10937 an explicit return type.
10938 * c-tree.h: Declare current_function_returns_abnormally.
10939 (C_FUNCTION_IMPLICIT_INT): New macro.
10940 * c-typeck.c (build_function_call): Set it.
10941 (c_expand_return): Set current_function_returns_value even if the
10942 value is erroneous.
10944 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10947 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
10948 unsafe for reevaluation.
10950 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10953 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
10954 EXPR_STMT, but COMPOUND_STMT, recurse into it.
10956 2002-02-06 Richard Henderson <rth@redhat.com>
10958 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
10959 be a general_operand. Dest for function value must be a pseudo.
10961 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10963 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
10964 as SYMBOL_REFs from the constant pool.
10966 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
10968 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
10969 passed by invisible reference.
10971 2002-02-05 Richard Henderson <rth@redhat.com>
10973 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
10975 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
10977 Implement using "base addresses" in insn operands as default.
10978 * config/mmix/mmix.c (mmix_conditional_register_usage): if
10979 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
10980 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
10981 used to read the rtx value.
10982 (mmix_target_asm_function_epilogue): Fix spacing.
10983 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
10984 (mmix_legitimate_address): Ditto.
10985 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
10986 should be loaded with a GETA insn. Don't allocate needless extra
10987 char for nul termination and fix misleading comment.
10988 (mmix_print_operand_address): Handle constants if
10989 TARGET_BASE_ADDRESSES.
10990 (mmix_output_register_setting): Use base addressing if
10991 TARGET_BASE_ADDRESSES and the number of insns is 3.
10992 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
10993 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
10994 to use R as constraint, add LDA to match s.
10995 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
10996 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
10997 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
10998 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
10999 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
11000 order with other fixed registers.
11001 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
11002 other parameter/call-clobbered registers.
11003 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
11004 -mbase-addresses, -mno-base-addresses.
11005 (MMIX Options): Ditto.
11007 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
11009 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
11011 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
11013 * config/rs6000/altivec.h: Change elem to _S_elem.
11015 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
11017 * config/netbsd.h (WCHAR_TYPE): Define.
11018 (WCHAR_TYPE_SIZE): Ditto.
11019 (WINT_TYPE): Ditto.
11020 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
11021 (WCHAR_UNSIGNED): Ditto.
11022 (WCHAR_TYPE_SIZE): Ditto.
11023 (WINT_TYPE): Ditto.
11024 * config/arm/netbsd.h: Likewise.
11025 * config/i386/netbsd-elf.h: Likewise.
11026 * config/i386/netbsd.h: Likewise.
11027 * config/m68k/netbsd-elf.h: Likewise.
11028 * config/m68k/netbsd.h: Likewise.
11029 * config/ns32k/netbsd.h: Likewise.
11030 * config/sparc/netbsd.h: Likewise.
11031 * config/vax/netbsd.: Likewise.
11033 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
11035 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
11036 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
11037 (TARGET_INITIALIZER): this.
11038 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
11039 (BITFIELD_NBYTES_LIMITED): Markup fix.
11040 * tree.h (default_ms_bitfield_layout_p): Declare.
11041 (record_layout_info): Added prev_field.
11042 * tree.c (default_ms_bitfield_layout_p): New fn.
11043 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
11044 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
11045 * stor-layout.c: Include target.h.
11046 (start_record_layout): Initialize prev_field.
11047 (place_field): Handle MS bit-field layout, and disregard
11048 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
11049 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
11050 * Makefile.in (stor-layout.o): Adjust dependencies.
11052 2002-02-05 Jason Merrill <jason@redhat.com>
11054 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
11056 2002-02-05 Andreas Jaeger <aj@suse.de>
11058 * crtstuff.c: Fix comments.
11060 2002-02-05 Richard Henderson <rth@redhat.com>
11063 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
11064 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
11067 * config/mips/mips.c (function_arg): Handle TImode.
11068 (function_arg_advance): Likewise.
11070 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11072 * config/rs6000/altivec.h (vec_step_help): Rename to
11075 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11077 * config/rs6000/altivec.h: Fix typos.
11079 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
11081 * config/arm/netbsd.h: Correct a comment.
11083 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11085 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
11086 building void typed builtins.
11088 * config/rs6000/altivec.h (vec_ld*): Fix typos.
11089 (vec_step): Implement for C++.
11091 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11093 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
11095 2002-02-04 Richard Henderson <rth@redhat.com>
11097 * combine.c (nonzero_bits): Re-introduce special case for
11098 sp/fp/ap wrt REGNO_POINTER_ALIGN.
11100 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11102 * doc/extend.texi: Warn about unsupported usage of altivec
11105 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
11106 (altivec_predicate_*): New.
11108 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
11109 Add C++ version of vec_*() functions.
11111 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
11112 (bdesc_2arg): Remove altivec predicates.
11113 (altivec_expand_builtin): Handle predicates.
11114 (altivec_init_builtins): Handle predicates.
11115 (altivec_expand_predicate_builtin): New.
11117 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11119 * pa.c (DO_FRAME_NOTES): Move forward.
11120 (store_reg): Revise handling of frame notes.
11121 (load_reg): Likewise.
11122 (set_reg_plus_d): Likewise.
11123 (hppa_expand_prologue): Likewise.
11124 (hppa_expand_epilogue): Likewise.
11126 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11128 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
11130 2002-02-04 Jakub Jelinek <jakub@redhat.com>
11132 PR c/4475, c++/3780:
11133 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
11134 * c-common.h (SWITCH_TYPE): Define.
11135 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
11136 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
11137 Rename spareness variable to sparseness.
11138 (expand_end_case_type): Renamed from expand_end_case, use orig_type
11139 if non-NULL instead of TREE_TYPE (orig_index).
11140 * tree.h (expand_end_case_type): Renamed from expand_end_case.
11141 (expand_end_case): Define using expand_end_case_type.
11142 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
11143 to expand_end_case_type.
11144 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
11146 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11148 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
11149 (BIGGEST_ALIGNMENT): Change to 128.
11151 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11153 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
11155 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11157 * pa.md (call_internal_reg_64bit): Remove unused variable.
11159 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
11161 * config/arm/arm.h (machine_function): Add uses_anonymous_args
11163 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
11164 * config/arm/arm.c (current_function_anonymous_args): Delete,
11165 replace uses with cfun->machine->uses_anonymous_args.
11166 (arm_reorg): Do not reset uses_anonymous_args.
11168 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
11169 any geenral register.
11171 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
11173 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
11176 2002-02-04 Richard Henderson <rth@redhat.com>
11178 * combine.c (force_to_mode): Remove STACK_BIAS code.
11179 (nonzero_bits): Likewise. Replace sp/fp special case with
11180 REGNO_POINTER_ALIGN.
11182 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
11183 (HARD_FRAME_POINTER_REGNUM): New.
11184 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
11185 (FIXED_REGS, CALL_USED_REGS): Update.
11186 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
11187 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
11188 (HARD_REGNO_NREGS): Update for SFP.
11189 (STACK_POINTER_OFFSET): Include bias here ...
11190 (FIRST_PARM_OFFSET): ... not here.
11191 (STACK_BIAS): Remove.
11192 (INIT_EXPANDERS): New.
11193 (STARTING_FRAME_OFFSET): Do not include bias.
11194 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
11195 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
11196 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
11197 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
11198 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
11199 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
11200 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
11201 (MUST_SAVE_REGISTER): Likewise.
11202 (sparc_flat_function_prologue): Likewise.
11203 (sparc_flat_function_epilogue): Likewise.
11204 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
11205 (sparc_init_modes): SFP is GENERAL_REGS.
11206 (sparc_builtin_saveregs): SFP does not have bias applied.
11208 2002-02-04 Richard Henderson <rth@redhat.com>
11210 * config/alpha/alpha.c (current_function_is_thunk): Don't check
11211 current_function_is_thunk.
11212 (alpha_sa_mask): Distinguish between current_function_is_thunk
11213 called from ASM_OUTPUT_MI_THUNK and not.
11214 (alpha_does_function_need_gp): Thunks always need gp.
11215 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11216 (alpha_output_mi_thunk_osf): New.
11217 * config/alpha/alpha-protos.h: Update.
11218 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
11220 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
11222 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
11223 function types, not when they're taken away.
11225 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
11227 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
11228 CODE_LABEL and jump table when replacing a table jump with a
11231 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11233 * config/s390/s390-protos.h (legitimize_la_operand,
11234 s390_secondary_input_reload_class, s390_plus_operand,
11235 s390_expand_plus_operand): Add prototypes.
11237 config/s390/s390.c (s390_secondary_input_reload_class,
11238 s390_plus_operand, s390_expand_plus_operand): New functions.
11240 (struct s390_address): New member 'pointer'.
11241 (s390_decompose_address): Compute it.
11242 (legitimate_la_operand_p): Use it.
11243 (legitimize_la_operand): New function.
11244 (movti, movdi, movdf splitters): Call it.
11246 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
11247 (PREDICATE_CODES): Add s390_plus_operand.
11249 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
11250 (la_ccclobber): Allow GENERAL_REGS as output operand.
11252 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
11253 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
11254 (*la_64, *la_31, reload_indi, reload_insi): ... these.
11256 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11258 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
11259 register names for regular asm () construct.
11261 2002-02-04 Jakub Jelinek <jakub@redhat.com>
11263 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
11266 2002-02-04 Jakub Jelinek <jakub@redhat.com>
11268 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
11271 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
11273 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
11274 constant pool to be identical by string address and index.
11276 2002-02-04 Anthony Green <green@redhat.com>
11278 * output.h (SECTION_OVERRIDE): Define.
11279 * varasm.c (named_section): Obey SECTION_OVERRIDE.
11281 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
11283 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
11284 by existing arm*-*-netbsd* (a.out) target.
11285 (ns32k-*-netbsdelf*): Likewise.
11286 (sparc-*-netbsdelf*): Likewise.
11287 (vax-*-netbsdelf*): Likewise.
11289 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
11291 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
11292 headers and libobjc headers.
11294 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
11296 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
11297 (_mingw.h): Remove duplicate include.
11299 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
11301 * config.gcc: Set cpu_type to m68k for 68010, as well.
11302 (m68010-*-netbsdelf*): New...
11303 (m68k*-*-netbsdelf*): ...targets.
11304 * config/m68k/netbsd-elf.h: New file.
11306 2002-02-02 Kazu Hirata <kazu@hxi.com>
11308 * config/h8300/h8300.c (hand_list): Move inside function_arg.
11310 2002-02-02 Kazu Hirata <kazu@hxi.com>
11312 * config/h8300/h8300.c (h8_push_ops): Move inside
11314 (h8_pop_ops): Likewise.
11315 (h8_move_ops): Likewise.
11317 2002-02-02 Kazu Hirata <kazu@hxi.com>
11319 * config/h8300/h8300.c (os_task): Make it static.
11320 (monitor): Likewise.
11321 (pragma_saveall): Likewise.
11323 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
11325 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
11326 constant is a valid sign-extension for Pmode.
11328 2002-02-02 Kazu Hirata <kazu@hxi.com>
11330 * config/h8300/h8300.c: Fix formatting.
11332 2002-02-02 Kazu Hirata <kazu@hxi.com>
11334 * config/h8300/h8300.md: Fix formatting.
11336 2002-02-02 Kazu Hirata <kazu@hxi.com>
11338 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
11339 predicates of operands[1]. Split the patterns for each
11342 2002-02-02 Kazu Hirata <kazu@hxi.com>
11344 * config/h8300/h8300.md (xor patterns): Tighten the predicates
11345 of operands[1] to register_operand.
11347 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
11349 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
11350 * cpphash.c (_cpp_init_hashtable): Similarly.
11351 * cppinit.c (cpp_create_reader): Default the signed_char flag.
11352 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
11353 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
11354 (cpp_handle_option): Handle the new options.
11355 * cpplex.c (cpp_interpret_charconst): Use new flag.
11356 * cpplib.h (struct cpp_options): New member signed_char.
11357 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
11358 (cpp_options): Handle -fsigned-char and -funsigned-char.
11359 (static_specs): Remove signed_char_spec.
11360 (do_spec1): Don't handle %c.
11361 * system.h: Poison SIGNED_CHAR_SPEC.
11362 * tradcif.y (yylex): Use flag_signed_char.
11363 * tradcpp.h (flag_signed_char): New.
11364 * tradcpp.c (flag_signed_char): New.
11365 (main): Handle new command-line options.
11366 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
11368 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
11369 * avr/avr.h: Remove old comments.
11370 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
11371 (CC1_SPEC): Pass -fsigned-char if -mic*.
11372 (SIGNED_CHAR_SPEC): Remove.
11374 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
11376 2002-02-01 Eric Christopher <echristo@redhat.com>
11378 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
11379 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
11380 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
11381 (ASM_OUTPUT_REG_POP): Ditto.
11383 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
11385 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
11388 2002-02-02 Jakub Jelinek <jakub@redhat.com>
11390 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
11392 2002-02-02 Jakub Jelinek <jakub@redhat.com>
11395 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
11398 2002-02-01 Janis Johnson <janis187@us.ibm.com>
11400 * cfganal.c: Include tm_p.h.
11401 (keep_with_call_p): Fix the test that determines if a register holds
11402 the return value of a call.
11404 2002-02-01 DJ Delorie <dj@redhat.com>
11406 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
11407 we are given conflicting registers, switch to the other one we
11408 had allocated for us.
11409 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
11410 as TImode so we know when the "other" register is available.
11412 2002-02-01 David O'Brien <obrien@FreeBSD.org>
11414 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
11417 2002-02-01 Janis Johnson <janis187@us.ibm.com>
11419 * cfganal.c (keep_with_call_p): New function.
11420 (flow_call_edges_add): Prevent splitting a block between a call and
11421 a single-set instruction that should be kept in the same block.
11423 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
11425 * doc/install.texi (avr): Update outdated URL.
11427 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
11429 * config/stormy16/stormy16.md (pushqi): New.
11433 (movhi): Remove stack operands.
11435 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
11436 nonimmediate_nonstack_operand.
11437 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
11439 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
11442 2002-01-31 Jason Merrill <jason@redhat.com>
11444 * Makefile.in (c-parse.c): Handle .output file.
11445 * objc/Make-lang.in (objc-parse.c): Likewise.
11447 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
11449 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
11450 the -me[lb] option is given. Don't output the default flag
11453 2002-01-31 Zack Weinberg <zack@codesourcery.com>
11455 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
11456 the primary source file; this has not been done yet.
11457 * c-decl.c (c_expand_body): Reset input_filename from
11458 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
11460 2002-01-31 Kazu Hirata <kazu@hxi.com>
11462 * rtlanal.c (subreg_regno_offset): Do not use
11463 SUBREG_REGNO_OFFSET.
11464 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
11465 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
11467 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
11469 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
11470 version rather than GNATS version in --version output.
11472 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
11474 * ifcvt.c (noce_process_if_block): Make a copy of the destination
11475 when copying back from a temporary.
11477 2002-01-30 Richard Henderson <rth@redhat.com>
11479 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
11480 and new_dest are the same.
11482 2002-01-30 Richard Henderson <rth@redhat.com>
11485 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
11486 * rtl.c (note_insn_name): Update.
11487 * emit-rtl.c (remove_unnecessary_notes): Kill it.
11488 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
11489 to perform loop rotation.
11490 (expand_exit_loop_top_cond): New.
11491 * tree.h (expand_exit_loop_top_cond): Declare it.
11492 * c-semantics.c (genrtl_while_stmt): Use it.
11493 (genrtl_for_stmt): Likewise.
11495 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
11497 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
11498 arguments to 64-bit boundaries on 64-bit ABIs.
11500 2002-01-30 Steve Ellcey <sje@cup.hp.com>
11502 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
11504 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
11506 * c-decl.c (grokdeclarator): Handle type being a typedef for an
11509 2002-01-30 David O'Brien <obrien@FreeBSD.org>
11511 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
11512 * config/sparc/sparc_bi.h: Remove file.
11513 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
11515 2002-01-30 Richard Henderson <rth@redhat.com>
11517 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
11519 2002-01-30 Zack Weinberg <zack@codesourcery.com>
11521 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
11523 2002-01-30 Jason Merrill <jason@redhat.com>
11525 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
11526 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
11527 (reg_save): Use DW_CFA_offset_extended_sf instead.
11529 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
11531 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11533 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
11536 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
11538 * rs6000.md ("*call_value_local32"): Remove constraints.
11539 ("*call_value_local64"): Same.
11540 ("*call_value_indirect_nonlocal_aix32"): Same.
11541 ("*call_value_nonlocal_aix32"): Same.
11542 ("*call_value_indirect_nonlocal_aix64"): Same.
11543 ("*call_value_nonlocal_aix64"): Same.
11544 ("*call_value_nonlocal_sysv"): Same.
11546 2002-01-29 Richard Henderson <rth@redhat.com>
11548 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
11550 2002-01-29 Richard Henderson <rth@redhat.com>
11552 * expr.c (force_operand): Ignore flag_pic for detecting pic
11554 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
11555 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
11556 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
11557 instead of open-coded loop.
11558 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
11559 be fixed when in use.
11561 2002-01-29 Richard Henderson <rth@redhat.com>
11563 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
11564 * sched-rgn.c (propagate_deps): Update them.
11565 * sched-deps.c (sched_analyze_insn): Update them. Flush the
11566 clobbers list when either gets too long.
11568 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11570 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
11571 and INDEX_REGS the same as GENERAL_REGS.
11572 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
11574 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
11576 * tree.c (build_nonstandard_integer_type): Correct prototype.
11578 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
11580 * config/s390/s390.md (movstrsico, movstrdix_64,
11581 movstrsix_31): Remove, replace by ...
11582 (movstrdi_short, movstrsi_short, movstrdi_long,
11583 movstrsi_long): ... these. New.
11584 (movstrdi, movstrsi): Adapt.
11586 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
11587 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
11588 Remove unnecessary CC clobber.
11589 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
11590 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
11592 (divmoddi4): Don't partially initialize TImode register.
11594 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
11596 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
11598 2002-01-29 Richard Henderson <rth@redhat.com>
11600 * flow.c (print_rtl_and_abort): Remove.
11601 (print_rtl_and_abort_fcn): Remove.
11602 (verify_local_live_at_start): Use dump_bb instead.
11603 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
11604 (verify_wide_reg_1): Return 2 on mode test failure.
11606 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
11608 PR c/3325, c/3326, c/2511, c/3347
11609 * c-decl.c (enum_decl_context): Remove BITFIELD.
11610 (grokdeclarator): Take bitfield width as an input.
11611 Ensure bitfields are given the correct type. Perform
11612 bitfield width validation with build_bitfield_integer_type
11613 rather than waiting for finish_struct.
11614 (grok_typename, grok_typename_in_parm_context, start_decl,
11615 push_parmdecl, grokfield, start_function): Update calls to
11617 (build_bitfield_integer_type): New function.
11618 (finish_struct): Move bitfield validation to grokdeclarator
11619 and build_bitfield_integer_type.
11620 * tree.c (build_nonstandard_integer_type): New function.
11621 * tree.h (build_nonstandard_integer_type): New prototype.
11623 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
11625 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11628 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
11629 don't ignore unrecognized -W* options.
11630 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
11631 * cpplib.h (cpp_handle_option): Adjust prototype.
11632 * c-decl.c (c_decode_options): Pass 0 as last argument to
11636 * gcc.c (cpp_unique_options): Split from cpp_options.
11637 (cpp_options): Source cpp_unique_options.
11638 (default_compilers): Use cpp_unique_options instead of cpp_options
11639 when used together with cc1_options.
11640 (static_specs): Add cpp_unique_options.
11641 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
11642 when used together with cc1_options.
11644 2002-01-29 Kazu Hirata <kazu@hxi.com>
11646 * config/h8300/h8300-protos.h: Update the prototype of
11648 * config/h8300/h8300.c (output_a_shift): Remove an unused
11649 argument 'insn'. Remove redundant code.
11650 * config/h8300/h8300.md: Adust to the new prototype of
11653 2002-01-29 Kazu Hirata <kazu@hxi.com>
11655 * config/h8300/h8300-protos.h: Update the prototypes of
11656 emit_a_rotate and expand_a_rotate.
11657 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
11658 first argument to 'enum rtx_code'.
11659 (expand_a_rotate): Likewise.
11661 2002-01-28 Kazu Hirata <kazu@hxi.com>
11663 * config/h8300/h8300-protos.h: Update the prototype of
11665 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
11667 * config/h8300/h8300.md: Adjust to the new prototype.
11669 2002-01-28 Kazu Hirata <kazu@hxi.com>
11671 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
11674 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
11676 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
11677 is a fixed register before returning pic_offset_table_rtx.
11678 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
11679 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
11681 2002-01-28 Jason Merrill <jason@redhat.com>
11683 * dwarf2.h: Sync with src version.
11685 2002-01-28 Paul Koning <pkoning@equallogic.com>
11687 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
11688 BT_FN_VOID_PTR_VAR.
11689 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
11690 * doc/extend.texi (__builtin_prefetch): Update documentation:
11691 first argument is now const void ptr.
11693 2002-01-28 Kazu Hirata <kazu@hxi.com>
11695 * config/h8300/h8300-protos.h: Remove an unused prototype.
11697 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
11699 * toplev.c (lang_independent_init): Round up identifier size.
11701 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
11703 * config.gcc: Revert previous change.
11705 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
11707 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
11709 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
11711 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
11712 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
11713 other non-elf netbsd config frags.
11714 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
11715 collect2 will does that.
11716 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
11717 shared-lib frobbing will work.
11719 2002-01-28 Kazu Hirata <kazu@hxi.com>
11721 * config/h8300/h8300.h: Fix formatting.
11722 * config/h8300/h8300.md: Likewise.
11724 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
11726 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
11727 the old, removed AAA_standards fix.
11728 * fixinc/fixincl.x: Rebuilt.
11730 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
11732 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
11733 atexit call in crtbegin, hooked in after call to frame_dummy;
11734 register EH before registering __fini__start.
11736 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
11738 * config/rs6000/altivec.h: Remove spurious semicolons.
11740 2002-01-27 Kazu Hirata <kazu@hxi.com>
11742 * config/h8300/h8300.md: Replace dead bit extraction patterns
11743 with ones that work.
11745 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11747 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
11748 if not STRICT_ALIGNMENT.
11749 * rtl.h (MEM_ALIGN): Likewise.
11751 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
11753 * doc/invoke.texi (-fdump-translation-unit): Revert this
11754 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
11756 2002-01-27 Kazu Hirata <kazu@hxi.com>
11758 * config/h8300/h8300.md (define_constants): New.
11759 (anonymous patterns) Use defined constants appropriately.
11761 2002-01-27 Kazu Hirata <kazu@hxi.com>
11763 * config/h8300/h8300.c (function_arg): Remove redundant code.
11765 2002-01-26 Richard Henderson <rth@redhat.com>
11767 * sched-deps.c (reg_pending_uses_head): New.
11768 (reg_pending_barrier): Rename from reg_pending_sets_all.
11769 (find_insn_list): Don't mark inline.
11770 (find_insn_mem_list): Remove.
11771 (add_dependence_list, add_dependence_list_and_free): New.
11772 (flush_pending_lists): Replace only_write param with separate
11773 for_read and for_write parameters. Update all callers. Use
11774 add_dependence_list_and_free.
11775 (sched_analyze_1): Do not add reg dependencies here; just set
11776 the pending bits. Use add_dependence_list.
11777 (sched_analyze_2): Likewise.
11778 (sched_analyze_insn): Replace schedule_barrier_found with
11779 reg_pending_barrier. Add all dependencies for pending reg
11780 uses, sets, and clobbers.
11781 (sched_analyze): Don't add reg dependencies for calls, just
11782 set pending bits. Use regs_invalidated_by_call. Treat
11783 sched_before_next_call as a normal list, not a fake insn.
11784 (init_deps): No funny init for sched_before_next_call.
11785 (free_deps): Free pending mems lists. Don't zero reg_last.
11786 (init_deps_global): Init reg_pending_uses.
11787 (finish_deps_global): Free it.
11788 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
11789 (find_insn_mem_list): Remove.
11790 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
11791 (propagate_deps): Use them. Zero temp mem lists.
11793 2002-01-26 Richard Henderson <rth@redhat.com>
11795 * Makefile.in (CRTSTUFF_CFLAGS): New.
11796 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
11797 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
11798 crtstuff.c instead of alpha assembly version.
11799 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
11800 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
11801 not FORCE_{INIT,FINI}_SECTION_ALIGN.
11802 (__do_global_dtors_aux): Mark used.
11803 (frame_dummy, __do_global_ctors_aux): Mark used.
11804 (fini_dummy, init_dummy): Remove.
11806 * config/alpha/crtbegin.asm: Remove file.
11807 * config/alpha/crtend.asm: Remove file.
11808 * config/alpha/t-crtbe: Remove file.
11809 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
11810 (LINK_EH_SPEC): New.
11812 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
11813 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
11814 calling constructors.
11815 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
11817 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
11818 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
11819 CRT_END_INIT_DUMMY hack.
11820 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
11821 FORCE_{INIT,FINI}_SECTION_ALIGN.
11823 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
11824 FORCE_{INIT,FINI}_SECTION_ALIGN.
11826 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
11827 invocation sequence.
11828 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
11830 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
11831 (FORCE_CODE_SECTION_ALIGN): New.
11833 2002-01-26 Richard Henderson <rth@redhat.com>
11835 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
11837 2002-01-26 Richard Henderson <rth@redhat.com>
11839 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
11840 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
11842 2002-01-26 Kazu Hirata <kazu@hxi.com>
11844 * config/h8300/h8300.md: Remove bit extraction patterns that
11845 cannot be triggered.
11846 Restrict each bit extraction pattern to a variant on which the
11849 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
11851 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
11853 2002-01-26 Kazu Hirata <kazu@hxi.com>
11855 * config/h8300/h8300.md: Remove bit test patterns that cannot
11857 Restrict each bit test pattern to a variant on which the
11860 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11862 * builtins.c (expand_builtin_strncat): Remove redundant check for
11865 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11867 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
11869 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
11872 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11874 * dbxout.c (dbxout_init): Use assemble_name rather than just
11875 stripping off the first character.
11876 (dbxout_source_file): Likewise.
11878 2002-01-25 DJ Delorie <dj@redhat.com>
11880 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
11881 using rtx_equal_p, not by comparing pointers.
11883 2002-01-25 Steve Ellcey <sje@cup.hp.com>
11885 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
11886 for PIC_OFFSET_TABLE_REGNUM.
11887 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
11889 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11891 * config.gcc (x86_64-*-freebsd*): New target.
11892 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
11894 (i[34567]86-*-freebsd*): Don't include svr4.h.
11895 * config/i386/freebsd64.h: New file.
11897 2002-01-25 Douglas B Rupp <rupp@gnat.com>
11899 * config/alpha/x-vms (version): Make static.
11901 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
11902 in previous checkin.
11904 * Makefile.in (install-headers-cp): New target.
11905 * config.gcc (alpha-dec-*vms*): Install headers with
11908 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
11910 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
11913 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11915 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
11916 of compare_tree_int.
11917 (expand_builtin_strncat): Likewise.
11918 * c-decl.c (finish_struct): Use tree_low_cst.
11919 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
11920 * tree.c (compare_tree_int): Likewise.
11922 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
11924 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
11925 adjustments even if they are implemented by more than two insns.
11927 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
11929 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
11930 * df.h (struct ref): Kill B.
11931 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
11933 * basic-block.h (PROP_EQUAL_NOTES): New flag.
11934 * flow.c (propagate_one_insn): Use it.
11935 (mark_used_regs): Handle NIL.
11937 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11939 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
11942 2002-01-25 David Edelsohn <edelsohn@gnu.org>
11944 * rs6000.md (prefetch): Make address V4SI mode so that the address
11945 is restricted to legitimate form for instruction.
11947 2002-01-25 Bob Wilson <bob.wilson@acm.org>
11949 * doc/install.texi (xtensa-*-elf): New target.
11950 (xtensa-*-linux*): New target.
11951 * doc/contrib.texi: Add myself.
11953 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
11955 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
11956 purpose register to hold an SImode (or smaller) value.
11958 2002-01-25 Jakub Jelinek <jakub@redhat.com>
11960 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
11962 * crtstuff.c: Likewise.
11964 2002-01-25 Kazu Hirata <kazu@hxi.com>
11966 * config/h8300/h8300.md (negation patterns): Tighten
11967 predicates to register_operand.
11969 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
11971 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
11974 * builtins.c (expand_builtin_prefetch): Same.
11976 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11978 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
11981 2002-01-24 Kazu Hirata <kazu@hxi.com>
11983 * config/h8300/h8300.c (print_operand): Remove support for
11984 operand character 'A'.
11985 * config/h8300/h8300.md (three anonymous patterns): Replace
11986 operand character 'A' with either 'T' or 'S'.
11988 2002-01-24 Kazu Hirata <kazu@hxi.com>
11990 * config/h8300/h8300.c (print_operand): Remove support for
11991 operand character 'U'.
11993 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
11995 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
11997 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
11999 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
12000 values to be assigned to the stack pointer.
12002 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
12004 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
12005 to const_double needs to be done right for big-endian systems.
12007 2002-01-24 Jason Merrill <jason@redhat.com>
12010 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
12011 to can_throw_internal.
12013 2002-01-23 Richard Henderson <rth@redhat.com>
12015 * fold-const.c (fold): Change UINT_MAX test to check vs precision
12016 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
12018 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12020 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
12021 (symGOT2reg): Use them, then set as GOT value as unchanging.
12022 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
12023 as a temporary, if possible.
12024 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
12025 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
12027 2002-01-23 Kazu Hirata <kazu@hxi.com>
12029 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
12030 accept to accept 0x80 as operands[2].
12032 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12034 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
12036 2002-01-23 Richard Henderson <rth@redhat.com>
12038 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
12040 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
12042 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
12043 (parmlist_or_identifiers_1): Verify that only a parmlist follows
12046 2002-01-23 Richard Henderson <rth@redhat.com>
12048 * expr.c (move_by_pieces_1): Extend size before negation.
12050 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
12051 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
12052 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
12053 * config/m68k/t-m68kelf: Likewise.
12055 2002-01-23 Bob Wilson <bob.wilson@acm.org>
12057 * config/xtensa/elf.h: New file.
12058 * config/xtensa/lib1funcs.asm: New file.
12059 * config/xtensa/lib2funcs.S: New file.
12060 * config/xtensa/linux.h: New file.
12061 * config/xtensa/t-xtensa: New file.
12062 * config/xtensa/xtensa-config.h: New file.
12063 * config/xtensa/xtensa-protos.h: New file.
12064 * config/xtensa/xtensa.c: New file.
12065 * config/xtensa/xtensa.h: New file.
12066 * config/xtensa/xtensa.md: New file.
12067 * config.gcc (xtensa-*-elf*): New target.
12068 (xtensa-*-linux*): New target.
12069 * cse.c (canon_hash): Compare rtx pointers instead of register
12070 numbers. This is required for the Xtensa port.
12071 * integrate.c (copy_insn_list): Handle case where the static
12072 chain is in memory and the memory address has to be copied to
12074 * doc/invoke.texi (Option Summary): Add Xtensa options.
12075 (Xtensa Options): New node.
12076 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
12078 2002-01-23 Zack Weinberg <zack@codesourcery.com>
12080 * diagnostic.c (internal_error): Do ICE suppression only
12081 when ENABLE_CHECKING is not defined.
12083 * c-typeck.c (require_complete_type): Return error_mark_node
12084 if type is error_mark_node.
12086 2002-01-23 Janis Johnson <janis187@us.ibm.com>
12088 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
12089 -Os and issue a warning.
12091 2002-01-23 Zack Weinberg <zack@codesourcery.com>
12093 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
12094 current (lack of) need for host configuration by hand.
12096 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
12097 references. Documentation of some target macros moved from
12098 hostconfig.texi to tm.texi.
12100 2002-01-23 Will Cohen <wcohen@redhat.com>
12102 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
12105 2002-01-23 Kazu Hirata <kazu@hxi.com>
12107 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
12110 2002-01-23 Jason Merrill <jason@redhat.com>
12112 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
12114 * function.c (assign_parms): Don't put args of inline functions
12115 into registers when not optimizing.
12117 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
12119 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
12120 (prologue_use): New pattern.
12121 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
12122 preference to gen_rtx_USE.
12123 (thumb_expand_prologue): Use gen_prologue_use in preference to
12125 (thumb_expand_epilogue): Use gen_prologue_use in preference to
12128 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
12130 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
12132 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
12135 * doc/extend.texi: Correct documentation of __alignof__.
12137 2002-01-22 Zack Weinberg <zack@codesourcery.com>
12139 * params.h: Rename arguments of DEFPARAM so that it will be
12140 recognized as a translation keyword.
12142 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12144 * extend.texi: Document altivec functions.
12145 Fix N-bit adjectives in X86 builtin documentation.
12147 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
12149 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
12150 auto_inc_dec values.
12152 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
12154 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
12156 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
12158 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
12160 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
12162 2002-01-22 Richard Henderson <rth@redhat.com>
12164 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
12165 copy_insn not copy_rtx.
12167 2002-01-23 Alan Modra <amodra@bigpond.net.au>
12169 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
12170 "nonzero" as that might add "1" bits. Ensure "constop" is
12171 properly sign extened.
12172 (force_to_mode): Tweak for sign extended constop.
12174 2002-01-22 Richard Henderson <rth@redhat.com>
12176 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
12177 for_each_rtx instead of assuming we're already looking at the MEM.
12178 (split_small_symbolic_mem_operand): Likewise.
12179 * config/alpha/alpha.h (PREDICATE_CODES): Update.
12180 * config/alpha/alpha.md (small symbolic memory splitters): Update.
12182 2002-01-22 Richard Henderson <rth@redhat.com>
12184 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
12185 sequence number for the literal.
12186 (divmoddi_internal_er): Likewise.
12188 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
12191 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
12192 in LIBICONV variable.
12193 * configure: Regenerated.
12195 2002-01-22 Krister Walfridsson <cato@df.lth.se>
12197 * dependence.c (build_def_use): Remove array_idx.
12199 * dwarfout.c (last_filename): Remove.
12200 (output_compile_unit_die): Remove last_filename.
12202 2002-01-22 Roger Sayle <roger@eyesopen.com>
12203 Richard Henderson <rth@redhat.com>
12206 * fold-const.c (fold): Optimize unsigned comparisons against
12207 UINT_MAX (and similar unsigned constants).
12209 2002-01-22 Janis Johnson <janis187@us.ibm.com>
12211 * Makefile.in (loop.o): Depend on OPTABS_H.
12212 * loop.c (emit_prefetch_instructions): Check the prefetch operand
12213 against the predicate.
12216 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
12217 for the address operand.
12219 2002-01-22 Richard Henderson <rth@redhat.com>
12221 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
12223 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
12226 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
12227 preprocessor flags.
12229 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
12231 * config.gcc (x86_64-*-netbsd*): New target.
12232 * config/i386/netbsd64.h: New file.
12234 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12236 * regrename.c (kill_value): Fix typo.
12238 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12240 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
12242 * config/rs6000/rs6000.h: Same.
12244 * function.c (instantiate_virtual_regs): Remove
12245 STARTING_FRAME_PHASE.
12246 (assign_stack_local_1): Same.
12247 Calculate frame phase.
12249 2002-01-22 Nick Clifton <nickc@redhat.com>
12251 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
12252 variable declaration to outer scope in order to simplify
12254 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
12255 arm_hard_regno_mode_ok.
12256 * config/arm/arm-protos.h: Add a prototype for
12257 arm_hard_regno_mode_ok.
12258 * config/arm/arm.c (soft_df_operand): Remove now redundant
12259 check for DImode values using IP_REGNUM.
12260 (nonimmediate_soft_df_operand): Remove now redundant check for
12261 DImode values using IP_REGNUM.
12262 (arm_hard_regno_mode_ok): New function. New check: make sure
12263 that DImode values are not stored in IP_REGNUM.
12265 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
12267 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
12269 2002-01-22 Jason Merrill <jason@redhat.com>
12271 * c-semantics.c (genrtl_compound_stmt): Only check nesting
12272 consistency if this COMPOUND_STMT is scoped.
12274 2002-01-22 Kazu Hirata <kazu@hxi.com>
12276 * predict.c: Fix formatting.
12277 * print-tree.c: Likewise.
12278 * protoize.c: Likewise.
12279 * real.h: Likewise.
12281 * sbitmap.h: Likewise.
12282 * scan.c: Likewise.
12283 * sched-deps.c: Likewise.
12284 * sched-vis.c: Likewise.
12285 * sdbout.c: Likewise.
12286 * sibcall.c: Likewise.
12288 * ssa-ccp.c: Likewise.
12289 * ssa-dce.c: Likewise.
12290 * stmt.c: Likewise.
12291 * stor-layout.c: Likewise.
12292 * system.h: Likewise.
12294 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12296 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
12297 if fits in bounds of base type.
12299 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
12300 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
12301 (add_bound_info, default): If can't find a context, make a
12303 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
12305 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
12307 * c-typeck.c (parser_build_binary_op): If result from
12308 build_binary_op is ERROR_MARK just return error_mark_node without
12309 further processing.
12311 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
12313 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
12314 Split a.out-specific bits into...
12315 * config/netbsd-aout.h: ...this.
12316 * config/netbsd-elf.h: New file.
12317 * config/alpha/netbsd-elf.h: Remove.
12318 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
12319 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
12320 (STARTFILE_SPEC): Remove redundant definition.
12321 (ENDFILE_SPEC): Likewise.
12322 (LINK_SPEC): Likewise.
12323 (CPP_SPEC): Likewise.
12324 (ASM_SPEC): Likewise.
12325 (LIB_SPEC): Likewise.
12326 (SWITCH_TAKES_ARG): Likewise.
12327 (TARGET_MEM_FUNCTIONS): Likewise.
12328 (CPP_PREDEFINES): Redefine.
12329 (ASM_FINAL_SPEC): Remove redefinition.
12330 (ASM_COMMENT_START): Redefine.
12331 (FUNCTION_PROFILER): Define.
12332 (TARGET_VERSION): Redefine.
12333 Comment and formatting cleanup.
12334 * config/i386/netbsd.h: Include <netbsd-aout.h>.
12335 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
12336 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
12337 big- or little-endian.
12338 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
12339 * config.gcc (*-*-netbsd*): Add definitions common to all
12341 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
12342 gnu_ld definitions. Add netbsd-elf.h to and remove
12343 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
12344 tmake_file, and don't lose previous tmake_file contents.
12345 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
12346 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
12347 gnu_ld definitions. Add netbsd-elf.h to tm_file.
12348 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
12349 (mipsel-*-netbsd*): Rename this to...
12350 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
12351 mips/little.h to tm_file for mips*el-*.
12352 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
12353 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
12354 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
12356 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
12358 * pa-protos.h (reg_before_reload_operand): New function prototype.
12359 * pa.c (reg_before_reload_operand): New function implementation.
12360 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
12361 contraints to "*m".
12363 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12365 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
12367 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
12369 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
12370 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
12371 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
12372 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
12373 (ENDFILE_SPEC): Undefine.
12374 (STARTFILE_SPEC): Redefine for PA.
12376 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12378 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
12380 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
12382 * config.gcc: Add entries to supported PowerPC --with-cpu
12385 2002-01-21 Jakub Jelinek <jakub@redhat.com>
12387 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
12388 true for 64-bit mode only SSE registers in 32-bit mode.
12390 2002-01-21 Kazu Hirata <kazu@hxi.com>
12392 * unwind-dw2.c: Fix formatting.
12393 * unwind-dw2-fde.c: Likewise.
12394 * unwind-dw2-fde.h: Likewise.
12395 * unwind-pe.h: Likewise.
12396 * varasm.c: Likewise.
12397 * varray.h: Likewise.
12399 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
12401 Remove workaround for register stack overwrite bug in mmix.
12402 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
12403 support for TARGET_REG_STACK_FILL_BUG.
12404 * config/mmix/mmix.h: Remove member has_call_without_parameters.
12405 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
12407 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
12408 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
12409 -mno-reg-stack-fill-bug-workaround.
12410 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
12411 machine member has_call_without_parameters.
12412 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
12413 -mreg-stack-fill-bug-workaround and
12414 -mno-reg-stack-fill-bug-workaround.
12415 (MMIX Options): Ditto.
12417 2002-01-21 Kazu Hirata <kazu@hxi.com>
12419 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
12421 Remove redundant code.
12423 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
12425 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
12426 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12427 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12428 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
12429 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
12430 out target macro definitions and non-target-specific comments
12431 mostly taken from old versions of the manual.
12433 2002-01-20 Kazu Hirata <kazu@hxi.com>
12435 * config/h8300/h8300.h: Fix comment formatting.
12436 * config/ia64/aix.h: Likewise.
12437 * config/ia64/ia64-protos.h: Likewise.
12438 * config/ia64/ia64.c: Likewise.
12439 * config/ia64/ia64.h: Likewise.
12440 * config/ia64/ia64intrin.h: Likewise.
12441 * config/ia64/linux.h: Likewise.
12442 * config/ia64/unwind-aix.c: Likewise.
12443 * config/ia64/unwind-ia64.c: Likewise.
12445 2002-01-20 Kazu Hirata <kazu@hxi.com>
12447 * config/h8300/h8300.c: Revise comments about shift code.
12449 2002-01-20 Kazu Hirata <kazu@hxi.com>
12451 * config/h8300/h8300.c (function_arg): Update a comment.
12453 2002-01-20 Kazu Hirata <kazu@hxi.com>
12455 * config/h8300/h8300.md: Update the comments at the beginning
12458 2002-01-20 Kazu Hirata <kazu@hxi.com>
12460 * config/i370/i370.c: Fix comment formatting.
12461 * config/i370/i370.h: Likewise.
12462 * config/i370/i370.md: Likewise.
12463 * config/i370/linux.h: Likewise.
12465 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12467 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
12469 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
12470 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
12471 in incomplete case.
12473 2002-01-20 Graham Stott <grahams@redhat.com>
12475 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
12477 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
12479 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
12481 2002-01-19 Tom Rix <trix@redhat.com>
12483 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
12485 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
12487 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
12489 * function.c (assign_stack_local_1): Adjust x_frame_offset with
12490 STARTING_FRAME_PHASE.
12491 (STARTING_FRAME_PHASE): New.
12492 (instantiate_virtual_regs): Check saneness of
12493 STARTING_FRAME_PHASE.
12495 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
12497 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12499 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
12501 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
12503 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
12504 be used for bootstrapping GCC 3.0.
12506 2002-01-18 Kazu Hirata <kazu@hxi.com>
12508 * config/h8300/h8300.md: Fix an insn length.
12510 2002-01-18 Kazu Hirata <kazu@hxi.com>
12512 * bitmap.h: Fix comment formatting.
12513 * combine.c: Likewise.
12514 * cppfiles.c: Likewise.
12515 * c-pragma.h: Likewise.
12516 * c-typeck.c: Likewise.
12518 * dwarf2out.c: Likewise.
12519 * function.c: Likewise.
12521 * genattrtab.c: Likewise.
12522 * gthr-win32.h: Likewise.
12523 * haifa-sched.c: Likewise.
12524 * predict.c: Likewise.
12525 * rtlanal.c: Likewise.
12527 * unwind-dw2-fde.h: Likewise.
12528 * unwind-pe.h: Likewise.
12529 * vmsdbgout.c: Likewise.
12531 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12533 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
12534 if type_required and passed decl.
12536 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
12538 * config.gcc (cpu_type): Include altivec.h in powerpc
12542 * config/rs6000/altivec.h: New.
12544 2002-01-17 David Edelsohn <edelsohn@gnu.org>
12546 * doc/install.texi (*-ibm-aix*): Update assembler and exception
12547 handling information.
12548 * doc/trouble.texi (Interoperation): Add libstdc++ information
12550 (Misunderstandings): Add template instantiation and static template
12551 member information for AIX.
12553 2002-01-17 Jason Merrill <jason@redhat.com>
12555 * dbxout.c (dbxout_type): Support const and volatile.
12557 * except.c (add_partial_entry): Remove backwards compatibility code.
12558 (end_protect_partials): Likewise.
12560 2002-01-17 Jakub Jelinek <jakub@redhat.com>
12562 * config/ia64/ia64.md (prologue_use): New.
12563 * config/ia64/ia64.c (ia64_expand_prologue): Use
12564 gen_prologue_use instead of gen_rtx_USE.
12565 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
12566 as CODE_FOR_pred_rel_mutex.
12567 (ia64_sched_reorder2): Likewise.
12569 2002-01-16 Eric Christopher <echristo@redhat.com>
12571 * config/mips/r3900.h: Reformat.
12572 (SUBTARGET_CPP_SIZE_SPEC): Remove.
12573 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
12574 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
12575 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
12576 * config/mips/t-elf: Remove mips3 multilib.
12578 2002-01-16 H.J. Lu <hjl@gnu.org>
12580 * config/mips/linux.h: Include "mips/abi64.h".
12582 2002-01-16 H.J. Lu <hjl@gnu.org>
12584 * config/mips/t-linux: New.
12586 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
12588 * config/mips/linux.h: Don't include "gofast.h".
12589 (INIT_SUBTARGET_OPTABS): Removed.
12591 2002-01-16 Kazu Hirata <kazu@hxi.com>
12593 * config/h8300/h8300-protos.h: Replace emit_a_shift with
12595 * config/h8300/h8300.c: Likewise.
12596 * config/h8300/h8300.md: Likewise.
12598 2002-01-16 Kazu Hirata <kazu@hxi.com>
12600 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
12601 spaces after an opcode name.
12602 (pushqi1_h8300hs): Likewise.
12603 (pushhi1_h8300hs): Likewise.
12605 2002-01-16 Kazu Hirata <kazu@hxi.com>
12607 * doc/extend.texi: Replace "option" with "attribute"
12610 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12612 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
12613 (and:DI () (const_int -8)).
12614 (split_small_symbolic_mem_operand): Split
12615 (mem (and:DI () (const_int -8)).
12617 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12620 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
12621 same way as TYPE_IMUL.
12622 (ultrasparc_sched_reorder): Likewise.
12623 * config/sparc/sparc.md (type): Add comment to update
12624 ultrasparc_sched_reorder when making changes.
12626 2002-01-16 Kazu Hirata <kazu@hxi.com>
12628 * doc/invoke.texi: Change the dump file name of block
12629 reordering pass from 28.bbro to 29.bbro.
12630 Mention -dk option.
12632 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
12634 * i386.md (minsf splitter): Fix pasto.
12636 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
12638 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
12639 to frame pointer initialisation instruction.
12640 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
12641 initialisation instruction.
12642 (soft_df_operand): Do not accept the IP register.
12643 (nonimmediate_soft_df_operand): Do not accept the IP register.
12645 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12648 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
12649 MASK_V8 being both set.
12651 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
12653 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
12654 insn for GOT register; add REG_MAYBE_DEAD notes instead.
12655 config/s390/s390.md (call, call_value): Add GOT register to
12656 CALL_INSN_FUNCTION_USAGE where needed.
12657 (call_exp, call_value_exp): New.
12659 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
12661 * config/arm/arm.c: General formatting tidy up.
12663 2002-01-16 Graham Stott <grahams@redhat.com>
12665 * calls.c (try_to_integrate): Use "(size_t)" intermediate
12666 cast and when casting an integer literal to "rtx" pointer.
12667 (expand_call): Likewise.
12668 * flow.c (try_pre_increment): Likewise.
12669 (find_use_as_address): Likewise.
12670 * integrate.c (expand_iline_function): Likewise.
12671 * regmove.c (try_auto_increment): Likewise.
12673 2002-01-16 Graham Stott <grahams@redhat.com>
12675 * sched-rgn.c (passed): Use sbitmap_free.
12676 (header): Likewise.
12678 (in_queue): Likewise.
12679 (in_stack): Likewise.
12681 2002-01-15 Eric Christopher <echristo@redhat.com>
12683 * flow.c (propagate_one_insn): Change to use fatal_insn.
12685 2002-01-15 Kazu Hirata <kazu@hxi.com>
12687 * expmed.c (extract_fixed_bit_field): Remove unused code.
12688 * system.h: Poison SLOW_ZERO_EXTEND.
12689 * doc/tm.texi: Remove.
12690 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
12691 * config/arm/arm.h: Likewise.
12692 * config/avr/avr.h: Likewise.
12693 * config/clipper/clipper.h: Likewise.
12694 * config/convex/convex.h: Likewise.
12695 * config/d30v/d30v.h: Likewise.
12696 * config/dsp16xx/dsp16xx.h: Likewise.
12697 * config/elxsi/elxsi.h: Likewise.
12698 * config/fr30/fr30.h: Likewise.
12699 * config/h8300/h8300.h: Likewise.
12700 * config/i370/i370.h: Likewise.
12701 * config/i386/i386.h: Likewise.
12702 * config/m68k/m68k.h: Likewise.
12703 * config/mips/mips.h: Likewise.
12704 * config/ns32k/ns32k.h: Likewise.
12705 * config/pdp11/pdp11.h: Likewise.
12706 * config/pj/pj.h: Likewise.
12707 * config/s390/s390.h: Likewise.
12708 * config/sh/sh.h: Likewise.
12709 * config/stormy16/stormy16.h: Likewise.
12710 * config/v850/v850.h: Likewise.
12711 * config/vax/vax.h: Likewise.
12712 * config/we32k/we32k.h: Likewise.
12714 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
12716 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
12717 (altivec_lvsl): Change constraint to b.
12718 (altivec_lvsr): Same.
12719 (altivec_lvebx): Same.
12720 (altivec_lvehx): Same.
12721 (altivec_lvewx): Same.
12722 (altivec_lvxl): Same.
12723 (altivec_lvx): Same.
12724 (altivec_stvx): Add parallel.
12725 (altivec_stvxl): Same.
12726 (altivec_stvehx): Same.
12727 (altivec_stvebx): Same.
12728 (altivec_stvebx): Same.
12730 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
12732 * config.gcc: Change altivec.h to altivec-defs.h.
12734 * config/rs6000/altivec.h: Delete.
12736 * config/rs6000/altivec-defs.h: Add.
12738 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
12740 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
12743 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
12744 less than or equal to eight bytes.
12746 * vax.md (andsi3): Remove constraints and change SET destination
12747 operand type to nonimmediate_operand.
12748 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
12749 when it is a CONST_INT.
12751 2002-01-15 Jason Merrill <jason@redhat.com>
12753 * c-common.def (FILE_STMT): New code.
12754 * c-common.c (statement_code_p): It's a statement.
12755 * c-common.h (stmt_tree_s): Add x_last_filename.
12756 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
12757 (last_expr_filename): New macro.
12758 * c-semantics.c (begin_stmt_tree): Initialize it.
12759 (add_stmt): If the filename changed, also insert a
12761 (expand_stmt): Handle seeing one.
12763 2002-01-15 Eric Christopher <echristo@redhat.com>
12765 * flow.c (propagate_one_insn): Add error message and print out
12766 insn for debugging.
12768 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
12770 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
12771 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
12772 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
12773 TRAMPOLINE_ALIGNMENT.
12774 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
12776 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
12777 PCC_BITFIELD_TYPE_MATTERS.
12778 * config/interix.h (STDC_VALUE): Remove. Use
12779 STDC_0_IN_SYSTEM_HEADERS.
12780 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
12781 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
12782 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
12784 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
12786 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
12787 not work on this platform currently.
12789 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
12791 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
12792 readonly_warning in _().
12794 2002-01-15 Douglas B Rupp <rupp@gnat.com>
12796 * gcc.c (delete_if_ordinary): Backout previous change.
12798 2002-01-15 Kazu Hirata <kazu@hxi.com>
12800 * config/h8300/h8300.c (print_operand): Remove support for
12801 unused operand characters.
12803 * read-rtl.c: Fix formatting.
12804 * real.c: Likewise.
12805 * recog.c: Likewise.
12806 * regclass.c: Likewise.
12807 * regmove.c: Likewise.
12808 * reg-stack.c: Likewise.
12809 * reload1.c: Likewise.
12810 * rtlanal.c: Likewise.
12812 2002-01-15 Kazu Hirata <kazu@hxi.com>
12814 * config/i386/i386.c: Fix formatting.
12816 2002-01-15 Jakub Jelinek <jakub@redhat.com>
12818 * c-typeck.c (process_init_element): Don't save_expr
12819 COMPOUND_LITERAL_EXPR if just its initializer will be used.
12821 2002-01-15 David Edelsohn <edelsohn@gnu.org>
12823 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
12824 emit optional traceback table if optimize_size or TARGET_ELF.
12825 * config/rs6000/rs6000.md (prefetch): New.
12827 2002-01-15 Andreas Jaeger <aj@suse.de>
12829 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
12831 2002-01-15 Kazu Hirata <kazu@hxi.com>
12833 * mips-tfile.c: Fix formatting.
12835 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
12837 * unroll.c (final_reg_note_copy): Fix previous commit.
12839 2002-01-14 Kazu Hirata <kazu@hxi.com>
12841 * config/h8300/h8300-protos.h: Remove the prototype for
12843 * config/h8300/h8300.c (eq_operator): Remove.
12845 2002-01-14 Richard Henderson <rth@redhat.com>
12847 * config/i386/i386.md (prefetch): Tidy.
12848 (prefetch_3dnow): Fix locality operand.
12850 2002-01-14 Richard Henderson <rth@redhat.com>
12852 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
12853 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
12855 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
12857 * reload1.c (reload_combine): Pass reg_sum replacement through
12858 copy_rtx in loop performing multiple changes.
12860 2002-01-14 Jakub Jelinek <jakub@redhat.com>
12862 * except.c (remove_unreachable_regions): New.
12863 (free_eh_status): Clear exception_handler_labels.
12864 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
12865 (find_exception_handler_labels): Don't add the same label more than
12867 (remove_exception_handler_label): Don't die if
12868 find_exception_handler_labels hasn't been called for the current
12871 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
12873 * toplev.c (rest_of_compilation): Rebuild jump labels after
12876 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
12878 * doc/extend.texi: Move documentation of X86 built-in functions
12880 * doc/invoke.texi: From here.
12881 * doc/sourcebuild.texi: Document location of documentation for
12882 machine built-in functions.
12884 2002-01-13 Christopher Faylor <cgf@redhat.com>
12886 * cppfiles.c (TEST_THRESHOLD): New macro.
12887 (SHOULD_MMAP): Ditto.
12888 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
12891 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
12893 * unroll.c (final_reg_note_copy): Properly handle
12895 (unroll_loops): Fix LOOP_CONDITION heuristics.
12897 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
12899 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
12900 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
12902 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
12904 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
12907 2002-01-14 Tom Rix <trix@redhat.com>
12909 * config/rs6000/rs6000.md: Fix typo with sradi.
12911 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
12913 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
12914 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
12915 (clrstrdi, clrstrsi): Adapt callers.
12917 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
12919 (movti splitter): Never use register 0 as base register.
12921 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
12923 * combine.c (simplify_shift_const): Always generate new rtx
12924 for shift expression instead of reusing given expression.
12926 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12928 * config/alpha/alpha.c (alpha_expand_mov): Don't call
12929 alpha_legitimize_address unless mode is Pmode.
12931 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
12933 * doc/md.texi (Modifiers): Document the '*' constraint for the
12936 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
12937 * doc/extend.texi (Function Attributes): 'interrupt' is valid
12940 2002-01-13 Richard Henderson <rth@redhat.com>
12942 * reload.c (find_reloads): Use a hard reg destination as reload reg
12943 for an input reload of the source.
12945 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12947 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
12950 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
12952 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12953 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12955 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
12957 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12959 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
12961 2002-01-12 Tom Rix <trix@redhat.com>
12963 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
12966 2002-01-12 Richard Henderson <rth@redhat.com>
12968 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
12970 * doc/invoke.texi: Update Alpha options.
12972 * doc/invoke.texi: Update i386 built-in function lists.
12974 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
12976 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
12977 referencing outside.
12979 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12981 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
12982 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
12983 offsets, and change line folding.
12984 * optabs.c (expand_binop): Remove warnings.
12985 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
12987 2002-01-12 Graham Stott <grahams@redhat.com>
12989 * attribs.c (handle_deprecated_attribute): constify WHAT.
12990 * diagnostic.c (warn_deprecated_use): Add braces, fixes
12991 dangling else warning and constify WHAT.
12992 * except.h (struct function, struct inline_remap): Move
12993 struct tag forward defs before all prototypes.
12994 (duplicate_eh_regions): Whitespace.
12996 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
12998 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12999 MODE_BASE_REG_CLASS.
13000 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
13002 2002-01-12 Richard Henderson <rth@redhat.com>
13004 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
13005 (ix86_expand_vector_move): New.
13006 (bdesc_2arg): Remove andps, andnps, orps, xorps.
13007 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
13008 Remove old prefetch builtins. Special case the logicals removed above.
13009 (ix86_expand_builtin): Likewise.
13010 (safe_vector_operand): Use V4SFmode, not TImode.
13011 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
13012 (ix86_expand_timode_binop_builtin): New.
13013 * config/i386/i386-protos.h: Update.
13014 * config/i386/i386.h (enum ix86_builtins): Update.
13015 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
13016 Use ix86_expand_vector_move in vector move expanders.
13017 (movti_internal, movti_rex64): Add xorps alternative.
13018 (sse_clrv4sf): Rename and adjust from sse_clrti.
13019 (prefetch): Don't work so hard.
13020 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
13021 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
13022 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
13024 2002-01-11 Richard Henderson <rth@redhat.com>
13026 * config/i386/mmintrin.h: New file.
13027 * config/i386/xmmintrin.h: New file.
13028 * config.gcc (i?86-*-*): Add extra_headers.
13029 * simplify-rtx.c (simplify_unary_operation): Handle saturating
13031 (simplify_binary_operation): Handle saturating arithmetic codes.
13032 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
13033 not the lowpart subreg.
13034 (ix86_expand_builtin): Return a TImode dummy register instead of 0
13036 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
13038 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13040 * conflict.c (conflict_graph_compute): Free regsets when finished.
13041 * ssa.c (compute_coalesced_reg_partition): Likewise.
13043 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13045 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
13046 every where we allocate a register.
13048 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13050 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
13051 * lcm.c (compute_earliest, compute_farthest): Likewise.
13053 2002-01-11 Janis Johnson <janis187@us.ibm.com>
13055 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
13057 2002-01-11 Janis Johnson <janis187@us.ibm.com>
13059 * doc/rtl.texi (Insns): Fix 2 typos.
13061 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
13063 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
13064 options. Use @table @gcctabopt for MMIX options. Add index
13065 entries for MMIX options. Start new paragraph with first
13066 heading of the machine-dependent options.
13068 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
13071 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
13072 * combine.c (force_to_mode): Same.
13073 * reload1.c (clear_reload_reg_in_use): Same.
13075 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
13077 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
13080 2002-01-11 Andreas Jaeger <aj@suse.de>,
13081 Brad Lucier <lucier@math.purdue.edu>
13083 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
13086 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
13088 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
13089 Protect with IN_LIBGCC.
13090 (LINK_EH_SPEC): Add required trailing space.
13092 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
13094 * c-tree.h: Move function declarations so that they are listed
13095 under the filename which contains them.
13096 (check_identifier, finish_decl_top_level,
13097 lookup_name_current_level_global, shadow_record_fields): Remove.
13099 2002-01-11 Andreas Jaeger <aj@suse.de>
13101 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
13104 2002-01-10 Richard Henderson <rth@redhat.com>
13106 * config/alpha/alpha.c (print_operand): Add 'J'.
13107 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
13108 new operand with the sequence number for the lituse. When splitting
13109 the insns, use gen_movdi_er_high_g and generate a sequence number.
13110 (gen_movdi_er_high_g): Print the sequence number if non-zero.
13112 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
13114 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
13115 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
13117 (altivec_expand_builtin): Same.
13118 (altivec_expand_stv_builtin): New.
13120 * config/rs6000/rs6000.h (rs6000_builtins): Same.
13122 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
13123 ("altivec_lvehx"): New.
13124 ("altivec_lvewx"): New.
13125 ("altivec_lvxl"): New.
13126 ("altivec_lvx"): New.
13127 ("altivec_stvx"): New.
13128 ("altivec_stvebx"): New.
13129 ("altivec_stvehx"): New.
13130 ("altivec_stvewx"): New.
13131 ("altivec_stvxl"): New.
13133 2002-01-10 Richard Henderson <rth@redhat.com>
13135 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
13136 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
13137 care not to delete instructions twice.
13139 2002-01-10 Zack Weinberg <zack@codesourcery.com>
13141 * toplev.c: Don't declare environ (it's not used anywhere).
13142 * configure.in: Don't check for declaration of environ.
13143 * config/i386/xm-mingw32.h: Don't #define environ.
13144 * config.in, configure: Regenerate.
13146 2002-01-10 Zack Weinberg <zack@codesourcery.com>
13148 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
13149 * configure: Regenerate.
13151 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
13152 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
13153 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
13155 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
13156 LIMITS_H_TEST here, not in m68k/x-next.
13157 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
13158 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
13160 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
13161 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
13162 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
13164 * config/i386/x-djgpp: Renamed i386/t-djgpp.
13165 * config/m88k/x-dolph: Renamed m88k/t-dolph.
13166 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
13167 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
13168 replacement of quadlib.asm with quadlib.c.
13170 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
13171 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
13172 config/rs6000/xm-beos.h: Delete file.
13174 * config.gcc: Update to match above changes.
13176 2002-01-10 Kazu Hirata <kazu@hxi.com>
13178 * config/h8300/h8300.h: Fix comment typos.
13179 * config/h8300/h8300.md: Likewise.
13180 * config/h8300/lib1funcs.asm: Likewise.
13182 2002-01-10 Dale Johannesen <dalej@apple.com>
13184 PR optimization/5269
13185 * unroll.c (precondition_loop_p): Make *increment be the correct
13186 sign when n_iterations known, to avoid confusing caller.
13188 2002-01-10 Kazu Hirata <kazu@hxi.com>
13190 * doc/extend.texi (deprecated): Fix a typo.
13192 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
13194 * basic-block.h (update_br_prob_note): Declare.
13195 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
13196 (try_forward_edges): Care negative frequencies and update note.
13197 (outgoing_edges_match): Tweek conditional merging heuristics.
13198 (try_crossjump_to_edge): use update_br_prob_note.
13199 * cfglayout.c (fixup_reorder_chain): Likewise.
13200 * cfrtl.c (update_br_prob_note): New.
13201 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
13203 * i386.c (ix86_decompose_address): Return -1 if address contains
13205 (legitimate_address_p): Require ix86_decompose_address to return 1.
13207 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
13208 (cprop_insn): Likewise.
13210 2002-01-10 Kazu Hirata <kazu@hxi.com>
13212 * toplev.c: Fix formatting.
13213 * tree.c: Likewise.
13214 * tree-dump.c: Likewise.
13215 * unroll.c: Likewise.
13216 * unwind-dw2.c: Likewise.
13217 * unwind-dw2-fde.c: Likewise.
13218 * unwind-dw2-fde-glibc.c: Likewise.
13219 * unwind-sjlj.c: Likewise.
13221 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
13223 * doc/invoke.texi: Document PDP-11 options.
13225 2002-01-10 Kazu Hirata <kazu@hxi.com>
13227 * config/h8300/h8300.h: Fix formatting.
13229 2002-01-10 Ira Ruben <ira@apple.com>
13231 Add __attribute__ ((deprecated)).
13232 * extend.texi: Document __attribute__ ((deprecated)).
13233 * invoke.texi: Document -Wno-deprecated-declarations.
13234 * testsuite/g++.dg/other/deprecated.C: New C++ test.
13235 * testsuite/gcc.dg/deprecated.c: New C test.
13236 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
13237 (c_common_attribute_table): Add "deprecated" entry.
13238 (handle_deprecated_attribute): New function.
13239 * c-decl.c (deprecated_states): New enum.
13240 deprecated_state: State of "deprecated" handling.
13241 (start_decl): Set deprecated_state based on attributes.
13242 (grokdeclarator): Test for deprecated uses, propagate attribute.
13243 * c-typeck.c (build_component_ref): Test for deprecated fields.
13244 (build_external_ref): Test for deprecated primaries.
13245 * diagnostic.c (warn_deprecated_use) New function to issue
13246 warnings about __attribute__ ((depricated)) references.
13247 * flags.h (warn_deprecated_decl): Extern declared for
13248 -W[no-]deprecated-declarations option.
13249 * print-tree.c (print_node): Show deprecated flag status.
13250 * toplev.c (warn_deprecated_decl): Defined.
13251 (W_options): Added "deprecated-declaration".
13252 * toplev.h (warn_deprecated_use): Extern declared.
13253 * tree.h (struct tree_common): Define deprecated_flag.
13254 (TREE_DEPRECATED): New macro to access flag.
13255 * cp/call.c (build_call): Test for deprecated calls.
13256 * cp/class.c (add_implicitly_declared_members): Set global
13257 flag to tell grokdeclarator to not issue deprecated warnings.
13258 * cp/cp-tree.h: Add extern for adding_implicit_members.
13259 * cp/decl.c (deprecated_states): New enum.
13260 (start_decl): Set deprecated_state based on attributes.
13261 (grokdeclarator): Test for deprecated uses, propagate attribute.
13262 * cp/lex.c (do_identifier): Test for deprecated primaries.
13263 * cp/typeck.c (build_component_ref): Test for deprecated fields.
13265 2002-01-10 Ira Ruben <ira@apple.com>
13267 Fix to assign attributes to inline member functions.
13268 * cp/decl.c (start_method): Handle attrlist.
13270 2002-01-10 Kazu Hirata <kazu@hxi.com>
13272 * combine.c (expand_field_assignment): Use subreg_lsb().
13274 2002-01-10 David Edelsohn <edelsohn@gnu.org>
13276 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
13277 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
13278 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
13279 Recurse for any operand of AND as long as constant is non-zero.
13281 2002-01-10 Kazu Hirata <kazu@hxi.com>
13283 * config/h8300/h8300.md: Remove constraints from expanders.
13285 2002-01-10 Kazu Hirata <kazu@hxi.com>
13287 * varasm.c: Fix formatting.
13288 * varray.c: Likewise.
13289 * vmsdbgout.c: Likewise.
13290 * xcoffout.c: Likewise.
13292 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
13294 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
13295 update edge probabilities to match.
13297 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
13299 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
13301 * doc/languages.texi, doc/sourcebuild.texi: New files.
13302 * doc/configfiles.texi: Make a subsubsection. Update.
13303 * doc/configterms.texi: Add @node. Remove warning that this isn't
13304 instructions for building GCC.
13305 * doc/makefile.texi: Make a subsection.
13306 * doc/gccint.texi: Update.
13308 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
13310 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
13312 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
13314 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
13316 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
13318 * optabs.c (expand_fix): Look for wider integer modes first.
13320 * i386.md (mov?f): Avoid the fake const double trick for medium
13322 (min?f*/max?f*): Prohibit memory operands for i387 variant.
13323 (fop_df_4): Disable for SSE compilation.
13325 2002-01-10 Graham Stott <grahams@redhat.com>
13327 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
13328 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
13330 2002-01-10 Richard Henderson <rth@redhat.com>
13332 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
13334 2002-01-10 Richard Henderson <rth@redhat.com>
13336 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
13337 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
13339 2002-01-10 Kazu Hirata <kazu@hxi.com>
13341 * combine.c (can_combine_p): Fix a comment typo.
13343 2002-01-09 Zack Weinberg <zack@codesourcery.com>
13345 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
13346 empty list correctly. Change loop index $t to $f for
13347 consistency with rest of Makefile.
13349 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
13351 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
13352 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13354 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
13355 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
13356 (altivec_init_builtins): Same.
13357 (altivec_expand_unop_builtin): Return NULL_RTX on error.
13358 (altivec_expand_binop_builtin): Same.
13359 (altivec_expand_ternop_builtin): Same.
13362 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
13363 ("altivec_vctuxs"): Fix typo.
13364 ("altivec_vnmsubfp"): Same.
13365 ("altivec_dssall"): New.
13366 ("altivec_mfvscr"): New.
13367 ("altivec_dss"): New.
13368 ("altivec_lvsl"): New.
13369 ("altivec_lvsr"): New.
13370 ("altivec_dstt"): New.
13371 ("altivec_dstst"): New.
13372 ("altivec_dststt"): New.
13373 ("altivec_dst"): New.
13375 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
13376 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13378 2002-01-09 Richard Henderson <rth@redhat.com>
13380 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
13382 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
13384 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
13386 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
13388 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
13390 2002-01-09 Kazu Hirata <kazu@hxi.com>
13392 * read-rtl.c: Fix formatting.
13393 * real.c: Likewise.
13394 * regclass.c: Likewise.
13395 * regrename.c: Likewise.
13396 * reg-stack.c: Likewise.
13397 * reload1.c: Likewise.
13398 * reload.c: Likewise.
13401 2002-01-09 Kazu Hirata <kazu@hxi.com>
13403 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
13404 to extract items in the expr_list chain.
13406 2002-01-09 Richard Henderson <rth@redhat.com>
13408 * config/vax/vax.c (vax_rtx_cost): Never abort.
13410 * config/vax/vax.h (REAL_ARITHMETIC): Define.
13412 2002-01-09 Jan Hubicka <jh@suse.cz>
13414 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
13416 2002-01-09 Richard Henderson <rth@redhat.com>
13418 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
13419 Unify code from various alternatives.
13421 2002-01-09 Richard Henderson <rth@redhat.com>
13423 * regrename.c (copy_value): Ignore the copy if the source register
13424 is present in the value chain with a narrower mode.
13426 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13428 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
13429 for the c4x target. Also improve layout.
13431 2002-01-09 Richard Henderson <rth@redhat.com>
13433 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
13434 * config/m32r/m32r.md (and ior xor splitters): Swap operands
13435 to match insn patterns.
13437 2002-01-09 Richard Henderson <rth@redhat.com>
13439 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
13440 (copyprop_hardreg_forward_1): Likewise.
13442 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
13444 * pa.md (decrement_and_branch_until_zero): Change predicate for
13445 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
13447 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
13449 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
13450 gets undefined. For Darwin.
13452 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13454 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
13456 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13458 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
13460 2002-01-08 Richard Henderson <rth@redhat.com>
13462 * regrename.c (copy_value): Ignore overlapping copies.
13464 2002-01-08 Richard Henderson <rth@redhat.com>
13466 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
13467 as needed to avoid shared structure.
13469 2002-01-08 Kazu Hirata <kazu@hxi.com>
13471 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
13474 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13476 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
13477 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
13478 documentation of obsolete macros.
13479 * system.h: Poison these macros.
13480 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
13481 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
13482 config/c4x/c4x.h, config/clipper/clipper.h,
13483 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
13484 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
13485 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
13486 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
13487 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
13488 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
13489 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
13490 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
13491 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
13492 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
13493 config/sparc/sparc.h, config/stormy16/stormy16.h,
13494 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
13495 definitions and commented out definitions of obsolete macros.
13496 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
13497 of MAX_INT_TYPE_SIZE.
13499 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
13501 * config/s390/s390.c (s390_preferred_reload_class): Never
13502 return ADDR_REGS if it isn't a subset of the given class.
13503 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
13504 FP_REGS, but all superclasses as well.
13506 * config/s390/s390.c (s390_function_profiler): Fix thinko.
13508 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
13509 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
13510 must not be a const_int.
13512 2002-01-08 Richard Henderson <rth@redhat.com>
13514 * Makefile.in (toplev.o): Depend on options.h.
13515 (gcc.o): Depend on specs.h.
13517 2002-01-08 Jakub Jelinek <jakub@redhat.com>
13519 * expr.c (store_expr): Convert VOIDmode constants back to target's
13522 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13524 * doc/invoke.texi: Markup gcc as @command. Refer to
13525 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
13526 of http://gcc.gnu.org/thanks.html.
13528 2002-01-08 Dale Johannesen <dalej@apple.com>
13530 * config/rs6000/rs6000.md: Add missing int register
13531 target case to movdf_low.
13533 2002-01-08 Zack Weinberg <zack@codesourcery.com>
13535 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
13536 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
13537 (cppinit.o): Depend on except.h.
13538 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
13539 s-specs): New rules.
13541 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
13542 Don't create specs.h/options.h/gencheck.h here. Remove
13543 unnecessary variable settings from last argument of AC_OUTPUT.
13544 * config.in, configure: Regenerate.
13545 * intl.c: Hardcode package name as "gcc".
13547 * cppinit.c: Include except.h.
13548 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
13550 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
13551 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
13552 (!)USING_SJLJ_EXCEPTIONS.
13553 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
13555 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13557 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
13558 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
13559 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
13560 documentation of obsolete macros.
13561 * system.h: Poison these macros.
13562 * config/d30v/d30v.h, config/ns32k/encore.h,
13563 config/stormy16/stormy16.h: Remove definitions and commented out
13564 definitions of obsolete macros.
13566 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
13568 * objc/objc-act.c (handle_class_ref): Mark the declaration of
13569 %sobjc_class_ref_%s as used - to prevent unwanted compiler
13572 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
13574 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
13575 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
13576 to insn adjusting stack/frame pointer.
13577 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
13578 accept operands that cause the insn to be non-splittable.
13580 2002-01-08 Graham Stott <grahams@redhat.com>
13582 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
13583 (C_TYPE_FIELDS_VOLATILE): Likewise.
13584 (C_TYPE_BEING_DEFINED): Likewise.
13585 (C_IS_RESERVED_WORD): Likewise.
13586 (C_TYPE_VARIABLE_SIZE): Likewise.
13587 (C_DECL_VARIABLE_SIZE): Likewise.
13588 (C_MISSING_PROTOTYPE_WARNED): Likewise.
13589 (C_SET_EXP_ORIGINAL_CODE): Likewise.
13590 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
13592 (C_DECL_ANTICIPATED): Likewise.
13593 (c_build_type_variant): Add parenthesis.
13595 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13597 * gcc.c (option_map): Remove --version.
13598 (process_command): Handle -fversion following the GNU Coding
13599 Standards. Partially addresses PR other/704.
13601 2002-01-08 Graham Stott <grahams@redhat.com>
13603 * combine.c (combine_instructions): Fix typo.
13605 2002-01-08 Graham Stott <grahams@redhat.com>
13607 * debug.h: Use "tree" and "rtx" throughout.
13609 * debug.c: Likewise.
13611 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
13613 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
13614 constant pool, use the pool's version of the symbol instead.
13616 2002-01-07 Richard Henderson <rth@redhat.com>
13618 * regrename.c (find_oldest_value_reg): Ignore the value chain if
13619 the original register was copied in a mode with a fewer number of
13620 hard registers than the desired mode.
13621 (copyprop_hardreg_forward_1): Likewise.
13622 (debug_value_data): Fix loop test.
13623 * toplev.c (parse_options_and_default_flags): Reenable
13624 -fcprop-registers at -O1.
13626 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13628 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
13629 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
13631 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
13634 * config/rs6000/rs6000.md: Add altivec predicate patterns.
13636 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
13638 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
13639 (pa_output_function_prologue): Output local label at the beginning of
13640 the prologue when profiling.
13641 (hppa_profile_hook): Use the local label rather than the function label.
13642 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
13644 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13646 * config/rs6000/rs6000.c (print_operand): Remove extra space.
13647 (altivec_expand_unop_builtin): Fix thinko.
13648 (altivec_expand_binop_builtin): Same.
13649 (altivec_expand_ternop_builtin): Same.
13650 (altivec_expand_builtin): Same.
13652 2002-01-07 Richard Henderson <rth@redhat.com>
13654 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
13656 2002-01-07 Jason Merrill <jason@redhat.com>
13658 * unwind-dw2.c (execute_cfa_program): Use < again.
13660 2002-01-07 Jakub Jelinek <jakub@redhat.com>
13662 * predict.c (combine_predictions_for_insn): Avoid division by zero.
13664 2002-01-07 Jakub Jelinek <jakub@redhat.com>
13666 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
13667 Don't allow -1 - x -> ~x simplifications in the first pass.
13669 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13671 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
13673 (altivec_expand_binop_builtin): Same.
13674 (altivec_expand_unop_builtin): Same.
13675 (print_operand): Fix typo.
13676 (bdesc_1arg): Add vupk* variants.
13678 * rs6000.h (rs6000_builtins): Add vupk* enums.
13680 * rs6000.md: Add altivec_vupk* variants.
13682 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
13684 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
13685 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
13686 and last update dates.
13688 2002-01-07 Janis Johnson <janis187@us.ibm.com>
13690 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
13692 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
13694 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
13695 * config/avr/avr.h (CPP_SPEC): Likewise.
13696 (LINK_SPEC): Likewise.
13697 (CRT_BINUTILS_SPECS): Likewise.
13698 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13699 * doc/invoke.texi (AVR Options): Document them.
13701 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
13703 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
13706 2002-01-07 Graham Stott <grahams@redhat.com>
13708 * config/i386/i386.h: Update copyright date.
13709 (HALF_PIC_PTR): Add parenthesis.
13710 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
13711 (CONSTANT_ALIGNMENT): Add parenthesis.
13712 (DATA_ALIGNMENT): Likewise.
13713 (LOCAL_ALIGNMENT): Likewise.
13714 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
13715 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
13716 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
13717 (HARD_REGNO_NREGS): Add paranethesis.
13718 (VALID_SSE_REG_MODE): Whitespace.
13719 (VALID_MMX_REG_MODE): Whitespace.
13720 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
13721 (ix86_hard_regno_mode_ok): Add parenthesis.
13722 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
13723 (RETURN_IN_MEMORY): Whitespace.
13724 (N_REG_CLASSES): Add parenthesis.
13725 (INTEGER_CLASS_P): Add parenthesis and wrap.
13726 (FLOAT_CLASS_P): Likewise.
13727 (SSE_CLASS_P): Likewise.
13728 (MMX_CLASS_P): Likewise.
13729 (MAYBE_INTEGER_CLASS_P): Likewise.
13730 (MAYBE_FLOAT_CLASS_P): Likewise.
13731 (MAYBE_SSE_CLASS_P): Likewise.
13732 (MAYBE_MMX_CLASS_P): Likewise.
13733 (Q_CLASS_P): Likewise.
13734 (GENERAL_REGNO_P): Uppercase macro parameter.
13735 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
13736 (FP_REGNO_P): Likewise.
13737 (ANY_FP_REGNO_P): Uppercase macro parameter.
13738 (SSE_REGNO_P): Likewise.
13739 (SSE_REGNO): Likewise.
13740 (SSE_REG_P): Likewise.
13741 (SSE_FLOAT_MODE_P): Likewise.
13742 (MMX_REGNO_P): Likewise.
13743 (MMX_REG_P):Likewise.
13744 (STACK_REG_P): Likewise.
13745 (NON_STACK_REG_P): Likewise.
13746 (STACK_TOP_P): Likewise.
13747 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
13748 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
13749 (SECONDARY_MEMORY_NEEDED): Likewise.
13750 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
13751 (MD_ASM_CLOBBERS): Whitespace and wrap.
13752 (MUST_PASS_IN_STACK): Whitespace and wrap.
13753 (RETURN_POPS_ARGS): Add parenthesis.
13754 (INIT_CUMULATIVE_ARGS): Likewise.
13755 (FUNCTION_ARG): Likewise.
13756 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
13757 (SETUP_INCOMING_VARARGS): Likewise.
13758 (BUILD_VA_LIST_TYPE): Add parenthesis.
13759 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
13761 (EXPAND_BUILTIN_VA_ARG): Likewise.
13762 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
13763 (INITIALIZE_TRAMPOLINE): Add parenthesis.
13764 (INITIAL_ELIMINATION_OFFSET): Likewise.
13765 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
13766 (REGNO_OK_FOR_BASE_P): Likewise.
13767 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
13768 (REGNO_OK_FOR_DIREG_P): Likewise.
13769 (REG_OK_FOR_INDEX_P): Whitespace.
13770 (REG_OK_FOR_BASE_P): Whitespace.
13771 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
13773 (FIND_BASE_TERM): Fix typo.
13774 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
13775 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
13776 (SYMBOLIC_CONST; Whitespace.
13777 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
13778 (ENCODE_SECTION_INFO): Whitespace.
13779 (FINALIZE_PIC): Remove do { ... } while (0).
13780 (PROMOTE_MODE): Wrap in do { ... } while (0).
13781 (CONST_COSTS): Whitespace.
13782 (RTX_COSTS): Add paramethesis, whitespace and wrap.
13783 (REGISTER_MOVE_COST): Add parenthesis.
13784 (MEMORY_MOVE_COST): Likewise.
13785 (EXTRA_CC_MODES): Whitespace.
13786 (SELECT_CC_MODE): Add parenthesis and whitespace.
13787 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
13788 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
13789 (ASM_OUTPUT_LABEL): Add paramethesis.
13790 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
13791 (ASM_OUTPUT_REG_POP): Likewise.
13792 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
13793 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13795 * config/i386/i386.c: Update copyright.
13796 (CHECK_STACK_LIMIT): Add parenthesis.
13797 (AT_BP): Uppercase macro parameter.
13798 (x86_64_int_parameter_registers): Constify.
13799 (x86_64_int_return_registers): Likewise.
13800 (ix86_compare_op0): Use rtx.
13801 (construct_container): Constify INTREG parameter.
13802 (function_arg): Use rtx.
13804 * diagnostic.h: Update copyright date.
13805 (output_buffer_state): Add parenthesis.
13806 (output_buffer_format_args): Likewise.
13808 * combine.c (combine_instructions): Replace XEXP (links, 0)
13811 2002-01-06 H.J. Lu <hjl@gnu.org>
13813 * cfgcleanup.c (thread_jump): Fix 2 typos.
13815 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
13817 * config.gcc: Add support for --enable-altivec.
13819 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13821 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
13823 2002-01-06 Jakub Jelinek <jakub@redhat.com>
13825 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
13826 __objc_class_name_*.
13828 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13830 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
13832 2002-01-06 Richard Henderson <rth@redhat.com>
13834 * reorg.c (emit_delay_sequence): Remove death notes, not merely
13835 nop them out. Increment label reference count for REG_LABEL.
13836 (fill_slots_from_thread): Frob label reference count around
13837 delete_related_insns.
13839 2002-01-05 Richard Henderson <rth@redhat.com>
13841 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
13844 2002-01-05 Richard Henderson <rth@redhat.com>
13846 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
13847 * integrate.c (output_inline_function): Likewise.
13848 * toplev.c (rest_of_compilation): Do it here instead. Move call
13849 to remove_unnecessary_notes after emitting abstract instance.
13850 Force an emitted nested function to have its parent emited as well.
13851 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
13853 (rtl_for_decl_location): Do not look at reload data structures
13854 before reload has run.
13856 2002-01-05 Kazu Hirata <kazu@hxi.com>
13858 * cse.c: Fix formatting.
13859 * dwarf2asm.c: Likewise.
13860 * dwarf2out.c: Likewise.
13861 * explow.c: Likewise.
13862 * expmed.c: Likewise.
13863 * function.c: Likewise.
13864 * gcov.c: Likewise.
13865 * gencheck.c: Likewise.
13866 * genrecog.c: Likewise.
13867 * ggc-common.c: Likewise.
13868 * ggc-page.c: Likewise.
13869 * global.c: Likewise.
13871 2002-01-05 Kazu Hirata <kazu@hxi.com>
13873 * combine.c: Fix formatting.
13875 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
13878 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
13880 2002-01-05 David Edelsohn <edelsohn@gnu.org>
13882 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
13883 as 1 for __powerpc64__ as well.
13885 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
13887 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
13890 2002-01-05 Daniel Berlin <dan@dberlin.org>
13892 * lcm.c: Revert change, due to performance regression it causes on
13893 SPEC because it's slightly more conservative (sigh, I hate
13896 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
13898 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
13900 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
13902 * doc/cppinternals.texi: Update.
13904 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
13906 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
13907 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
13909 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
13910 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
13911 kludge for pre-october-14th mmix versions to handle new-found bug
13912 with PUSHJ/PUSHGO and the register stack.
13913 * config/mmix/mmix.h (struct machine_function): Rename member
13914 has_call_value_without_parameters to has_call_without_parameters.
13915 All referers changed.
13916 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
13917 TARGET_MASK_BRANCH_PREDICT): New macros.
13918 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
13919 -mno-reg-stack-fill-bug-workaround.
13920 * config/mmix/mmix.md ("call"): Set struct machine member
13921 has_call_without_parameters.
13923 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
13925 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
13927 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
13929 * cfgcleanup.c: Include tm_p.h
13930 (mark_effect): Fix handling of hard register; fix handling of SET
13932 2002-01-04 Kazu Hirata <kazu@hxi.com>
13934 * config/h8300/h8300.md (anonymous patterns): Check that
13935 operands are registers before using REGNO on them.
13937 2002-01-03 Roland McGrath <roland@frob.com>
13939 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
13941 2002-01-04 Jakub Jelinek <jakub@redhat.com>
13943 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
13944 * c-common.h (genrtl_expr_stmt_value): Likewise.
13945 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
13946 (expand_expr_stmt_value): Add maybe_last argument.
13947 Don't warn about statement with no effect if it is the last statement
13948 in expression statement.
13949 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
13950 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
13951 expand_expr_stmt_value.
13952 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
13953 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
13954 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
13955 as maybe_last to expand_expr_stmt_value.
13957 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
13959 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
13960 be passed in, do not build it.
13961 (c_begin_if_stmt): New function.
13962 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13963 * c-common.h (c_expand_start_cond): Update prototype.
13964 (c_begin_if_stmt): Prototype new function.
13965 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13966 * c-parse.in (if_prefix): Use c_begin_if_stmt,
13967 c_begin_while_stmt and c_finish_while_stmt_cond.
13969 2002-01-04 William Cohen <wcohen@redhat.com>
13971 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
13972 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
13973 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
13974 * config/pa/som.h (ASM_FILE_START): Likewise.
13976 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
13978 * lcm.c: Include df.h.
13979 Add available_transfer_function prototype.
13980 (compute_available): Rework to use iterative dataflow framework.
13981 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
13982 with bb_info in df.h
13983 (available_transfer_function): New function.
13985 * Makefile.in (lcm.o): add df.h to dependencies.
13987 2002-01-04 Richard Henderson <rth@redhat.com>
13989 * config/alpha/alpha.c (some_operand): Accept HIGH.
13990 (input_operand): Likewise; accept simple references to globals.
13991 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
13992 (alpha_const_double_ok_for_letter_p): Likewise.
13993 (alpha_extra_constraint): Likewise.
13994 (alpha_preferred_reload_class): Likewise. Do not force
13995 symbolic constants to memory.
13996 (alpha_legitimate_address_p): Accept simple references
13997 to small_symbolic_operand.
13998 (alpha_legitimize_address): New arg scratch. Be prepared to be
13999 called when no_new_pseudos. Emit simple symbolic references.
14000 Split integers into low, high, and rest.
14001 (alpha_expand_mov): Use alpha_legitimize_address.
14002 (some_small_symbolic_mem_operand): New.
14003 (split_small_symbolic_mem_operand): New.
14004 * config/alpha/alpha-protos.h: Update.
14005 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
14006 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
14007 (EXTRA_CONSTRAINT): Likewise.
14008 (PREFERRED_RELOAD_CLASS): Likewise.
14009 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
14010 (PREDICATE_CODES): Update.
14011 * config/alpha/alpha.md: New post-reload splitters to convert
14012 simplfied symbolic operands to the form that references $29.
14013 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
14014 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
14016 2002-01-03 Richard Henderson <rth@redhat.com>
14018 * local-alloc.c (function_invariant_p): Update commentary.
14020 2002-01-04 H.J. Lu <hjl@gnu.org>
14022 * toplev.c (rest_of_compilation): Fix a typo when calling
14025 2002-01-03 Kazu Hirata <kazu@hxi.com>
14027 * c-common.c: Fix formatting.
14028 * diagnostic.c: Likewise.
14029 * doloop.c: Likewise.
14030 * dwarf2out.c: Likewise.
14032 2002-01-03 Kazu Hirata <kazu@hxi.com>
14034 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
14035 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
14037 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
14039 * cpperror.c: Update comments and copyright.
14040 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
14041 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
14043 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
14045 * collect2.c (main): Use strcmp when testing for "-shared".
14047 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
14049 * cppmacro.c: Don't include intl.h. Update comments.
14050 (new_number_token): Allocate enough buffer for 64-bit unsigned
14051 integers; update prototype.
14052 * cppmain.c: Update comments.
14054 2002-01-03 William Cohen <wcohen@redhat.com>
14056 * function.h (struct function): Add profile.
14057 (current_function_profile): New.
14058 doc/extend.texi: Update documentation.
14059 * final.c (final_start_function): Use current_function_profile
14060 instead of profile_flag.
14061 (profile_after_prologue): Likewise.
14062 * function.c (expand_function_start): Likewise.
14063 (expand_function_start): Likewise.
14064 * config/alpha/alpha.c (direct_call_operand):
14065 (alpha_does_function_need_gp): Likewise.
14066 (alpha_expand_prologue): Likewise.
14067 * config/arm/arm.c (arm_expand_prologue): Likewise.
14068 thumb_expand_prologue: Likewise.
14069 * config/d30v/d30v.c (d30v_stack_info): Likewise.
14070 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
14071 (fr30_expand_prologue): Likewise.
14072 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
14073 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
14074 * config/i386/i386.h (FINALIZE_PIC): Likewise.
14075 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
14076 * config/i960/i960.c (i960_output_function_prologue): Likewise.
14077 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14078 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
14079 (m32r_expand_prologue): Likewise.
14080 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
14081 (m88k_expand_prologue): Likewise.
14082 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
14083 * config/mips/mips.c (compute_frame_size): Likewise.
14084 (mips_expand_prologue): Likewise.
14085 (mips_can_use_return_insn): Likewise.
14086 * config/pa/elf.h (ASM_FILE_START): Likewise.
14087 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14088 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14089 * config/pa/som.h (ASM_FILE_START): Likewise.
14090 * config/romp/romp.c (romp_using_r14): Likewise.
14091 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
14092 (rs6000_stack_info): Likewise.
14093 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14094 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
14095 * config/v850/v850.c (compute_register_save_size): Likewise.
14097 2002-01-03 Jakub Jelinek <jakub@redhat.com>
14099 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
14100 gen_lowpart_common fails, use gen_lowpart_SUBREG.
14102 2002-01-03 Turly O'Connor <turly@apple.com>
14104 * darwin.c (machopic_output_possible_stub_label): Don't generate
14105 stub routines for pseudo-stubs which we've just defined.
14107 2002-01-03 Kazu Hirata <kazu@hxi.com>
14109 * builtins.c: Fix formatting.
14110 * c-typeck.c: Likewise.
14111 * combine.c: Likewise.
14112 * expr.c: Likewise.
14113 * loop.c: Likewise.
14115 2002-01-03 Andreas Schwab <schwab@suse.de>
14117 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
14118 and return true if _cpp_push_next_buffer pushed a new include
14120 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
14121 _cpp_pop_file_buffer did not push a new file.
14122 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
14124 2002-01-02 Eric Christopher <echristo@redhat.com>
14126 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
14127 FIND_REG_INC_NOTE call. Update copyright.
14128 * loop.c (canonicalize_condition): Ditto.
14129 * reorg.c (delete_scheduled_jump): Ditto.
14131 2002-01-03 Kazu Hirata <kazu@hxi.com>
14133 * gcse.c: Fix formatting.
14135 2002-01-03 Graham Stott <grahams@redhat.com>
14137 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
14138 forward defs for struct tags rtx_def, union_tree, rtvec_def
14139 also output corresponding typedefs for rtx, tree, and rtvec.
14141 * system.h: Move forward defs for struct tags rtx_def, union_tree,
14142 rtvec_def along with corresponding typedefs for rtx, tree, and
14143 rtvec to config.h, hconfig.h, tconfig.h.
14145 2002-01-03 Graham Stott <grahams@redhat.com>
14147 * tree.h: Update copyright date.
14148 (IS_EXPR_CODE_CLASS): Add parenthesis.
14149 (TREE_SET_CODE): Add whitespace.
14150 (TREE_CHECK): Add parenthesis.
14151 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
14152 (CST_OR_CONSTRUCTOR_CHECK):
14153 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
14154 (TREE_SYMBOL_REFERENCED): Whitespace.
14155 (INT_CST_LT): Likewise.
14156 (INT_CST_LT_UNSIGNED): Likewise.
14157 (tree_real_cst): Unwrap comment.
14158 (tree_string): Likewise.
14159 (tree_complex): Likewise.
14160 (IDENTIFIER_POINTER): correct cast.
14161 (SAVE_EXPR_CONTEXT): Whitespace.
14162 (EXPR_WFL_FILENAME_NODE): Likewise.
14163 (EXPR_WFL_FILENAME): Remove parenthesis.
14164 (DECL_ORIGIN): Add parenthesis.
14165 (DECL_FROM_INLINE): Use NULL_TREE.
14166 (build_int_2): Whitespace.
14167 (build_type_variant): Add parenthesis.
14169 * gcc/jcf-parse.c: Update copyright date.
14170 (yyparse): Constify resource_filename.
14172 2002-01-03 Graham Stott <grahams@redhat.com>
14174 * rtl.h: Update copyright date.
14175 (RTL_CHECK1): Wrap long line.
14176 (RTL_CHECK2): Likewise.
14177 (RTL_CHECKC1): Wrap long line and whitespace.
14178 (RTL_CHECKC2): Likewise.
14179 (XWINT): Whitespace.
14185 (XBITMAP): Likewise.
14187 (XBBDEF): Likewise.
14189 (X0WINT): Likewise.
14191 (X0UINT): Likewise.
14195 (X0MODE): Likewise.
14196 (X0BITMAP): Likewise.
14197 (X0TREE): Likewise.
14198 (X0BBDEF): Likewise.
14199 (X0ADVFLAGS): Likewise.
14200 (X0CSELIB): Likewise.
14201 (X0MEMATTR): Likewise.
14202 (XCWINT): Likewise.
14204 (XCUINT): Likewise.
14208 (XCMODE): Likewise.
14209 (XCBITMAP): Likewise.
14210 (XCTREE): Likewise.
14211 (XCBBDEF): Likewise.
14212 (XCADVFLAGS): Likewise.
14213 (XCCSELIB): Likewise.
14214 (XC2EXP): Likewise.
14215 (INSN_UID): Likewise.
14216 (PREV_INSN): Likewise.
14217 (PATTERN): Likewise.
14218 (INSN_CODE): Likewise.
14219 (PUT_REG_NOTE_KIND): Likewise.
14220 (CODE_LABEL_NUMBER): Likewise.
14221 (NOTE_SOURCE_FILE): Likewise.
14222 (NOTE_BLOCK): Likewise.
14223 (NOTE_EH_HANDLER): Likewise.
14224 (NOTE_RANGE_INFO): Likewise.
14225 (NOTE_LIVE_INFO): Likewise.
14226 (NOTE_BASIC_BLOCK): Likewise.
14227 (NOTE_EXPECTED_VALUE): Likewise.
14228 (NOTE_LINE_NUMBER): Likewise.
14229 (LABEL_NAME): Likewise.
14230 (LABEL_NUSES): Likewise.
14231 (LABEL_ALTERNATE_NAME): Likewise.
14232 (ADDRESSOF_DECL): Likewise.
14233 (JUMP_LABEL): Likewise.
14234 (LABEL_NEXTREF): Likewise.
14236 (ORIGINAL_REGNO: Likewise.
14237 (HARD_REGISTER_NUM_P): Add parenthesis.
14238 (SUBREG_REG): Whitespace.
14239 (SUBREG_BYTE): Likewise.
14240 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
14241 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
14242 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
14243 (ASM_OPERANDS_INPUT_VEC): Likewise.
14244 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
14245 (ASM_OPERANDS_INPUT): Likewise.
14246 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
14247 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
14248 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
14249 (ASM_OPERANDS_INPUT_MODE): Likewise.
14250 (ASM_OPERANDS_SOURCE_FILE): Likewise.
14251 (ASM_OPERANDS_SOURCE_LINE): Likewise.
14252 (MEM_SET_IN_STRUCT_P): Minor reformat.
14253 (TRAP_CONDITION): Whitespace.
14254 (TRAP_CODE): Likewise.
14255 (COND_EXEC_TEST): Likewise.
14256 (COND_EXEC_CODE): Likewise.
14257 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
14258 (PHI_NODE_P): Add parenthesis.
14259 (plus_constant): Whitespace and add parenthesis.
14261 2002-01-03 Kazu Hirata <kazu@hxi.com>
14263 * config/avr/avr.c: Fix comment typos.
14264 * config/c4x/c4x.md: Likewise.
14265 * config/dsp16xx/dsp16xx.h: Likewise.
14266 * config/dsp16xx/dsp16xx.md: Likewise.
14267 * config/i386/i386.md: Likewise.
14268 * config/ia64/ia64.c: Likewise.
14269 * config/m32r/m32r.h: Likewise.
14270 * config/m68hc11/m68hc11.md: Likewise.
14271 * config/mmix/mmix.c: Likewise.
14272 * config/mn10200/mn10200.c: Likewise.
14273 * config/romp/romp.c: Likewise.
14274 * config/sh/sh.c: Likewise.
14275 * config/stormy16/stormy16.c: Likewise.
14276 * config/stormy16/stormy16.h: Likewise.
14277 * config/stormy16/stormy16.md: Likewise.
14279 2002-01-03 Graham Stott <grahams@redhat.com>
14281 * loop.h: Update copyright date.
14282 (LOOP_MOVABLES): Fix typo.
14283 (LOOP_REGS): Likewise.
14284 (LOOP_IVS): Likewise.
14286 2002-01-03 Graham Stott <grahams@redhat.com>
14288 * cppinit.c: Update copyright date.
14289 Don't include output.h
14290 * Makefile.in: Update copyright date.
14293 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
14296 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
14297 (-pthread) Add to RS/6000 options.
14299 2002-01-02 Kazu Hirata <kazu@hxi.com>
14301 * except.c: Fix comment typos.
14302 * loop.c: Likewise.
14303 * varasm.c: Likewise.
14304 * doc/tm.texi: Fix a typo.
14306 2002-01-02 Jakub Jelinek <jakub@redhat.com>
14308 * c-typeck.c (output_init_element): Allow initializing static storage
14309 duration objects with compound literals.
14311 2002-01-02 Richard Henderson <rth@redhat.com>
14313 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
14316 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14318 * gcc.c (default_compilers): Const-ify.
14319 * mips-tdump.c (stab_names): Likewise.
14320 * mips-tfile.c (map_coff_types, map_coff_storage,
14321 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
14322 pseudo_ops_t, pseudo_ops): Likewise.
14323 * protoize.c (default_include): Likewise
14325 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
14326 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
14327 Add array size in declaration.
14328 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
14329 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
14330 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
14331 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
14332 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
14333 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
14334 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
14335 emtens, make_nan): Const-ify.
14336 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
14337 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
14339 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
14341 * config.gcc (ia64-*-*): Set extra_headers.
14342 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
14343 * config/alpha/t-osf: Remove.
14344 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
14346 2002-01-02 David Edelsohn <edelsohn@gnu.org>
14348 * config/rs6000/t-aix43: Revert previous change.
14350 2002-01-02 Jason Merrill <jason@redhat.com>
14352 * c-decl.c (c_expand_body): Call outlining_inline_function when
14353 emitting an inline function out of line.
14355 2002-01-02 Richard Henderson <rth@redhat.com>
14357 * dwarf2out.c (limbo_die_node): Add created_for member.
14358 (new_die): New argument created_for. Update all callers.
14359 (mark_limbo_die_list): New.
14360 (dwarf2out_init): Register limbo_die_list as a root.
14361 (dwarf2out_finish): Force insert limbo dies into their function
14364 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
14367 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
14369 2002-01-02 Kazu Hirata <kazu@hxi.com>
14371 * config/h8300/fixunssfsi.c: Update copyright.
14374 * config/h8300/h8300.c: Update copyright.
14375 Eliminate warnings.
14377 2002-01-02 Kazu Hirata <kazu@hxi.com>
14379 * config/romp/romp.c: Fix comment formatting.
14380 * config/romp/romp.h: Likewise.
14381 * config/romp/romp.md: Likewise.
14382 * config/s390/s390.c: Likewise.
14383 * config/stormy16/stormy16.c: Likewise.
14384 * config/stormy16/stormy16.h: Likewise.
14386 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
14388 * c-common.h (genrtl_expr_stmt_value): Declare.
14389 * c-semantics.c (genrtl_goto_stmt): Redirect to...
14390 (genrtl_goto_stmt_value): ... this new function. Pass new
14391 argument down to expand_expr_stmt_value, taking
14392 TREE_ADDRESSABLE into account.
14393 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
14394 STMT_EXPR as addressable, i.e., one whose result we want.
14395 * expr.c (expand_expr): Don't save expression statement value
14396 of labeled_blocks or loop_exprs.
14397 * stmt.c (expand_expr_stmt): Redirect to...
14398 (expand_expr_stmt_value): ... this new function. Use new
14399 argument to tell whether to save expression value.
14400 (expand_end_stmt_expr): Reset last_expr_type and
14401 last_expr_value if we don't have either.
14402 * tree-inline.c (declare_return_variable): Mark its use
14403 statement as addressable.
14404 * tree.h: Document new use of TREE_ADDRESSABLE.
14405 (expand_expr_stmt_value): Declare.
14407 2002-01-01 Tom Rix <trix@redhat.com>
14409 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
14410 rs6000_emit_allocate_stack.
14412 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
14414 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
14415 ${srcdir}/ginclude/ to every entry in extra_headers.
14416 * configure: Regenerate.
14417 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
14418 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
14419 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
14420 * ginclude/proto.h: Rename to config/convex/proto.h.
14422 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14424 * attribs.c (handle_vector_size_attribute): Use host_integerp
14425 and tree_int_cst; remove warnings.
14426 * caller-save.c (insert_restore): Add cast to get rid of warning.
14427 (insert_save): Likewise.
14428 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
14429 * regmove.c (find_matches): Add temporary var to kill a warning.
14431 2002-01-01 Douglas B Rupp <rupp@gnat.com>
14433 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
14434 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
14435 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
14436 (vms-dwarf2eh.o): Add Makefile rule.
14437 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
14438 * config/alpha/vms-dwarf2eh.asm: New file.
14440 * gcc.c (delete_if_ordinary): Delete all versions.
14442 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
14444 * config/mmix/mmix.md: Update FIXME to not mention
14446 (MMIX_rJ_REGNUM): New define_constants constant.
14447 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
14448 "*movdicc_real"): Adjust contraints formatting.
14449 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
14450 for branch prediction.
14451 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
14453 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
14454 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
14455 number. Delete related FIXMEs.
14456 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
14457 from number to MMIX_rJ_REGNUM.
14458 (TARGET_MASK_BRANCH_PREDICT): New.
14459 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
14460 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
14461 value. Add -mbranch-predict and -mno-branch-predict.
14462 (TARGET_VERSION): Drop date.
14463 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
14464 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
14465 for finding out global symbols.
14466 (mmix_asm_output_labelref): Revert condition for global symbol.
14467 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
14468 (mmix_print_operand_punct_valid_p): A '+' is valid.
14470 See ChangeLog.6 for earlier changes.