1 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
3 * lcm.c (optimize_mode_switching): Revert previous change.
5 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
8 with only extant block numbers.
10 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
12 * lcm.c (optimize_mode_switching): Fix typo.
14 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16 * flow.c (calculate_global_regs_live): Queue blocks in program order.
18 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20 * doc/install.texi (Configuration): Document PWDCMD.
22 2002-05-16 Dale Johannesen <dalej@apple.com>
24 * combine.c (cant_combine_insn_p): Reenable combinations
25 involving hard regs unless CLASS_LIKELY_SPILLED_P.
27 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
29 * c-common.c (cb_register_builtins): Handle more built-ins
30 here rather than in gcc.c specs.
31 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
32 (cpp_options): Pass -O flags even when only preprocessing.
33 * toplev.c (set_fast_math_flags): New prototype.
34 (fast_math_flags_set_p): New.
35 (set_no_fast_math_flags): Remove.
36 (decode_f_option): Update.
37 * toplev.h (set_fast_math_flags): Update.
38 (fast_math_flags_set_p): New.
39 (set_no_fast_math_flags): Remove.
41 * c4x/c4x.c (c4x_override_options): Update.
43 2002-05-16 Zack Weinberg <zack@codesourcery.com>
45 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
47 (builtin_define_with_value): Can now wrap the expansion in
48 quotation marks if such is wanted.
49 (cb_register_builtins): Update calls to builtin_define_with_value.
50 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
52 (c_common_init): Set options->stdc_0_in_system_headers.
53 * c-lex.h: Update prototype of builtin_define_with_value.
54 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
57 * cppinit.c (VERS, ULP, C, X): Kill.
58 (builtin_array): Remove entries for __VERSION__,
59 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
60 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
62 (init_builtins): Kill off a bunch of now-dead code.
63 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
64 -fno-leading-underscore.
65 (cpp_handle_option): Remove code to set user_label_prefix.
66 (cpp_post_options): Likewise.
68 * cpplib.h (struct cpp_options): Remove user_label_prefix.
69 (stdc_0_in_system_headers): New.
70 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
71 stdc_0_in_system_headers) too to decide the value of __STDC__.
73 * tradcpp.c (user_label_prefix): Kill.
74 (main): Remove code handling -f(no-)leading-underscore.
75 (initialize_builtins): Don't define __REGISTER_PREFIX__
76 or __USER_LABEL_PREFIX__.
77 (install_value): Wrap compound statement in dummy loop so the
78 macro works properly in an if statement.
81 2002-05-16 Janis Johnson <janis187@us.ibm.com>
83 * loop.h (struct loop_info): Add member has_prefetch.
84 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
85 (prescan_loop): Initialize has_prefetch.
86 (struct prefetch_info): Change prefetch_in_loop and
87 prefetch_before_loop from bit fields to ints.
88 (emit_prefetch_instructions): Several small fixes.
89 (check_dbra_loop): Don't reverse loop that uses prefetch.
91 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
93 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
94 * configure.in: Likewise.
95 * fixinc/check.tpl: Likewise.
96 * fixinc/fixinc.dgux: Likewise.
97 * fixinc/fixinc.svr4: Likewise.
98 * fixinc/fixinc.winnt: Likewise.
99 * fixinc/fixincl.sh: Likewise.
100 * fixproto: Likewise.
101 * configure: Regenerate.
103 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
105 Basic block renumbering removal:
106 * basic_block.h (struct basic_block_def): Renamed index to sindex,
107 added prev_bb and next_bb fields.
108 (n_basic_blocks): Renamed to num_basic_blocks.
109 (last_basic_block): New, index of last basic block.
110 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
111 traversing basic block chain.
112 (BLOCK_NUM): index -> sindex.
113 (create_basic_block_structure, create_basic_block): Declaration changed.
114 (debug_num2bb): Declare.
115 (expunge_block_nocompact): Declaration removed.
116 (link_block, unlink_block, compact_blocks): Declare.
117 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
118 * cfg.c (entry_exit_blocks): Initialize new fields.
119 (clear_edges, alloc_block, expunge_block, cached_make_edge,
120 redirect_edge_pred, dump_flow_info, dump_edge_info,
121 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
122 free_aux_for_edges): Modified.
123 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
124 (expunge_block_nocompact): Removed.
125 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
126 find_unreachable_blocks, create_edge_list, print_edge_list,
127 verify_edge_list, flow_edge_list_print, remove_fake_successors,
128 remove_fake_edges, flow_reverse_top_sort_order_compute,
129 flow_depth_first_order_compute, flow_preorder_transversal_compute,
130 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
131 flow_dfs_compute_reverse_execute): Modified.
132 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
133 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
135 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
136 merge_blocks_move_predecessor_nojumps,
137 merge_blocks_move_successor_nojumps, merge_blocks,
138 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
139 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
140 * cfglayout.c (skip_insns_after_block, label_for_bb,
141 record_effective_endpoints, scope_to_insns_finalize,
142 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
143 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
144 cfg_layout_duplicate_bb): Modified.
145 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
146 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
147 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
148 flow_loops_find, flow_loop_outside_edge_p): Modified.
149 * cfgrtl.c (create_basic_block_structure, create_basic_block,
150 flow_delete_block, compute_bb_for_insn, split_block,
151 try_redirect_by_replacing_jump, redirect_edge_and_branch,
152 force_nonfallthru_and_redirect, tidy_fallthru_edge,
153 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
154 commit_edge_insertions, commit_edge_insertions_watch_calls,
155 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
156 purge_all_dead_edges): Modified.
157 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
158 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
159 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
161 * conflict.c (conflict_graph_compute): Modified.
162 * df.c (FOR_ALL_BBS): Removed.
163 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
164 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
165 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
166 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
167 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
168 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
169 * final.c (compute_alignments, final_scan_insn): Modified.
170 * flow.c (verify_local_live_at_start, update_life_info,
171 update_life_info_in_dirty_blocks, free_basic_block_vars,
172 delete_noop_moves, calculate_global_regs_live,
173 initialize_uninitialized_subregs, allocate_bb_life_data,
174 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
175 mark_used_reg, count_or_remove_death_notes): Modified.
176 * function.c (thread_prologue_and_epilogue_insns): Modified.
177 * gcse.c (struct null_pointer_info): Change typo of current_block
179 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
180 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
181 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
182 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
183 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
184 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
185 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
186 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
187 pre_delete, one_pre_gcse_pass, compute_transpout,
188 invalidate_nonnull_info, delete_null_pointer_checks_1,
189 free_code_hoist_mem, compute_code_hoist_vbeinout,
190 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
191 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
192 compute_store_table, build_store_vectors, insert_insn_start_bb,
193 insert_store, replace_store_insn, free_store_memory, store_motion):
195 * global.c (global_alloc, global_conflicts, mark_elimination,
196 build_insn_chain): Modified.
197 * graph.c (print_rtl_graph_with_bb): Modified.
198 * haifa-sched.c (sched_init): Modified.
199 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
200 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
201 if_convert): Modified.
202 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
203 compute_insert_delete, pre_edge_lcm, compute_available,
204 compute_farthest, compute_nearerout, compute_rev_insert_delete,
205 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
207 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
208 * loop.c (loop_dump_aux): Modified.
209 * predict.c (combine_predictions_for_insn, estimate_probability,
210 last_basic_block_p, process_note_prediction, process_note_predictions,
211 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
212 expensive_function_p, estimate_bb_frequencies,
213 compute_function_frequency): Modified.
214 * print-rtl.c (print_rtx): Modified.
215 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
216 get_exec_counts, compute_branch_probabilities, compute_checksum,
217 branch_prob, find_spanning_tree): Modified.
218 * recog.c (split_all_insns, peephole2_optimize): Modified.
219 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
220 convert_regs_1, convert_regs_2, convert_regs): Modified.
221 * regclass.c (scan_one_insn, regclass): Modified.
222 * regmove.c (mark_flags_life_zones, regmove_optimize,
223 combine_stack_adjustments): Modified.
224 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
225 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
226 * reorg.c (dbr_schedule): Modified.
227 * resource.c (find_basic_block, init_resource_info): Modified.
228 * sbitmap.c (sbitmap_intersection_of_succs,
229 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
230 sbitmap_union_of_preds): Modified.
231 * sched-deps.c (init_dependency_caches): Modified.
232 * sched-ebb.c (schedule_ebbs): Modified.
233 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
234 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
235 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
236 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
237 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
238 ssa_const_prop): Modified.
239 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
240 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
241 * ssa.c (remove_phi_alternative, find_evaluations,
242 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
243 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
244 make_regs_equivalent_over_bad_edges,
245 make_equivalent_phi_alternatives_equival,
246 compute_conservative_reg_partition,
247 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
248 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
251 2002-05-16 Mark Mitchell <mark@codesourcery.com>
253 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
255 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
257 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
258 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
259 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
260 calling CONSTANT_POOL_ADDRESS_P.
261 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
262 to decide whether to define __arm__ or __thumb.
263 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
264 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
266 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
268 * config/arc/arc.h (CPP_PREDEFINES): Remove.
270 (TARGET_CPU_CPP_BUILTINS): New.
272 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
274 * cpphash.h (cpp_macro): Move here, and make expansion a union.
275 * cppmacro.c (cpp_macro): Remove.
276 (enter_macro_context, replace_args, warn_of_redefinition,
277 _cpp_create_definition, cpp_macro_definition): Update.
279 2002-05-16 Jason Merrill <jason@redhat.com>
281 * config/mips/mips.c (mips_output_external): Don't do sdata
282 optimization for a variable with DECL_COMDAT set.
284 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
286 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
287 Cleanups for accepting modifiers on pointers.
289 Allow long pointers as well as int pointers.
291 2002-05-15 Richard Henderson <rth@redhat.com>
293 * varasm.c (merge_weak): Remove special case for extern and common.
295 2002-05-15 Matt Hiller <hiller@redhat.com>
297 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
299 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
300 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
301 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
302 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
303 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
304 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
306 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
308 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
310 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
312 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
313 ("altivec_mfvscr"): Read from VSCR.
315 Add vscr sets for the following insns: altivec_vctuxs,
316 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
317 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
318 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
319 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
320 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
321 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
322 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
323 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
324 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
325 altivec_vsum2sws, altivec_vsumsws.
327 * config/rs6000/rs6000.h: Add VSCR fixed register.
328 (CALL_REALLY_USED_REGISTERS): Add vscr.
329 (CALL_USED_REGISTERS): Same.
330 (FIXED_REGISTERS): Same.
331 (REG_ALLOC_ORDER): Same.
332 (reg_class): Add VSCR_REGS.
333 (REG_CLASS_NAMES): Same.
334 (REG_CLASS_CONTENTS): Same.
336 (REGISTER_NAMES): Add vscr.
337 (DEBUG_REGISTER_NAMES): Same.
338 (ADDITIONAL_REGISTER_NAMES): Same.
339 (FIRST_PSEUDO_REGISTER): Increment.
340 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
342 2002-05-15 Jakub Jelinek <jakub@redhat.com>
344 * fold-const.c (fold): Fix a typo.
346 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
348 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
349 comparison against the highest or lowest integer value before
350 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
351 transformation and that of an unsigned comparison against 0
354 2002-05-15 Richard Henderson <rth@redhat.com>
356 * varasm.c (merge_weak): Error for any weakening after definition.
357 Adjust weakening after use warning to catch more cases.
358 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
359 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
361 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
363 * invoke.texi (-malign-double): Re-add lost warning.
365 * i386-protos.h (x86_output_mi_thunk): Declare.
366 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
367 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
369 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
370 when flag_asynchronous_unwind_tables is set.
372 * flags.h (flag_reorder_functions): Declare.
373 * function.c (prepare_function_start): Initialize frequnecy.
374 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
375 * Makefile.in (predict.o): Add dependency on target.h and params.h
376 * defaults.h (HOT_TEXT_SECTION_NAME,
377 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
378 * predict.c (choose_function_section): New function.
379 (estimate_bb_frequencies): Use it.
380 * toplev.c (flag_reorder_functions): New global variable.
381 (lang_independent_options): New.
382 (parse_options_and_default_flags): Set.
383 * varasm.c (assemble_start_function): Bypass functdion alignment
384 for never executed functions.
385 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
386 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
387 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
390 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
392 * predict.c: Inlude profile.h
393 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
394 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
395 Use the information about maximal counter in the program.
397 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
399 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
400 probably_never_executed_bb_p): New functions.
401 * cfgcleanup.c (outgoing_edges_match): Use them.
402 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
403 (maybe_hot_bb_p, probably_cold_bb_p,
404 probably_never_executed_bb_p): New functions.
406 * function.h (function): Add new field function_frequency.
407 * predict.c (compute_function_frequency): New function.
408 (estimate_probability): Call it.
410 2002-03-09 Jakub Jelinek <jakub@redhat.com>
412 PR optimization/5172, optimization/5200
413 * gcse.c (gcse_main): Disable store_motion.
415 2002-05-14 Zack Weinberg <zack@codesourcery.com>
417 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
418 (c_common_nodes_and_builtins): Use it.
419 (builtin_define_with_value): New function.
420 (cb_register_builtins): Define __SIZE_TYPE__,
421 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
422 using builtin_define_with_value. Use consistent notation when
423 defining __GXX_WEAK__.
424 (WCHAR_TYPE_SIZE): Don't redefine.
425 (combine_strings): Don't use WCHAR_TYPE_SIZE.
427 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
428 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
429 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
430 * tradcpp.c (initialize_builtins): Likewise.
431 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
433 * c-lex.h (builtin_define_with_value): Prototype.
434 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
435 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
436 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
438 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
439 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
440 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
441 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
442 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
443 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
444 config/sparc/sol2-bi.h, config/sparc/sparc.h:
445 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
446 to __SIZE_TYPE__ etc from all spec strings. When this makes
447 extra specs empty, delete them.
449 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
451 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
452 for PA8000 or generating dwarf2 call frame information.
453 (output_call): Remove DO_FRAME_NOTES check from return pointer
455 (following_call): Return 0 when scheduling for PA8000 or generating
456 dwarf2 call frame information. Revise comment.
458 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
461 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
462 and __IEEE_FP_INEXACT as appropriate.
463 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
464 (CPP_SPEC): Remove ieee defines.
465 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
467 2002-05-14 Richard Henderson <rth@redhat.com>
469 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
470 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
472 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
474 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
476 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
477 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
478 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
479 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
480 (EXTRA_SPECS): Update.
481 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
482 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
483 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
484 define TARGET_OS_CPP_BUILTINS if necessary.
486 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
488 * gcc.c (cpp_options): Must pass -m* and -f* options
489 to the front end even when only preprocessing.
490 (cc1_options): Remove redundant -lang-c.
491 * tradcpp.c (main): Ignore -m options.
493 * lang-specs.h: Similarly.
495 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
497 * genautomata.c (transform_3): Add code for transformation
498 `(A,B,...)+C -> A+C,B,...'.
500 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
502 * final.c (end_final): Do not output profile_arcs constructor, when
503 no functions are instrumented.
505 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
507 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
509 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
511 * doc/install.texi: Remove special markup originally required for
512 HTML generation with texi2html.
514 2002-05-14 Andreas Schwab <schwab@suse.de>
516 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
518 (UNIQUE_SECTION): Define to get small data correctly.
520 * varasm.c (resolve_unique_section): Add third parameter
521 flag_function_or_data_sections and use it instead of
522 flag_function_sections.
523 (assemble_start_function): Pass flag_function_sections.
524 (asm_emit_uninitialised): Pass flag_data_sections.
525 (assemble_variable): Likewise.
527 2002-05-14 Richard Henderson <rth@redhat.com>
529 * config/i386/i386.md: Use define_constants for unspec numbers.
530 * config/i386/i386.c: Likewise.
532 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
534 * doc/contrib.texi: Update my entry.
536 2002-05-13 Mark Mitchell <mark@codesourcery.com>
538 * fixinc/inclhack.def (winidss_valist): Limit applicability.
539 * fixinc/fixincl.x: Regenerated.
540 * fixinc/tests/base/math.h: Update.
541 * fixinc/tests/base/testing.h: Likewise.
543 2002-05-13 Zack Weinberg <zack@codesourcery.com>
545 * genattr.c (gen_attr): Don't emit a comma after the last
548 2002-05-13 Richard Henderson <rth@redhat.com>
550 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
552 * recog.c (peephole2_optimize): Likewise.
554 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
556 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
559 2002-05-13 Jeffrey A Law (law@redhat.com)
561 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
562 Update prototype and callers.
563 (propagate_one_insn): Stack pointer adjustments kill MEMs on
564 the mem_set_list which reference the stack pointer, as do
565 calls to constant functions as they may clobber outgoing
568 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
570 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
571 (ia32_multipass_dfa_lookahead): New function.
573 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
575 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
576 (translate_options): Remove 'V'.
577 (process_command): Similarly.
579 * invoke.texi: Remove documentation of 'V'.
581 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
583 * config/s390/linux.h: Revert 2002-04-22 changes.
585 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
587 * config/fr30/fr30.md: Only allow splits of immediate loads
588 if the destination is a register.
590 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
592 * Makefile.in (c-common.o, cppinit.o): Update.
593 * c-common.c: Include except.h.
594 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
595 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
596 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
597 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
598 CPP_PREDEFINES): Handle here.
600 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
601 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
602 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
603 TARGET_OS_CPP_BUILTINS.
604 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
605 (CPP_SPEC, EXTRA_SPECS): Update.
606 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
607 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
608 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
609 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
610 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
612 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
613 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
615 2002-05-12 Zack Weinberg <zack@codesourcery.com>
617 * emit-rtl.c (global_rtl): Update comment.
618 (const_double_htab, const_double_htab_hash,
619 const_double_htab_hash, lookup_const_double): New.
620 (const_int_htab_hash, const_int_htab_eq): Remove const
621 qualifiers, which cause tons of warnings with RTL checking on.
622 (gen_rtx_CONST_DOUBLE): Deleted.
623 (const_double_from_real_value): New function - bears some
624 resemblance to the former immed_real_const_1.
625 (immed_double_const): Moved here from varasm.c and
627 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
628 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
629 (gen_rtx): Use immed_double_const.
630 (init_emit_once): Initialize the const_double_htab. Use
631 REAL_VALUE_FROM_INT where possible. Can now use
632 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
633 * varasm.c (struct varasm_status): Remove x_const_double_chain.
634 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
635 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
636 (init_varasm_status, mark_varasm_status): Don't touch
637 x_const_double_chain.
639 * output.h: Delete prototype for clear_const_double_mem.
640 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
641 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
642 const_double_from_real_value, not immed_real_const_1, and use
643 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
645 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
646 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
647 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
648 (gen_rtx_REG): Second arg is unsigned.
650 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
651 (excluded_rtx): New, return true for CONST_DOUBLE.
652 (genmacro): Write nothing for excluded codes.
653 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
654 * expr.c (expand_expr): Likewise.
655 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
657 * toplev.c (rest_of_compilation): Don't call
658 clear_const_double_mem.
660 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
661 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
662 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
663 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
664 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
665 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
666 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
667 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
669 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
671 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
673 2002-05-12 Tom Tromey <tromey@redhat.com>
675 * tree.h (copy_node): Don't mention TREE_PERMANENT.
677 2002-05-12 Zack Weinberg <zack@codesourcery.com>
679 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
680 (scan_comma_elt): New function. Accepts whitespace in comma lists.
681 * gensupport.h: Prototype new routines.
682 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
684 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
685 (next_comma_elt): Use scan_comma_elt.
687 * config/i386/i386.md: Use new attribute notation to break up
688 long lines in define_attr forms.
690 2002-05-12 Richard Henderson <rth@redhat.com>
692 * expr.c (compress_float_constant): New.
693 (emit_move_insn): Use it.
694 (float_extend_from_mem): New.
695 (init_expr_once): Initialize it.
696 * real.c (exact_real_truncate): New.
698 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
699 dropped into memory; penalize for size.
700 (RTX_COSTS): FLOAT_EXTEND is free.
701 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
702 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
704 2002-05-12 Richard Henderson <rth@redhat.com>
706 * profile.h (profile_info): Add missing extern to declaration.
707 * profile.c (profile_info): Define it.
709 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
711 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
712 used for DImode and TImode.
714 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
716 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
719 2002-05-11 Zack Weinberg <zack@codesourcery.com>
721 * config/rs6000/rs6000.c (rs6000_default_long_calls,
722 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
723 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
724 (rs6000_override_options): Handle -m(no-)longcall.
725 (init_cumulative_args, output_mi_thunk): Check for both
726 longcall and shortcall attributes on the function.
727 (rs6000_attribute_table): Add "shortcall".
728 (rs6000_handle_longcall_attribute): Update comment.
729 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
730 altivec_expand_ternop_builtin): Add default clauses to switches
733 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
734 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
735 (TARGET_OPTIONS): Add longcall and no-longcall.
737 * config/rs6000/rs6000.md (call_nonlocal_sysv,
738 call_value_nonlocal_sysv): Split by alternatives. One pair
739 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
740 the call cookie. The other pair accepts only LR/CTR and has
743 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
744 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
746 * config/rs6000/rs6000-c.c: New file.
747 * config/rs6000/t-rs6000-c-rule: New file.
748 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
749 Prototype rs6000_pragma_longcall.
751 * doc/extend.texi: Document shortcall attribute.
752 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
754 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
756 * reorg.c (dbr_schedule): Remove unnecessary test.
758 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
760 * i386.md (testsi to testqi spliters): New.
762 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
764 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
766 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
768 * basic-block.h: New flag EDGE_CAN_FALLTHRU
769 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
770 that can be made fallthru.
772 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
774 * cfglayout.c (cleanup_unconditional_jumps): New static function.
775 (cfg_layout_initialize): Use it.
777 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
779 * config/avr/avr.c (avr_mcu_types): Update supported devices.
780 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
781 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
783 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
785 * dbxout.c: Fix formatting.
786 * dependence.c: Likewise.
788 * diagnostic.c: Likewise.
789 * doloop.c: Likewise.
790 * dominance.c: Likewise.
791 * doschk.c: Likewise.
792 * dwarf2asm.c: Likewise.
793 * dwarf2out.c: Likewise.
794 * dwarfout.c: Likewise.
796 2002-05-10 Richard Henderson <rth@redhat.com>
798 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
799 Convert integers constants as needed. Replace "nwords" field with
801 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
802 * function.h: Fix typo in comment.
803 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
805 2002-05-10 Roger Sayle <roger@eyesopen.com>
807 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
808 into the equivalent (signed char)c > 0.
810 2002-05-10 Janis Johnson <janis187@us.ibm.com>
812 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
813 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
814 (struct prefetch_info): Fix spelling of member bytes_accessed.
815 (emit_prefetch_instructions): Make dump messages more regular;
816 restructure code to add more dump messages; use new macros for
817 heuristics. (There are no code generation changes in any of this).
819 2002-05-10 David S. Miller <davem@redhat.com>
821 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
822 (struct rtx_def): Update unchanging flag comment.
823 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
824 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
825 to be handled to INSN too.
826 (dbr_schedule): Likewise.
827 * resource.c (next_insn_no_annul): Likewise.
829 * cse.c (rtx_cost): Remove multiplication by power of 2 special
832 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
834 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
835 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
836 (possibly) work around broken /bin/sh.
838 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
840 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
841 . as N64/N32 libgcc_s.so subdirs.
843 2002-05-10 David S. Miller <davem@redhat.com>
845 * config/sparc/sparc.md: Use define_constants for unspec numbers.
847 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
849 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
851 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
852 * doc/rtl.texi: Document these macros more accurately.
853 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
854 JUMP_INSNs and CALL_INSNs.
855 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
856 or INSN_FROM_TARGET_P if the code is appropriate.
858 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
860 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
861 before using SYMBOL_REF_FLAG (addr).
863 * config/avr/avr-protos.h (avr_io_address_p): Declare.
864 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
865 Make non-static. Update all callers.
866 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
867 New insns to clear/set/test a single bit in I/O address space.
869 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
871 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
873 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
875 * Makefile.in: Update.
876 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
877 builtin_define_std): New.
878 (c_common_init): Register CPP builtins callback.
879 * c-common.h (flag_iso, flag_undef): New.
880 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
881 * c-lex.c: Don't include target.h.
882 (cb_register_builtins): Move to c-common.c.
883 (init_c_lex): Don't register hook here.
884 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
885 (cpp_define, cpp_assert): Remove.
886 * gcc.c (cc1_options): Pass -undef to front end.
887 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
888 (TARGET_INITIALIZER): Update.
889 * target.h (struct cpp_reader): Don't predeclare.
890 (struct gcc_target): Remove cpp builtin hook.
891 * tree.c (default_register_cpp_builtins): Remove.
895 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
897 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
899 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
901 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
902 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
904 2002-05-09 Jakub Jelinek <jakub@redhat.com>
906 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
907 * config/sparc/libgcc-sparc-glibc.ver: New file.
908 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
909 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
911 2002-05-09 Jakub Jelinek <jakub@redhat.com>
914 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
915 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
916 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
918 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
919 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
920 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
921 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
923 2002-05-09 Richard Henderson <rth@redhat.com>
925 * config/ia64/ia64.md: Use define_constants for unspec numbers.
926 * config/ia64/ia64.c: Likewise.
928 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
930 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
931 (save_restore_insns): Likewise.
932 (mips_expand_prologue, mips_expand_epilogue): Update callers.
933 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
935 Thu May 9 11:50:09 2002 Jeffrey A Law (law@cygnus.com)
937 * athlon.md, k6.md, pentium.md, ppro.md): New files.
938 * i386.md: Move scheduling information into new files.
940 * i386.md (type attribute): Add "rotate" for rotate insns.
941 (rotate insns): Set type to "rotate".
942 (various attributes and function units): Treat rotate like shift.
943 (pent_pair attribute): Only rotates by one bit position are
945 (sbb insns): Explicitly set pent_pair attribute on a couple
946 that were missing it.
948 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
950 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
951 make sure that buffer starts on odd word address.
952 (sh_va_arg): Skip odd fp registers when reading a double precision
955 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
957 * tree.h (preserve_data, object_permanent_p, type_precision):
960 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
962 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
963 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
965 * cpp.texi: Update for removal of obsolete features.
967 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
968 Jeffrey A Law (law@redhat.com)
970 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
971 the DFA interface for Pentium processors.
972 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
973 (attr_pent_pair, ix86_pent_find_pair): Remove.
974 (ix86_sched_reorder_pentium): Remove.
975 (ix86_sched_reorder): Remove reordering for Pentium.
976 * i386.md (Pentium scheduling): Rewrite using DFA description.
978 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
980 * cfganal.c (can_fallthru): Fix fast path.
981 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
982 with edges to the next block.
984 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
985 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
987 * final.c (end_final): Use C trees to output data structures for profiling.
989 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
990 (profile.o): New dependency profile.h
991 (final.o): New dependency profile.h
992 * profile.h: New file. New global structure profile_info.
993 * final.h (count_edges_instrumented_now): Declare.
994 (current_function_cfg_checksum): Declare.
995 (function_list): New structure.
996 (functions_head, functions_tail): New static variables.
997 (end_final): Emits more data, removed some -ax stuff.
998 (final): Stores function names and chcksums.
999 * gcov-io.h (__write_gcov_string): New function.
1000 (__read_gcov_string): New function.
1001 * gcov.c (read_profile): New function.
1002 (create_program_flow_graph): Uses read_profile instead of reading
1004 (read_files): Removed da_file checking, it's done by read_profile now.
1005 * libgcc2.c (bb_function_info): New structure.
1006 (bb): New field in structure, removed some -ax stuff.
1007 (__bb_exit_func): Changed structure of da_file.
1008 * profile.c (count_edges_instrumented_now): New global variable.
1009 (current_function_cfg_checksum): New global variable.
1010 (max_counter_in_program): New global variable.
1011 (get_exec_counts): New function.
1012 (compute_checksum): New function.
1013 (instrument_edges): Sets count_edges_instrumented_now.
1014 (compute_branch_probabilities): Uses get_exec_counts instead of
1016 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
1017 (init_branch_prob): Removed da_file checking, done in get_exec_counts
1019 (end_branch_prob): Removed da_file checking, done in get_exec_counts
1021 * gcov.texi: Updated information about gcov file format.
1023 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
1025 * sbitmap.c: Fix formatting.
1027 * scan-decls.c: Likewise.
1028 * sched-deps.c: Likewise.
1029 * sched-ebb.c: Likewise.
1030 * sched-rgn.c: Likewise.
1031 * sched-vis.c: Likewise.
1032 * sdbout.c: Likewise.
1033 * sibcall.c: Likewise.
1034 * simplify-rtx.c: Likewise.
1036 * ssa-ccp.c: Likewise.
1037 * ssa-dce.c: Likewise.
1039 * stor-layout.c: Likewise.
1040 * stringpool.c: Likewise.
1042 2002-05-09 David S. Miller <davem@redhat.com>
1044 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
1046 2002-05-07 David S. Miller <davem@redhat.com>
1048 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
1049 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
1050 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
1051 library implementation clobbers the output before the inputs
1052 are fully consumed, use stack temporary for the output.
1054 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
1056 * config/netbsd.h (CPP_SPEC): Remove.
1057 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
1058 * config/i386/netbsd.h (CPP_SPEC): Define.
1059 * config/ns32k/netbsd.h (CPP_SPEC): Define.
1060 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
1061 * config/sparc/netbsd.h (CPP_SPEC): Define.
1062 * config/vax/netbsd.h (CPP_SPEC): Define.
1064 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
1066 * read-rtl.c: Fix formatting.
1068 * recog.c: Likewise.
1069 * regclass.c: Likewise.
1070 * regmove.c: Likewise.
1071 * reg-stack.c: Likewise.
1072 * reload1.c: Likewise.
1073 * reload.c: Likewise.
1074 * resource.c: Likewise.
1075 * rtlanal.c: Likewise.
1077 * rtl-error.c: Likewise.
1079 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
1081 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
1082 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
1084 2002-05-08 Bernd Schmidt <bernds@redhat.com>
1086 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
1087 use __SSE2__ macro instead.
1088 * config/i386/xmmintrin.h: Likewise.
1090 2002-05-08 Janis Johnson <janis187@us.ibm.com>
1092 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
1093 and use it in all invocations of these macros. Clean up comments.
1094 * rtl.c (rtl_check_failed_flag): Add an argument for the name
1095 of the flag access macro whose check failed.
1096 * doc/rtl.texi (Flags): Document additional flag uses.
1098 2002-05-08 Robert Spier <rspier@pobox.com>
1099 Neil Booth <neil@daikokuya.demon.co.uk>
1101 PR preprocessor/6521
1102 * cppfiles.c (handle_missing_header): Don't do anything
1103 different for <> includes.
1105 * cppopts.texi: Update documentation for -MG.
1107 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
1109 * cpplex.c (cpp_interpret_charconst): Truncate as well as
1112 * cpp.texi: Clarify multichar charconst valuation.
1114 2002-05-08 Mark Mitchell <mark@codesourcery.com>
1116 * doc/invoke.texi: Document -mwindiss option.
1118 2002-05-08 Jason Merrill <jason@redhat.com>
1120 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
1122 * dwarf2out.c (gen_type_die): Abort on broken recursion.
1125 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
1128 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
1130 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
1131 little-endian multilibs to override arm/thumb multilibs.
1132 Do not build hardware floating point multilibs, nor apcs-26
1133 multilibs for the Thumb.
1135 2002-05-08 Mark Mitchell <mark@codesourcery.com>
1138 * varasm.c (mark_weak): New function.
1139 (merge_weak): Use it. Do not call declare_weak.
1140 (declare_weak): Use merge_weak.
1142 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1144 * cse.c (dead_libcall_p): Update counts.
1145 (delete_trivially_dead_insns): Update call of dead_libcall_p.
1147 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
1149 * cfglayout.c (function_tail_eff_head): Rename to ...
1150 (function_footer): ... this one.
1151 (unlink_insn_chain): New functions.
1152 (label_for_bb): Only call block_label and emit debug message.
1153 (record_effective_endpoints): Actually unlink the headers and footers.
1154 (fixup_reorder_cahin): Re-insert the unlinked sequences.
1155 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
1156 * cfglayout.h (struct reorder_block_def): New fields footer/header;
1157 remove eff_head/eff_end.
1158 * rtl.h (set_first_insn): Declare.
1159 * emit-rtl.c (set_first_insn): New function.
1161 * cfglayout.c (fixup_reorder_chain): Dump duplicated
1162 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1163 cfg_layout_duplicate_bb): New global function.
1164 (duplicate_insn_chain): New static function.
1165 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1166 cfg_layout_duplicate_bb): Declare.
1167 (struct reorder_block_def): Add "original" field.
1168 * emit-rtl.c (emit_copy_of_insn_after): New function.
1169 * rtl.h (emit_copy_of_insn_after): Declare.
1171 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
1172 (fixup_reorder_chain): properly handle edges to exit block.
1174 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1175 Jan Hubicka <jh@suse.cz>
1177 * basic-block.h (note_prediction_to_br_prob): declare.
1178 * c-semantics.c: Inlucde predit.h
1179 (expand_stmt): predict GOTO_STMT as not taken.
1180 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
1181 (cleanup_cfg): Do not free tail_recursion_list.
1182 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
1183 (flow_delete_block): Kill predictions past end of basic block.
1184 * output.h (delete_unreachable_blocks): Declare.
1185 * predict.c (predicted_by_p, process_note_predictions,
1186 process_note_prediction, last_block_p): New function.
1187 (estimate_probability): Bypass loop on PRED_CONTINUE;
1188 do not handle noreturn heuristics; kill PRED_RETURN; add
1190 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
1191 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
1192 * predict.h (IS_TAKEN): New constant.
1193 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
1194 * rtl.c (NOTE_INSN_PREDICTION): New.
1195 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
1197 (insn_note): add NOTE_INSN_PREDICTION.
1198 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
1199 CFG; free tail_recursion_label_list.
1200 * stmt.c: Include predict.h;
1201 (return_prediction): New.
1202 (expand_value_return): Use it.
1203 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
1205 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
1207 * config/mips/mips.md: Name the unspecs with define_constant.
1208 (*HILO_delay): Rename to 'hilo_delay' (no star).
1209 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
1210 (reload_outdi, reload_outsi): Likewise.
1212 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
1214 * toplev.c: Fix formatting.
1216 2002-05-07 Janis Johnson <janis187@us.ibm.com>
1218 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
1219 * configure.in (ac_rtlflag_checking): New.
1220 * doc/install.texi (--enable-checking): Document RTL flag checking.
1222 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
1224 * c-common.c (c_common_init): Set options->unsigned_wchar.
1225 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
1226 group target dependencies.
1227 (init_builtins, cpp_handle_option): Update.
1228 * cpplex.c (cpp_interpret_charconst): Update.
1229 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
1230 signed_char to unsigned_char, group target dependencies.
1231 * defaults.h (WCHAR_UNSIGNED): Remove.
1232 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
1234 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
1235 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
1236 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
1237 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
1238 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
1240 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
1242 2002-05-07 Mark Mitchell <mark@codesourcery.com>
1244 * fixinc/inclhack.def (windiss_math1): New fix.
1245 (windiss_math2): Likewise.
1246 (windiss_valist): Likewise.
1247 * fixinc/fixincl.x: Regenerated.
1249 2002-05-07 Andreas Jaeger <aj@suse.de>
1251 * genautomata.c (output_internal_min_issue_delay_func): Add
1252 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
1253 (output_internal_trans_func): Likewise.
1255 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
1257 * pa.c (hppa_profile_hook): Use force_reg to get the address
1258 of the profile hook into an appropriate pseudo register.
1260 2002-05-07 Mark Mitchell <mark@codesourcery.com>
1262 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
1263 (LINK_START_SPEC): Handle it.
1264 (LINK_OS_SPEC): Likewise.
1265 (CPP_SPEC): Likewise.
1266 (STARTFILE_SPEC): Likewise.
1267 (LIB_SPEC): Likewise.
1268 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
1270 (CRTSAVRES_DEFAULT_SPEC): New macro.
1271 (LIB_WINDISS_SPEC): New macro.
1272 (CPP_OS_WINDISS_SPEC): Likewise.
1273 (STARTFILE_WINDISS_SPEC): Likewise.
1274 (ENDFILE_WINDISS_SPEC): Likewise.
1275 (LINK_START_WINDISS_SPEC): Likewise.
1276 (LINK_OS_WINDISS_SPEC): Likewise.
1277 * config/rs6000/windiss.h: New file.
1279 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
1281 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
1283 2002-05-06 David S. Miller <davem@redhat.com>
1285 * config/sparc/sparc.md (shift insns): Do not mask off
1286 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
1289 2002-05-06 Richard Henderson <rth@redhat.com>
1292 * expr.c (highest_pow2_factor_for_type): New.
1293 (expand_assignment): Use it.
1295 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
1297 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
1299 ("altivec_mfvscr"): Same.
1301 2002-05-06 Janis Johnson <janis187@us.ibm.com>
1303 * rtl.h (struct rtx_def): Update comments.
1304 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
1305 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
1306 RTL_FLAG_CHECK macros with list of expected RTL codes.
1307 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
1308 (rtl_check_failed_flag): New.
1309 * reload1.c (reload): Use REG macro before changing rtx to MEM.
1310 (reload_cse_noop_set_p): Check rtx code before using access macro.
1311 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
1312 before using access macro.
1314 2002-05-06 Janis Johnson <janis187@us.ibm.com>
1316 * doc/rtl.texi (Flags): Update to reflect current usage.
1318 2002-05-06 Roger Sayle <roger@eyesopen.com>
1321 * fold-const.c (sign_bit_p): New function.
1322 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
1323 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1324 Reapply fold when converting (A & C) == C into (A & C) != 0.
1325 (fold_binary_op_with_conditional_arg): Fix typo in comment.
1327 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
1329 * c-common.c (warn_multichar): New.
1330 (c_common_init): Set CPP's warn_multichar.
1331 * c-common.h (warn_multichar): New.
1332 * c-decl.c (warn_multichar): Remove.
1333 * c-lex.c (lex_charconst): Update.
1334 * c-tree.h (warn_multichar): Remove.
1335 * cppexp.c (eval_token): Sign-extend charconst value.
1336 * cppinit.c (cpp_create_reader): Set warn_multichar.
1337 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
1338 each character. Update prototype. Sign-extend the result.
1339 * cpplib.h: Fix conditions.
1340 (struct cpp_options): Add new warning flag.
1341 (cpp_interpret_charconst): Update prototype.
1343 * cpp.texi: Update documentation.
1345 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
1347 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
1348 Fix typo in usage of allof instead of unit.
1350 2002-05-06 Richard Henderson <rth@redhat.com>
1352 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
1353 and any jump or call for IN.
1355 2002-05-06 Bernd Schmidt <bernds@redhat.com>
1357 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
1359 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
1361 2002-05-06 Roger Sayle <roger@eyesopen.com>
1363 * fold-const.c (lshift-double): Cast the high word to an unsigned
1364 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
1365 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
1366 avoid compiler warning. (fold): Remove redundant code from
1367 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
1369 2002-05-06 Jeff Law <law@redhat.com>
1371 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
1372 * pa.c (pa_adjust_cost): Remove all true dependency cost
1373 adjustments. Also remove support for non-DFA scheduling.
1374 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
1375 to adjust true dependency costs. Update various comments.
1376 (7100lc, 7200, 7300 scheduling): Simplify by combining the
1377 FP ALU & MPY units into a single unit.
1379 2002-05-06 Catherine Moore <clm@redhat.com>
1381 * config/v850/v850.c (compute_register_save_size): Make sure
1382 to count all of the registers that will be saved.
1384 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1386 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
1388 2002-05-06 David S. Miller <davem@redhat.com>
1390 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
1391 allow result to overlap input operands in memory.
1393 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
1396 * cpp.texi: Update multichar charconst docs.
1398 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
1400 * cpplex.c (cpp_interpret_charconst): Sign-extend each
1401 character. Don't ignore excess characters. Treat
1402 multicharacter character constants as signed.
1403 (cpp_parse_escape): Clarify diagnostic.
1405 2002-05-05 Jakub Jelinek <jakub@redhat.com>
1407 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
1408 use add instead of shift.
1409 (ashldi3_sp64): Likewise.
1410 (ashlsi3_const1, ashldi3_const1): Remove.
1411 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
1412 * config/sparc/sparc.c (const1_operand): New.
1414 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
1416 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
1418 2002-05-05 Jakub Jelinek <jakub@redhat.com>
1421 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
1423 2002-05-05 Richard Henderson <rth@redhat.com>
1425 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
1426 memory latency adjustments.
1427 (alpha_variable_issue): Remove.
1428 (alpha_use_dfa_pipeline_interface): New.
1429 (alpha_multipass_dfa_lookahead): New.
1430 * config/alpha/alpha.md: Remove define_function_unit scheduling;
1431 include new dfa scheduling.
1432 (attr type): Add none.
1434 * config/alpha/ev4.md: New.
1435 * config/alpha/ev5.md: New.
1436 * config/alpha/ev6.md: New.
1438 2002-05-05 David S. Miller <davem@redhat.com>
1440 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
1442 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
1444 * cse.c: Fix formatting.
1445 * emit-rtl.c: Likewise.
1447 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
1449 * genautomata.c (initiate_states): Add additional guard to
1450 initialize `units_array'.
1452 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
1454 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
1455 process_unit_to_form_the_same_automaton_unit_lists,
1456 form_the_same_automaton_unit_lists
1457 check_unit_distributions_to_automata): New prototypes and
1459 (check_automata): Rename it into `check_automata_insn_issues'.
1460 (unit_decl): New fields `the_same_automaton_unit' and
1461 `the_same_automaton_message_reported_p'.
1462 (unit_decl_t): New typedef.
1463 (the_same_automaton_lists): New gloval variable.
1464 (unit_regexp, unit_set_el, units_array, units_cmp,
1465 output_get_cpu_unit_code_func): Use the typedef.
1466 (evaluate_max_reserv_cycles): Increment
1467 `description->max_insn_reserv_cycles'.
1468 (initiate_states): Don't increment `max_cycles_num'.
1469 (transform_insn_regexps): Move code around transformation of
1470 regexps from `generate'.
1471 (generate): Remove call of `transform_insn_regexps'.
1472 (expand_automata): Call `transform_insn_regexps' and
1473 `check_unit_distributions_to_automata'. Check errors before
1476 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
1477 automaton `ultrasparc3_1'.
1479 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
1481 * c-common.c (c_common_init): Set up CPP arithmetic.
1482 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
1483 something reasonable for the host.
1484 (sanity_checks): Add checks.
1485 (cpp_read_main_file): Call sanity_checks() from here...
1486 (cpp_post_options): ... not here.
1487 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
1488 * cpplib.h (struct cpp_options): New member int_precision.
1490 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1492 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
1494 2002-05-04 David S. Miller <davem@redhat.com>
1496 * config/sparc/linux.h, config/sparc/linux64.h
1497 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
1499 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
1501 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
1503 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
1506 2002-05-05 Tim Josling <tej@melbpc.org.au>
1508 * treelang; New directory for new sample language treelang.
1510 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1512 * Makefile.in (c-lex.o): Update.
1513 * c-lex.c: Include target.h.
1514 (cb_register_builtins): New.
1515 (init_c_lex): Set builtins callback.
1516 * c-lex.h (cpp_define, cpp_assert): New prototypes.
1517 * cppinit.c (init_builtins): Use callback, including for
1519 * cpplib.h (struct cpp_callbacks): New member.
1520 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
1521 (TARGET_INITIALIZER): Update.
1522 * target.h (struct gcc_target): New hook.
1523 * tree.c (default_register_cpp_builtins): New.
1524 * tree.h (default_register_cpp_builtins): New.
1526 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
1528 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1530 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
1531 (cpp_post_options): Move sanity checks to...
1532 (sanity_checks): New.
1533 * cpplex.c (maybe_read_ucs): Fix prototype.
1534 (parse_string, cpp_parse_escape): Cast for %c format specifier.
1535 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
1538 2002-05-04 Bernd Schmidt <bernds@redhat.com>
1540 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
1541 builtins. Use V2DI patterns instead of TI for logical operations.
1542 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
1543 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
1544 (ix86_expand_builtins): Change the pattern used for movntdq.
1545 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
1546 sse2_nandv2di3): New patterns.
1547 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
1549 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
1550 (cvtdq2pd): Correct mode on operand 1.
1551 (sse2_umulsidi3): Describe without unspec.
1552 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
1554 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
1555 (ashlv2di3): Likewise, from sse2_ashlv2di3.
1556 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
1557 ashlv4si3, ashlv2di3): Use SImode for shift count.
1558 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
1559 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
1561 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
1563 (__m128i, __m128d): New macros.
1564 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
1565 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
1566 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
1567 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
1568 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
1569 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
1570 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
1571 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
1572 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
1573 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
1574 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
1575 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
1576 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
1577 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
1578 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
1579 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
1580 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
1581 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
1582 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
1583 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
1584 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
1585 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
1586 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
1587 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
1588 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
1589 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
1590 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
1591 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
1592 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
1593 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
1594 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
1595 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
1596 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
1597 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
1598 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
1599 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
1600 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
1602 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
1603 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
1605 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
1607 * dwarf2out.c: Fix formatting.
1608 * varasm.c: Likewise.
1610 2002-05-04 David Edelsohn <edelsohn@gnu.org>
1613 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
1614 clobber and use result as temporary value.
1616 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1618 * expr.c (force_operand): Use expand_simple_* to handle more
1621 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1623 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
1625 (lex_charconst): Update for change in prototype of
1626 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
1628 * cpphash.h (BITS_PER_CPPCHAR_T): New.
1629 * cppinit.c (cpp_create_reader): Initialize them for no
1630 change in semantics.
1631 (cpp_post_options): Add sanity checks.
1632 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
1633 and truncation issues. Calculate in type cppchar_t.
1634 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
1635 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
1636 run-time dependent precision correctly. Return whether the
1637 result is signed or not.
1638 * cpplib.c (dequote_string): Use cppchar_t; update.
1639 * cpplib.h (cppchar_signed_t): New.
1640 struct cpp_options): New precision members.
1641 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
1642 * cppexp.c (eval_token): Update.
1644 2002-05-03 David S. Miller <davem@redhat.com>
1646 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
1647 * config/sparc/sparc.c (sparc_rtx_costs): New function
1648 implementing RTX_COSTS and CONST_COSTS.
1649 * config/sparc/sparc.h (CONST_COSTS): Delete.
1650 (RTX_COSTS_CASES): Define.
1651 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
1654 * config/sparc/sparc.md (DFA schedulers): Split out...
1655 * config/sparc/cypress.md, config/sparc/hypersparc.md,
1656 config/sparc/sparclet.md, config/sparc/supersparc.md,
1657 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
1659 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
1660 checks on it, always defined for Sparc.
1662 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
1663 Tweak, and add more detailed comments.
1665 2002-05-03 Zack Weinberg <zack@codesourcery.com>
1667 * Re-apply patch accidentally reverted with
1668 DFA scheduler merge: remove all rules and variables to slurp
1669 source files out of libiberty and rebuild them with HOST_CC.
1670 ($(HOST_PREFIX_1)varray.o): New rule.
1671 (genattrtab rule): Word wrap.
1673 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1675 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
1676 (CPP_SUBTARGET_SPEC): Define.
1677 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
1678 cpp_subtarget specs.
1679 (CPP_SPEC): Redefine to include %(cpp_subtarget).
1681 2002-05-03 David S. Miller <davem@redhat.com>
1683 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
1684 * target.h (struct gcc_target): Delete cycle_display member.
1686 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
1687 (rtx_needs_barrier): Delete reference to cycle_display unspec.
1688 (ia64_sched_reorder2): Mention need for cycle display handling
1689 once such notes exist.
1691 2002-05-03 Richard Henderson <rth@redhat.com>
1693 * real.c (etoasc): Strip most trailing zeros for clarity.
1694 * sched-vis.c: Include real.h.
1695 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
1696 * Makefile.in (sched-vis.o): Add real.h.
1698 2002-05-03 David S. Miller <davem@redhat.com>
1700 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
1703 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
1705 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
1706 when we get an out of range literal.
1707 (altivec_expand_ternop_builtin): Same.
1708 (altivec_expand_unop_builtin): Same.
1709 (altivec_expand_builtin): Same, for dss.
1710 (altivec_expand_builtin): Use trees instead of rtl when
1711 determining literal argument validity.
1713 2002-05-03 David S. Miller <davem@redhat.com>
1715 Delete cycle display scheduling hook.
1716 * config/ia64/ia64.c (ia64_cycle_display,
1717 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
1718 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
1719 and use emit_insn_before instead of ia64_emit_insn_before.
1720 * config/ia64/ia64.md (unspec usage): Delete cycle display.
1721 (cycle_display): Delete insn pattern.
1722 * config/sparc/sparc.md (unspec usage): Delete cycle display.
1723 (cycle_display): Delete insn pattern.
1724 * config/sparc/sparc.c (sparc_cycle_display,
1725 TARGET_SCHED_CYCLE_DISPLAY): Delete.
1726 * doc/md.texi (cycle_display): Don't mention.
1727 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
1729 2002-05-03 Richard Henderson <rth@redhat.com>
1731 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
1732 * recog.h: Declare them.
1734 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
1735 * config/sparc/sparc.md: Use store_data_bypass_p instead.
1736 * config/sparc/sparc-protos.h: Update.
1738 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1740 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
1741 -D__arch64__. Add -D_LP64.
1742 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
1744 (CPP_ARCH64_SPEC): Likewise.
1745 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
1746 (NO_BUILTIN_SIZE_TYPE): Undef.
1748 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
1750 * genautomata.c (min_issue_delay_pass_states): Change return type
1752 (min_issue_delay_pass_states): Change the algorithm.
1753 (min_issue_delay): Set up min_insn_issue_delay for the state.
1754 (output_min_issue_delay_table): Interchange the nested loops and
1755 and initiate min_insn_issue_delay for states.
1757 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
1759 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
1762 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
1764 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
1767 2002-05-03 Richard Henderson <rth@redhat.com>
1770 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1771 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
1772 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
1773 code before JUMP, not EARLIEST.
1775 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
1777 * c-format.c (check_format_info_main): Don't check for presence of
1778 parameter for * width until after operand number has been read,
1779 and only check for it if format parameters are available.
1782 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1784 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
1785 (LINK_SPEC): Undef before defining.
1787 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1789 PR preprocessor/6489
1790 * tradcpp.c (fixup_newlines): New.
1791 (main, finclude): Use it.
1793 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
1795 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
1796 * config/mips/mips.c (mips_unique_section): Strip encoding from
1799 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1801 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
1804 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1806 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
1807 (Specific): Removed buildstats references.
1808 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
1809 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
1810 Accomodate Solaris versions beyond 8.
1811 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
1812 (Specific, *-*-solaris2.8): Removed, obsolete.
1814 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1817 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
1818 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
1819 fill leaf_reg_remap with identity.
1820 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
1822 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1824 * config/h8300/crti.asm: Remove trailing spaces.
1825 * config/h8300/h8300.c: Likewise.
1826 * config/h8300/lib1funcs.asm: Likewise.
1828 2002-05-02 Jason Merrill <jason@redhat.com>
1830 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
1831 * c-decl.c (c_init_decl_processing): Use it.
1832 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
1833 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
1834 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
1836 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1838 * regrename.c: Fix formatting.
1841 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
1843 * i386.md (attribute memory): Handle compares properly.
1845 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
1847 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
1850 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
1852 * function.c: Fix formatting.
1854 2002-05-02 Jan Hubicka <jh@suse.cz>
1856 * haifa-sched.c (schedule_insn): Print table of instructions and
1858 (sched_block): Do not print ready list at verbosity level 1.
1859 * sched-vis.c (print_insn): Make global.
1860 * sched-ebb.c (ebb_print_insn): Rename from...
1861 (print_insn): ... this one.
1862 * sched-int.h (print_insn): Declare
1864 2002-05-02 Richard Henderson <rth@redhat.com>
1866 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
1867 emitted by cycle_display.
1869 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
1871 * doc/install.texi (*-*-freebsd*): Update to latest status.
1873 2002-05-02 Jakub Jelinek <jakub@redhat.com>
1876 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
1877 * config/float-sparc.h: Assume 128-bit long double if
1878 __LONG_DOUBLE_128__ is defined.
1880 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
1882 * genattrtab.c (write_function_unit_info): Add a dummy element
1883 when num_units == 0.
1885 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1887 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
1888 TYPE_MODE (double_type_node) instead of DFmode.
1890 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
1892 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
1894 * toplev.c (rest_of_compilation): Revert Richard's patch.
1896 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
1898 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
1900 2002-05-02 Catherine Moore <clm@redhat.com>
1902 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
1904 2002-05-02 Kazu Hirata <kazu@hxi.com>
1906 * combine.c: Fix comment typos.
1908 * genautomata.c: Likewise.
1912 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
1914 * doc/install.texi: State GNAT version requirements.
1916 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
1918 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
1919 of the frame pointer or arg pointer register which strict register
1920 checking is not enabled.
1922 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
1924 * gcc.dg/altivec-8.c: New.
1926 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
1927 PRE_INC and PRE_DEC for altivec modes.
1929 2002-05-01 Bruce Korb <bkorb@gnu.org>
1931 * fixinc/check.tpl(set-writable): make sure the function exists first
1932 * fixinc/inclhack.def(alpha_assert): fix test_text
1933 * fixinc/tests/base/assert.h: add in missing result
1935 2002-05-01 Jeff Law <law@redhat.com>
1937 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
1940 2002-05-01 Joel Brobecker <brobecker@gnat.com>
1942 * dbxout.c (dbxout_type): Emit size information for range types,
1943 as well, but only when using GDB extensions.
1945 2002-05-01 Richard Henderson <rth@redhat.com>
1947 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
1948 target-independent gnu binutils date test.
1950 2002-05-01 Richard Henderson <rth@redhat.com>
1952 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
1953 info before expunging the block.
1955 2002-05-01 Jakub Jelinek <jakub@redhat.com>
1957 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
1958 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
1959 -M -or -MM is in effect.
1961 2002-05-01 Zack Weinberg <zack@codesourcery.com>
1963 * config.gcc: Correct test of --enable-obsolete. Obsolete all
1964 A29k configurations.
1965 * doc/install.texi: Update to match.
1967 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1970 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
1971 for duplicates. Always loop over whole list.
1973 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1975 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
1977 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1979 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
1982 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1984 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
1986 2002-05-01 David Edelsohn <edelsohn@gnu.org>
1988 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
1989 (nabs_nopower): Same.
1990 (floatdisf2): New pattern.
1991 (absdi2): Convert to define_insn_and_split.
1996 (fix_trunctfdi2): Same.
1997 (fix_trunctfsi2): Same.
1999 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
2001 * doc/install.texi: Update Texinfo version requirement
2004 2002-05-01 Jakub Jelinek <jakub@redhat.com>
2006 PR target/6512, PR target/5628
2007 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
2008 when memory is not aligned.
2009 (movdf_insn_v9only_vis): Likewise.
2010 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
2011 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
2012 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
2014 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
2016 * gcc.dg/altivec-7.c: New.
2018 * config/rs6000/altivec.h: Cleanup.
2020 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
2022 * doc/invoke.texi (Option Summary): Add -mvrsave=.
2023 (RS/6000 and PowerPC Options): Document -mvrsave=.
2025 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
2026 (rs6000_altivec_vrsave_string): Same.
2027 (rs6000_override_options): Call rs6000_parse_vrsave_option.
2028 (rs6000_parse_vrsave_option): New.
2029 (rs6000_stack_info): Only generate vrsave instructions when
2030 TARGET_ALTIVEC_VRSAVE.
2032 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
2033 (rs6000_altivec_vrsave_string): Define extern.
2034 (rs6000_altivec_vrsave): Same.
2035 (TARGET_ALTIVEC_VRSAVE): New.
2037 2002-04-30 Richard Henderson <rth@redhat.com>
2040 * toplev.c (rest_of_compilation): Don't run cross-jump before
2043 2002-04-30 Tom Rix <trix@redhat.com>
2045 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
2046 check which_alternative.
2048 2002-04-30 Kazu Hirata <kazu@hxi.com>
2050 * cpplex.c: Fix comment formatting.
2051 * function.c: Likewise.
2052 * integrate.c: Likewise.
2053 * regrename.c: Likewise.
2054 * sibcall.c: Likewise.
2055 * simplify-rtx.c: Likewise.
2056 * tree-inline.c: Likewise.
2058 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2060 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
2061 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
2062 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
2063 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
2064 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
2065 * pa/x-ada: New file. Define ADA_CFLAGS.
2067 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
2069 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
2070 from MMIX_LAST_REGISTER_FILE_REGNUM.
2071 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
2072 (struct machine_function): New member highest_saved_stack_register
2073 previously static variable in mmix.c.
2074 (MACHINE_DEPENDENT_REORG): Define.
2075 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
2076 (MMIX_OUTPUT_REGNO): New.
2077 (mmix_target_asm_function_prologue): Move calculation of last used
2078 saved-stack-register into...
2079 (mmix_machine_dependent_reorg): New function. Update to also handle
2081 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
2082 register names, simplify somewhat by new variable regno.
2083 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
2085 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
2086 emitting register names.
2087 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
2088 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
2090 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
2093 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
2095 2002-04-30 Richard Henderson <rth@redhat.com>
2097 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
2098 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
2099 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
2100 emit_tfmode_cvt): New.
2101 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
2102 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
2103 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
2104 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
2105 * config/sparc/sparc-protos.h: Update.
2107 2002-04-30 Janis Johnson <janis187@us.ibm.com>
2109 * install.texi (Final install): Add to the list of info to include
2110 in a report of a successful bootstrap, and add link to 3.1 list.
2112 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
2114 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
2115 (mode): Add vector modes
2116 (i387): Kill attribute.
2117 (unit): New attribute.
2118 (length_immediate): Grok new types.
2119 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
2120 (modrm): Use "unit".
2121 (memory): Handle MMX/SSE properly.
2122 (scheduling descriptions): Kill uses of fop1.
2123 (sse, mmx, fp patterns): Set type and mode properly.
2125 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
2127 * pa.c (override_options): Default to PA8000 scheduling.
2128 * doc/invoke.texi (HP-PA options): Mention newly added 7300
2129 scheduling parameter.
2131 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
2132 handling of double precision multiplies.
2134 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
2135 fpdiv and fpsqrt instructions.
2136 (7200 & 7300 scheduling): Fix typo in handling of
2137 store-load and store-store penalties.
2139 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2141 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
2142 mips. Add two missing commas.
2144 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
2146 * doc/contrib.texi (Contributors): Update Paolo Carlini's
2147 and Benjamin Kosnik's entries.
2149 2002-04-29 David S. Miller <davem@redhat.com>
2151 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
2152 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
2153 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
2154 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
2156 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2158 * combine.c (find_split_point): Use gen_int_mode.
2160 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
2162 Merging code from dfa-branch:
2164 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
2166 * genautomata.c (output_reserv_sets): Fix typo.
2168 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
2170 * genautomata.c (output_reserv_sets): Remove
2171 next_cycle_output_flag.
2173 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
2175 * sched-rgn.c (init_ready_list): Make the DFA code handle
2176 USE/CLOBBER insns in the same way as the traditional
2178 (new_ready): Similarly..
2180 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
2182 * haifa-sched.c (schedule_block): Change the DFA state only after
2185 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
2187 * pa.c (hppa_use_dfa_pipeline_interface): New function.
2188 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
2189 (override_options): Add PA7300 scheduling support.
2190 (pa_adjust_cost): Update various comments. Properly
2191 handle anti and output dependencies when using the
2193 (pa_issue_rate): Add PA7300 scheduling support.
2194 (pa_can_combine_p): Call extract_insn before calling
2195 constrain_operands (taken from mainline tree).
2196 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
2197 * pa.md (cpu attr): Add 7300. Rewrite pipeline
2198 descriptions using DFA descriptions. Add PA7300
2201 2002-03-30 David S. Miller <davem@redhat.com>
2203 Add UltraSPARC-III DFA scheduling support.
2204 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
2205 Update FP conditional move on register insn patterns to use it, as
2207 (define_attr cpu): Add ultrasparc3.
2208 (define_attr us3load_type): New, update integer load patterns to
2209 set it, as appropriate.
2210 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
2211 (rest): Add UltraSPARC3 scheduling description.
2212 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
2213 (PROCESSOR_ULTRASPARC3): New.
2214 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
2215 ({ASM,CPP}_CPU_SPEC): Likewise.
2216 (REGISTER_MOVE_COST): Likewise.
2217 (RTX_COSTS): Likewise.
2218 * config/sparc/sparc.c (sparc_override_options,
2219 sparc_initialize_trampoline, sparc64_initialize_trampoline,
2220 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2221 sparc_issue_rate): Likewise.
2222 * config/sparc/sol2.h: Likewise.
2223 * config/sparc/sol2-sld-64.h: Likewise.
2224 * config/sparc/linux64.h: Likewise.
2226 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
2228 * doc/md.texi: Add comments about usage the latency time for the
2229 different dependencies and about case when two or more conditions
2230 in different define_insn_reservations returns TRUE for an insn.
2232 * doc/md.texi: Add reference for automaton based pipeline
2235 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
2237 * doc/passes.texi: Add missed information about genattrtab.
2239 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
2241 * genautomata.c (output_automata_list_transition_code): Check
2242 automata_list on NULL.
2244 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
2246 * genautomata.c (output_insn_code_cases,
2247 output_automata_list_min_issue_delay_code,
2248 output_automata_list_transition_code,
2249 output_automata_list_state_alts_code): Comment the functions.
2251 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
2253 * genautomata.c (automata_list_el_t): New typedef.
2254 (get_free_automata_list_el,free_automata_list_el,
2255 free_automata_list, automata_list_hash, automata_list_eq_p,
2256 initiate_automata_lists, automata_list_start, automata_list_add,
2257 automata_list_finish, finish_automata_lists,
2258 output_insn_code_cases, output_automata_list_min_issue_delay_code,
2259 output_automata_list_transition_code,
2260 output_automata_list_state_alts_code, add_automaton_state,
2261 form_important_insn_automata_lists): New functions and prototypes.
2262 (insn_reserv_decl): Add members important_automata_list and
2264 (ainsn): Add members important_p.
2265 (automata_list_el): New structure.
2266 (first_free_automata_list_el, current_automata_list,
2267 automata_list_table): New global variables.
2268 (create_ainsns): Initiate member important_p.
2269 (output_internal_min_issue_delay_func): Generate the switch and
2270 call output_insn_code_cases.
2271 (output_internal_trans_func, output_internal_state_alts_func):
2273 (generate): Call initiate_automata_lists.
2274 (automaton_states): New global variable.
2275 (expand_automata): Call form_important_insn_automata_lists.
2276 (write_automata): Call finish_automata_lists.
2278 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
2280 * genautomata.c (add_excls, add_presence_absence): Check that
2281 cpu units in the sets belong the same automaton.
2283 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
2284 about that cpu units in the sets belong the same automaton.
2286 * doc/md.texi: Ditto.
2288 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
2289 Nitin Gupta <niting@noida.hcltech.com>
2291 * config/sh/sh.c (sh_use_dfa_interface): New function.
2293 (sh_issue_rate): New Function.
2294 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
2295 TARGET_SCHED_ISSUE_RATE: define.
2297 * config/sh/sh.md: Add DFA based pipeline description for SH4.
2299 (define_attr insn_class): New attribute used for DFA
2301 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
2302 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
2303 cmpeqdi_t): Likewise.
2305 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
2306 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
2308 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
2310 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
2312 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
2315 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
2317 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
2318 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
2320 (output_dfa_start_func): Initiate new variable insn_codes_length,
2321 (write_automata): Output definition of the new variable.
2323 2001-10-02 David S. Miller <davem@redhat.com>
2325 * haifa-sched.c (advance_one_cycle): New function.
2326 (schedule_block): Use it.
2327 (queue_to_ready): Use it, and also make sure to advance the DFA
2328 state on all stall cycles, not just those where insn_queue links
2331 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
2333 * haifa-sched.c (max_issue): Remove last_p argument. Only return
2334 non-zero if the highest-priority instruction could be scheduled.
2335 (choose_ready): Remove last argument from max_issue call.
2337 2001-09-28 David S. Miller <davem@redhat.com>
2339 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
2340 ultrasparc and 3 for other multi-issue sparcs.
2342 2001-09-27 David S. Miller <davem@redhat.com>
2344 * config/sparc/sparc.md (cycle_display): New pattern.
2345 * config/sparc/sparc.c (sparc_cycle_display): New.
2346 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
2348 2001-09-25 David S. Miller <davem@redhat.com>
2350 Convert all of Sparc scheduling to DFA
2351 * config/sparc/sparc.md: Kill all define_function_unit
2352 directives and replace with DFA equivalent.
2353 * config/sparc/sparc.c (ultrasparc_adjust_cost,
2354 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
2355 ultra_fpmode_conflict_exists, ultra_find_type,
2356 ultra_build_types_avail, ultra_flush_pipeline,
2357 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
2358 ultrasparc_variable_issue, ultrasparc_sched_init,
2359 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
2360 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
2361 ultra_cur_hist, ultra_cycles_elapsed): Kill.
2362 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2363 ultrasparc_store_bypass_p): New.
2364 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
2367 2001-09-24 David S. Miller <davem@redhat.com>
2369 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
2370 ready->vec[foo] not ready[foo].
2372 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
2374 * doc/md.texi: Correct examples for define_insn_reservations
2377 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
2379 * genautomata.c (create_automata): Print message about creation of
2381 (generate): Remove printing meease about creation of
2384 2001-09-05 David S. Miller <davem@redhat.com>
2386 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
2387 * config/sparc/linux64.h: Likewise.
2389 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
2391 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
2392 schedule_block, sched_init, sched_finish): Add missed calls of
2393 use_dfa_pipeline_interface.
2395 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
2398 * sched-vis.c (get_visual_tbl_length): Ditto.
2400 2001-08-27 Richard Henderson <rth@redhat.com>
2402 * genattr.c (main): Emit state_t even when not doing scheduling.
2404 2001-08-27 Richard Henderson <rth@redhat.com>
2406 * genautomata.c (expand_automata): Always create a description.
2408 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
2410 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
2411 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
2412 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
2415 * genattr.c (main): New variable num_insn_reservations. Increase
2416 it if there is DEFINE_INSN_RESERVATION. Output automaton based
2417 pipeline hazard recognizer interface.
2419 * genattrtab.h: New file.
2421 * genattrtab.c: Include genattrtab.h.
2422 (attr_printf, check_attr_test, make_internal_attr,
2423 make_numeric_value): Move protypes into genattrtab.h. Define them
2425 (num_dfa_decls): New global variable.
2426 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
2427 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
2428 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
2429 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
2431 * genautomata.c: New file.
2433 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
2435 * sched-int.h: (curr_state): Add the external definition for
2436 automaton pipeline interface.
2437 (haifa_insn_data): Add comments for members blockage and units.
2439 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2440 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2441 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2442 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2443 TARGET_SCHED_DFA_POST_CYCLE_INSN,
2444 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2445 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
2447 (TARGET_SCHED): Use the new macros.
2449 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
2450 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
2451 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
2452 dfa_bubble): New members in gcc_target.sched.
2454 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
2455 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
2456 (insn_queue): Redefine it as pointer to array.
2457 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
2459 (max_insn_queue_index_macro_value): New variable.
2460 (curr_state, dfa_state_size, ready_try): New varaibles for
2461 automaton interface.
2462 (ready_element, ready_remove, max_issue): New function prototypes
2463 for automaton interface.
2464 (choose_ready): New function prototype.
2465 (insn_unit, blockage_range): Add comments.
2466 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
2467 FUNCTION_UNITS_SIZE == 0.
2468 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
2469 actual_hazard, potential_hazard): Add comments.
2470 (insn_cost): Use cost -1 as undefined value. Remove
2471 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
2473 (ready_element, ready_remove): New functions for automaton
2475 (schedule_insn): Add new code for automaton pipeline interface.
2476 (queue_to_ready): Add new code for automaton pipeline interface.
2477 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
2478 (debug_ready_list): Print newline when the queue is empty.
2479 (max_issue): New function for automaton pipeline interface.
2480 (choose_ready): New function.
2481 (schedule_block): Add new code for automaton pipeline interface.
2482 Print ready list before scheduling each insn.
2483 (sched_init): Add new code for automaton pipeline interface.
2484 Initiate insn cost by -1.
2485 (sched_finish): Free the current automaton state and finalize
2486 automaton pipeline interface.
2488 * sched-rgn.c: Include target.h.
2489 (init_ready_list, new_ready, debug_dependencies): Add new code for
2490 automaton pipeline interface.
2492 * sched-vis.c: Include target.h.
2493 (get_visual_tbl_length): Add code for automaton interface.
2494 (target_units, print_block_visualization): Add comments.
2496 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
2497 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
2498 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
2499 (getruntime.o, genautomata.o): New entries.
2500 (genattrtab.o): Add new dependency file genattrtab.h.
2501 (genattrtab): Add new dependencies. Link it with `libm.a'.
2502 (getruntime.o, hashtab.o): New entries for canadian cross.
2504 * doc/md.texi: Description of automaton based model.
2506 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
2508 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2509 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2510 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2511 TARGET_SCHED_DFA_POST_CYCLE_INSN,
2512 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2513 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2514 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
2516 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
2517 MAX_DFA_ISSUE_RATE): New macro descriptions.
2519 * doc/contrib.texi: Add dfa based scheduler contribution.
2521 * doc/gcc.texi: Add more information about genattrtab.
2523 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2525 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
2526 adjust_address_nv call.
2528 2002-04-29 Janis Johnson <janis187@us.ibm.com>
2530 * doc/install.texi (Testing): Provide additional information, and
2531 a stronger encouragement, for running the testsuites.
2533 2002-04-29 DJ Delorie <dj@redhat.com>
2535 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
2536 given in upper case.
2538 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2540 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
2541 Solaris 2 <widec.h> if missing.
2542 * fixinc/fixincl.x: Regenerate.
2543 * fixinc/tests/base/widec.h: New file.
2545 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
2547 * toplev.c (f_options): Add "profile" switch so that
2548 -fno-profile can be used to disable -p.
2550 2002-04-29 Bernd Schmidt <bernds@redhat.com>
2552 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
2554 * tree.c (build_common_tree_nodes_2): Likewise.
2555 * tree.h (enum tree_index): Likewise.
2556 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
2558 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
2560 (init_mmx_sse_builtins): Initialize SSE2 builtins.
2561 (ix86_expand_builtin): Add support for SSE2 builtins.
2562 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
2563 (VALID_SSE_REG_MODE): Use it.
2564 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
2565 (enum ix86_builtins): Add SSE2 builtins.
2566 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
2567 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
2568 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
2569 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
2570 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
2571 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
2572 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
2573 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
2574 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
2575 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
2576 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
2577 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
2578 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
2579 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
2580 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
2581 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
2582 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
2583 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
2584 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
2585 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
2586 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
2587 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
2588 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
2589 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
2590 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
2591 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
2592 lfence_insn): New patterns.
2593 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
2594 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
2596 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
2598 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
2600 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2602 * doc/contrib.texi (Contributors): Add Paolo Carlini and
2604 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
2605 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
2606 and CPU instead of cpu.
2608 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
2610 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
2612 (lang_independent_options): Add -fif-conversion, -fif-conversion2
2613 (rest_of_compilation): Do if conversion only when asked for.
2614 (parse_options_and_default_flags): Set new variables to 1 for -O1
2615 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
2617 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
2619 * i386.c (dbx64_register_map): Fix typo.
2621 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
2623 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
2624 real_one_half, real_bb_freq_max): New static variables.
2625 (debug_profile_bbauxs): Kill.
2626 (process_note_predictions): Kill unused variable.
2627 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
2629 (propagate_freq): Use REAL_ARITHMETICS.
2630 (estimate_bb_frequencies): Likevise; init new static variables.
2631 * Makefile.in (predict.o): Add dependency on real.h
2633 2002-04-28 David S. Miller <davem@redhat.com>
2636 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
2637 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
2638 several {reads,writes} instead.
2639 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
2642 2002-04-27 David S. Miller <davem@redhat.com>
2645 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
2648 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
2649 including signal.h and sys/ucontext.h, not needed.
2651 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
2653 * varasm.c (output_constant_def): Correct test for not calling
2654 ENCODE_SECTION_INFO for INTEGER_CST.
2656 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
2658 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
2659 keep most cases as function eval_token.
2660 (eval_token): New function.
2661 (_cpp_parse_expr): Read token here for improved diagnostics.
2662 Don't use op_as_text. Detect bad ':' here.
2663 (reduce): Don't detect bad ':' here.
2664 (op_as_text): Remove.
2665 * cpphash.h (_cpp_test_assertion): Change prototype.
2666 * cpplib.c (_cpp_test_assertion): Change prototype.
2668 2002-04-28 Richard Henderson <rth@redhat.com>
2671 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
2672 (ggc_mark_rtx_children): New.
2674 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2677 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
2678 after call peepholes for UltraSPARC.
2679 (call + jump 64-bit peepholes): Remove.
2681 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2684 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
2685 result as temporary value.
2687 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2690 * toplev.c (rest_of_compilation): Only run regrename and copy
2691 propagation if optimizing.
2693 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2695 PR optimization/6475
2696 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
2697 register of REGNO_DECL (i).
2698 * Makefile.in (reload1.o): Add $(TREE_H).
2700 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
2702 * cppexp.c (lex): Update to use state.skip_eval.
2703 (struct op): Remove prio and flags members.
2704 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
2705 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
2706 (LEFT_ASSOC): New macro.
2707 (optab): New table of operator priorities and flags.
2709 (_cpp_parse_expr): Clean up logic. Return bool. Use a
2710 malloc-ed parser stack.
2711 (reduce): New; reduce the operator stack.
2712 (_cpp_expand_op_stack): Expand the operator stack as necessary.
2713 * cpphash.h (struct op): Predeclare.
2714 (struct cpp_reader): New members op_stack, op_limit.
2715 (struct lexer_state): New member skip_eval.
2716 (_cpp_parse_expr): Update.
2717 (_cpp_expand_op_stack): New.
2718 * cpplib.c (do_if): Update.
2719 * cppinit.c (cpp_create_reader): Create op stack.
2720 (cpp_destroy): And destroy it.
2721 * cpplib.h (CPP_LAST_CPP_OP): Correct.
2722 (TTYPE_TABLE): Correct.
2724 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2727 * c-decl.c (duplicate_decls): Call merge_weak.
2728 * c-pragma.c (apply_pragma_weak): Warn about misuse.
2729 * output.h (merge_weak): Prototype merge_weak.
2730 * varasm.c (merge_weak): New function.
2731 (declare_weak): Make sure we don't give an error on VAR_DECLs.
2732 Mark RTL with SYMBOL_REF_WEAK.
2734 2002-04-27 Kurt Garloff <garloff@suse.de>
2736 * tree-inline.c (inlinable_function_p): Improve heuristics
2737 by using a smoother function to cut down allowable inlinable size.
2738 * param.def: Add parameters max-inline-insns-single,
2739 max-inline-slope, min-inline-insns that determine the exact
2740 shape of the above function.
2741 * param.h: Likewise.
2743 2002-04-26 Richard Henderson <rth@redhat.com>
2745 * c-parse.in (malloced_yyss, malloced_yyvs): New.
2746 (yyoverflow): Re-add. Set them.
2747 (free_parser_stacks): New.
2748 * c-common.h: Declare it.
2749 * c-lex.c (c_common_parse_file): Call it.
2751 2002-04-26 Richard Henderson <rth@redhat.com>
2753 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
2754 for fallthru search.
2756 2002-04-26 Eric Christopher <echristo@redhat.com>
2758 PR optimization/3700
2759 * config/mips/mips.c (mips_issue_rate): Define. New function.
2760 (TARGET_SCHED_ISSUE_RATE): Use.
2762 2002-04-25 David S. Miller <davem@redhat.com>
2765 * reorg.c (optimize_skip): Do not allow exception causing
2766 instructions to be considered for delay slots.
2767 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
2768 (relax_delay_slots): Do not try to consider exception causing
2769 instructions as redundant.
2771 2002-04-26 Richard Henderson <rth@redhat.com>
2774 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
2776 2002-04-26 Mark Mitchell <mark@codesourcery.com>
2779 * config/i386/i386.md (untyped_call): Return the value in a float
2780 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
2783 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
2785 * tree.c (tree_int_cst_lt): Compare constants whose types differ
2786 in unsigned-ness correctly.
2788 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
2790 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
2791 portable runtime model.
2793 2002-04-26 Richard Henderson <rth@redhat.com>
2795 * c-parse.in (yyoverflow): Revert.
2797 2002-04-26 David Edelsohn <edelsohn@gnu.org>
2798 Richard Henderson <rth@redhat.com>
2800 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
2801 result as temporary value.
2803 2002-04-26 Richard Henderson <rth@redhat.com>
2806 * c-common.c (fix_string_type): Split out of ...
2807 (combine_strings): ... here. Take a varray, not a tree list.
2808 (c_expand_builtin_printf): Use fix_string_type.
2809 * c-common.h: Update decls.
2810 * c-parse.in (string): Remove. Update all uses to use STRING
2811 instead, and not call combine_strings.
2814 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
2815 (build_asm_stmt): Likewise.
2816 * objc/objc-act.c (my_build_string): Use fix_string_type.
2817 (build_objc_string_object): Build varray for combine_strings.
2819 2002-04-26 Bo Thorsen <bo@suse.co.uk>
2821 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
2824 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
2826 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
2827 (HAVE_NO_R_OPERAND): Remove.
2828 (HAVE_VALUE): Remove.
2829 (op_to_prio): Update.
2830 (UNARY): Don't alter flags.
2831 (_cpp_parse_expr): want_value used to indicate whether
2832 a number or unary operator is expected next. Distinguish
2833 unary and binary +/-.
2834 (op_as_text): Update for unary operators.
2836 2002-04-25 Richard Henderson <rth@redhat.com>
2839 * c-parse.in (yyoverflow): New.
2841 2002-04-25 Richard Henderson <rth@redhat.com>
2844 * c-common.c (shorten_compare): Simplfy conditions leading to
2845 the generation of a warning.
2847 2002-04-25 Richard Henderson <rth@redhat.com>
2850 * expmed.c (extract_bit_field): Fall through to generic code rather
2851 than aborting on subreg special case.
2853 2002-04-25 David S. Miller <davem@redhat.com>
2855 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
2856 for DECL being NULL.
2858 2002-04-25 Steve Christiansen <smc@us.ibm.com>
2860 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
2862 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
2864 * c-decl.c (grokdeclarator): Remove outdated ??? note
2865 on invalid declaration of flexible array members.
2867 2002-04-25 Richard Henderson <rth@redhat.com>
2869 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
2871 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2873 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
2874 needed by the compiler, even if they are used as global regs.
2876 2002-04-25 Matt Hiller <hiller@redhat.com>
2878 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
2880 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
2881 of the corresponding functions.
2882 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
2885 2002-04-25 Matt Hiller <hiller@redhat.com>
2887 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
2889 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
2890 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
2891 registers, adjust comment accordingly.
2892 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
2893 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
2894 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
2895 for coprocessor registers.
2896 (ADDITIONAL_REGISTER_NAMES): Include
2897 ALL_COP_ADDITIONAL_REGISTER_NAMES.
2899 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
2900 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
2901 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
2902 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
2903 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
2905 (mips_char_to_class): Adjust comment to include coprocessor
2908 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
2910 (mips_reg_names, mips_regno_to_class): Include coprocessor
2912 (mips_sw_reg_names): Ditto, make non-static.
2913 (mips_move_1word): Handle moves to and from coprocessor registers.
2914 (mips_move_2words): Handle moves to and from coprocessor
2916 (mips_class_max_nregs, mips_register_move_cost): Handle
2917 coprocessor register classes.
2918 (override_options): Initialize mips_char_to_class and
2919 mips_hard_regno_mode_ok properly for coprocessor registers.
2921 * config/mips/mips.md (movdi_internal, movdi_internal2,
2922 movsi_internal1, movsi_internal2): Add constraint-sets for
2923 coprocessor registers.
2924 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
2925 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
2927 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
2928 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
2930 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
2931 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
2933 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
2934 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
2937 * doc/tm.texi: Document feature.
2939 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
2941 * integrate.c (function_attribute_inlinable_p): Simplify.
2942 Check the table pointer is not NULL.
2944 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
2946 * doc/c-tree.texi: Fix typo in introduction.
2948 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
2950 * c-common.h (c_common_parse_file): Update.
2951 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2952 * c-lex.c (YYDEBUG): Get from c-lex.h.
2953 (c_common_parse_file): Update.
2954 * c-lex.h (YYDEBUG, yydebug): New.
2955 * c-parse.in (YYDEBUG): Get from c-lex.h.
2956 (c_set_yydebug): Remove.
2957 * c-tree.h (c_set_yydebug): Remove.
2958 * langhooks-def.h (lhd_do_nothing_i): New.
2959 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
2960 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
2961 * langhooks.c (lhd_do_nothing_i): New.
2962 (lhd_set_yydebug): Remove.
2963 * langhooks.h (struct lang_hooks): Update.
2964 * toplev.c (set_yydebug): New.
2965 (compile_file): Update call to parse_file hook.
2966 (decode_d_option): Update.
2968 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2970 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
2972 * loop.c (load_mems): Don't change the interface of called functions.
2974 * calls.c (expand_call): Take current_function_pretend_args_size
2975 into account when setting argblock for sibcalls.
2977 2002-04-24 Matt Hiller <hiller@redhat.com>
2979 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
2982 * cpplex.c (skip_line_comment): Process comment one multibyte
2983 character at a time rather than one char at a time, if
2985 (parse_string): Process string one multibyte character at a time
2986 rather than one char at a time, if appropriate.
2987 * c-lex.c (lex_string): Lex and copy multibyte strings
2989 * cpplib.h (cppchar_t): Change to unsigned.
2991 2002-04-24 Richard Henderson <rth@redhat.com>
2994 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
2997 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
2999 * sh.c (sh_va_arg): If argument was passed by reference,
3000 dereference the pointer.
3002 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3004 * sh.md (divsi3_i4_media): Use match_operand for input values
3005 rather than hard registers.
3006 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
3007 unnecessarily through hard registers. Keep copies of pseudo
3008 registers outside of the libcall sequence.
3010 * sh.md (casesi_shift_media): Add modes.
3012 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
3015 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
3017 * attribs.c (c_common_attribute_table): Move table and handlers
3019 (format_attribute_table, lang_attribute_table,
3020 lang_attribute_common): Remove.
3021 (init_attributes): Replace NULL pointers with pointers to the
3023 (handle_packed_attribute, handle_nocommon_attribute,
3024 handle_common_attribute, handle_noreturn_attribute,
3025 handle_noinline_attribute, handle_always_inline_attribute,
3026 handle_used_attribute, handle_unused_attribute,
3027 handle_const_attribute, handle_transparent_union_attribute,
3028 handle_constructor_attribute, handle_destructor_attribute,
3029 handle_mode_attribute, handle_section_attribute,
3030 handle_aligned_attribute, handle_weak_attribute,
3031 handle_alias_attribute, handle_visibility_attribute,
3032 handle_no_instrument_function_attribute, handle_malloc_attribute,
3033 handle_no_limit_stack_attribute, handle_pure_attribute,
3034 handle_deprecated_attribute, handle_vector_size_attribute,
3035 vector_size_helper): Move to c-common.c.
3036 * c-common.c (c_common_attribute_table,
3037 handle_packed_attribute, handle_nocommon_attribute,
3038 handle_common_attribute, handle_noreturn_attribute,
3039 handle_noinline_attribute, handle_always_inline_attribute,
3040 handle_used_attribute, handle_unused_attribute,
3041 handle_const_attribute, handle_transparent_union_attribute,
3042 handle_constructor_attribute, handle_destructor_attribute,
3043 handle_mode_attribute, handle_section_attribute,
3044 handle_aligned_attribute, handle_weak_attribute,
3045 handle_alias_attribute, handle_visibility_attribute,
3046 handle_no_instrument_function_attribute, handle_malloc_attribute,
3047 handle_no_limit_stack_attribute, handle_pure_attribute,
3048 handle_deprecated_attribute, handle_vector_size_attribute,
3049 vector_size_helper): Move from attribs.c.
3050 * c-common.h (c_common_attribute_table,
3051 c_common_format_attribute_table): New.
3052 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3053 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3054 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
3055 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
3056 (LANG_HOOKS_INITIALIZER): Update.
3057 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
3058 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
3059 * target.h: Update comment.
3060 * tree.c (default_target_attribute_table): Remove.
3061 * tree.h (default_target_attribute_table, format_attribute_table,
3062 lang_attribute_table, lang_attribute_common): Remove.
3064 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3065 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3067 2002-04-24 Jason Merrill <jason@redhat.com>
3069 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
3070 * dwarf2out.c (dwarf_attr_name): Support it.
3071 (gen_array_type_die): Emit it.
3072 (lookup_type_die): No special handling for VECTOR_TYPE.
3073 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
3075 2002-04-24 Richard Henderson <rth@redhat.com>
3077 * config/mips/mips.md (movdi_usd): Renumber.
3079 2002-04-24 David S. Miller <davem@redhat.com>
3082 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
3083 32-bit Sparc and current_function_returns_struct is true.
3085 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
3087 * loop.c (canonicalize_condition): Use gen_int_mode.
3089 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
3091 * config/rs6000/altivec.h: Cleanup file. Add non individual
3113 (vec_vcmpequb): New.
3114 (vec_vcmpequh): New.
3115 (vec_vcmpequw): New.
3116 (vec_vcmpeqfp): New.
3117 (vec_vcmpgefp): New.
3118 (vec_vcmpgtub): New.
3119 (vec_vcmpgtsb): New.
3120 (vec_vcmpgtuh): New.
3121 (vec_vcmpgtsh): New.
3122 (vec_vcmpgtuw): New.
3123 (vec_vcmpgtsw): New.
3124 (vec_vcmpgtfp): New.
3125 (vec_vcmpgefp): New.
3130 (vec_vexptefp): New.
3135 (vec_lde): Add vector float variant.
3140 (vec_vmhaddshs): New.
3162 (vec_vmladduhm): New.
3163 (vec_vmhraddshs): New.
3165 (vec_vmsummbm): New.
3166 (vec_vmsumuhm): New.
3167 (vec_vmsumshm): New.
3168 (vec_vmsumuhs): New.
3169 (vec_vmsumshs): New.
3178 (vec_vnmsubfp): New.
3196 (vec_vrsqrtefp): New.
3207 (vec_vspltisb): New.
3208 (vec_vspltish): New.
3209 (vec_vspltisw): New.
3234 (vec_vsum4ubs): New.
3235 (vec_vsum4sbs): New.
3236 (vec_vsum4shs): New.
3237 (vec_vsum2sws): New.
3248 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
3251 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
3252 added literals from substracted literals.
3253 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
3254 (fold) [associate]: Preserve MINUS_EXPR if needed.
3256 2002-04-23 Zack Weinberg <zack@codesourcery.com>
3258 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
3261 2002-04-23 Tom Tromey <tromey@redhat.com>
3263 * gcc.c: Added --resource. For PR java/6314.
3265 2002-04-23 David O'Brien <obrien@FreeBSD.org>
3267 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
3268 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
3271 2002-04-23 David O'Brien <obrien@FreeBSD.org>
3273 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
3275 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
3277 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
3279 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
3280 (ix86_expand_clrstr): Fix typo.
3281 * loop.c (gen_load_of_final_value): New.
3282 (loop_givs_rescan, strength_reduce, check_dbra_loop):
3285 2002-04-23 Roger Sayle <roger@eyesopen.com>
3287 * builtins.c (builtin_memset_gen_str): New function.
3288 (expand_builtin_memset): Optimize the case of constant length, but
3291 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
3293 * config/rs6000/altivec.h (vec_step): Remove extraneous
3295 (vec_ctu): Cast return.
3297 2002-04-23 Alan Modra <amodra@bigpond.net.au>
3300 * function.h: (struct function): Add profile_label_no field.
3301 (current_function_profile_label_no): Define.
3302 * function.c: (profile_label_no): New static var.
3303 (expand_function_start): Increment it, and copy to
3304 current_function_profile_label_no.
3305 * output.h (profile_label_no): Delete.
3306 * final.c (profile_label_no): Delete.
3307 (profile_function): Use current_function_profile_label_no.
3308 (final_end_function): Don't increment profile_label_no here.
3309 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
3310 profile_label_no with current_function_profile_label_no.
3311 * config/pa/pa.c (current_function_number): Delete.
3312 (pa_output_function_prologue): Don't output profile label here.
3313 (hppa_profile_hook): Use label_no param rather than
3314 current_function_number.
3315 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
3316 * config/pa/pa.h: .. here.
3317 (FUNCTION_PROFILER): Output profile label here.
3319 2002-04-22 Eric Christopher <echristo@redhat.com>
3321 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
3322 patch of 2002-04-09 due to binutils issues.
3323 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
3325 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
3327 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
3328 constraint to 'o' for m=r and r=m alternatives.
3329 ("*movv8hi_internal1"): Same.
3330 ("*movv16qi_internal1"): Same.
3331 ("*movv4sf_internal1"): Same.
3333 2002-04-22 Janis Johnson <janis187@us.ibm.com>
3335 * rtl.h (RTX_FLAG): New macro.
3336 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
3337 * final.c (alter_subreg): Use macro to access rtx flag.
3338 * integrate.c (copy_rtx_and_substitute): Use new access macro.
3339 * print-rtl.c (print_rtx): Use new access macro.
3341 * cse.c (insert): Check rtx code before accessing flag.
3343 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
3344 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
3345 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
3346 convert_const_symbol_ref, make_canonical, make_alternative_compare,
3347 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
3348 simplify_test_exp, optimize_attrs, simplify_by_exploding,
3349 find_and_mark_used_attributes, unmark_used_attributes,
3350 add_values_to_cover, simplify_with_current_value,
3351 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
3352 copy_rtx_unchanging, main): Use new access macros.
3354 2002-04-22 Tom Rix <trix@redhat.com>
3356 * expmed.c (init_expmed): Generate shifted constant once.
3358 2002-04-22 Zack Weinberg <zack@codesourcery.com>
3360 * c-lex.c (lex_charconst): Call convert to get constant in
3361 proper type; don't just smash the type field.
3364 * config.gcc: Add list of obsolete configurations. Disallow
3365 building these without --enable-obsolete.
3366 * doc/install.texi: Document --enable-obsolete and obsoletion
3367 policy. Mention obsoletion of individual targets in
3370 2002-04-22 Richard Henderson <rth@redhat.com>
3372 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
3374 2002-04-22 Mark Mitchell <mark@codesourcery.com>
3377 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
3378 (walk_fixup_memory_subreg): Likewise.
3379 (fixup_var_refs_insn): Adjust accordingly.
3380 (fixup_var_refs_1): Likewise.
3382 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
3384 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
3385 LIBPATH_ARCH64_SPEC): Define.
3386 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
3387 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
3388 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
3389 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
3391 2002-04-22 Joel Sherrill <joel@OARcorp.com>
3393 * gthr-rtems.h: Correct prototypes to remove warnings.
3395 2002-04-22 Richard Henderson <rth@redhat.com>
3398 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
3400 * gcse.c (free_insn_expr_list_list): New.
3401 (clear_modify_mem_tables): Use it. Fix bit set usage.
3402 (canon_list_insert): Use EXPR_LISTs for expressions.
3403 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
3405 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
3407 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
3408 file change and include code to _cpp_pop_buffer.
3409 * cpphash.h (struct pending_option): Predeclare.
3410 (struct cpp_reader): New member next_include_file.
3411 (_cpp_pop_file_buffer): Update.
3412 (_cpp_push_next_buffer): Update, rename.
3413 * cppinit.c (cpp_destroy): Free include chain and pending here.
3414 (cpp_finish_options): Simplify.
3415 (_cpp_push_next_buffer): Rename and clean up.
3416 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
3418 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
3420 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
3422 * config/rs6000/altivec.h (vec_xor): Add variant for both args
3423 being vector signed int.
3425 (vec_xor): Add variant for both args being vector signed char.
3426 Remove redundant variant.
3429 2002-04-21 David S. Miller <davem@redhat.com>
3431 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
3432 compare mode in output RTL.
3434 2002-04-22 David Edelsohn <edelsohn@gnu.org>
3436 * config/rs6000/rs6000.c (rs6000_override_options): Correct
3437 style and formatting of previous patch.
3439 2002-04-22 Alan Modra <amodra@bigpond.net.au>
3441 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
3442 flag_pic for ABI_AIX.
3444 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
3446 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
3447 * cppfiles.c (read_include_file): Similarly.
3448 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
3449 uxstrdup ustrchr, ufputs): Similarly.
3450 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
3451 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
3452 cpp_ideq, parse_identifier, parse_number): Similarly.
3453 * cpplib.c (struct directive, dequote_string, D, run_directive,
3454 cpp_push_buffer): Similarly.
3455 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
3456 _cpp_create_definition, check_trad_stringification,
3457 cpp_macro_definition): Similarly.
3459 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
3461 * cppmacro.c (funlike_invocation_p): Don't step back
3464 2002-04-21 David Edelsohn <edelsohn@gnu.org>
3466 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
3469 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
3471 * doc/invoke.texi: Remove Chill references.
3472 * doc/gcc.texi: Update last modified date.
3474 2002-04-20 Kazu Hirata <kazu@hxi.com>
3476 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
3477 push and pop. Replace add.l with add.w.
3479 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3481 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
3482 multiply instructions for H8/300H case.
3484 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3486 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
3487 Bum three instructions from each routine.
3489 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
3491 * Makefile.in: Update.
3492 * decl.c (push_c_function_context, pop_c_function_context,
3493 mark_c_function_context): Rename for consistency.
3494 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
3495 * c-tree.h (push_c_function_context, pop_c_function_context,
3496 mark_c_function_context): Rename for consistency.
3497 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3498 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3499 * function.c (init_lang_status, save_lang_status,
3500 restore_lang_status, mark_lang_status, free_lang_status):
3501 Move to langhooks.h.
3502 (push_function_context_to, pop_function_context_from,
3503 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
3505 * function.h (init_lang_status, save_lang_status,
3506 restore_lang_status, mark_lang_status, free_lang_status):
3507 Move to langhooks.h.
3508 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
3509 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
3510 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
3511 LANG_HOOKS_FUNCTION_INITIALIZER): New.
3512 (LANG_HOOKS_INITIALIZER): Update.
3513 (lhd_do_nothing_f): New.
3514 * langhooks.h (struct lang_hooks_for_functions): New.
3515 (struct lang_hooks): New hooks.
3516 * langhooks.c (lhd_do_nothing_f): New.
3518 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3519 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3521 2002-04-19 David S. Miller <davem@redhat.com>
3523 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
3524 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
3526 2002-04-19 Jakub Jelinek <jakub@redhat.com>
3528 PR optimization/3756
3529 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
3530 x = ((int) y < 0) ? cst1 : cst2.
3532 2002-04-19 Jakub Jelinek <jakub@redhat.com>
3535 * function.c: Reapply patch for c/6358.
3536 (expand_function_end): Copy decl_rtl's mode, not
3537 current_function_return_rtx mode.
3539 2002-04-19 Joel Sherrill <joel@OARcorp.com>
3541 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
3544 2002-04-19 Tom Tromey <tromey@redhat.com>
3546 * doc/install.texi (Specific): Update status of Solaris 2.8.
3549 2002-04-19 Andreas Schwab <schwab@suse.de>
3551 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
3552 (PUT_REAL): Restore old definition.
3554 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
3555 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3557 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
3558 binutils 2.11.2 and higher generate smaller binaries than Sun's
3561 2002-04-19 Mark Mitchell <mark@codesourcery.com>
3564 * toplev.c (rest_of_compilation): Do not defer functions for which
3565 TREE_SYMBOL_REFERENCED has already been set.
3567 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
3569 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
3572 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
3574 * builtins.c: Include langhooks.h.
3575 (lang_type_promotes_to): Remove.
3576 (expand_builtin_va_arg): Use new hook.
3577 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
3578 (simple_type_promotes_to): Move to c-typeck.c.
3579 * c-common.h (simple_type_promotes_to): Remove.
3580 * c-decl.c (duplicate_decls, grokdeclarator): Update.
3581 * c-format.c: Include langhooks.h.
3582 (check_format_types): Update.
3583 * c-tree.h (c_type_promotes_to): New.
3584 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
3585 (type_lists_compatible_p): Update.
3586 * langhooks-def.h (lhd_type_promotes_to): New.
3587 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
3588 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3589 * langhooks.c (lhd_type_promotes_to): New.
3590 * langhooks.h (struct lang_hooks_for_types): New hook.
3591 * tree.h (lang_type_promotes_to): Remove.
3593 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
3595 2002-04-18 Richard Henderson <rth@redhat.com>
3597 * function.c: Revert patch for c/6358.
3599 2002-04-18 Richard Henderson <rth@redhat.com>
3601 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
3602 blocks. Handle multiple references to the TRAP block. Handle
3603 non-adjacent THEN and OTHER blocks.
3605 2002-04-18 Richard Henderson <rth@redhat.com>
3607 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
3608 crash with no type for by-mode libcalls.
3610 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
3612 2002-04-18 Bob Wilson <bob.wilson@acm.org>
3614 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
3615 __xtensa_nonlocal_goto): Use a syscall instructions to flush
3616 the register windows.
3618 2002-04-18 Zack Weinberg <zack@codesourcery.com>
3620 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
3621 appropriate. Document need for extended precision even when
3622 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
3623 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
3624 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
3625 instead of relying on later syntax error when REAL_WIDTH > 5.
3626 * real.c: Define NE based only on whether or not we have a
3627 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
3628 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
3629 define GET_REAL and PUT_REAL as simple memcpy operations; no
3630 need to byteswap or round.
3631 Use #error instead of #ifdef-ing out the entire file, for
3632 prompt error detection.
3634 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
3636 2002-04-18 David S. Miller <davem@redhat.com>
3638 * config/sparc/sparc.h (BRANCH_COST): Define.
3640 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
3643 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
3645 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
3646 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
3647 propagate_block calls after relaxation loop using new variable
3648 stabilized_prop_flags.
3650 2002-04-18 Richard Henderson <rth@redhat.com>
3652 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
3653 (ia64_va_arg): Expect variable sized types by reference.
3654 * config/ia64/ia64-protos.h: Update.
3655 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
3656 ia64_function_arg_pass_by_reference.
3658 2002-04-18 Richard Henderson <rth@redhat.com>
3660 * ifcvt.c: Include except.h.
3661 (block_has_only_trap): Break out from find_cond_trap.
3662 (find_cond_trap): Use it. Always delete the trap block.
3663 (merge_if_block): Allow then block null. Be less simplistic about
3664 what insns can end a block.
3665 * Makefile.in (ifcvt.o): Depend on except.h.
3667 * config/ia64/ia64.md (trap, conditional_trap): New.
3669 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3672 * function.c (assign_parms): Assign hard current_function_return_rtx
3674 (expand_function_end): ...not here.
3676 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
3678 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3679 * c-tree.h (c_incomplete_type_error): New.
3680 * c-typeck.c (require_complete_type, build_component_ref): Update.
3681 (incomplete_type_error): Rename.
3682 * langhooks-def.h (lhd_incomplete_type_error): New.
3683 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
3684 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3685 * langhooks.c (lhd_incomplete_type_error): New.
3686 * langhooks.h (struct lang_hooks_for_types): New hook.
3687 * tree.c (size_in_bytes): Use new hook.
3688 * tree.h (incomplete_type_error): Remove.
3690 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3692 2002-04-18 Zack Weinberg <zack@codesourcery.com>
3694 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
3695 TARGET_FLOAT_FORMAT blocks.
3697 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3699 * doc/install.texi (Downloading the source): Do not mention Chill
3700 any longer, but mention Ada.
3701 (Configuration): Do not mention Chill any longer.
3703 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
3705 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
3707 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
3709 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
3712 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3714 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
3715 instead of unsigned_type.
3717 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
3719 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
3720 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
3723 2002-04-18 Bernd Schmidt <bernds@redhat.com>
3725 * attribs.c (vector_type_node_list): New static variable.
3726 (handle_vector_size_attribute): Use it to avoid generating a
3727 new type node each time we are called.
3729 * combine.c (subst): Avoid trying to make a vector mode subreg of
3730 an integer constant.
3731 (gen_lowpart_for_combine): Likewise.
3733 2002-04-18 Roger Sayle <roger@eyesopen.com>
3734 Jakub Jelinek <jakub@redhat.com>
3736 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
3737 for integer constant c (if x has unsigned type or sign bit is not
3738 set in c). This folds the zero/sign extension into the bit-wise and
3741 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3744 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
3747 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
3749 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
3751 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
3753 * gcc.c (read_specs): Detect and fail if an attempt is made to
3754 rename a spec string to an already existing string.
3756 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3758 * config/s390/s390.c (legitimize_pic_address): Do not generate
3759 illegal address constant without CONST.
3761 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3763 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
3764 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
3766 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3768 PR optimization/6305
3769 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
3770 to make sure previous reloads are taken into account. Generate
3771 better code if one operand is an in-range immediate constant.
3773 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
3775 * doc/install.texi (Building): libgcj requires GNU make.
3777 2002-04-17 Jakub Jelinek <jakub@redhat.com>
3780 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
3781 even if hard quad and register is not floating.
3782 (movtf reg<-mem split): Disallow splitting if hard quad and
3783 register is floating.
3784 (movtf mem<-reg split): Likewise.
3785 * config/sparc/sparc.c (fp_register_operand): New predicate.
3786 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
3788 2002-04-17 Zack Weinberg <zack@codesourcery.com>
3790 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
3791 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
3792 (unprotoize.o): Ditto. Build from protoize.c. Define
3793 UNPROTOIZE on command line.
3794 * protoize.c: Include cppdefault.h. Delete include_defaults.
3795 (in_system_include_dir): Use cpp_include_defaults (defined in
3797 * unprotoize.c: Delete file.
3799 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
3801 * config/rs6000/altivec.h (vec_ld): Add array variants.
3805 2002-04-17 Alan Matsuoka <alanm@redhat.com>
3806 Aldy Hernandez <aldyh@redhat.com>
3808 * config/rs6000/altivec.h: Define __ALTIVEC__.
3815 Add parentheses to all macro arguments.
3817 2002-04-16 Richard Henderson <rth@redhat.com>
3820 * except.c (remove_eh_handler): Insert inner regions at beginning
3821 of sibling chain. Refactor expressions.
3823 2002-04-16 Richard Henderson <rth@redhat.com>
3825 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
3826 * config/sparc/sol2-gas-bi.h: New file.
3827 * config.gcc (sparc*-solaris): Add it as needed.
3828 * configure.in (AS_SPARC64_FLAG): Remove check.
3829 * config.in, configure: Regenerate.
3831 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
3833 2002-04-16 Richard Henderson <rth@redhat.com>
3835 * config/mips/mips.c (override_options): Don't override N32 for
3839 * config/mips/mips.md (can_delay): Split out of existing define_delays.
3840 (HILO_delay): Set can_delay false.
3842 2002-04-16 Dale Johannesen <dalej@apple.com>
3844 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
3845 instruction addresses.
3846 (rs6000_output_function_epilogue): Likewise.
3848 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
3850 * c-parse.in (poplevel, compstmt_start,
3851 compstmt_primary_start): Add ending ';', in accordance
3854 2002-04-16 Richard Henderson <rth@redhat.com>
3856 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
3857 Adjust tm_file order to get TARGET_DEFAULT set properly.
3858 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
3859 * doc/install.texi (sparc-solaris): Update.
3861 2002-04-16 Dale Johannesen <dalej@apple.com>
3863 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
3864 comparison operands do not match each other or if modes of
3865 conditions do not match result.
3867 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
3870 * config/s390/s390.md (mulsidi3): Set both subregs of the
3873 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
3875 * config/rs6000/altivec.h (vec_addc): Type check.
3877 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3880 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
3882 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
3884 2002-04-15 Richard Henderson <rth@redhat.com>
3886 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
3887 call_really_used_regs too.
3889 2002-04-15 Richard Henderson <rth@redhat.com>
3891 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
3893 2002-04-15 David S. Miller <davem@redhat.com>
3895 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
3898 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3901 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
3902 CONST_VECTOR is { 0, ... 0 }.
3904 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
3906 * doc/install.texi (Installing GCC: Configuration): Clarify
3907 the only supported ways to configure gcc.
3909 2002-04-15 Roland McGrath <roland@frob.com>
3911 * config.gcc (alpha*-*-gnu*): New target configuration.
3912 * config/alpha/gnu.h: New file for it.
3913 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
3915 2002-04-16 Mark Mitchell <mark@codesourcery.com>
3917 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
3918 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
3919 * tree.h (expand_start_stmt_expr): Update prototype.
3920 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
3921 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
3922 on the STMT_EXPR created for the inline function.
3924 2002-04-15 Richard Henderson <rth@redhat.com>
3926 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
3927 config/i386/linux-aout.h, config/i386/linux-oldld.h,
3928 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
3929 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
3930 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
3931 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
3932 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
3933 Define __gnu_linux__, not gnu_linux.
3934 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
3936 2002-04-15 Mark Mitchell <mark@codesourcery.com>
3938 Remove Chill front end.
3939 * gcc.c (default_compilers): Remove Chill entries.
3940 * ch: Remove directory.
3941 * doc/frontends.texi: Remove information about Chill.
3942 * doc/sourcebuild.texi: Likewise.
3943 * doc/standards.texi: Likewise.
3945 2002-04-15 Douglas B Rupp <rupp@gnat.com>
3947 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
3948 (LONGLONG_STANDALONE): Define.
3950 2002-04-15 David S. Miller <davem@redhat.com>
3952 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
3953 Call emit_library_call with LCT_NORMAL.
3954 (sparc_initialize_trampoline): Use LCT_foo instead of
3955 magic constant in emit_library_call invocations.
3956 (sparc64_initialize_trampoline): Likewise.
3957 (sparc_profile_hook): Likewise.
3958 * config/sparc/sparc.md: Likewise.
3960 * config/sparc/sparc.c (sparc_extra_constraint_check):
3961 Fix type of argument 'c'.
3962 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
3965 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3967 * diagnostic.h (output_buffer_state): Redefine.
3968 (output_format_decoder): New macro.
3969 (output_prefixing_rule): Likewise.
3970 (output_line_cutoff): Likewise.
3971 (diagnostic_format_decoder): Adjust.
3972 (diagnostic_prefixing_rule): Likewise.
3973 (diagnostic_line_cutoff): Likewise.
3974 (diagnostic_state): Likewise.
3975 (diagnostic_kind_count): Likewise.
3976 (diagnostic_buffer): Now a macro.
3978 * diagnostic.c (diagnostic_buffer): Remove definition.
3979 (output_is_line_wrapping): Adjust.
3980 (set_real_maximum_length): Likewise.
3981 (output_set_maximum_length): Likewise.
3982 (init_output_buffer): Likewise.
3983 (lhd_print_error_function): Likewise.
3984 (output_do_verbatim): Likewise.
3986 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
3988 * cpperror.c (print_location): Don't print include chain
3990 (cpp_begin_message): Update to use DL_ macros.
3991 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
3992 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3993 cpp_notice, cpp_notice_from_errno): Remove.
3994 (cpp_error, cpp_error_with_line): Update to take a diagnostic
3997 * cppexp.c (CPP_ICE): Remove.
3998 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
3999 lex, integer_overflow, _cpp_parse_expr): Update.
4000 * cppfiles.c (read_include_file, find_include_file,
4001 handle_missing_header, _cpp_read_file, remap_filename): Update.
4002 * cpphash.h (enum error_type): Remove.
4003 (_cpp_begin_message): Update.
4004 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
4005 cpp_handle_option, cpp_post_options): Update.
4006 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
4007 skip_whitespace, parse_identifier, parse_slow, parse_string,
4008 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
4009 cpp_interpret_charconst): Update.
4010 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
4011 lex_macro_node, do_undef, glue_header_name, parse_include,
4012 do_include_common, read_flag, do_line, do_linemarker, do_ident,
4013 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
4014 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
4015 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
4016 _cpp_pop_buffer, do_diagnostic): Update.
4017 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
4018 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
4019 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4020 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4021 cpp_notice, cpp_notice_from_errno): Remove.
4022 (cpp_error, cpp_error_with_line): Update to take a diagnostic
4025 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
4026 collect_args, enter_macro_context, save_parameter, parse_params,
4027 _cpp_create_definition, check_trad_stringification,
4028 cpp_macro_definition): Update.
4029 * cppmain.c (cpp_preprocess_file): Update.
4030 * fix-header.c (read_scan_file): Update.
4032 2002-04-14 Andreas Schwab <schwab@suse.de>
4034 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
4036 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4038 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
4040 2002-04-13 Mark Mitchell <mark@codesourcery.com>
4042 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
4045 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
4047 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
4049 2002-04-13 Joel Sherrill <joel@OARcorp.com>
4051 * config/sparc/t-elf: Enable v8 multilibs. Impacts
4052 sparc-elf and sparc-rtems targets.
4054 2002-04-13 Mark Mitchell <mark@codesourcery.com>
4056 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
4057 defined, and __gnu_hurd__ wherever __GNU__ is defined.
4058 * arm/linux-elf.h: Likewise.
4059 * cris/aout.h: Likewise.
4060 * cris/linux.h: Likewise.
4061 * i370/linux.h: Likewise.
4062 * i386/gnu.h: Likewise.
4063 * i386/linux-aout.h: Likewise.
4064 * i386/linux-oldld.h: Likewise.
4065 * i386/linux.h: Likewise.
4066 * i386/linux64.h: Likewise.
4067 * ia64/linux.h: Likewise.
4068 * m68k/linux-aout.h: Likewise.
4069 * m68k/linux.h: Likewise.
4070 * mips/linux.h: Likewise.
4071 * pa/pa-linux.h: Likewise.
4072 * pj/linux.h: Likewise.
4073 * rs6000/sysv4.h: Likewise.
4074 * s390/linux.h: Likewise.
4075 * sh/linux.h: Likewise.
4076 * sparc/linux-aout.h: Likewise.
4077 * sparc/linux.h: Likewise.
4078 * sparc/linux64.h: Likewise.
4079 * xtensa/linux.h: Likewise.
4081 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
4083 * stmt.c (check_unique_operand_names): Expect operand names to
4084 be strings rather than identifiers. Use simple_cst_equal to
4086 (resolve_operand_name_1): Make same identifier to string change here.
4087 * c-parse.in (asm_operand): Convert a named operand into a string.
4088 * cp/parse.y (asm_operand): Likewise.
4090 2002-04-13 Andreas Schwab <schwab@suse.de>
4092 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
4094 2002-04-12 Mark Mitchell <mark@codesourcery.com>
4096 Revert these changes:
4098 2002-04-06 Mark Mitchell <mark@codesourcery.com>
4101 * stor-layout.c (layout_decl): Reset the RTL for the decl.
4103 2002-04-12 Richard Henderson <rth@redhat.com>
4105 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
4106 (sparc*-*-solaris): Clean up header files.
4107 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
4108 and plan on generating 64-bit code.
4109 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
4110 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
4111 * config/sparc/sol2-sld-64.h: Rename ...
4112 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
4113 for AS_SPARC64_FLAG not defined.
4114 * config/sparc/sol2-gld-bi.h: New.
4115 * config/sparc/sol2-sld.h: Remove.
4116 * config/sparc/sol26-sld.h: New.
4117 * config/sparc/sol2.h: Tidy comments.
4118 * doc/install.texi: Document sparc-solaris configury changes.
4120 2002-04-12 Richard Henderson <rth@redhat.com>
4122 * recog.c (offsettable_address_p): Match the logic in adjust_address.
4124 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
4125 in 64-bit mode only. Use only for 32-bit or MEDLOW.
4127 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4129 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
4131 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
4133 * pa.c (pa_can_combine_p): Call extract_insn before calling
4136 2002-04-12 Douglas B Rupp <rupp@gnat.com>
4138 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
4139 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
4140 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
4141 (CPP_PREDEFINES): Handle __declspec.
4142 * config/i386/t-interix (USER_H): Remove.
4144 2002-04-12 DJ Delorie <dj@redhat.com>
4146 * integrate.c (compare_blocks): Make comparisons safe for when
4147 sizeof(int) < sizeof(char *).
4148 (find_block): Likewise.
4150 2002-04-12 Jan Hubicka <jh@suse.cz>
4151 David Edelsohn <edelsohn@gnu.org>
4153 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
4155 (symbol_ref_operand): New.
4156 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
4157 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
4159 2002-04-12 Andreas Schwab <schwab@suse.de>
4161 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
4162 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
4163 overrides the definition in config/svr4.h.
4165 2002-04-12 Eric Norum <eric.norum@usask.ca>
4167 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
4168 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
4169 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
4170 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
4171 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
4172 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
4173 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
4174 definitions to config/rtems.h and make the targets more similar.
4176 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4178 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
4179 POINTERS_EXTEND_UNSIGNED.
4180 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
4181 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
4183 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
4186 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
4188 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
4189 depends on TARGET_SHMEDIA, not TARGET_SH5.
4191 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
4193 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
4194 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
4196 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
4198 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
4201 2002-04-12 Andreas Schwab <schwab@suse.de>
4203 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
4205 2002-04-12 Richard Henderson <rth@redhat.com>
4208 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
4210 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
4211 modes spanning multiple hard regs.
4213 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
4215 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
4217 * pa.c (pa_output_function_prologue): Don't accumulate the total
4218 number of code bytes when using TARGET_64BIT, or gas, SOM and not
4219 the portable runtime.
4220 (output_deferred_plabels): Handle 64bit plabels.
4221 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
4222 generating pic code using the GAS assembler for object formats that
4223 are not SOM (ie., ELF32 and ELF64).
4224 (output_millicode_call): Check attribute type if attribute length is 28.
4225 Likewise use $PIC_pcrel$0. Only call get_attr_length and
4226 dbr_sequence_length once.
4227 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
4228 dbr_sequence_length once.
4229 * pa.h (TARGET_SOM): Define if not defined.
4230 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
4231 with GAS and not SOM.
4232 (jump, call_internal_reg, call_value_internal_reg): Likewise.
4233 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
4235 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4237 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
4238 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
4239 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
4240 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
4241 elfos.h and dbxelf.h values are fine now.
4242 * config/i386/freebsd.h, config/alpha/freebsd.h
4243 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
4245 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4247 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
4248 or set Acpu or Amachine. Reformat.
4249 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4251 (LINK_SPEC): Do not need to undef.
4252 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
4253 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
4254 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4256 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
4257 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
4258 (LINK_SPEC): Do not need to undef.
4259 (DONT_USE_BUILTIN_SETJMP): Do not define.
4260 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
4261 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
4262 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
4263 Remove trailing spaces.
4264 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
4265 __ELF__, or set Acpu or Amachine. Reformat.
4266 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4269 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4271 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
4272 all other *-*-freebsd* targets.
4274 2002-04-11 Richard Henderson <rth@redhat.com>
4276 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
4278 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4280 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
4281 Include {cpu}/{cpu}.h thru tm_file.
4282 (alpha*-*-linux*ecoff): Remove target.
4283 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
4284 (LINK_SPEC): Remove, is not OS independent.
4285 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
4286 (LINK_SPEC): Do not need to #undef any longer.
4287 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
4289 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
4291 (LINK_SPEC): Moved here from alpha/elf.h.
4292 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
4294 * config/alpha/linux-ecoff.h: Remove.
4295 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
4296 (CPP_SPEC): Define _POSIX_SOURCE as needed.
4297 (CPP_SUBTARGET_SPEC): Do not define.
4298 (LINK_SPEC): Do not need to #undef any longer.
4299 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
4300 * config/alpha/vms.h: Likewise.
4302 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4304 * doc/extend.texi: Remove old claim that typedefs cannot have
4305 an alignment attribute.
4307 2002-04-11 Jakub Jelinek <jakub@redhat.com>
4309 PR optimization/6177
4310 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
4311 bitpos is 0 and bitsize CONCAT size.
4313 2002-04-11 Jakub Jelinek <jakub@redhat.com>
4316 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
4318 2002-04-10 David O'Brien <obrien@FreeBSD.org>
4320 * config/alpha/freebsd.h: Minor reformatting.
4321 (CPP_SPEC): Define ELF and add cpp_subtarget.
4322 (ASM_SPEC): No longer needed.
4324 2002-04-11 Richard Henderson <rth@redhat.com>
4326 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
4327 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
4328 (dimode mem/zero splitter): New.
4330 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
4332 * config/cris/cris.c (cris_override_options): Tweak error message
4333 for PIC not implemented.
4335 * config/cris/cris.h: Tweak comments related to parameter-passing.
4337 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
4339 2002-04-10 Richard Henderson <rth@redhat.com>
4341 * except.c (add_ehl_entry): Allow duplicates after landing pad
4344 2002-04-10 David Edelsohn <edelsohn@gnu.org>
4346 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
4348 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
4350 * c-decl.c (c_init_decl_processing): Move generation of
4351 decls for g77_integer_type_node and friends from here ...
4352 * c-common.c (c_common_nodes_and_builtins): ... to here.
4354 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
4356 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
4357 is only used as frame pointer when frame_pointer_needed is true.
4359 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
4362 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
4363 for the fact that the pool entry uses two words.
4364 (movdf_hard_insn): Similarly. Also, ADR instruction can span
4366 (movdf_soft_insn): Similarly.
4367 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
4368 for the fact that the pool entry uses three words.
4370 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
4372 * config/mips/mips.c (mips_va_arg): When using the struct version
4373 of the EABI va_list, allow arguments in the register save area to
4374 take up less room than a stack argument.
4376 2002-04-10 Richard Henderson <rth@redhat.com>
4378 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
4379 if EXPAND_INITIALIZER.
4381 2002-04-09 Richard Henderson <rth@redhat.com>
4383 * config/alpha/alpha.md (movdi_er_maybe_g): New.
4384 * config/alpha/alpha.c (alpha_expand_mov): Use it.
4386 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4388 PR optimization/6233
4389 * rtlanal.c (pure_call_p): New function.
4390 * rtl.h (pure_call_p): Declare.
4391 * loop.c (prescan_loop): Use it to set has_nonconst_call.
4392 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
4394 2002-04-09 Eric Christopher <echristo@redhat.com>
4396 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
4397 information to .comm directive.
4399 2002-04-09 Richard Henderson <rth@redhat.com>
4402 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
4404 2002-04-09 Richard Henderson <rth@redhat.com>
4406 * basic-block.h (flow_delete_block_noexpunge): Declare.
4407 (expunge_block_nocompact): Declare.
4408 * cfg.c (expunge_block_nocompact): Split out from ...
4409 (expunge_block): ... here.
4410 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
4411 (flow_delete_block_noexpunge): Split out from ...
4412 (flow_delete_block): ... here.
4413 * cfgcleanup.c (delete_unreachable_blocks): Compact while
4414 removing dead blocks.
4415 * except.c (exception_handler_labels): Remove.
4416 (exception_handler_label_map): New.
4417 (struct eh_region): Add aka member.
4418 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
4419 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
4420 (for_each_eh_label, for_each_eh_label_1): New.
4421 (init_eh): Register exception_handler_label_map.
4422 (free_eh_status): Use free_region.
4423 (find_exception_handler_labels): Use the map, not the list.
4424 (remove_exception_handler_label): Likewise.
4425 (maybe_remove_eh_handler): Likewise.
4426 (remove_eh_handler): Use the region aka bitmap.
4427 * except.h (exception_handler_labels): Remove.
4428 (for_each_eh_label): Declare.
4429 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
4430 * loop.c (invalidate_loops_containing_label): New.
4431 (find_and_verify_loops): Use it. Use for_each_eh_label.
4432 * sched-rgn.c (is_cfg_nonregular): Use
4433 current_function_has_exception_handlers.
4435 2002-04-09 Richard Henderson <rth@redhat.com>
4437 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
4438 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
4439 Do not return changed status.
4440 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
4441 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
4442 New functions that do return changed status.
4443 * sbitmap.h: Update decls.
4444 * gcse.c, lcm.c: Use _cg functions as needed.
4446 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
4448 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
4449 (sh64-*-elf*, sh-*-rtemself*): Likewise.
4450 * config/sh/embed_bb.c: New file.
4451 * config/sh/embed-elf.h: New file.
4452 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
4453 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
4454 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4456 (SUBTARGET_CPP_PTR_SPEC): Don't define.
4457 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
4458 Add subtarget_asm_endian_spec.
4459 (ASM_SPEC): Use subtarget_asm_endian_spec.
4460 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
4461 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
4462 (WCHAR_UNSIGNED): Define.
4463 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
4464 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4465 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
4467 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
4468 (sh_adjust_cost): Likewise.
4469 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4471 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
4472 (WCHAR_TYPE_SIZE): Likewise.
4473 (ASM_SPEC): Use subtarget_asm_endian_spec.
4474 (SH_ELF_WCHAR_TYPE): #undef/ #define.
4475 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
4476 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
4477 (MAX_WCHAR_TYPE_SIZE): Don't #define .
4478 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
4479 (USER_LABEL_PREFIX): Don't #undef /#define .
4480 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4481 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
4482 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
4483 (ASM_SPEC): Likewise.
4484 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
4485 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
4486 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
4487 (LIB2FUNCS_EXTRA): Define.
4488 * t-sh64 (LIB2FUNCS_EXTRA): Define.
4489 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
4490 (LIB1ASMFUNCS_CACHE): Define.
4491 (LIB2FUNCS_EXTRA): Redefine empty.
4493 2002-04-08 Richard Henderson <rth@redhat.com>
4495 * reorg.c (get_branch_condition): Use reversed_comparison_code.
4497 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4499 * config/m68hc11/larith.asm (__map_data_section): Fix condition
4500 and optimize for size.
4501 (__do_global_ctors): Fix pointer comparison.
4502 (__do_global_dtors): Likewise.
4504 2002-04-09 David S. Miller <davem@redhat.com>
4506 * config/sparc/sparc.c (sparc_extra_constraint_check): New
4507 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
4508 allow reloading pseudos.
4509 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
4510 * config/sparc/sparc-protos.h: Declare it.
4512 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
4513 unsigned comparison warning.
4514 (output_restore_regs): Mark leaf_function as unused.
4516 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4518 * expr.c (is_aligning_offset): New function.
4519 (expand_expr, case COMPONENT_EXPR): Call it.
4521 2002-04-08 David S. Miller <davem@redhat.com>
4524 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
4526 Make init_priority work on Sparc when using GNU ld.
4527 * config/sparc/linux.h, config/sparc/linux64.h,
4528 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
4529 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
4530 * config/sparc/sol2-gld.h: New file to do the same.
4531 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
4532 sparc/sol2-gld.h to tm_file.
4534 PR optimization/4328
4535 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
4536 * doc/md.texi: Document it.
4537 * config/sparc/sparc.md (movdi_insn_sp64_novis,
4538 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
4539 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
4540 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
4541 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
4543 2002-04-08 Andreas Jaeger <aj@suse.de>
4545 * stmt.c (expand_asm_operands): Revert last patch from Richard
4548 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4550 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
4551 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
4553 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4555 * doc/contrib.texi (Contributors): Add David O'Brien.
4557 2002-04-08 Alan Modra <amodra@bigpond.net.au>
4559 * configure.in (auto-build.h): Use target_alias and build_alias
4560 when running configure.
4561 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
4562 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
4563 * configure: Regenerate.
4565 2002-04-07 David S. Miller <davem@redhat.com>
4567 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
4569 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
4572 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
4573 generating 32-bit pic code.
4575 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
4577 * cppinit.c (cpp_create_reader): Initialize
4578 discard_comments_in_macro_exp.
4579 (COMMAND_LINE_OPTIONS): Add "-CC" option.
4580 (cpp_handle_option): Handle "-CC" option.
4581 * cpplex.c (save_comment): If saving a C++ comment in
4582 a directive, convert it to a C comment.
4583 (_cpp_lex_direct): Pass second comment start character to
4584 save_comment to indicate comment type.
4585 * cpplib.c (_cpp_handle_directive): If processing
4586 a "#define" directive and discard_comments_in_macro_exp
4587 is false, re-enable saving of comments.
4588 (lex_macro_node): If discard_comments_in_macro_exp is false,
4589 discard any comments before the macro identifier.
4590 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
4592 * cppmacro.c (cpp_get_token): If expanding a macro while
4593 processing a directive, discard any comments we might encounter.
4594 (parse_params): If discard_comments_in_macro_exp is false,
4595 ignore comments in the macro parameter list.
4596 * gcc.c (cpp_unique_options): Add "-CC" option.
4597 (option_map): Map "--comments-in-macros" to "-CC".
4598 * doc/cppopts.texi: Document "-CC" option.
4599 * f/lang-specs.h: Add "-CC" option.
4600 * testsuite/gcc.dg/cpp/maccom1.c: New test.
4601 * testsuite/gcc.dg/cpp/maccom2.c: New test.
4602 * testsuite/gcc.dg/cpp/maccom3.c: New test.
4603 * testsuite/gcc.dg/cpp/maccom4.c: New test.
4604 * testsuite/gcc.dg/cpp/maccom5.c: New test.
4605 * testsuite/gcc.dg/cpp/maccom6.c: New test.
4607 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4610 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
4612 2002-04-06 Mark Mitchell <mark@codesourcery.com>
4615 * stor-layout.c (layout_decl): Reset the RTL for the decl.
4618 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
4619 RTX_UNCHANGING_P for the functions arguments when a tail call
4622 2002-04-06 Jason Merrill <jason@redhat.com>
4624 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
4625 (parse_options_and_default_flags): Set them appropriately.
4626 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
4628 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
4630 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
4633 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
4636 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
4637 types come in by-reference. Fix typo in comment.
4639 2002-04-05 David S. Miller <davem@redhat.com>
4641 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
4642 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
4643 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
4644 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
4646 2002-04-05 David S. Miller <davem@redhat.com>
4648 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
4649 are not going to emit return instructions, emit at least a nop
4650 for the sake of sane backtraces.
4652 2002-04-05 Richard Henderson <rth@redhat.com>
4654 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
4656 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
4658 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
4660 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
4662 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
4663 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
4664 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
4666 2002-04-05 Andreas Schwab <schwab@suse.de>
4668 * c-convert.c: Include c-common.h.
4669 * Makefile.in (c-convert.o): Updated.
4671 2002-04-05 Jakub Jelinek <jakub@redhat.com>
4673 * mklibgcc.in: Use separate libgcc.map for each multilib.
4674 * Makefile.in (distclean): Don't remove libgcc.map here.
4676 2002-04-05 Jakub Jelinek <jakub@redhat.com>
4678 * Makefile.in (s-mlib): Handle --disable-multilib by separate
4679 genmultilib invocation.
4681 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
4683 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
4684 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
4685 to num_gprs for symmetry.
4686 * config/mips/mips.c: Adjust accordingly.
4688 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
4690 * c-common.c (truthvalue_conversion): Rename, update.
4691 * c-common.h (c_common_truthvalue_conversion): New.
4692 * c-convert.c (convert): Update.
4693 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4694 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
4695 * c-typeck.c (build_binary_op, build_unary_op,
4696 build_conditional_expr): Update.
4697 * fold-const.c (constant_boolean_node, fold): Use langhook.
4698 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
4699 * langhooks.h (struct lang_hooks): New hook.
4700 * stmt.c (expand_decl_cleanup): Use langhook.
4701 * tree.h (truthvalue_conversion): Remove.
4703 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4705 2002-04-05 Alan Modra <amodra@bigpond.net.au>
4707 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
4708 Add rules to make null object file.
4710 2002-04-04 Jim Blandy <jimb@redhat.com>
4712 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
4713 macro formal parameter names.
4715 2002-04-04 David S. Miller <davem@redhat.com>
4717 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
4719 2002-04-04 Richard Henderson <rth@redhat.com>
4722 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
4723 Support copies into and out of memory. Don't accept allows_reg
4724 and allows_mem as gospel.
4726 2002-04-04 Richard Henderson <rth@redhat.com>
4729 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
4730 (write_dependence_p): Likewise.
4732 2002-04-04 Richard Henderson <rth@redhat.com>
4734 * predict.c (estimate_bb_frequencies): Do frequency calculation
4735 with a volatile temporary.
4737 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
4739 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
4741 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4744 * final.c (final_start_function): Don't bump profile_label_no here...
4745 (final_end_function): ...but here.
4747 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4749 * config/sparc/sparc.md (pic): New attribute.
4750 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
4752 (split after do_builtin_setjmp_setup): New.
4754 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4757 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
4760 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4762 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
4763 UNITS_PER_WORD for zero sized aggregates.
4765 2002-04-03 David S. Miller <davem@redhat.com>
4767 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
4768 one-character spec for this, just use %(link_gcc_c_sequence).
4770 2002-04-03 David S. Miller <davem@redhat.com>
4772 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
4775 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
4777 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
4778 (DWARF_FRAME_RETURN_COLUMN): Move.
4779 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4780 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
4781 * pa.c (except.h, predict.h): Include.
4783 (store_reg_modify, set_reg_plus_d): Revise prototypes.
4784 (output_ascii): Add cast.
4785 (store_reg_modify): Revise to add frame notes.
4786 (set_reg_plus_d): Likewise.
4787 (compute_frame_size): Include space for eh data registers in frame if
4788 the current function calls eh_return.
4789 (hppa_expand_prologue): Ensure register %r2 is saved if the current
4790 function calls eh_return. Save eh data registers if the current
4791 function calls eh_return. Fix code to add frame notes. Emit
4792 blockage to prevent insns with frame notes being scheduled in the
4793 delay slot of calls.
4794 (hppa_expand_epilogue): Restore eh data registers and do final stack
4795 adjustment if the current function calls eh_return. Don't add frame
4797 (output_call): Revise for change in length of call insn. Don't do
4798 return pointer adjustment for an unconditional jump in the delay slot
4799 of a call when using frame notes.
4800 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
4801 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
4802 (ARG_POINTER_CFA_OFFSET): Define.
4803 * pa.md (return_external_pic): New pattern.
4804 (prologue): Correct formatting. Use return_external_pic if current
4805 function calls eh_return.
4806 (call_internal_symref, call_value_internal_symref,
4807 sibcall_internal_symref, sibcall_value_internal_symref): Change default
4808 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
4810 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
4812 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
4813 list of targets to check using "nop" insn.
4814 * configure: Rebuilt.
4816 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4818 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
4820 2002-04-03 David S. Miller <davem@redhat.com>
4822 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
4823 library sequence passed to the linker.
4824 (LINK_COMMAND_SPEC): Use it.
4825 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
4826 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
4827 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4829 2002-04-03 Jason Merrill <jason@redhat.com>
4831 * except.c (struct eh_status): Remove protect_list.
4832 (begin_protect_partials, end_protect_partials): Remove.
4833 (add_partial_entry): Remove.
4834 * except.h: Remove prototypes.
4836 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
4837 expand_decl_cleanup_eh.
4840 * tree.h (CLEANUP_EH_ONLY): New macro.
4841 * stmt.c (expand_decl_cleanup_eh): New fn.
4842 (expand_cleanups): Check CLEANUP_EH_ONLY.
4843 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
4844 Use expand_decl_cleanup_eh.
4845 (expand_stmt): Adjust.
4846 * c-common.h: Adjust prototype.
4848 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
4850 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
4851 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
4852 (cris_target_asm_function_epilogue): Ditto.
4853 (cris_initial_frame_pointer_offset): Ditto.
4854 (cris_simple_epilogue): Ditto.
4855 (cris_expand_builtin_va_arg): Variable-size types come in
4858 2002-04-03 David S. Miller <davem@redhat.com>
4860 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
4862 (set_fast_math): Correct 'fsr' type.
4864 2002-04-03 Richard Henderson <rth@redhat.com>
4867 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
4868 * toplev.c (check_global_declarations): Use it.
4869 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
4870 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4871 (LANG_HOOKS_DECLS): Add it.
4872 * langhooks.c (lhd_warn_unused_global_decl): New.
4873 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4874 * c-objc-common.c (c_warn_unused_global_decl): New.
4875 * c-tree.h (c_warn_unused_global_decl): Declare.
4876 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4878 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
4880 * langhooks-def.h (lhd_set_decl_assembler_name,
4881 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
4882 (LANG_HOOKS_INITIALIZER): Update.
4883 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
4884 * langhooks.h (struct lang_hooks): New hook.
4885 * tree.c (set_decl_assembler_name): Move to langhooks.c.
4886 (lang_set_decl_assembler_name): Remove.
4887 (init_obstacks): Don't set hook.
4888 (decl_assembler_name): New function.
4889 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
4890 (decl_assembler_name): New.
4891 (lang_set_decl_assembler_name): Remove.
4893 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4895 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
4896 works properly with .hidden symbols.
4897 * configure: Rebuilt.
4898 * config.in: Rebuilt.
4899 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
4900 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
4901 properly with .hidden symbols.
4903 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4906 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
4909 2002-04-03 Richard Henderson <rth@redhat.com>
4912 * sched-rgn.c (sets_likely_spilled): New.
4913 (sets_likely_spilled_1): New.
4914 (add_branch_dependences): Use it.
4916 2002-04-02 Richard Henderson <rth@redhat.com>
4919 * loop.h (LOOP_FIRST_PASS): New.
4920 * loop.c (strength_reduce): Mind it when deciding to unroll.
4921 * toplev.c (rest_of_compilation): Set it.
4923 2002-04-02 David S. Miller <davem@redhat.com>
4925 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
4926 mems_ok_for_ldd_peep when the order of the loads being examined
4928 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
4929 existing comment to increase comprehension of this situation.
4931 2002-04-02 Zack Weinberg <zack@codesourcery.com>
4933 * config/sh/sh.md: Don't use union real_extract.
4935 2002-04-02 Richard Henderson <rth@redhat.com>
4937 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
4939 2002-04-02 David O'Brien <obrien@FreeBSD.org>
4941 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
4942 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
4943 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
4944 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
4945 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
4946 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
4947 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
4948 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
4949 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
4950 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
4951 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
4952 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
4953 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
4954 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
4955 Include as many configury headers via tm_file as possible. This
4956 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
4957 * config/openbsd-oldgas.h: New file.
4958 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
4959 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
4960 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
4961 config/i386/i386-coff.h, config/i386/i386-interix.h,
4962 config/i386/iscdbx.h, config/i386/linux-aout.h,
4963 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
4964 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
4965 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
4966 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
4967 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
4968 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
4969 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
4970 config/i386/vxi386.h: Do not directly include configury headers.
4971 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
4972 Directly include configury headers that are no longer automatically
4973 included by the above headers.
4974 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
4975 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
4976 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
4977 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
4978 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
4979 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
4980 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
4981 (TARGET_VERSION): Define.
4982 * config/i386/beos-elf.h, config/i386/freebsd.h,
4983 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
4984 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
4985 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
4986 config/i386/sco5.h, config/i386/sysv4.h
4987 (TARGET_VERSION): Do not need to protect.
4988 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
4989 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
4990 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
4991 config/i386/i386-interix.h, config/i386/linux-aout.h,
4992 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
4993 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
4994 (YES_UNDERSCORES): Do not define - not needed.
4995 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
4996 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
4997 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
4998 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
4999 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5000 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
5001 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
5002 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
5004 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
5005 Richard Henderson <rth@redhat.com>
5008 * function.c (assign_temp): Accept either type or decl argument.
5009 Detect variables whose size is too large to fit into an integer.
5010 * stmt.c (expand_decl): Pass the decl, not the type.
5012 2002-04-02 David O'Brien <obrien@FreeBSD.org>
5014 * protoize.c: Match include directory usage with cppdefault.c.
5016 2002-04-03 Jeffrey A Law (law@redhat.com)
5017 Hans-Peter Nilsson <hp@bitrange.com>
5019 * combine.c (simplify_comparison): Avoid narrowing a comparison
5020 with a paradoxical subreg when doing so would drop signficant bits.
5022 2002-04-02 Steve Ellcey <sje@cup.hp.com>
5024 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
5025 if POINTERS_EXTEND_UNSIGNED is defined.
5027 2002-04-02 Richard Henderson <rth@redhat.com>
5030 * local-alloc.c (contains_replace_regs): LO_SUM may contain
5033 2002-04-02 Richard Henderson <rth@redhat.com>
5035 * doc/standards.texi: Document required freestanding libc entry points.
5037 2002-04-02 Alan Modra <amodra@bigpond.net.au>
5039 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
5040 associated splitter. Remove MQ constraint.
5041 (ctrdi_internal4): Correct CCmode clobber.
5043 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
5045 * milli64.S ($$dyncall): New function.
5046 * t-linux (LIB1ASMFUNCS): Revise module list.
5047 (LIB1ASMSRC): Use pa/milli64.S.
5049 2002-04-02 Richard Henderson <rth@redhat.com>
5051 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
5052 rename solaris_sys_varargs_h.
5054 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5056 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
5057 the same mode as its component.
5059 2002-04-02 Richard Henderson <rth@redhat.com>
5062 * final.c (this_is_asm_operands): Export.
5063 * output.h (this_is_asm_operands): Declare.
5064 * config/i386/i386.c (print_operand): Error odd asm operands.
5066 2002-04-02 Richard Henderson <rth@redhat.com>
5069 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
5071 2002-04-01 Richard Henderson <rth@redhat.com>
5074 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
5075 * fixinc/fixincl.x: Rebuild.
5077 2002-04-01 Richard Henderson <rth@redhat.com>
5079 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
5080 (atomic_alloc, atomic_free): New.
5081 (SIZE, MASK_FOR, PTR_IN): New.
5082 (emergency_reg_state, emergency_reg_state_free): New.
5083 (emergency_labeled_state, emergency_labeled_state_free): New.
5084 (reg_state_alloced, labeled_state_alloced): New.
5085 (alloc_reg_state, free_reg_state): New.
5086 (alloc_label_state, free_label_state, free_label_states): New.
5087 (push, pop, dup_state_stack, free_state_stack): Use them.
5088 (desc_label_state): Likewise.
5089 (uw_frame_state_for): Free label states and state stack.
5090 (uw_update_reg_address): Eliminate warnings.
5092 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
5094 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
5095 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
5097 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5099 * c-decl.c (grokdeclarator): Update.
5100 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5101 * c-tree.h (c_mark_addressable): New.
5102 * c-typeck.c (default_function_array_conversion, build_unary_op,
5103 build_array_ref, convert_for_assignment): Update.
5104 (mark_addressable): Rename.
5105 * calls.c (try_to_integrate, expand_call): Use langhook.
5106 * expr.c (expand_expr): Use langhook.
5107 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
5108 * langhooks.h (struct lang_hooks): New hook.
5109 * stmt.c (expand_asm_operands): Use langhook.
5110 * tree.h (mark_addressable): Remove.
5112 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5114 2002-04-01 Bob Wilson <bob.wilson@acm.org>
5116 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
5119 2002-04-01 Bob Wilson <bob.wilson@acm.org>
5121 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
5122 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
5124 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5126 * c-common.c (unsigned_conversion_warning, convert_and_check,
5127 unsigned_type, signed_type, shorten_compare,
5128 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
5129 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
5130 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
5132 * c-decl.c (grokdeclarator): Update.
5133 * c-format.c (check_format_types): Update.
5134 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5135 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5136 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
5137 * convert.c (convert_to_integer): Use new hooks.
5138 * expmed.c (make_tree): Use new hooks.
5139 * expr.c (store_expr): Use new hooks.
5140 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
5141 all_ones_mask_p, unextend, fold): Use new hooks.
5142 * langhooks.h (struct lang_hooks_for_types): New hooks.
5143 * tree.h (signed_or_unsigned_type, signed_type,
5144 unsigned_type): Remove.
5146 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5147 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5149 2002-03-31 Richard Henderson <rth@redhat.com>
5151 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
5152 (desc_frgr_mem): Fix reference to f16-f31.
5154 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5156 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
5157 RTVEC_ELT): Const-ify.
5158 * varray.h (VARRAY_CHECK): Const-ify.
5159 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
5160 ggc_mark_rtvec, ggc_mark): Const-ify.
5162 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5164 * diagnostic.c: Include langhooks-def.h.
5165 * Makefile.in (diagnostic.o): Update.
5167 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
5169 * c-common.c (c_unsafe_for_reeval): Rename.
5170 * c-common.h (c_unsafe_for_reeval): Rename.
5171 * c-decl.c (finish_incomplete_decl): Rename.
5172 (c_init_decl_processing): Don't set langhook.
5173 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5174 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5175 * c-objc-common.c (c_objc_common_init): Don't set langhook.
5176 * c-tree.h (finish_incomplete_decl): Rename.
5177 * langhooks-def.h (lhd_unsafe_for_reeval): New.
5178 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
5179 (LANG_HOOKS_INITIALIZER): Update.
5180 * langhooks.c (lhd_unsafe_For_reeval): New.
5181 * langhooks.h (struct langhooks): New hooks.
5182 * toplev.c (incomplete_decl_finalize_hook): Remove.
5183 (wrapup_global_declarations): Update.
5184 * tree.c (lang_unsafe_for_reeval): Remove.
5185 (unsafe_for_reeval): Update.
5186 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
5189 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5190 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5192 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
5194 * diagnostic.c (print_error_function): Remove.
5195 (default_print_error_function): Rename.
5196 (report_error_function): Update.
5197 * diagnostic.h (print_error_function): Remove.
5198 (default_print_error_function): Remove.
5199 * langhooks-def.h (struct diagnostic_context): Predeclare.
5200 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
5201 (LANG_HOOKS_INITIALIZER): Update.
5202 * langhooks.h (struct diagnostic context): Predeclare.
5203 (struct lang_hooks): New hook.
5205 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5207 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
5208 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
5210 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
5211 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
5212 of PIC_OFFSET_TABLE_REGNUM thruout.
5213 * config/rs6000/rs6000.md: Likewise.
5214 * config/rs6000/darwin.h: Likewise.
5216 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5218 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
5219 unsigned HOST_WIDE_INT, not unsigned int.
5221 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5223 PR middle-end/6096, middle-end/6098, middle-end/6099
5224 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
5226 (fill_slots_from_thread): Likewise.
5228 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5230 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
5231 floating fields in float regs.
5232 (function_arg_record_value_2): Likewise.
5234 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
5236 * config/mmix/mmix.md (define_constants): Remove misleading
5237 FIXME. Add MMIX_fp_rO_OFFSET.
5238 ("nonlocal_goto_receiver"): Don't have stack-frame address of
5239 saved rO as part of the pattern. Remove FIXME.
5240 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
5241 here, at output-time.
5243 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5246 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
5248 (output_v9branch): Likewise.
5250 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
5252 * gcc.c: Revert previous patch for now.
5253 * config/i386/djgpp.h: Likewise.
5255 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
5257 * config/mmix/crti.asm (_init): Register _fini with atexit.
5258 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
5260 2002-03-31 Richard Henderson <rth@redhat.com>
5263 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
5264 (ASM_OUTPUT_DEF_FROM_DECLS): New.
5266 2002-03-31 Richard Henderson <rth@redhat.com>
5268 * libgcc2.c (__bb_exit_func): Make static.
5270 * config/alpha/alpha.md (trap): New.
5272 2002-03-31 Richard Henderson <rth@redhat.com>
5274 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
5275 promoted argument types; build trap.
5276 (expand_builtin_trap): New.
5277 (expand_builtin): Use it.
5278 * stmt.c (expand_nl_goto_receivers): Likewise.
5279 * expr.h (expand_builtin_trap): Declare.
5280 * libfuncs.h (LTI_abort, abort_libfunc): New.
5281 * optabs.c (init_optabs): Init abort_libfunc.
5283 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
5285 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
5286 (LINK_COMMAND_SPEC): ... from here.
5287 (init_gcc_specs): Duplicate it here too, omitting
5288 shared_name in the second copy.
5289 (init_spec): Test for duplicate
5290 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
5292 2002-03-30 David S. Miller <davem@redhat.com>
5294 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5295 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
5297 2002-03-30 Roger Sayle <roger@eyesopen.com>
5298 Richard Henderson <rth@redhat.com>
5300 * regmove.c (combine_stack_adjustments_for_block): Avoid
5301 emitting a stack adjustment of zero bytes. Let delete_insn
5304 2002-03-30 Richard Henderson <rth@redhat.com>
5306 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
5307 (sparc_emitting_epilogue): New.
5308 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
5309 * config/sparc/sparc-protos.h: Update.
5310 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
5311 (TARGET_SWITCHES): Update.
5312 * config/sparc/sparc.md (return): Remove.
5313 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
5314 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
5315 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
5316 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5317 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
5318 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
5319 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
5320 Remove MASK_EPILOGUE.
5321 * doc/invoke.texi: Update.
5323 2002-03-30 Daniel Berlin <dan@dberlin.org>
5325 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
5326 CPP will start the file for us.
5328 2002-03-30 Richard Henderson <rth@redhat.com>
5331 * config/ia64/ia64.c (group_barrier_needed_p): Special case
5332 prologue_allocate_stack.
5333 (ia64_single_set): Use insn codes for recognition of special
5334 cases, not rtl matching.
5335 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
5337 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
5339 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
5341 2002-03-30 Richard Henderson <rth@redhat.com>
5344 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
5345 or -fomit-frame-pointer with profiling.
5346 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5347 (FUNCTION_PROFILER): Do nothing.
5348 (PROFILE_HOOK): New.
5349 * config/sparc/sparc.c (sparc_override_options): Don't check
5350 code models for profiling.
5351 (sparc_function_profiler): Remove.
5352 (sparc_profile_hook): New.
5353 * config/sparc/sparc-protos.h: Update.
5355 2002-03-30 Jakub Jelinek <jakub@redhat.com>
5357 PR optimization/6086
5358 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
5359 of SUBREG of volatile MEM or because the MEM was mode dependent,
5360 return CLOBBER instead of unmodified SUBREG.
5362 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
5364 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
5365 when not optimizing.
5367 * toplev.c (rest_of_compilation): Cann mark_constant_function
5368 only when optimizing.
5370 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
5373 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
5374 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
5375 (try_optimize_cfg): clear all AUX fields.
5377 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
5378 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
5379 (ix86_address_cost): Be prepared for SUBREGed registers.
5380 (legitimate_address_p): Accept SUBREGed registers.
5382 2002-03-29 Richard Henderson <rth@redhat.com>
5385 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
5387 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5389 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
5390 for aggregate and TFmode types.
5392 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
5394 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
5396 2002-03-29 Richard Henderson <rth@redhat.com>
5399 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
5400 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
5402 2002-03-29 Richard Henderson <rth@redhat.com>
5405 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
5406 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
5407 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
5408 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
5410 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
5412 2002-03-29 Dale Johannesen <dalej@apple.com>
5414 * loop.c (combine_movables): Do allow combination of pseudos.
5416 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
5418 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
5419 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
5420 No functional change except ...
5421 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
5422 * doc/install.texi (*-*-freebsd*): Document port configuration.
5424 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
5426 * Makefile.in (convert.o, calls.o, expmed.o): Update.
5427 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
5429 * builtin-types.def (BT_PTRMODE): Update.
5430 * c-common.c (type_for_size): Rename c_common_type_for_size.
5431 (type_for_mode): Similarly.
5432 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
5434 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
5435 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
5436 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
5438 * c-typeck.c (common_type, comptypes, default_conversion):
5440 * calls.c: Include langhooks.h.
5441 (emit_library_call_value_1): Use new hooks. Avoid redundant
5443 * convert.c: Include langhooks.h
5444 (convert_to_pointer, convert_to_integer): Use new hooks.
5445 * except.c (init_eh): Similarly.
5446 * expmed.c: Include langhooks.h.
5447 (expand_mult_add): Use new hooks.
5448 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
5449 try_casesi): Similarly.
5450 * fold-const.c (optimize_bit_field_compare, make_range,
5451 decode_field_reference, fold_truthop, fold): Similarly.
5452 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
5453 put_var_into_stack): Similarly.
5454 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
5455 LANG_HOOKS_TYPE_FOR_SIZE): New.
5456 (LANG_HOOKS_TYPES_INITIALIZER): Update.
5457 * langhooks.h (lang_hooks_for_types): New hooks.
5458 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
5459 * tree.c (get_unwidened, get_narrower): Similarly.
5460 * tree.h (type_for_mode, type_for_size): Remove.
5461 * varasm.c (force_const_mem): Use new hooks.
5462 * utils2.c (nonbinary_modular_operation): Update.
5464 * objc-act.c (handle_impent): Update.
5465 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
5468 2002-03-29 Steve Ellcey <sje@cup.hp.com>
5470 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
5471 * config/ia64/ia64.c (basereg_operand): New.
5472 * config/ia64/ia64-protos.h (basereg_operand): Declare.
5473 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
5475 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
5477 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
5478 unwind information when frame_pointer_needed.
5479 (mmix_assemble_integer): Tweak wording in comment.
5481 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
5483 * Makefile.in (except.o): Update.
5484 * except.c: Include langhooks.h.
5485 (init_eh): Use langhook.
5486 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
5487 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
5488 (LANG_HOOKS_INITIALIZER): Update.
5489 * langhooks.h (lang_hooks_for_types): New.
5490 (struct lang_hooks): Add it.
5491 * tree.c (make_lang_type_fn, make_lang_type): Remove.
5492 * tree.h (make_lang_type_fn, make_lang_type): Remove.
5494 * alpha/alpha.c: Include langhooks.h.
5495 (alpha_build_va_list): Use langhook.
5496 * d30v/d30v.c: Include langhooks.h.
5497 (d30v_build_va_list): Use langhook.
5498 * i386/i386.c: Include langhooks.h.
5499 (ix86_build_va_list): Use langhook.
5500 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
5501 * s390/s390.c: Include langhooks.h.
5502 (s390_build_va_list): Use langhook.
5503 * stormy16/stormy16.c: Include langhooks.h.
5504 (stormy16_build_va_list): Use langhook.
5506 2002-03-29 Jakub Jelinek <jakub@redhat.com>
5509 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
5511 (length): Compute variable length for branches/calls/jumps here.
5512 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
5513 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
5514 define branch_type attribute.
5515 (divsi3_sp32): Maximum length is 6 not 7.
5516 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
5517 call_address_untyped_struct_value_sp32,
5518 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
5519 * config/sparc/sparc.c (empty_delay_slot): New function.
5520 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
5521 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
5523 2002-03-29 Jakub Jelinek <jakub@redhat.com>
5525 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
5526 nonzero_bits if not needed.
5527 (nonzero_bits) [XOR]: Likewise.
5528 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
5529 reg_last_set_mode and mode are both MODE_INT, but not equal.
5530 (record_value_for_reg): Compute reg_last_set_nonzero_bits
5531 in nonzero_bits_mode for MODE_INT modes.
5533 2002-03-28 Richard Henderson <rth@redhat.com>
5536 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
5537 to GAS. Correct drift between alternatives.
5539 2002-03-28 Richard Henderson <rth@redhat.com>
5542 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
5544 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
5546 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
5547 emulation to the linker.
5549 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
5551 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
5552 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
5554 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
5556 * combine.c (simplify_and_const_int): Make sure to apply mask
5557 when force_to_mode returns a constant integer. PR3311.
5559 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5561 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
5563 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5565 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
5566 and Objective-C Dialect Options.
5568 2002-03-28 Richard Henderson <rth@redhat.com>
5570 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
5571 comparison should be done vs !=0 not >0 return code. Tidy cases.
5573 2002-03-28 Richard Henderson <rth@redhat.com>
5575 * c-decl.c (finish_function): New arg can_defer_p. Pass it
5576 on to c_expand_body.
5577 * c-tree.h (finish_function): Update decl.
5578 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
5580 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
5582 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
5584 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
5586 * rtlanal.c: Include flags.h
5587 (may_trap_p): Do not mark FP operations if trapping
5588 if !flag_trapping_math
5589 * Makefile.in (rtlanal.o): Add dependency on flag.h
5590 * ifcvt.c (noce_operand_ok): Avoid the lameness.
5592 2002-03-27 Zack Weinberg <zack@codesourcery.com>
5594 * mips.md: Use dconst1, not 1.0, as first argument of
5595 REAL_VALUE_LDEXP. Don't use union real_extract.
5597 2002-03-28 Alan Modra <amodra@bigpond.net.au>
5599 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
5600 rather than $target. Heed program_prefix and
5601 program_transform_name. Search for gas in cross-compiler case too.
5602 "test -x" rather than "test -f".
5603 (gcc_cv_ld): Likewise.
5604 (gcc_cv_nm): Heed program_prefix and program_transform_name.
5605 (gcc_cv_objdump): Likewise.
5606 * configure: Regenerate.
5608 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5610 * Makefile.in (attribs.o): Update.
5611 * attribs.c: Include langhooks.h.
5612 (decl_attributes): Use langhook.
5613 * c-decl.c (insert_default_attributes): Rename.
5614 * c-tree.h (c_insert_default_attributes): New.
5615 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
5616 (LANG_HOOKS_INITIALIZER): Update.
5617 * langhooks.h (struct lang_hooks): New hook.
5618 * tree.h (insert_default_attributes): Remove.
5620 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
5622 2002-03-27 Andreas Schwab <schwab@suse.de>
5624 * config/i386/i386.c (classify_argument): Also check for
5627 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5629 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
5632 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
5634 * i960.md (ret): Set PC.
5635 (nonlocal_goto): Fix expander.
5636 * builtins.c (epxand_builin_longjmp): Check that we've emitted
5639 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
5641 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
5644 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5646 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
5647 assigning to BLOCK_FOR_INSN directly.
5649 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
5651 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
5653 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5655 * c-common.c (c_expand_expr): Fix prototype.
5656 * c-common.h (c_expand_expr): Always declare, update.
5657 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5658 * c-objc-common.c (c_objc_common_init): No global hook.
5659 * expr.c (expand_expr): Use langhook.
5660 * expr.h (enum expand_modifier): Conditionally declare.
5661 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
5662 (LANG_HOOKS_INITIALIZER): Update.
5663 * langhooks.c (lhd_expand_expr): New.
5664 * langhooks.h (struct lang_hooks): New hook.
5665 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
5666 (lang_independent_init): Don't default hook.
5668 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5670 2002-03-27 Richard Henderson <rth@redhat.com>
5673 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
5674 TARGET_CONST_GP. Simplify conditions.
5676 2002-03-27 Richard Henderson <rth@redhat.com>
5678 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5679 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
5680 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
5682 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
5684 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
5685 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
5686 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
5687 Remove unnecessary masks.
5688 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
5689 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
5690 -mwindows, -mdll switches and their negations.
5692 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5694 * gcc-common.c (lang_mark_false_label_stack): Remove.
5695 * ggc.h (lang_mark_false_label_stack): Similarly.
5697 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
5699 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
5701 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
5702 or __rtems_ is defined.
5704 2002-03-26 Richard Henderson <rth@redhat.com>
5706 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
5707 if a non-trivial load was emitted.
5708 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
5709 in high+extra+low case.
5711 2002-03-26 Richard Henderson <rth@redhat.com>
5713 * config.gcc (sparc*-solaris): Use float_format=sparc.
5715 2002-03-26 Richard Henderson <rth@redhat.com>
5717 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
5718 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
5719 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
5720 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
5721 (WINT_TYPE_SIZE): Fix at 32.
5723 2002-03-26 Richard Henderson <rth@redhat.com>
5725 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
5726 until after eh landing pad generation.
5727 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
5728 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
5730 2002-03-26 Richard Henderson <rth@redhat.com>
5732 * expr.h (ADD_PARM_SIZE): One more convert for INC.
5734 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
5736 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
5737 and warning switches.
5738 (cc1_options): Likewise.
5740 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
5742 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
5743 Restore more of the signal context. Set no_reg_stack_frame.
5744 * config/ia64/unwind-ia64.c (unw_state_record):
5745 Add no_reg_stack_frame, comments.
5746 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
5747 (uw_update_context): Adjust bsp when unwinding from leaf,
5748 but not signal frame.
5750 2002-03-26 David Edelsohn <edelsohn@gnu.org>
5752 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
5754 2002-03-26 Bob Wilson <bob.wilson@acm.org>
5756 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
5758 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
5761 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
5762 "Add a pool_range attribute", which was lost during the ARM/Thumb
5765 2002-03-26 Bob Wilson <bob.wilson@acm.org>
5767 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
5768 a register into the MAC16 accumulator.
5770 2002-03-26 Andrew Cagney <ac131313@redhat.com>
5772 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
5773 (Warning Options): Document -Wswitch-enum.
5774 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
5776 (warn_switch_enum): Define variables.
5777 * flags.h (warn_switch_enum): Declare variables.
5778 * stmt.c (expand_end_case_type): When warn_switch_enum /
5779 -Wswitch-enum, perform switch checks.
5782 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
5784 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
5785 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
5786 (reload_muladdsi_compare0_scratch): Delete.
5788 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
5790 * doc/install.texi (*-*-freebsd*): Update.
5792 2002-03-26 Richard Henderson <rth@redhat.com>
5794 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
5795 (SUB_PARM_SIZE): Cast DEC to ssizetype.
5797 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
5798 types from the normal argument frame.
5800 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
5801 variable sized objects by reference.
5802 (sparc_va_arg): Receive them by reference too.
5804 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
5806 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
5807 code to not restoring global registers.
5809 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
5811 * Makefile.in (ggc-common.o): Update.
5812 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
5813 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5814 * c-tree.h (c_mark_tree): New.
5815 * ggc-common.c: Include langhooks.h.
5816 (gcc_mark_trees): Use new langhook.
5817 * ggc-callbacks.c: Delete file.
5818 * ggc.h (lang_mark_tree): Remove.
5819 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
5820 (LANG_HOOKS_INITIALIZER): Update.
5821 * langhooks.h (struct lang_hooks): New hook.
5823 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5825 2002-03-25 Zack Weinberg <zack@codesourcery.com>
5827 * doc/cpp.texi: Exclude entire Top node from printed manual.
5828 Move option index after directive index. Insert page breaks
5829 before GFDL and concept index. Index environment variables
5830 with command line options.
5831 * doc/cppenv.texi: Use @vtable for environment variable list.
5832 Add paragraph explaining semantics of empty elements in path
5833 variables. Exclude a cross-reference to Fishkill from the
5834 manpage. Remove an unnecessary cross-reference of the entry
5835 right above the referer. Don't use @anchor in text that goes
5837 * doc/cppopts.texi: Cross-reference the environment variables
5838 section, not the specific environment variable, for consistency.
5840 2002-03-25 Richard Henderson <rth@redhat.com>
5842 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
5843 anywhere in the block. Don't refer to insns that have been
5844 removed from the chain. Iterate backward through the new insns.
5845 Don't refer to edges that have been removed.
5847 2002-03-26 Alan Modra <amodra@bigpond.net.au>
5849 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
5850 test for overflow of constant.
5852 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
5855 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
5856 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
5857 these patterns on arm_archv4.
5859 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
5861 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
5864 2002-03-25 Zack Weinberg <zack@codesourcery.com>
5866 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
5867 float_handled, float_handler, float_signal, set_float_handler,
5868 and do_float_handler. Set handler for SIGFPE to crash_signal.
5869 * toplev.h: Don't prototype do_float_handler.
5871 * c-lex.c: Fold parse_float into lex_number. Make warning
5872 about portability of hex float constants more informative, and
5873 don't issue it on top of a syntax error.
5874 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
5876 * real.h: Define REAL_VALUE_ABS here...
5877 * simplify-rtx.c: ... not here. Fold check_fold_consts,
5878 simplify_unary_real, simplify_binary_real, and
5879 simplify_binary_is2orm1 into their callers.
5880 * tree.c: Fold build_real_from_int_cst_1 into caller.
5882 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
5884 * tsystem.h: Include float.h here...
5885 * libgcc2.c: ... not here.
5887 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
5889 Fixes for: PR bootstrap/3591, target/5676
5890 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
5891 defined. Do not disable exceptions or rtti.
5892 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
5893 mcore.h. Disable exceptions and rtti, since they are not
5896 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
5898 * c-decl.c (maybe_build_cleanup): Remove.
5899 * expr.c (expand_expr): Use langhook.
5900 * langhooks-def.h (lhd_return_null_tree,
5901 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
5902 (LANGHOOKS_INITIALIZER): Update.
5903 * langhooks.c (lhd_return_null_tree): New.
5904 * langhooks.h (struct lang_hooks): New hook.
5905 * tree-inline.c (initialize_inlined_parameters): Use langhook.
5906 * tree.h (maybe_build_cleanup): Remove.
5908 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5910 * regrename.c (build_def_use): Move recog_memoized
5911 before extract_insn.
5913 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5916 * expr.c (emit_group_store): Handle storing into CONCAT.
5918 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5920 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
5921 corresponding MATCH_DUP.
5923 2002-03-24 Richard Henderson <rth@redhat.com>
5925 * unroll.c (unroll_loop): Zero label_map.
5927 * gcse.c: Include except.h.
5928 * Makefile.in (gcse.o): Update.
5930 2002-03-24 Richard Henderson <rth@redhat.com>
5932 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
5933 Do resolve_unique_section before shared data clause.
5935 2002-03-24 Richard Henderson <rth@redhat.com>
5937 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
5939 2002-03-24 Richard Henderson <rth@redhat.com>
5941 * recog.c (peephole2_optimize): Split blocks when EH insns are
5942 generated in the middle of a block. Do global life update if
5945 2002-03-24 Richard Henderson <rth@redhat.com>
5947 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
5949 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5952 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
5953 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
5954 (init_dependency_output): Don't make no_output decision here.
5956 2002-03-24 Andrew Cagney <ac131313@redhat.com>
5958 * stmt.c (check_for_full_enumeration_handling): Remove tests of
5959 warn_switch. Update description.
5960 (expand_end_case_type): Call check_for_full_enumeration_handling
5963 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5965 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
5966 (m68hc11_split_move): Call it to see if the source and destination
5967 operands use the same direction auto inc/dec mode, otherwise make the
5968 source an offsetable memory operand and generate an add.
5970 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5972 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
5973 register for operand 2.
5974 ("*subsi3_zero_extendqi"): Likewise.
5975 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
5976 bits so that it is compatible with a pop.
5977 ("*andhi3_gen"): Likewise.
5978 ("xorhi3"): Likewise.
5980 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5982 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
5984 (cpp_post_options): ... not here.
5986 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5987 Aldy Hernandez <aldyh@redhat.com>
5989 Removal of separate preprocessor cpp0.
5991 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
5992 cpp0, install-common): Update.
5993 * c-common.c (flag_preprocess_only): New.
5994 (c_common_init): Preprocess for -E.
5995 * c-common.h (flag_preprocess_only): New.
5996 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
5997 * c-objc-common.c (c_init_decl_processing): Exit quickly
5998 for NULL return from c_common_init.
5999 * cpplib.h (cpp_preprocess_file): New.
6000 * cppmain.c (main, general_init, pfile, progname): Remove.
6001 (do_preprocessing): Rename cpp_preprocess_file, don't call
6002 cpp_finish. Don't close stdout here.
6003 (setup_callbacks): Update prototype.
6004 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
6006 * tradcpp.c (main): Ignore -quiet.
6008 * lang-specs.h (default_compilers): Preprocess with cc1obj.
6010 2002-03-24 Richard Henderson <rth@redhat.com>
6012 PR optimization/5742
6013 * machmode.def: Add inner mode field to complex modes.
6014 * config/mips/mips.c (mips_function_value): Always define. Add
6015 new argument to handle libcalls.
6016 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
6017 (FUNCTION_VALUE): Likewise.
6018 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
6019 * config/mips/mips-protos.h: Update.
6021 2002-03-23 Richard Henderson <rth@redhat.com>
6023 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
6024 * config/sparc/sparc-protos.h: Update.
6025 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
6027 2002-03-23 Richard Henderson <rth@redhat.com>
6029 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
6030 _start or _init begins the text segment.
6032 2002-03-23 David Edelsohn <edelsohn@gnu.org>
6034 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
6035 not HOST_WIDEST_INT.
6036 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
6038 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
6041 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
6042 operand argument to output_return_instruction.
6043 * arm.c (arm_print_operand, case 'd'): If the operand is
6044 const_true_rtx then just return.
6045 (arm_print_operand, case 'D'): If the operand is const_true_rtx
6048 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6050 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
6051 (Warning Options): Document -Wswitch-default.
6052 * toplev.c (W_options): Add -Wswitch-default. Update comment on
6054 (warn_switch_default): Define variable.
6055 (warn_switch): Update comment.
6056 * flags.h (warn_switch_default): Declare variable.
6057 (warn_switch): Update comment.
6058 * stmt.c (expand_end_case): Check for and, when
6059 warn_switch_no_default, warn of a missing default case.
6061 2002-03-23 Alan Modra <amodra@bigpond.net.au>
6063 * real.h (N): Special case 128 bit doubles.
6065 * combine.c (simplify_comparison): When widening modes, ignore
6066 sign extension on CONST_INTs.
6068 2002-03-22 Bob Wilson <bob.wilson@acm.org>
6070 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
6071 passed to adjust_address. Fix comment formatting.
6074 2002-03-22 Zack Weinberg <zack@codesourcery.com>
6076 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
6077 Always make REAL_VALUE_TYPE a struct containing an array of
6078 HOST_WIDE_INT, not a double. Tidy up the code deciding how
6079 big it is. Don't declare or use union real_extract.
6081 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
6082 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
6083 (print_operand), config/arm/arm.c (output_move_double),
6084 config/arm/arm.md (consttable_4, consttable_8),
6085 config/romp/romp.c (output_fpops), config/s390/s390.h
6086 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
6087 (xtensa_output_literal): Don't use union real_extract.
6089 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
6090 (sfmode_constant_to_ulong), config/ns32k/merlin.h
6091 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
6092 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
6093 (PRINT_OPERAND): Don't use local version of union
6096 * config/convex/convex.c (check_float_value), config/vax/vax.c
6097 (vax_float_literal), config/m88k/m88k.md (divdf3),
6098 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
6099 config/pdp11/pdp11.c (output_move_quad): Don't do host
6100 arithmetic on target floating point quantities.
6102 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
6103 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
6105 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
6106 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
6108 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
6109 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
6111 * print-rtl.c (print_rtx): Disable code which needs
6112 floating-point emulator.
6113 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
6114 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
6115 depending on HOST_FLOAT_FORMAT to be defined properly.
6117 * config/1750a/1750a.c (get_double, float_label): Delete.
6118 (print_operand): Delete huge commented-out chunk. Use
6119 REAL_VALUE_TO_DECIMAL.
6120 * config/1750a/1750a-protos.h: Delete prototypes of deleted
6122 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
6124 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
6125 Use REAL_VALUE_TO_DECIMAL as ELF version does.
6126 * config/m88k/m88k.c (real_power_of_2_operand,
6127 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
6128 real_extract out of the union; run the input through
6129 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
6130 from that into the union.
6131 * config/pdp11/pdp11.c (output_move_double): Rearrange
6132 parentheses to make automatic indenter happy.
6134 * doc/tm.texi (Cross-compilation): Rename node to "Floating
6135 Point" and rewrite to describe current situation. Also adjust
6136 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
6138 * doc/rtl.texi: Adjust cross reference.
6140 2002-03-22 Bob Wilson <bob.wilson@acm.org>
6142 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
6143 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
6144 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
6145 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
6146 prevent use of sp as a reload register.
6147 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
6148 non_acc_reg_operand.
6149 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
6150 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
6151 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
6152 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
6154 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
6156 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
6157 * cpplex.c (unterminated): Delete.
6158 (parse_string): No string literal may extend over multiple
6159 lines. Suppress the error when preprocessing assembly.
6160 * cppmain.c (scan_translation_unit): Strings are single-line.
6162 * doc/cpp.texi: Update to match.
6164 2002-03-22 Jakub Jelinek <jakub@redhat.com>
6166 PR optimization/5854
6167 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
6169 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
6170 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
6171 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
6172 const0 if scratch register was not allocated.
6173 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
6174 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
6176 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
6177 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
6178 with GEN_INT (...) everywhere. Remove constraints in define_split
6180 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
6181 require scratch register for setting 0 into regs/non-pushable memory.
6183 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
6185 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
6186 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
6188 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
6190 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
6191 * cppinit.c (cpp_create_reader): On by default.
6192 (cpp_handle_option): Handle -W[no-]endif-labels.
6193 (cpp_post_options): Also enable if -pedantic.
6194 * cpplib.c (do_else): Use it.
6195 (do_endif): Likewise.
6196 * doc/cppopts.texi: Document new option.
6197 * doc/invoke.texi: Document new option.
6199 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
6201 * config/i386/i386.c, config/i386/i386.md: Change all occurences
6202 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
6204 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
6206 * flow.c (calculate_global_regs_live): Clear aux fields of
6209 2002-03-22 Jakub Jelinek <jakub@redhat.com>
6211 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
6212 REG or MEM subregs, pass rtx * instead of rtx to it.
6213 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
6214 rtx * instead of rtx to alter_subreg.
6215 * config/m32r/m32r.c (gen_split_move_double): Likewise.
6216 * config/pj/pj.c (pj_output_rval): Likewise.
6218 2002-03-22 Richard Henderson <rth@redhat.com>
6221 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
6222 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
6223 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
6224 (ia64_expand_prologue): Look at int_regs, not words, for number
6225 of incomming int regs.
6227 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
6229 * expr.c (expand_expr): A RESULT_DECL is part of a call.
6231 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
6233 * toplev.c (flag_loop_optimize, flag_crossjumping):
6234 New static variables.
6235 (rest_of_compilation): Conditionalize crossjumping and
6237 (parse_options_and_default_flags): Default loop_optimize and
6239 (lang_independent_options): Add -fcrossjumping and -floop-optimize
6240 * invoke.texi (crossjumping, loop-optimize): Document.
6242 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
6244 * real.c (eiisneg): Move outside #ifdef NANS.
6246 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
6248 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
6249 frequencies match; avoid match on different loop depths.
6250 (try_crossjump_to_bb): Kill tests that no longer brings time
6252 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
6254 (split_edge): Likewise.
6256 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
6259 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
6260 * cfgrtl.c: Include insn-config.h
6261 (split_block) Dirtify block in presence of conditional execution
6263 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
6265 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
6266 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
6267 (function_arg): Constify CUMULATIVE_ARGS.
6268 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
6269 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
6270 (UNITS_PER_DOUBLE): New macro.
6271 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
6272 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
6273 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
6274 fp_regs and stack_words.
6275 (EABI_FLOAT_VARARGS_P): New macro.
6276 * config/mips/mips.c (struct mips_arg_info): New.
6277 (mips_arg_info): New function.
6278 (function_arg_advance): Use it. Add adjustment instructions here
6279 rather than in function_arg.
6280 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
6281 for VOIDmode at the beginning of the function.
6282 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
6283 (function_arg_pass_by_reference): Likewise.
6284 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
6285 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
6286 (mips_va_start): Likewise. Use the new stack_words field of
6287 CUMULATIVE_ARGS to set up overflow area. Reformat.
6288 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
6289 doubles and other types, aligning the overflow pointer for non-doubles
6290 too. Remove some code duplication. Replace hard-coded constants.
6292 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
6294 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
6295 (CLASS_UNITS): Undefine.
6296 (CLASS_MAX_NREGS): Use FP_INC.
6297 * config/mips/mips.c (compute_frame_size): Likewise.
6298 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
6300 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
6302 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
6303 prototype, and handle lexing numbers and identifiers.
6304 (parse_identifier): Update to new form of parse_slow.
6305 (parse_number): Fast path only, use parse_slow otherwise.
6306 (_cpp_lex_direct): Update calls to parse_number.
6308 2002-03-21 DJ Delorie <dj@redhat.com>
6310 * bb-reorder.c (make_reorder_chain_1): Protect against
6311 when redundant edges are omitted.
6312 * predict.c (dump_prediction): Likewise.
6314 2002-03-21 Richard Henderson <rth@redhat.com>
6317 * fixinc/inclhack.def (solaris_stdio_tag): New.
6318 * fixinc/fixincl.x: Regenerate.
6320 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
6323 * c-typeck.c (process_init_element): Flag non-static
6324 initialization of a flexible array member as illegal.
6326 2002-03-22 Alan Modra <amodra@bigpond.net.au>
6328 * config/rs6000/t-linux64: New.
6329 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
6330 t-ppccomm. Use t-rs6000 and t-linux64.
6331 (powerpc64-*-gnu* <tmake_file>): Likewise.
6332 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
6333 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
6334 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
6336 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
6338 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
6339 flag_really_no_inline instead of optimize == 0.
6341 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
6343 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
6345 * flags.h (flag_really_no_inline): New.
6347 * c-common.c (c_common_post_options): Initialize
6348 flag_really_no_inline.
6350 * toplev.c (flag_really_no_inline): New.
6352 2002-03-21 Jakub Jelinek <jakub@redhat.com>
6354 * config/avr/avr.md (length): Fix length computation for
6355 conditional branches.
6357 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
6359 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
6360 sdbout.o, profile.o): Update.
6361 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
6363 * c-common.h (gettags): Move here from tree.h.
6364 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
6365 insert_block, getdecls, kept_level_p, global_bindings_p): New.
6366 * dbxout.c (dbxout_init): Use getdecls langhook.
6367 * expr.c (expand_expr): Use insert_block langhook.
6368 * fold-const.c: Include langhooks.h.
6369 (fold_range_test, fold_binary_op_with_conditional_arg,
6370 fold): Use global_bindings_p langhook.
6371 * integrate.c (expand_inline_function): Use insert_block langhook.
6372 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
6373 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
6374 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
6375 LANG_HOOKS_GETDECLS): New.
6376 (LANG_HOOKS_INITIALIZER): Update.
6377 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
6379 * langhooks.h (struct lang_hooks_for_decls): New.
6380 (struct lang_hooks): Update.
6381 * profile.c: Include langhooks.h.
6382 (output_func_start_profiler): Use new langhooks.
6383 * sdbout.c: Include langhooks.h.
6384 (sdbout_init, sdbout_finish): Use getdecls langhook.
6385 * stmt.c: Include langhooks.h.
6386 (expand_fixup, fixup_gotos): Use new langhooks.
6387 * stor-layout.c: Include langhooks.h.
6388 (variable_size): Use global_bindings_p langhook.
6389 * toplev.c (compile_file): Use getdecls langhook.
6390 * tree-inline.c (remap_block): Use insert_block langhook.
6391 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
6392 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
6394 2002-03-21 Richard Henderson <rth@redhat.com>
6396 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
6397 constants in .data when -fpic.
6399 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6401 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
6404 2002-03-21 Tom Tromey <tromey@redhat.com>
6406 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
6408 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6410 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
6412 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
6414 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
6415 Richard Henderson <rth@redhat.com>
6418 * c-common.c (c_expand_expr): Preserve result of a statement
6419 expression if needed.
6421 2002-03-21 Jakub Jelinek <jakub@redhat.com>
6424 * genrecog.c (maybe_both_true_mode): Remove.
6425 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
6426 * machmode.def (Pmode): Likewise.
6428 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
6430 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
6431 (nonlocal_mentioned_p_1): New function.
6432 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
6433 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
6434 (mark_constant_function): Recognize pure functions.
6435 * rtl.h (global_reg_mentioned_p): New prototype.
6436 * rtlanal.c (global_reg_mentioned_p,
6437 global_reg_mentioned_p_1): New function.
6439 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6441 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
6443 * fixinc/fixincl.x: Regenerate.
6445 2002-03-20 Jason Merrill <jason@redhat.com>
6447 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
6449 2002-03-20 Michael Meissner <meissner@redhat.com>
6451 * doc/invoke.texi (Optimize Options): Document that -O2 sets
6454 2002-03-20 Bob Wilson <bob.wilson@acm.org>
6456 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
6457 ".literal_position" directive before the constant pool.
6459 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6461 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
6462 Add Craig Rodrigues.
6463 Add Brad Lucier to testers.
6465 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6468 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
6470 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
6471 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
6472 instead of insn_extract.
6474 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6477 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
6479 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
6480 stmt if some case has been output.
6482 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6485 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
6486 movsfcc_1, movdfcc_1): Add %O2.
6487 * config/i386/i386.c (print_operand): Handle %ON.
6488 Print . before float condition codes in Sun as cmov syntax.
6489 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
6490 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
6493 2002-03-20 Philip Blundell <pb@nexus.co.uk>
6495 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
6496 return instruction if PC was popped.
6498 2002-03-20 Bob Wilson <bob.wilson@acm.org>
6500 * config/xtensa/xtensa.md: Remove unused type attributes.
6501 (adddi_carry, subddi_carry): Change type attribute to "multi".
6503 2002-03-19 Dale Johannesen <dalej@apple.com>
6505 PR optimization/5999, middle-end/5731
6506 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
6507 multiplications by reciprocals.
6509 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
6511 * Makefile.in: Update.
6512 * c-common.c: Include langhooks.h.
6513 (inline_forbidden_p): Use new hook.
6514 * diagnostic.c: Include langhooks.h.
6515 (format_with_decl, announce_function,
6516 default_print_error_function): Use new hook.
6517 * dwarf2out.c (dwarf2_name): Use new hook.
6518 * function.c: Include langhooks.h.
6519 (init_function_start): Use new hook.
6520 * langhooks-def.h (lhd_decl_printable_name): New.
6521 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
6522 (LANGHOOKS_INITIALIZER): Update.
6523 * langhooks.c (lhd_decl_printable_name): New.
6524 * langhooks.h (struct lang_hooks): New hook.
6525 * toplev.c (decl_name, decl_printable_name): Remove.
6526 (open_dump_file): Use new hook.
6527 (process_options): Remove old hook.
6528 * tree.h (decl_printable_name): Remove.
6530 * objc-act.c (objc_init): Remove old hook.
6531 (objc_printable_name): Export.
6532 * objc-act.h (objc_printable_name): New.
6533 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
6535 2002-03-19 Jim Blandy <jimb@redhat.com>
6537 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
6538 the start_source_file debug hook, not the current line number.
6540 2002-03-19 Richard Henderson <rth@redhat.com>
6542 * flow.c (EH_USES): Provide default.
6543 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
6544 * doc/tm.texi (EH_USES): New.
6546 * config/ia64/ia64.c (ia64_eh_uses): New.
6547 * config/ia64/ia64-protos.h: Update.
6548 * config/ia64/ia64.h (EH_USES): New.
6550 2002-03-19 Richard Henderson <rth@redhat.com>
6552 * varasm.c (output_constant_def): Fix stupid typo.
6554 2002-03-19 Richard Henderson <rth@redhat.com>
6557 * except.c (current_function_has_exception_handlers): New.
6558 * except.h: Declare it.
6559 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
6560 Combine tests that disable all sibcalls for the function.
6562 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
6564 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
6567 2002-03-19 Richard Henderson <rth@redhat.com>
6570 * config/ia64/ia64.c: Revert 2002-03-01 patch.
6571 * config/ia64/ia64.h (INIT_EXPANDERS): New.
6573 2002-03-19 Jim Blandy <jimb@redhat.com>
6575 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
6576 name, even if the replacement list contains no tokens, as required
6579 2002-03-19 Jason Merrill <jason@redhat.com>
6581 * varasm.c (globalize_decl): Get the name from the RTL, not
6582 DECL_ASSEMBLER_NAME.
6584 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
6586 2002-03-19 Bob Wilson <bob.wilson@acm.org>
6588 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
6589 subdi_carry): Define.
6591 2002-03-19 David Edelsohn <edelsohn@gnu.org>
6593 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
6594 about -fpic/-fPIC if extra_warnings set.
6596 2002-03-19 David Edelsohn <edelsohn@gnu.org>
6598 * expr.c (expand_expr): Sign-extend CONST_INT generated from
6599 TREE_STRING_POINTER.
6600 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
6602 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6604 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
6605 in favor of SP if FRAME_POINTER_REQUIRED is false.
6607 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
6609 * emit-rtl.c (gen_int_mode): New function.
6610 * rtl.h: Prototype for it.
6611 * combine.c (make_extraction, simplify_comparison), expmed.c
6612 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
6613 (convert_modes, store_field), optabs.c (expand_fix),
6614 simplify-rtx.c (neg_const_int, simplify_unary_real),
6616 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
6617 Use it instead of GEN_INT (trunc_int_for_mode (...)).
6619 2002-03-19 Jakub Jelinek <jakub@redhat.com>
6622 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
6623 convert_parm_for_inlining.
6624 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
6626 * langhooks-def.h: Likewise.
6627 * objc/objc-lang.c: Likewise.
6628 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
6630 * tree-inline.c (initialize_inlined_parameters):
6631 Call convert_parm_for_inlining lang hook if needed.
6632 * c-typeck.c (c_convert_parm_for_inlining): New function.
6633 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
6635 2002-03-18 Mark Mitchell <mark@codesourcery.com>
6637 * calls.c (precompute_arguments): Do not assume that temporaries
6638 can be destroyed after expanding the argument.
6639 (expand_call): Likewise.
6641 2002-03-15 Eric Christopher <echristo@redhat.com>
6643 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
6644 Fix register preference on last change.
6645 * config/mips/mips.c (mips_return_in_memory): New function.
6646 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
6647 * config/mips/mips-protos.h: Declare.
6648 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
6649 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
6651 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
6653 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
6655 (anddi3, iorsi3): Likewise.
6657 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
6658 use %gprel for symbols that are going to be placed in linkonce
6661 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
6662 RETURN_ADDRESS_POINTER_REGNUM to $ra.
6663 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
6664 not needed. Disregard leaf_function_p().
6665 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
6666 mips16 frame pointer.
6667 * config/mips/mips.md (store ra): Only to small SP offsets.
6668 2001-08-22 Graham Stott <grahams@redhat.com>
6669 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
6670 return a REG rtx for the return address register.
6672 2002-03-18 Bob Wilson <bob.wilson@acm.org>
6674 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
6675 constant-pool addresses as "mode-dependent".
6676 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
6678 2002-03-18 Jakub Jelinek <jakub@redhat.com>
6681 * expr.c (emit_group_load): Use extract_bit_field if
6682 needed for CONCAT arguments.
6684 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
6687 * arm.md (tablejump): Make this a define_expand. For PIC add the
6688 offset to the base of the table.
6689 (thumb_tablejump): Matcher for Thumb tablejump insn.
6690 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
6691 as the difference of two labels.
6692 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6693 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
6695 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
6696 * arm.c (get_jump_table_size): If the table is not in the text
6697 section, return zero.
6699 2002-03-18 Bernd Schmidt <bernds@redhat.com>
6701 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
6703 (arm_reload_out_hi): Use gen_lowpart instead of
6704 gen_rtx_SUBREG to access QImode components.
6705 * config/arm/arm.md: Disable zero_extend split for QImode
6706 subregs in BIG_ENDIAN mode.
6707 (storehi_bigend): Match use of least significant byte.
6708 (storeinthi): Remove extraneous SUBREG.
6709 Add missing construction of operands[2].
6710 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
6711 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
6712 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
6714 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
6716 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
6719 2002-03-17 Richard Henderson <rth@redhat.com>
6721 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
6724 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
6726 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
6727 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
6729 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6731 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
6733 * predict.c (estimate_bb_frequencies): Delete unused variables.
6735 2002-03-17 Richard Henderson <rth@redhat.com>
6737 * config/ia64/ia64.c (ia64_attribute_table): Move before
6738 targetm definition. Make static.
6740 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
6742 * c-common.h (yyparse, c_common_parse_file): New.
6743 * c-lang.c: Include c-common.h.
6744 (LANG_HOOKS_PARSE_FILE): Redefine.
6745 * c-lex.c: Include c-common.h.
6746 (yyparse): Rename c_common_parse_file. Call yyparse.
6747 * c-parse.in (yyparse): Remove macro.
6748 * c-tree.h (yyparse_1): Remove.
6749 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
6750 (LANG_HOOKS_INITIALIZER): Update.
6751 * langhooks.h (struct lang_hoooks): New hook parse_file.
6752 * toplev.c (compile_file): Use parse_file hook.
6753 * tree.h (yyparse): Remove.
6754 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
6756 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
6758 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
6759 float_truncate, not fix.
6760 ("*truncdfsf2_real"): Ditto.
6761 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
6763 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
6765 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
6767 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
6768 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
6769 where appropriate. Make the second reference to
6770 leaf_function_p a function call, as intended. Reindented.
6772 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
6773 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
6775 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
6776 add register to non-constant into sp.
6778 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
6779 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
6780 (mips16_gp_pseudo_rtx): Lose.
6781 (INIT_EXPANDERS): Deleted.
6782 * config/mips/mips.c (mips_init_machine_status): New.
6783 (mips_free_machine_status): New.
6784 (mips_mark_machine_status): New.
6785 (override_options): Set them.
6786 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
6787 (struct machine_function): ... new. Replaced all references.
6788 (mips_add_gc_roots): Don't mark them.
6789 (embedded_pic_fnaddr_reg): New, extracted from...
6790 (embedded_pic_offset): ... here.
6791 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
6794 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
6796 * cppinit.c: Revert -MD removal.
6798 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6800 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
6801 soft registers by default for 68HC12.
6802 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
6803 when compiling with -fomit-frame-pointer.
6804 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
6805 (expand_epilogue): Likewise.
6806 (m68hc11_gen_rotate): Use exg when rotating by 8.
6808 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6810 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
6811 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
6812 (splits): Remove unused add splits.
6813 ("*addhi3_68hc12"): Tune constraints.
6814 ("addhi_sp"): Try to use X instead of Y in all cases and if the
6815 constant fits in 8-bits and D is dead use abx/aby instructions.
6816 ("*addhi3"): Remove extern declaration of ix_reg.
6817 ("*subsi3"): Optimize and provide new split.
6818 ("subhi3"): Cleanup.
6819 ("*subhi3_sp"): Avoid saving X if we know it is dead.
6820 (arith splits): For 68hc12 save the address register on the stack
6821 and do the arithmetic operation with a pop.
6823 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6825 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
6826 allocating QImode in address registers.
6827 ("*movqi_m68hc11"): Likewise.
6829 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
6831 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
6833 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
6835 * cppinit.c (print_help): Display -MD and -MMD.
6836 Don't display usage string. Update assertion syntax and
6838 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
6839 (cpp_handle_option): Update.
6841 2002-03-15 Chris Demetriou <cgd@broadcom.com>
6843 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
6844 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
6845 and define it so that regardless of target CPU size,
6846 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
6847 of "int" rather than "long."
6849 2002-03-15 Richard Henderson <rth@redhat.com>
6851 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
6854 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6856 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
6857 ("tstqi" split): Avoid using memory for tstqi on address register.
6858 (splits): Remove constraints.
6859 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
6860 ("cmpdf", "cmpsf"): Remove since not used.
6861 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
6862 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
6864 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6866 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
6867 ("neghi2"): Tighten constraints.
6868 ("one_cmplsi2"): Optimize and simplify split.
6869 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
6871 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6873 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
6874 and split of AND operation to clear the upper bits.
6875 ("*logicalsi3_zextqi"): Likewise.
6876 ("*logicallhi3_zexthi_ashift8"): Likewise.
6877 ("*logicalsi3_silshr16"): Likewise.
6878 ("logicalsi3_silshl16"): Likewise.
6879 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
6881 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6883 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
6884 (m68hc11_indirect_p): New function.
6885 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
6886 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
6888 (asm_print_register): Likewise.
6889 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
6890 (m68hc11_indirect_p): Declare.
6891 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
6892 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
6893 (TARGET_SWITCHES): New option -mrelax.
6894 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
6896 ("iorsi3", "xorsi3"): Likewise.
6897 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
6898 ("*andhi3_mem"): New to handle destination in memory with bclr
6899 and a scratch register.
6900 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
6901 ("*andhi3_const"): New when operand2 is constant.
6902 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
6903 ("*andhi3_gen"): Cleanup of the old "andhi3".
6904 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
6905 ("xorqi3"): Update constraints.
6907 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6909 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
6910 for reg_equiv_memory_loc when the operand is a register that does
6911 not get a hard register (stack location).
6912 (tst_operand): After reload, accept all memory operand.
6913 (symbolic_memory_operand): Fix detection of symbolic references.
6914 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
6915 accept symbols and any constant.
6917 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6919 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
6920 note on the insn that sets the soft frame register.
6921 (must_parenthesize): ix and iy are also reserved names.
6922 (print_operand_address): One more place where parenthesis are required
6923 to avoid confusion with register names.
6924 (m68hc11_gen_movhi): Allow push of stack pointer.
6925 (m68hc11_check_z_replacement): Fix handling of parallel with a
6927 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
6928 the replacement register is.
6929 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
6930 and D8_REGS classes.
6931 (MODES_TIEABLE_P): All modes are tieable except QImode.
6933 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6935 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
6936 (___subdi3): Likewise.
6937 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
6938 (__map_data_section): Optimize 68hc11 case.
6940 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6942 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
6943 than a shift to avoid adding a register with itself.
6944 (m68hc11_memory_move_cost): Take into account NO_REGS.
6945 (m68hc11_register_move_cost): Update and use memory move cost
6947 (m68hc11_address_cost): Make cost of valid offset not 0 so that
6948 it gives more opportunities to cse to optimize.
6949 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
6950 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
6952 2002-03-15 Mark Mitchell <mark@codesourcery.com>
6954 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
6955 * c-common.def (CLEANUP_STMT): New tree node.
6956 * c-common.h (CLEANUP_DECL): New macro.
6957 (CLEANUP_EXPR): Likewise.
6958 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
6959 * expr.c (expand_expr): Tidy.
6960 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
6961 * tree-inline.c (initialize_inlined_parameters): Clean up
6962 new local variables.
6964 2002-03-15 Jakub Jelinek <jakub@redhat.com>
6967 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
6968 before movrXX only, use reg_overlap_mentioned_p.
6969 Only special case NE if just one insn can be generated.
6971 2002-03-15 Jason Merrill <jason@redhat.com>
6973 * varasm.c (assemble_variable): Call resolve_unique_section before
6974 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
6977 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6980 * arm.md (split pattern for thumb shiftable immediates): Add comment
6981 explaining non-obvious test.
6983 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6986 * arm.md (movaddr, movaddr_insn): Delete.
6988 2002-03-15 Jason Merrill <jason@redhat.com>
6990 * toplev.c (wrapup_global_declarations): Clarify variable handling.
6991 -fkeep-static-consts doesn't apply to comdats.
6993 2002-03-14 Richard Henderson <rth@redhat.com>
6995 * c-decl.c: Include c-pragma.h.
6996 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
6997 (finish_function): Tidy.
6998 * c-pragma.c: Include c-common.h.
6999 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
7000 (handle_pragma_weak): Use them.
7001 (init_pragma): Register pending_weaks.
7002 * c-pragma.h (maybe_apply_pragma_weak): Declare.
7003 * print-tree.c (print_node): Print DECL_WEAK.
7004 * varasm.c (mark_weak_decls): Remove.
7005 (remove_from_pending_weak_list): Remove.
7007 (asm_emit_uninitialised): Call globalize_decl for weak commons.
7008 (weak_decls): Make a tree_list.
7009 (declare_weak): Cons weak_decls directly.
7010 (globalize_decl): Remove weak_decls elements directly.
7011 (weak_finish): Simplify weak_decls walk. Don't weaken unused
7012 symbols. Don't pretend to handle aliases.
7013 (init_varasm_once): Update weak_decls registry.
7014 * Makefile.in: Update dependencies.
7016 2002-03-14 Richard Henderson <rth@redhat.com>
7019 * config/ia64/ia64.c: Include tm_p.h last.
7020 (gen_nop_type): Remove duplicate definition.
7021 (cycle_end_fill_slots): Set sched_data for second L slot.
7022 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
7023 (nop_cycles_until): Fix typos.
7025 2002-03-15 Jakub Jelinek <jakub@redhat.com>
7027 PR optimization/5891
7028 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
7030 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
7032 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
7033 descriptors correctly.
7035 2002-03-14 Michael Meissner <meissner@redhat.com>
7037 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
7038 100, allowing MAX_UNROLLED_INSNS to be overridden.
7040 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
7043 * unroll.c (params.h): Include.
7044 (MAX_UNROLLED_INSNS): Delete, now in params.h.
7046 * doc/invoke.texi (--param max-unroll-insns): Document.
7048 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
7050 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
7052 * arm.md: Fix warnings about constraints in peepholes and splits.
7054 2002-03-14 Zack Weinberg <zack@codesourcery.com>
7056 * cpphash.h (struct lexer_state): Remove line_extension member.
7057 * cpplib.c (dequote_string, do_linemarker): New functions.
7058 (linemarker_dir): New data object.
7059 (DIRECTIVE_TABLE): No longer need to interpret #line in
7060 preprocessed source. Delete obsolete comment about return
7062 (end_directive, directive_diagnostics, _cpp_handle_directive):
7063 Don't muck with line_extension.
7064 (directive_diagnostics): No need to issue warnings for
7066 (_cpp_handle_directive): Issue warnings for linemarkers here,
7067 when appropriate. Dispatch linemarkers to do_linemarker, not
7069 (do_line): Code to handle linemarkers split out to do_linemarker.
7070 Convert escape sequences in filename argument, both places.
7072 * cppmacro.c (quote_string): Rename cpp_quote_string and
7073 export. All callers changed.
7074 * cpplib.h (cpp_quote_string): Prototype.
7075 * cppmain.c (print_line): Call cpp_quote_string on to_file
7078 * doc/cpp.texi: Document that escapes are now interpreted in
7079 #line and in linemarkers, and that non-printing characters are
7080 converted to octal escapes when linemarkers are generated.
7082 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
7084 * emit-rtl.c (try_split): Use delete_insns.
7085 * recog.c (split_all_insns): Fix terminating condition.
7087 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
7088 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7091 * arm.c (arm_output_epilogue): Fix floating-point register save
7092 adjustment when using a frame pointer.
7094 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
7096 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
7097 * config/mips/mips.c (compute_frame_size): Retrofit them here.
7098 (save_restore_insns, mips_expand_epilogue): And here.
7099 (build_mips16_call_stub): And here.
7100 (mips_function_value): Use the new macros to decide whether a single
7101 or complex float can be returned in floating-point registers. Return
7102 a parallel rtx in the complex case.
7104 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
7106 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
7107 call after liveness analysis.
7109 * recog.c (split_insn): Use delete_insn_and_edges.
7111 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
7112 instructions to have branch prediction notes.
7113 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
7115 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
7117 * configure.in: Don't pass -Wno-long-long to a ADA compiler
7118 that doesn't support it.
7119 * configure: Regenerate.
7121 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7124 * config/sparc/sparc.md (normal_branch, inverted_branch,
7125 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
7126 inverted_fp_branch): Adjust calls to output_cbranch.
7127 Set length attribute.
7128 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
7129 output_v9branch. Set length attribute.
7130 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
7132 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
7133 (output_cbranch): Likewise. Handle far branches.
7134 (output_v9branch): Handle far branches.
7135 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
7137 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
7138 noov_compare64_op predicates.
7140 2002-03-13 Jason Merrill <jason@redhat.com>
7142 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
7143 into the function and constify it.
7144 * gthr-dce.h, gthr-solaris.h: Likewise.
7146 2002-03-13 David Edelsohn <edelsohn@gnu.org>
7148 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
7149 * config/rs6000/rs6000.c (rs6000_va_arg): Use
7150 std_expand_builtin_va_arg if not ABI_V4.
7152 2002-03-13 Jason Merrill <jason@redhat.com>
7154 * varasm.c (globalize_decl): New fn.
7155 (assemble_start_function): Use it.
7156 (asm_emit_uninitialized): Use it.
7157 (assemble_alias): Use it.
7158 (assemble_variable): Use it.
7160 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
7162 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
7163 2002-03-12 internal visibility change.
7164 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
7165 visibility into SYMBOL_REF_FLAG.
7167 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
7169 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
7170 VOIDmode operand. Add compile-time optimization for constant results.
7172 2002-03-12 Jason Merrill <jason@redhat.com>
7174 * c-typeck.c (convert_for_assignment): Don't allow conversions
7175 between pointers and references. Only allow lvalues to convert to
7178 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
7180 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
7181 before prologue, to avoid scheduling problems.
7183 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7185 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
7186 (ELIMINABLE_REGS): Add sfp->sp.
7187 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
7189 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7191 PR optimization/5892
7192 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
7194 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7196 * loop.c (basic_induction_var): Don't call convert_modes if mode
7197 classes are different.
7199 2002-03-12 Richard Henderson <rth@redhat.com>
7201 PR optimization/5901
7202 * function.c (reposition_prologue_and_epilogue_notes): Position
7203 the markers after/before the last/first insn not deleted.
7205 2002-03-12 Richard Henderson <rth@redhat.com>
7207 PR optimization/5878
7208 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
7209 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
7210 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7212 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
7213 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
7214 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
7216 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
7217 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
7218 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
7219 also. Don't set it if not flag_pic.
7220 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
7221 to be INVALID_REGNUM when not used.
7223 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
7225 * expmed.c (store_bit_field): Reset alias set for memory.
7226 (extract_bit_field): Same.
7228 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7230 * c-common.c (c_tree_code_type, c_tree_code_length,
7231 c_tree_code_name, add_c_tree_codes): Delete.
7232 * c-common.h (add_c_tree_codes): Delete.
7233 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
7235 * c-objc-common.c (c_objc_common_init): Don't call
7236 add_c_tree_codes, instead set lang_unsafe_for_reeval.
7237 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
7238 objc_tree_code_name, add_objc_tree_codes): Delete.
7239 (objc_init): Don't call add_objc_tree_codes.
7240 * objc/objc-lang.c (tree_code_type, tree_code_length,
7241 tree_code_name): Define.
7242 * toplev.c (lang_independent_init): Don't set
7243 tree_code_length[IDENTIFIER_NODE].
7244 * tree.c (tree_code_type, tree_code_length, tree_code_name):
7245 Delete definitions, moved to language front-ends.
7246 * tree.def (IDENTIFIER_NODE): Hardwire the length.
7247 * tree.h (tree_code_type, tree_code_length, tree_code_name):
7249 (tree_code_length): Change type to unsigned char.
7251 2002-03-12 Richard Henderson <rth@redhat.com>
7253 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
7254 internal visibility change.
7256 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7258 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
7259 validize_mem() instead of change_address to avoid clobbering
7262 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
7264 * c-lex.h (position_after_whitespace): Remove.
7266 2002-03-12 Jakub Jelinek <jakub@redhat.com>
7268 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
7269 (lex_string): Use unsigned char pointers.
7271 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
7273 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
7274 is not a valid memory_operand.
7276 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7278 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
7279 * config/xtensa/lib1funcs.asm: Fix copyright to include
7280 special case for libgcc files.
7281 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
7282 (__divsi3): Likewise.
7283 (__umodsi3): Likewise.
7284 (__modsi3): Likewise.
7285 * config/xtensa/lib2funcs.S: Fix copyright to include
7286 special case for libgcc files.
7288 2002-03-12 Tom Rix <trix@redhat.com>
7290 * collect2.c (resolve_lib_name): Move outside of
7291 OBJECT_FORMAT_COFF ifdef.
7292 (ignore_library): Same.
7294 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7296 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
7298 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7300 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
7301 to function_section before writing out the constant pool.
7303 2002-03-12 David Edelsohn <edelsohn@gnu.org>
7305 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
7307 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
7309 2002-03-12 Alan Modra <amodra@bigpond.net.au>
7311 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
7315 (cmpsi splitter): Likewise.
7316 (modsi3): Fail if <= 0.
7317 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
7318 redundant test when HOST_BITS_PER_WIDE_INT != 32.
7319 (reg_or_sub_cint64_operand): Likewise.
7320 (num_insns_constant_wide): Optimize sign extension.
7321 (rs6000_legitimize_address): Likewise.
7323 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
7325 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7326 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7328 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
7330 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
7331 address calculation.
7333 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
7335 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
7336 scratch register to DImode / TImode.
7337 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
7338 register used does not overlap the target.
7340 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7342 * Makefile.in (debug.o): Depend on debug.h.
7343 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
7344 * debug.c (do_nothing_debug_hooks): Likewise.
7345 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
7346 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
7347 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
7348 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
7349 * dwarfout.c (dwarf_debug_hooks): Likewise.
7350 * integrate.c (output_inline_function): Likewise.
7351 * objc/objc-act.c (synth_module_prologue): Likewise.
7352 * sdbout.c (sdb_debug_hooks): Likewise.
7353 * toplev.c (debug_hooks): Likewise.
7354 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7356 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7358 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
7359 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
7360 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
7361 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
7362 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
7363 * defaults.h (POINTER_SIZE): Define.
7364 * doc/tm.texi (POINTER_SIZE): Document default.
7366 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7368 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
7370 2002-03-11 Richard Henderson <rth@redhat.com>
7372 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
7373 if rebuild_label_notes_after_reload.
7375 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
7377 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
7378 emit pic register load if "internal" visibility.
7379 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
7380 (cris_expand_builtin_va_arg): Do all computations on trees.
7382 2002-03-11 Richard Henderson <rth@redhat.com>
7384 * rtlanal.c: Include recog.h.
7385 (keep_with_call_p): Fix thinko.
7386 * Makefile.in (rtlanal.o): Update dependencies.
7388 2002-03-11 Chris Meyer <cmeyer@gatan.com>
7390 * genflags.c (gen_insn): Use IS_VSPACE.
7391 * genoutput.c (output_insn_data): Likewise.
7392 (process_template): Likewise.
7394 2002-03-11 Richard Henderson <rth@redhat.com>
7396 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
7398 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
7400 * Makefile.in: Update.
7401 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
7402 Update documentation.
7403 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
7404 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
7406 2002-03-11 Zack Weinberg <zack@codesourcery.com>
7408 * Makefile.in: Give texi2pod its input file as a command line
7409 argument, not on stdin.
7411 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
7412 Daniel Berlin <dan@dberlin.org>
7414 C++ alias analysis improvement.
7415 * alias.c (record_component_aliases): Record aliases for base
7418 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
7420 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
7422 2002-03-11 Douglas B Rupp <rupp@gnat.com>
7424 * toplev.c (vms_fopen): Remove, not needed.
7426 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
7428 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
7430 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
7431 for FP, already done later.
7433 * toplev.c (debug_args): Add entry for VMS_DEBUG.
7434 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
7436 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
7438 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
7439 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
7440 LARGEST_EXPONENT_IS_NORMAL for the given mode.
7441 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
7442 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
7443 (ediv, emul, eldexp, esqrt): Likewise.
7444 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
7445 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
7446 (saturate): New function.
7447 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
7448 (make_nan): Use a saturation value instead of a NaN if
7449 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
7450 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
7451 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
7452 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
7453 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
7454 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
7455 !ROUND_TOWARDS_ZERO.
7456 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
7457 (ROUND_TOWARDS_ZERO): Document.
7459 2002-03-11 Andreas Jaeger <aj@suse.de>
7461 * cfg.c (dump_flow_info): Remove unused variable.
7463 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
7465 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
7466 computations on trees.
7468 2002-03-10 Richard Henderson <rth@redhat.com>
7471 * reload.c (copy_replacements_1): New.
7472 (copy_replacements): Use it to recurse through the rtx.
7474 2002-03-10 Richard Henderson <rth@redhat.com>
7476 * loop.c (strength_reduce): Compute number of iterations as
7477 unsigned HOST_WIDE_INT.
7479 2002-03-10 Richard Henderson <rth@redhat.com>
7481 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
7482 to move away from the end of the block.
7484 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
7486 PR preprocessor/5899
7487 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
7489 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7491 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
7493 * attribs.c (decl_attributes): Fix signed/unsigned warning.
7495 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
7497 * config/mmix/mmix.c: Improve comments.
7498 (mmix_target_asm_function_prologue): Drop variable
7499 empty_stack_frame. Don't allocate unused slot above fp.
7500 (mmix_target_asm_function_epilogue): Mirror prologue changes.
7501 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
7502 brace in first column.
7503 (enum reg_class): Ditto.
7504 (FIRST_PARM_OFFSET): Now 0.
7505 (USER_LABEL_PREFIX): Remove #if 0:d definition.
7507 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7509 * combine.c (make_extraction): Fix error in last change.
7511 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7513 * c4x.c (c4x_fp_reglist): Const-ify.
7514 * cris.c (cris_print_operand): Likewise.
7515 * i386.c (ix86_va_arg): Likewise.
7516 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
7517 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
7518 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
7519 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
7520 * mcore.h (regno_reg_class): Likewise.
7521 * mips.c (gen_int_relational): Likewise.
7522 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
7523 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
7524 * pdp11.c (move_costs): Likewise.
7525 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
7526 * s390.c (s390_branch_condition_mnemonic, regclass_map):
7528 * s390.h (regclass_map): Likewise.
7529 * sh.c (shift_amounts): Likewise.
7530 * sh.md (rotlsi3): Likewise.
7532 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
7534 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
7535 (ne0+5): Use new clobber to generate proper shift pattern.
7536 Patch by Michael Matz <matz@kde.org>.
7538 2002-03-09 Andreas Schwab <schwab@suse.de>
7540 * gcc.c (validate_all_switches): Also handle `%W{...}'.
7542 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
7544 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
7546 2002-03-09 Jakub Jelinek <jakub@redhat.com>
7549 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
7550 even for non-representable constants.
7552 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7554 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
7555 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
7556 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
7557 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
7558 (pop_function_context): Compute MAY_SHARE parameter for
7560 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
7561 (gen_mem_addressof): Call fixup_var_refs with new parm.
7563 * combine.c (make_extraction): Don't make extension of CONST_INT.
7565 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
7567 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
7568 in o32 and o64 ABIs.
7569 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
7570 but getting fixed-size structs passed in registers regardless of
7571 padding in o32 and o64 ABIs.
7573 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
7574 offset before loading address of argument passed by transparent
7577 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
7579 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
7581 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
7583 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
7584 marker such that registers after it are saved.
7586 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7588 * sparc.c (arith_4096_operand): Fix error in last change.
7590 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
7592 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
7595 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
7597 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
7600 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
7602 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
7604 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
7606 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
7607 removed; fix return value.
7608 * combine.c (combine_instructions): Dirtify blocks where we failed to
7609 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
7610 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
7612 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7614 * gcse.c (insert_insn_end_bb): Fix typo in last change.
7616 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
7618 * recog.c (peephole2_optimize): Re-distribute EH edges.
7620 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
7622 * expr.c (expand_expr): Use unsave lang hook.
7623 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
7624 (LANG_HOOKS_INITIALIZER): Update.
7625 * langhooks.h (struct lang_hooks): New hook unsave.
7626 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
7627 (unsave_expr_1): Remove unused lang_unsave_expr_now.
7628 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
7629 (unsave_expr_now): Remove.
7630 * tree.h (unsave_expr_now, lang_unsave,
7631 lang_unsave_expr_now): Remove.
7634 2002-03-08 Andreas Jaeger <aj@suse.de>
7636 * flow.c (propagate_block_delete_insn): Remove unused variable.
7638 2002-03-08 Kazu Hirata <kazu@hxi.com>
7640 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
7641 insn length for memory load/store.
7643 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
7645 * doc/install.texi (--with-libiconv-prefix): Document.
7647 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
7649 * doc/sourcebuild.texi: Fix typo.
7651 2002-03-08 Jakub Jelinek <jakub@redhat.com>
7654 * builtins.c (std_expand_builtin_va_arg): Do all computations on
7657 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7659 * rtl.c (copy_most_rtx): Move from here ...
7660 * emit-rtl.c (copy_most_rtx): ... to here.
7662 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
7664 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
7665 SUBTARGET_CPP_SIZE_SPEC.
7666 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
7668 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
7670 2002-03-07 Matt Hiller <hiller@redhat.com>
7672 * gensupport.c (first_dir_md_include): Renamed from include;
7673 change all references.
7674 (last_dir_md_include): Renamed from last_include; change all
7676 (init_md_reader): Unconditionally initialize base_dir whether or
7677 not filename is a relative path.
7679 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
7681 * config/fp-bit.c (_unord_f2): Compile it in even if
7682 US_SOFTWARE_GOFAST is enabled.
7684 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
7685 NULL_RTX. Set all HFmode operations as NULL_RTX.
7686 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
7687 NULL_RTX, try reversing the comparison and the operands.
7689 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
7691 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
7692 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
7695 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
7697 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
7699 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
7701 * basic-block.h (fixup_abnormal_edges): Declare.
7702 * reload1.c (fixup_abnormal_edges): New function.
7703 * reg-stack.c (convert_regs): Use it.
7705 * gcse.c (insert_insn_end_bb): Handle trapping insns.
7707 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
7709 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
7711 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
7712 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
7713 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
7714 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
7715 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
7716 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
7717 unless x and y could be infinite.
7718 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
7719 Check that the common type of both arguments is a real, even for
7720 targets without unordered comparisons. Allow an integer argument
7721 to be compared against a real.
7722 (expand_tree_builtin): Use expand_unordered_cmp.
7723 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
7724 * cse.c (fold_rtx): Likewise. Fix indentation.
7725 * fold-const.c (fold_real_zero_addition_p): New.
7726 (fold): Use it, and the new HONOR_... macros.
7727 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
7728 * jump.c (reversed_comparison_code_parts): After searching for
7729 the true comparison mode, use HONOR_NANS to decide whether it
7730 can be safely reversed.
7731 (reverse_condition_maybe_unordered): Remove IEEE check.
7732 * simplify-rtx.c (simplify_binary_operation): Use the new macros
7733 to decide which simplifications are valid. Allow the following
7734 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
7735 and (a - -b) to (a + b).
7736 (simplify_relational_operation): Use HONOR_NANS.
7737 * doc/tm.texi: Document the MODE_HAS_... macros.
7739 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7741 * combine.c (simplify_comparison): If simplifying a logical shift
7742 right and compare with constant, force the comparison to unsigned.
7744 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
7746 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
7748 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
7750 (alt_reg_names): Remove % for vrsave.
7752 2002-03-06 Richard Henderson <rth@redhat.com>
7754 PR optimization/5844
7755 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
7756 if used indicates we've already emitted one copy of an operand.
7757 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
7758 (gen_split): Supply a non-null used.
7760 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
7762 * reload1.c (reload): Unshare all rtl after reload is done.
7764 * simplify-rtx.c (simplify_plus_minus): Do not abort,
7765 but simply fail if the expression is too complex to simplify.
7766 (simplify_gen_binary): Handle simplify_plus_minus failures.
7768 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
7770 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
7771 consistently call delete_trivially_dead_insns after CSE and GCSE;
7772 fix DFI_life dumping; do jump threading after liveness; do crossjumping
7773 after liveness2; update comment in last crossjumping.
7774 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
7776 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
7778 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
7779 after completing fast dead code elimination.
7781 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
7784 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
7786 * version.c: Fix misplaced leading blanks on first line.
7788 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
7790 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
7792 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
7794 * cfgcleanup.c (mentions_nonequal_regs): New function.
7795 (thread_jump): Use it.
7796 * toplev.c (rest_of_compilation): Run jump threading after
7799 2002-03-06 Jakub Jelinek <jakub@redhat.com>
7801 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
7804 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
7806 * predict.c (estimate_bb_frequencies): Do not reload the
7807 frequencies from notes.
7809 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
7811 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
7812 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
7814 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
7815 delete_noop_moves): Return indeger.
7816 * flow.c (ndead): New variable.
7817 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
7818 BB argument; update callers.
7819 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
7820 (life_analysis): Do not call purge_all_dead_edges.
7821 (update_life_info): Return number of deleted insns; print statistics.
7822 (update_life_info_in_dirty_blocks): likewise.
7823 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
7824 return number of insns deleted.
7826 * cse.c: Include timevar.h
7827 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
7828 iterate until stabilizes; print statistics; return number of killed
7830 * Makefile.in: (cse.o): Add timevar.h dependency
7831 * rtl.h (delete_trivially_dead_insns): New.
7832 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
7833 * toplev.c (rest_of_compilation): Update callers.
7835 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
7836 (try_optimize_cfg): Do not update liveness.
7837 (cleanup-cfg): Loop until try_optimize_cfg and dead code
7838 removal stabilizes; use delete_trivially_dead_insns.
7840 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
7842 2002-03-05 Zack Weinberg <zack@codesourcery.com>
7844 * cppmain.c (setup_callbacks): Disable #pragma and #ident
7845 callbacks when processing assembly language.
7847 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
7849 * pa.h (ASM_FILE_END): Define.
7850 * som.h (ASM_FILE_END): Delete.
7852 * pa.c (function_arg): Don't pass floats in general registers in
7853 indirect calls if TARGET_ELF32.
7855 2002-03-05 Richard Henderson <rth@redhat.com>
7857 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
7859 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
7861 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
7863 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7865 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
7866 -r command line. Don't hide any symbols if not building
7869 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
7871 * cfg.c (dump_flow_info): Warn about profile mismatches.
7872 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
7873 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
7875 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7877 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
7878 wide volatile memory by parts.
7880 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7882 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
7885 2002-03-05 Richard Henderson <rth@redhat.com>
7887 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
7889 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
7891 * toplev.c (documented_lang_options): Document more
7892 language-specific options.
7893 * doc/invoke.texi (Warning Options): Correct documentation for
7894 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
7895 * c-decl.c (c_decode_option): Use a table to handle warning options.
7897 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
7899 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
7900 parameter to mmix_encode_section_info.
7901 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
7902 relocatably. Always produce ELF, not mmo if linking relocatably.
7903 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
7904 first is non-zero, don't add symbol prefix.
7905 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
7906 prototype accordingly.
7908 2002-03-04 Krister Walfridsson <cato@df.lth.se>
7910 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
7912 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
7914 * configure.in: Increase required makeinfo version to 4.1.
7915 * configure: Regenerate.
7917 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
7919 * .cvsignore: Remove *.info* and genrtl*; these files are generated
7922 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
7924 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
7925 * doc/invoke.texi: Fix @math uses.
7927 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
7929 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
7932 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
7934 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
7935 (powerpc-*-eabisimaltivec*): Same.
7937 * config/rs6000/t-ppcendian: New.
7939 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7941 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
7942 nonimmediate_src_operand and nonimmediate_lsrc_operand to
7943 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
7945 2002-03-03 Richard Henderson <rth@redhat.com>
7947 * toplev.c (rest_of_decl_compilation): Revert last two changes.
7949 2002-03-03 Zack Weinberg <zack@codesourcery.com>
7951 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
7952 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
7953 tree.c, config/m68k/m68k.c:
7954 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
7955 REAL_ARITHMETIC blocks unconditional. Delete some further
7956 #ifdef blocks predicated on REAL_ARITHMETIC.
7957 * flags.h, toplev.c: Delete remaining references to
7960 * doc/invoke.texi: Remove documentation of -fpretend-float.
7961 * doc/tm.texi: Describe the various REAL_* macros as provided by
7962 real.h, not by the target configuration files.
7964 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
7965 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
7966 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
7967 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
7968 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
7969 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
7970 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
7971 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
7972 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
7973 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
7974 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
7975 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
7976 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
7977 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
7978 config/xtensa/xtensa.h:
7979 Do not define, undefine, or mention in comments any of
7980 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
7981 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
7982 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
7983 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
7984 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
7985 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
7986 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
7987 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
7988 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
7990 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7992 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
7993 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
7994 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
7995 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
7996 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
7997 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
7999 * defaults.h (BITS_PER_WORD): Define.
8000 * doc/tm.texi (BITS_PER_WORD): Document default value.
8002 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
8003 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
8004 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
8006 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8008 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
8009 lieu of explicit sizeof/sizeof.
8010 * i386.c (override_options, ix86_init_mmx_sse_builtins,
8011 ix86_expand_builtin): Likewise.
8012 * mips.c (mips_add_gc_roots): Likewise.
8013 * mmix.c (mmix_output_condition): Likewise.
8014 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
8015 altivec_init_builtins): Likewise.
8016 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
8017 * cppexp.c (Nsuff, parse_number): Likewise.
8018 * cppinit.c (builtin_array_end): Likewise.
8019 * gcc.c (n_default_compilers, process_command): Likewise.
8020 * genpreds.c (output_predicate_decls): Likewise.
8021 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
8022 * lcm.c (N_ENTITIES): Likewise.
8023 * stor-layout.c (set_sizetype): Likewise.
8025 2002-03-03 Richard Henderson <rth@redhat.com>
8027 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
8028 for types or labels.
8030 2002-03-03 Richard Henderson <rth@redhat.com>
8032 * c-decl.c (start_decl): Initialized variables are not common.
8034 2002-03-02 Per Bothner <per@bothner.com>
8036 * gcc.c (option_map): Suport new --bootclasspath option.
8037 --CLASSPATH is now just an alias for --classpath.
8039 2002-03-02 Richard Henderson <rth@redhat.com>
8041 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
8042 load if "internal" visibility.
8043 * doc/extend.texi: Document visibility meanings.
8045 2002-03-02 Richard Henderson <rth@redhat.com>
8047 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
8048 to functions as well.
8050 2002-03-02 Richard Henderson <rth@redhat.com>
8052 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
8053 (handle_visibility_attribute): Don't call assemble_visibility.
8054 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
8055 without asmspec. Invoke assemble_alias when needed.
8056 * varasm.c (maybe_assemble_visibility): New.
8057 (assemble_start_function, assemble_variable, assemble_alias): Use it.
8059 2002-03-02 Richard Henderson <rth@redhat.com>
8061 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
8062 invoke ENCODE_SECTION_INFO with first call flag.
8064 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8065 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8066 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
8067 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
8068 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
8069 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
8070 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
8071 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
8072 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
8073 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
8074 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
8075 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
8076 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
8077 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
8078 config/mcore/mcore-protos.h, config/mcore/mcore.c,
8079 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
8080 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
8081 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
8082 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
8083 config/sh/sh.h, config/sparc/sparc.h,
8084 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
8085 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
8086 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
8087 FIRST argument. As needed, examine it and do nothing.
8089 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
8090 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8091 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
8093 * config/arm/t-pe (pe.o): Add dependencies.
8095 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8097 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
8098 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
8099 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
8100 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
8101 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
8102 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
8103 * defaults.h (BITS_PER_UNIT): Define.
8104 * doc/tm.texi (BITS_PER_UNIT): Document default value.
8106 2002-03-02 Kazu Hirata <kazu@hxi.com>
8108 * config/h8300/h8300-protos.h: Add a prototype for
8109 compute_a_shift_length.
8110 * config/h8300/h8300.c (h8300_asm_insn_count): New.
8111 (compute_a_shift_length): Likewise.
8112 (h8300_adjust_insn_length): Do not adjust insn length of shift
8114 * config/h8300/h8300.md (anonymous shift patterns): Use
8115 compute_a_shift_length.
8117 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8119 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
8122 * emit-rtl.c (offset_address): Call update_temp_slot_address.
8124 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8126 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
8127 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
8128 * flags.h (flag_zero_initialized_in_bss): Declare.
8129 * toplev.c (flag_zero_initialized_in_bss): New flag.
8130 (lang_independent_options): Add flag_zero_initialized_in_bss.
8131 * tree.c (initializer_zerop): New function.
8132 * tree.h (initializer_zerop): Declare.
8133 * varasm.c (assemble_variable): If we can emit bss, put zero
8134 initializers in the bss section.
8136 2002-03-02 Alan Modra <amodra@bigpond.net.au>
8138 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
8139 like more than one symbol per .weak directive.
8141 2002-03-01 Richard Henderson <rth@redhat.com>
8143 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
8144 adjust argument_pointer by pretend_args_size.
8145 (ia64_va_start): Adjust va_start address by -pretend_args_size.
8147 2002-03-01 Kazu Hirata <kazu@hxi.com>
8149 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
8151 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
8153 * toplev.c (rest_of_compilation): Delete dead jumptables before
8155 * flow.c (delete_dead_jumptables): Make global.
8156 * rtl.h (delete_dead_jumptables): Declare.
8158 2002-03-01 David Edelsohn <edelsohn@gnu.org>
8160 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
8161 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
8162 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
8164 2002-03-01 Kazu Hirata <kazu@hxi.com>
8166 * config/h8300/h8300-protos.h: Fix formatting.
8167 * config/h8300/h8300.c: Likewise.
8168 * config/h8300/h8300.h: Likewise.
8170 2002-03-01 Kazu Hirata <kazu@hxi.com>
8172 * config/h8300/h8300.c (print_operand): Support 16-bit
8174 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
8176 2002-02-28 Richard Henderson <rth@redhat.com>
8178 * expmed.c (store_bit_field): Prevent generation of CONCATs;
8179 pun complex values as integers; use gen_lowpart instead of
8181 (extract_bit_field): Likewise.
8183 2002-03-01 Alan Modra <amodra@bigpond.net.au>
8184 David Edelsohn <edelsohn@gnu.org>
8186 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
8187 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
8188 (SUPPORTS_WEAK): Likewise.
8189 * output.h (add_weak): Add tree param.
8190 * varasm.c (add_weak): Likewise. Save decl.
8191 (struct weak_syms): Add decl field.
8192 (mark_weak_decls): New function.
8193 (init_varasm_once): ggc_add_root mark_weak_decls.
8194 (assemble_start_function): Use ASM_WEAKEN_DECL.
8195 (assemble_variable): Likewise.
8196 (assemble_alias): Likewise.
8197 (declare_weak): Pass decl to add_weak.
8198 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
8199 (remove_from_pending_weak_list): Declare and define for
8201 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
8202 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
8203 * defaults.h (SUPPORTS_WEAK): Likewise.
8204 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8205 .weak for code sym. Do emit .size for descriptor sym.
8206 (ASM_DECLARE_FUNCTION_SIZE): Define.
8207 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
8208 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
8209 .lglobl unless TARGET_XCOFF. Formatting fixes.
8210 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8212 (HANDLE_PRAGMA_WEAK): Remove.
8213 (ASM_WEAKEN_LABEL): Remove.
8214 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
8216 2002-03-01 Jason Merrill <jason@redhat.com>
8218 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
8219 (TARGET_EXPR_CLEANUP): New macro.
8221 2002-02-28 Steve Ellcey <sje@cup.hp.com>
8223 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
8224 to take ptr_extend into account as third type of extension.
8225 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
8226 fields used by SUBREG_PROMOTED_UNSIGNED_P.
8227 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
8228 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
8229 * calls.c (precompute_arguments): Use new macro.
8230 (expand_call): Ditto.
8231 * combine.c (nonzero_bits): Ditto.
8232 (record_promoted_value): Ditto.
8233 * expr.c (store_expr): Ditto.
8234 (expand_expr): Ditto.
8235 * function.c (assign_parms): Ditto.
8237 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
8239 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
8240 override -shared and -shared-libgcc.
8242 2002-02-28 David O'Brien <obrien@FreeBSD.org>
8244 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
8246 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
8249 2002-02-28 Richard Henderson <rth@redhat.com>
8251 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
8252 4 cycle latency from MM producers.
8253 (ia64_internal_sched_reorder): Likewise with pipeline flush.
8255 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8257 * mklibgcc.in: Don't use GNU make extension.
8259 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
8261 * c-parse.in (STATIC): New terminal.
8262 (scspec): New non-terminal. Update productions accordingly.
8263 (program): Remove bogus ifc / end ifc.
8264 (array_declarator): Simplify production using STATIC.
8266 2002-02-28 Jim Meyering <meyering@lucent.com>
8268 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
8269 \a still means TARGET_BELL.
8271 2002-02-28 Richard Henderson <rth@redhat.com>
8273 * haifa-sched.c (sched_emit_insn): New.
8274 (schedule_block): Use last_scheduled_insn to track last insn.
8275 * sched-int.h (sched_emit_insn): Prototype.
8276 * config/ia64/ia64.c (last_issued): Remove.
8277 (ia64_variable_issue): Don't set it.
8278 (nop_cycles_until): Use sched_emit_insn.
8280 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
8282 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
8285 2002-02-28 Kazu Hirata <kazu@hxi.com>
8287 * config/h8300/h8300.c: Fix formatting.
8288 * config/h8300/h8300.h: Likewise.
8290 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
8292 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
8293 which may overwrite the high byte of the frame pointer.
8295 2002-02-28 Bo Thorsen <bo@suse.de>
8297 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
8298 (STARTFILE_SPEC): Add 64 bit files.
8299 (ENDFILE_SPEC): Likewise.
8301 2002-02-28 Jason Merrill <jason@redhat.com>
8303 * c-decl.c (finish_function): Only warn about missing return
8304 statement with -Wreturn-type.
8306 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
8308 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
8310 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
8311 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
8313 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
8315 * basic-block.h (BB_REACHABLE): Renumber.
8316 (BB_DIRTY, BB_NEW): New flags.
8317 (clear_bb_flags): Declare.
8318 (update_life_info_in_dirty_blocks): Declare.
8319 * cfg.c (clear_bb_flags): New function.
8320 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
8321 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
8322 reorder_insns, emit_insn_after): Mark block as dirty.
8323 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
8324 (update_life_info_in_dirty_blocks): New function.
8325 * recog.c (apply_change_group): Dirtify block.
8327 * cse.c (cse_insn): Reorder emitting of jump insn to keep
8329 * gcse.c (delete_null_pointer_checks): Likewise.
8331 * toplev.c (dump_file_index): Move cse2 after bp,
8333 (dump_file_info): Similary.
8334 (rest_of_compilation): Avoid most of CFG rebuilds;
8335 do first if converision after null pointer checks, do cse2
8336 after branch prediction; avoid full liveness rebuild after
8337 initializing subregs.
8338 * invoke.texi (-d options): Document -du, renumber.
8340 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
8341 (notice_new_block): Do not set BB_UPDATE_LIFE.
8342 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
8343 merge_blocks_move_successor_nojumps, merge_blocks,
8344 try_crossjump_to_edge): Likewise.
8345 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
8346 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
8347 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
8348 (merge_of_block): Do not use life_data_ok.
8349 (find_if_case_1): Do not use SET_UPDATE_LIFE.
8350 (if_convert): Use BB_DIRTY mechanizm to update life.
8351 * lcm.c (optimize_mode_switching): Update
8352 update_life_info_in_dirty_blocks
8354 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
8356 * Makefile.in (integrate.o): Update.
8357 * c-decl.c (copy_lang_decl): Rename.
8358 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8359 * integrate.c: Include langhooks.h.
8360 (copy_decl_for_inlining): Update to use langhook.
8361 * langhooks-def.h (lhd_do_nothing_t,
8362 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
8363 (LANG_HOOKS_INITIALIZER): Update.
8364 * langhooks.c (lhd_do_nothing_t): New.
8365 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
8366 * tree.h (copy_lang_decl): Remove.
8368 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8370 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
8372 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
8373 POST_DEC, and POST_MODIFY.
8375 2002-02-27 Zack Weinberg <zack@codesourcery.com>
8377 * c-typeck.c (digest_init): Remove unused parameter; all
8380 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
8382 * expmed.c (expand_shift): Correctly test for low part of a
8385 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
8387 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
8388 insn UIDs with insn addresses.
8390 2002-02-27 Zack Weinberg <zack@codesourcery.com>
8392 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
8393 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
8394 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
8395 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
8396 gcc.c, toplev.c: Delete code implementing -traditional mode.
8398 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
8399 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
8400 Document removal of -traditional mode for compilation, and
8401 remove documentation only relevant to that mode.
8403 * config/nextstep.h, config/ptx4.h, config/svr4.h,
8404 config/convex/convex.h, config/d30v/d30v.h,
8405 config/i386/dgux.h, config/i386/osf1elf.h,
8406 config/i386/osfelf.h, config/i386/osfrose.h,
8407 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
8408 config/m68k/hp310.h, config/m88k/dgux.h,
8409 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
8410 config/m88k/m88k.h, config/m88k/openbsd.h,
8411 config/mips/abi64.h, config/mips/osfrose.h,
8412 config/mips/svr4-5.h, config/mips/svr4-t.h,
8413 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8414 config/stormy16/stormy16.h: Remove all references to
8415 -traditional from target specs. Delete all mention of the
8416 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
8417 delete a couple of commented-out definitions of
8418 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
8421 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
8422 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
8424 2002-02-27 Zack Weinberg <zack@codesourcery.com>
8426 * mklibgcc.in: Don't use \n in a line subject to
8427 interpretation by echo.
8429 2002-02-27 Graham Stott <grahams@redhat.com>
8431 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
8434 * loop.c (prescan_loop): Handle PARALLEL.
8436 * unroll.c (loop_iterations): Return 0 if the add_val for
8439 * final.c (output_operand_lossage): Constify PFX_STR.
8441 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
8443 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
8445 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
8446 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
8448 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
8450 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8452 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
8454 * cpplex.c (_cpp_lex_token): Handle directives in macro
8456 * cpplib.c (_cpp_handle_directive): Save and restore state
8457 if parsing macro args when entering a directive.
8458 * cppmacro.c (collect_args): No need to handle directives
8460 (enter_macro_context, replace_args): Use the original macro
8461 definition in case it was redefined whilst collecting arguments.
8465 2002-02-26 David Edelsohn <edelsohn@gnu.org>
8467 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
8468 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
8469 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
8471 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
8472 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
8473 (load_toc_v4_PIC_2): Same.
8475 2002-02-26 Alan Modra <amodra@bigpond.net.au>
8477 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
8479 2002-02-26 Richard Henderson <rth@redhat.com>
8481 * config/alpha/alpha.md (ashldi_se): Re-enable.
8483 2002-02-26 Richard Henderson <rth@redhat.com>
8485 * config/alpha/alpha.c (alpha_encode_section_info): Examine
8486 MODULE_LOCAL_P; improve commentary.
8488 2002-02-26 Zack Weinberg <zack@codesourcery.com>
8490 * doc/cpp.texi: Clarify documentation of relationship between
8493 2002-02-26 Kazu Hirata <kazu@hxi.com>
8495 * config/h8300/h8300-protos.h: Update the prototype for
8496 compute_logical_op_length. Add the prototype for
8497 compute_logical_op_cc.
8498 * config/h8300/h8300.c (compute_logical_op_length): Figure out
8500 (compute_logical_op_cc): New.
8501 * config/h8300/h8300.md: Combine all the logical op patterns
8502 in HImode and SImode. Use compute_logical_op_cc.
8504 2002-02-26 Kelley Cook <kelleycook@comcast.net>
8506 * config/i386/i386.c (print_operand): Don't append ATT-style
8507 length suffixs to x87 opcodes when in Intel mode.
8509 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
8511 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
8512 (init_emit_once): Update calls.
8513 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
8514 (init_syntax_once): Prototype.
8516 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
8518 * pa-linux.h (LIB_SPEC): Update definition.
8519 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8521 2002-02-26 Richard Henderson <rth@redhat.com>
8523 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
8524 if we emitted a stop bit.
8526 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8528 * configure.in (libgcc_visibility): Substitute.
8529 * configure: Rebuilt.
8530 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
8531 defined symbols .hidden.
8533 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8535 * attribs.c (c_common_attribute_table): Add visibility.
8536 (handle_visibility_attribute): New function.
8537 * varasm.c (assemble_visibility): New function.
8538 * output.h (assemble_visibility): Add prototype.
8539 * tree.h (MODULE_LOCAL_P): Define.
8540 * crtstuff.c (__dso_handle): Use visibility attribute.
8541 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
8542 for MODULE_LOCAL_P symbols too.
8543 * config/ia64/ia64.c (ia64_encode_section_info): Handle
8544 MODULE_LOCAL_P symbols the same way as local symbols.
8545 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
8546 into .sdata/.sbss by the user.
8547 * doc/extend.texi (Function Attributes): Document visibility
8550 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8553 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
8554 STRING_CST initializer spanning the whole variable without
8556 If expand_expr returned MEM, don't use it.
8558 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
8560 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
8561 generate a die for the lexical block.
8563 2002-02-26 Kazu Hirata <kazu@hxi.com>
8565 * config/h8300/h8300-protos.h: Add a prototype for
8566 compute_logical_op_length.
8567 * config/h8300/h8300.c (compute_logical_op_length): New.
8568 * config/h8300/h8300.md (anonymous logical patterns): Use
8569 compute_logical_op_length for length.
8571 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8573 * dwarf2out.c (modified_type_die): Do not call type_main_variant
8575 (gen_type_die): Same.
8577 * attribs.c (handle_vector_size_attribute): Set debug information.
8579 2002-02-26 Daniel Egger <degger@fhm.edu>
8581 * config/rs6000/rs6000.md: Swap define_insn attributes to
8582 fix incorrect generation of merge high instructions instead
8585 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8587 * c-typeck.c (really_start_incremental_init): Use
8588 bitsize_zero_node for vectors.
8590 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8592 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
8593 ("*set_vrsave_internal"): Same.
8595 2002-02-25 Richard Henderson <rth@redhat.com>
8597 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
8598 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
8600 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8603 * config/i386/i386.c (ix86_return_pops_args): Only pop
8604 fake structure return argument if it was passed on the stack.
8606 2002-02-25 Jason Merrill <jason@redhat.com>
8608 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
8611 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
8613 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
8614 link with shared_name only.
8615 * doc/invoke.texi (Link Options): Document new behavior.
8617 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
8619 * c-typeck.c (push_init_level): Handle vectors.
8621 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
8623 * config/sparc/sparc.c (const64_high_operand): Zero-extend
8624 operands of SPARC_SETHI_P.
8625 (input_operand): Likewise.
8626 (sparc_emit_set_const32): Likewise.
8627 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
8628 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
8629 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
8630 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
8631 (movdi_insn_sp64_vis): Likewise.
8632 (movdi split, movdf split): Use SETHI32.
8633 * doc/md.texi: Document SPARC constraints L, M and N.
8635 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
8637 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
8638 ("*set_vrsave_internal"): use mfspr for Darwin.
8640 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
8641 gen_get_vrsave_internal.
8643 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8645 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
8647 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
8649 * cpplex.c (cpp_interpret_charconst): Get signedness or
8650 otherwise of wide character constants correct.
8651 * cppexp.c (lex): Get signedness of wide charconsts correct.
8653 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8655 * optabs.c (widen_operand): Only call convert_modes for
8656 promoted SUBREG if signedness matches.
8657 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
8659 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8661 * cpplib.c (glue_header_name): Use local buffer to build up
8664 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8666 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
8668 2002-02-23 Kazu Hirata <kazu@hxi.com>
8670 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
8671 H8/300[HS] separately.
8672 * config/h8300/h8300.md: Remove the early clobber constraint
8673 from bit field patterns.
8675 2002-02-23 Kazu Hirata <kazu@hxi.com>
8677 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
8679 (mulhisi3): Likewise.
8680 (umulqisi3): Likewise.
8681 (umulhisi3): Likewise.
8683 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8685 * cppinit.c (output_deps): Correct test for stdout output.
8686 (init_dependency_output): Cure warning.
8688 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8690 * expr.c (store_expr): When converting expression to promoted
8691 equivalent type, allow using SUBREG_REG of TARGET as the target
8692 of the expansion of EXP.
8693 * loop.c (basic_induction_var, case SUBREG): Always look inside.
8694 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
8695 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
8696 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
8697 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
8699 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
8701 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
8702 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
8703 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
8705 2002-02-23 Jakub Jelinek <jakub@redhat.com>
8707 PR optimization/5747
8708 * loop.c (scan_loop): Update reg info if move_movables created new
8711 2002-02-23 David Edelsohn <edelsohn@gnu.org>
8713 * gcc.c (init_gcc_spec): Revert last change.
8715 2002-02-23 David Edelsohn <edelsohn@gnu.org>
8717 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
8718 gpc_reg_operand constraint.
8720 2002-02-23 Alan Modra <amodra@bigpond.net.au>
8722 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
8723 Simplify comparison of `low'.
8724 (add_operand): Fix formatting.
8725 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
8726 (mask_operand): Disallow mask to wrap in 64-bit mode.
8727 (rs6000_stack_info): Remove redundant test setting push_p.
8728 (output_toc): Fix formatting.
8729 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
8730 cc_reg_not_cr0_operand constraint.
8731 (booldi3, boolcdi3 splitters): Same.
8733 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
8735 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
8737 2002-02-22 David Edelsohn <edelsohn@gnu.org>
8739 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
8740 gcc invoked with -shared-libgcc.
8742 2002-02-22 Jakub Jelinek <jakub@redhat.com>
8745 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
8746 decl if any of elements was TREE_USED.
8748 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
8750 * config/sparc/sol2.h: Don't include sys/mman.h.
8751 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
8752 (arith_4096_operand): Don't throw high bits away.
8753 (const64_operand): Take sign extension of CONST_INTs into account.
8754 (const64_high_operand, sparc_emit_set_const32): Likewise.
8755 (GEN_HIGHINT64): Likewise.
8756 (sparc_emit_set_const64_quick1): Likewise.
8757 (const64_is_2insns): Likewise.
8758 (print_operand): Use trunc_int_for_mode for sign extension.
8759 * config/sparc/sparc.h (SMALL_INT32): Likewise.
8760 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
8761 chars. Assume CONST_INT is already properly sign-extended.
8762 (movdi split): Sign-extend each SImode part.
8763 (andsi3 split): Don't mask high bits off, so that result
8764 remains properly sign-extend.
8765 (iorsi3 split): Likewise.
8766 (xorsi3 split): Likewise.
8768 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
8770 * fold-const.c (fold): Fix typo in comments.
8772 2002-02-21 Diego Novillo <dnovillo@redhat.com>
8774 * Makefile.in (langhooks.o): Update dependencies.
8776 2002-02-21 Diego Novillo <dnovillo@redhat.com>
8778 * langhooks.c: Include flags.h.
8780 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
8782 * testsuite/gcc.dg/attr-alwaysinline.c: New.
8784 * c-common.c (c_common_post_options): Set inline trees by
8787 * doc/extend.texi (Function Attributes): Document always_inline
8789 Update documentation about inlining when not optimizing.
8791 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
8793 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
8794 unless DECL_ALWAYS_INLINE.
8796 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
8797 unless DECL_ALWAYS_INLINE.
8798 (c_disregard_inline_limits): Disregard if always_inline set.
8800 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
8801 Disregard if always_inline set.
8802 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
8803 unless DECL_ALWAYS_INLINE.
8805 * attribs.c (handle_always_inline_attribute): New.
8806 (c_common_attribute_table): Add always_inline.
8808 * config/rs6000/altivec.h: Add prototypes for builtins
8809 requiring the always_inline attribute.
8811 2002-02-21 Eric Christopher <echristo@redhat.com>
8813 * expmed.c (store_bit_field): Try to simplify the subreg
8814 before generating a new one when when the mode size of
8815 value is less than maxmode.
8817 2002-02-21 Richard Henderson <rth@redhat.com>
8819 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
8820 than gen_rtx_PLUS to form the sum.
8821 * explow.c (force_reg): Rearrange to not allocate new pseudo
8822 when force_operand returns a register.
8823 * expr.c (expand_assignment): Allow offset_rtx expansion to
8824 return a sum. Do not force addresses into registers.
8825 (expand_expr): Likewise.
8826 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
8827 to canonicalize arithmetic that didn't simpify.
8828 (simplify_plus_minus): New argument force; update
8829 all callers. Don't split CONST unless we can do something with it,
8830 and wouldn't lose the constness of the operands.
8832 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
8833 that we generated earlier.
8835 2002-02-21 Tom Tromey <tromey@redhat.com>
8837 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8838 (output_line_info): Use constant `1', with a long explanatory
8840 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
8842 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
8844 * jump.c (redirect_jump): If old label has no UID, don't try to
8847 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
8849 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
8850 If input is constant, do shifts at compile time.
8852 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
8854 * doc/extend.texi: Fix some more overfull hboxes.
8856 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8858 PR optimization/4994
8859 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
8862 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8865 * expr.h (expand_and): Add mode argument.
8866 * expmed.c (expand_and): Add mode argument.
8867 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
8868 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
8869 * except.c (expand_builtin_extract_return_addr): Likewise.
8870 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
8871 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
8872 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
8873 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
8874 * config/c4x/c4x.md: Use GEN_INT (x) instead of
8875 gen_rtx (CONST_INT, VOIDmode, x).
8877 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8880 * stmt.c (warn_if_unused_value): Move side effects test once more.
8882 2002-02-20 Torbjorn Granlund <tege@swox.com>
8884 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
8885 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
8887 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
8889 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
8890 SUBREG or ZERO_EXTEND.
8892 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
8894 * sh.h (current_function_anonymous_args): Remove.
8895 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
8896 of current_function_varargs and current_function_stdarg is set.
8897 * sh.c (sh_expand_prologue): Check current_function_varargs /
8898 current_function_stdarg / TARGET_SH5 instead of
8899 current_function_anonymous_args.
8901 * sh64.h (TARGET_VERSION): Define.
8903 2002-02-20 David Edelsohn <edelsohn@gnu.org>
8905 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
8906 VRSAVE_REGNO on TARGET_ALTIVEC.
8908 2002-02-20 Alan Modra <amodra@bigpond.net.au>
8910 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
8911 bits of SImode const_int.
8912 (includes_rshift_p): Likewise.
8913 (print_operand): Call mask_operand and mask64_operand with correct
8915 (rs6000_output_function_epilogue): Pad traceback table to word.
8916 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
8917 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
8918 mask64_operand with correct mode.
8919 (FUNCTION_ARG_REGNO_P): Correct parentheses.
8921 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8924 * varasm.c (get_pool_constant_mark): New.
8925 * rtl.h (get_pool_constant_mark): Add prototype.
8926 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
8927 be represented if it has not been output.
8929 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
8931 * combine.c (do_SUBST): Sanity check substitutions of
8932 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
8933 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
8934 CONST_INT into its operand.
8935 (known_cond): Likewise, for ZERO_EXTEND.
8936 * simplify-rtx.c (simplify_unary_operation): Fix condition to
8937 allow for simplification of wide modes. Reject CONST_INTs in
8938 ZERO_EXTEND when their actual mode is not given.
8940 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
8942 * c-decl.c (pushdecl): If no global declaration is found for an
8943 extern declaration in block scope, try a limbo one.
8945 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8948 * c-common.c (pointer_int_sum): Moved from...
8949 * c-typeck.c (pointer_int_sum): ...here.
8950 * c-common.h (pointer_int_sum): Add prototype.
8952 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8955 * c-decl.c (duplicate_decls): Return 0 if issued error about
8958 2002-02-20 Roger Sayle <roger@eyesopen.com>
8959 Jakub Jelinek <jakub@redhat.com>
8962 * tree.c (host_integerp): Ensure that the constant integer is
8963 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
8964 when pos is zero or non-zero respectively. Clarify comment.
8965 * c-format.c (check_format_info_recurse): Fix host_integerp
8966 usage; the pos argument should be zero when assigning to a
8967 signed HOST_WIDE_INT.
8969 2002-02-20 Richard Henderson <rth@redhat.com>
8971 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
8972 of the operand, rather than assuming TImode.
8973 (ix86_expand_binop_builtin): Cope with commutative patterns
8974 using nonimmediate_operand for both operands.
8975 (ix86_expand_timode_binop_builtin): Likewise.
8976 (ix86_expand_store_builtin): Validate operand 1.
8977 (ix86_expand_unop1_builtin): Likewise.
8979 2002-02-20 Philip Blundell <philb@gnu.org>
8982 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
8984 2002-02-20 Richard Henderson <rth@redhat.com>
8987 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
8989 2002-02-20 Tom Tromey <tromey@redhat.com>
8991 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8992 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8993 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8994 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8995 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
8998 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
9000 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
9001 for (const_int 0) in X not just INTVAL.
9003 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
9005 * doc/extend.texi: Avoid or reduce overfull hboxes.
9007 2002-02-20 Diego Novillo <dnovillo@redhat.com>
9009 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
9010 operations if the field does not start at a mode boundary.
9012 2001-02-20 Joel Sherrill <joel@OARcorp.com>
9014 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
9015 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
9016 Also done for -Acpu and -Amachine.
9018 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
9020 * cppinit.c (init_dependency_output): Take deps output file
9021 from -o if none given with -MF. Suppress normal output.
9022 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
9023 * doc/cpp.texi, doc/invoke.texi: Update.
9025 2002-02-19 Zack Weinberg <zack@codesourcery.com>
9027 * toplev.c (output_quoted_string): Write unprintable
9028 characters with octal escapes.
9030 2002-02-19 David Edelsohn <edelsohn@gnu.org>
9032 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
9033 really_call_used[VRSAVE_REGNO] if not Altivec.
9035 2002-02-19 Alan Modra <amodra@bigpond.net.au>
9037 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
9039 (constant_pool_expr_1): Fix formatting.
9040 (rs6000_legitimize_reload_address): Likewise.
9042 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9044 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
9045 now that we have one.
9047 2002-02-19 Zack Weinberg <zack@codesourcery.com>
9049 * tree.h (struct tree_common): Remove aux. Add unused_0 at
9050 end of first block of bitfields (which was only seven bits);
9051 rename dummy to unused_1; remove comment which is no longer true.
9053 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
9055 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
9057 2002-02-19 Philip Blundell <pb@nexus.co.uk>
9060 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
9064 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
9065 arm_is_longcall_p rather than inspecting call-type cookie
9067 (call_value_insn) [TARGET_THUMB]: Likewise.
9069 2002-02-19 Graham Stott <grahams@redhat.com>
9071 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
9073 2002-02-19 David Edelsohn <edelsohn@gnu.org>
9075 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
9076 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
9077 (FP_SAVE_INLINE): Delete.
9079 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
9080 * config/rs6000/eabi.asm: Remove ABI save restore routines.
9081 * config/rs6000/t-ppccomm: Build crtsavres.o.
9082 * config/rs6000/crtsavres.asm: New file.
9084 2002-02-19 Philip Blundell <philb@gnu.org>
9086 * config/arm/arm.c (use_return_insn): Don't reject interrupt
9088 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
9089 (output_return_instruction): Allow interrupt functions to return with
9090 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
9091 (arm_expand_prologue): Subtract 4 before stacking LR in an
9094 2002-02-19 Philip Blundell <pb@nexus.co.uk>
9096 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
9097 decl, not just FUNCTION_DECL.
9098 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
9099 (arm_assemble_integer): Likewise.
9100 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
9103 2002-02-19 matthew green <mrg@eterna.com.au>
9105 * config.gcc (sparc-*-netbsdelf*): Enable target.
9106 (sparc64-*-netbsd*): New target.
9107 * config/sparc/netbsd-elf.h: New file.
9108 * config/sparc/t-netbsd64: New file.
9110 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
9112 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
9114 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
9116 * doc/invoke.texi: explicitly list the style guidelines that
9117 -Weffc++ checks for.
9119 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
9121 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
9123 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
9126 * gcc.c (cpp_unique_options): Treat -o as indicating object file
9127 only if not -E. If -E, pass -o through to the preprocessor.
9129 2002-02-19 Kazu Hirata <kazu@hxi.com>
9131 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
9132 register number with an appropriate macro.
9134 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
9136 * doc/rtl.texi (Constants): Close @code tag.
9138 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
9140 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
9141 ("mmx_uavgv4hi3"): Same.
9142 ("pmulhrwv4hi3"): Same.
9144 * tree-inline.c (walk_tree): Handle vectors.
9146 * c-common.c (constant_expression_warning): Handle vectors.
9147 (overflow_warning): Same.
9149 * sched-deps.c (sched_analyze_2): Handle vectors.
9151 * rtlanal.c (rtx_unstable_p): Handle vectors.
9152 (rtx_varies_p): Same.
9153 (count_occurrences): Same.
9154 (regs_set_between_p): Same.
9155 (modified_between_p): Same.
9156 (modified_in_p): Same.
9157 (volatile_insn_p): Same.
9158 (volatile_refs_p): Same.
9159 (side_effects_p): Same.
9161 (inequality_comparisons_p): Same.
9162 (replace_regs): Same.
9163 (computed_jump_p_1): Same.
9165 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
9167 (inner_mode_array): New.
9168 (copy_rtx): Handle vectors.
9169 (copy_most_rtx): Same.
9170 (rtx_equal_p): Same.
9171 (get_mode_alignment): Adjust for vectors.
9173 * resource.c (mark_referenced_resources): Handle vectors.
9174 (mark_set_resources): Same.
9176 * reload1.c (eliminate_regs): Handle vectors.
9177 (elimination_effects): Same.
9178 (scan_paradoxical_subregs): Same.
9180 * reload.c (subst_reg_equivs): Handle vectors.
9182 * regrename.c (scan_rtx): Handle vectors.
9184 * regclass.c (reg_scan_mark_refs): Handle vectors.
9186 * recog.c (find_single_use_1): Handle vectors.
9188 * local-alloc.c (equiv_init_varies_p): Handle vectors.
9189 (contains_replace_regs): Same.
9190 (memref_referenced_p): Same.
9192 * integrate.c (copy_rtx_and_substitute): Handle vectors.
9193 (subst_constants): Same.
9195 * genattrtab.c (attr_copy_rtx): Handle vectors.
9196 (encode_units_mask): Same.
9197 (clear_struct_flag): Same.
9198 (count_sub_rtxs): Same.
9200 * gcse.c (want_to_gcse_p): Handle vectors.
9201 (oprs_unchanged_p): Same.
9202 (hash_expr_1): Same.
9203 (oprs_not_set_p): Same.
9204 (expr_killed_p): Same.
9205 (compute_transp): Same.
9206 (store_ops_ok): Same.
9208 * function.c (purge_addressof_1): Do not allow paradoxical subregs
9210 (fixup_var_refs_1): Same.
9211 (instantiate_virtual_regs_1): Same.
9213 * fold-const.c (operand_equal_p): Handle vectors.
9215 (rtl_expr_nonnegative_p): Same.
9217 * flow.c (mark_used_regs): Handle vectors.
9219 * df.c (df_uses_record): Handle vectors.
9221 * cselib.c (cselib_subst_to_values): Handle vectors.
9222 (cselib_mem_conflict_p): Same.
9225 * cse.c (canon_reg): Handle vectors.
9227 (cse_process_notes): Same.
9228 (count_reg_usage): Same.
9231 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
9233 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
9235 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
9236 (gen_rtx): Handle CONST_VECTOR.
9237 (gen_const_vector_0): New.
9238 (copy_rtx_if_shared): CONST_VECTORs can be shared.
9239 (reset_used_flags): Same.
9240 (copy_insn_1): Same.
9241 (initializer_constant_valid_p): Handle VECTOR_CST.
9243 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
9245 * doc/rtl.texi (Constants): Document const_vector.
9246 (CONST0_RTX): Update for vectors.
9247 (RTL sharing): Same.
9249 * print-tree.c (print_node): Add case for VECTOR_CST.
9251 * tree.h (TREE_VECTOR_CST_ELTS): New.
9252 (struct tree_vector): New.
9253 (union tree_node): Add vector node.
9254 (build_vector): Add prototype.
9256 * tree.def (VECTOR_CST): New.
9258 * tree.c (build_vector): New.
9260 * expmed.c (make_tree): Handle CONST_VECTOR.
9262 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
9263 (CONST_VECTOR_ELT): New.
9264 (CONST_VECTOR_NUNITS): New.
9266 * machmode.h (GET_MODE_INNER): New.
9267 (DEF_MACHMODE): Accept 8th arg.
9269 * machmode.def: Add 8th argument for vector inner mode.
9270 Add inner vector modes for vectors.
9272 * rtl.def (VEC_CONST): Remove.
9273 (CONST_VECTOR): New.
9275 * expr.c (clear_storage): Allow vectors.
9276 (is_zeros_p): Handle VECTOR_CST.
9278 * varasm.c (output_constant_pool): Handle vectors.
9279 (rtx_const): Add veclo and vechi fields.
9280 (kind): Add RTX_VECTOR.
9281 (decode_rtx_const): Add case for vector.
9283 * config/rs6000/rs6000-protos.h: Add zero_constant.
9285 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
9286 constants. Force easy vector constants into memory.
9287 (easy_vector_constant): New.
9288 (emit_easy_vector_constant): New.
9289 (rs6000_legitimize_reload_address): Do not generate bad reloads on
9292 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
9294 ("altivec_lvxl"): Same.
9295 (altivec_lvebx): Same.
9296 (altivec_lvehx): Same.
9297 (altivec_lvewx): Same.
9298 ("*movv4si_const0"): New.
9299 ("*movv4sf_const0"): New.
9300 ("*movv8hi_const0"): New.
9301 ("*movv16qi_const0"): New.
9303 2002-02-18 Kazu Hirata <kazu@hxi.com>
9305 * config/h8300/h8300.c (notice_update_cc): Use
9308 2002-02-18 Kazu Hirata <kazu@hxi.com>
9310 * config/h8300/h8300.md (divmod patterns): Change the
9311 constraints for operands[1] to register_operand.
9313 2002-02-18 Kazu Hirata <kazu@hxi.com>
9315 * config/h8300/h8300-protos.h: Remove the prototype for
9317 * config/h8300/h8300.c (p_operand): Remove.
9318 * config/h8300/h8300.md: Replace p_operand with
9321 2002-02-18 Philip Blundell <pb@nexus.co.uk>
9323 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
9325 (output_return_instruction): Allow use of LDR to unstack
9326 return addresss even for interrupt handlers or when
9327 interworking. If compiling for ARMv5, use interworking-safe
9328 return instructions by default. Remove duplicated code and
9329 lengthy "strcat" sequences.
9331 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9333 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
9334 (LINK_EH_SPEC): Define.
9335 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
9337 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
9339 * config/s390/s390.c (s390_emit_prologue): Do not set the
9340 frame_related flag for call-clobbered registers.
9342 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
9344 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
9345 (construct_container): Fix handling of SSE operands.
9346 (ix86_expand_builtin): Fix handling of 64bit pointers.
9347 (mmx_maskmovq_rex): New pattern.
9349 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
9351 * regrename.c (kill_set_value): Handle subregs properly.
9353 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
9355 * objc/objc-act.c (handle_impent): Remove leading '*'
9356 from objc_class_name.
9358 2002-02-17 Richard Henderson <rth@redhat.com>
9360 * config/alpha/alpha.c (some_small_symbolic_operand,
9361 some_small_symbolic_operand_1, split_small_symbolic_operand,
9362 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
9363 Handle small SYMBOL_REFs anywhere, not just inside memories.
9364 * config/alpha/alpha-protos.h: Update.
9365 * config/alpha/alpha.h (PREDICATE_CODES): Update.
9366 * config/alpha/alpha.md (small symbolic operand splitter): Update.
9368 2002-02-17 Roland McGrath <roland@frob.com>
9370 * config.gcc (powerpc-*-gnu-gnualtivec*,
9371 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
9372 * config/rs6000/gnu.h: New file.
9373 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
9374 Grok "gnu" in rs6000_abi_name.
9375 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
9376 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
9377 Grok -mcall-gnu analogous to -mcall-linux et al.
9378 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9379 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
9380 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
9382 2002-02-17 Jakub Jelinek <jakub@redhat.com>
9385 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
9388 2002-02-17 Philipp Thomas <pthomas@suse.de>
9390 * config/cris/cris.h: Undefine STARTFILE_SPEC and
9391 ENDFILE_SPEC before (re)defining them.
9393 2002-02-17 Kazu Hirata <kazu@hxi.com>
9395 * config/h8300/h8300.c: Fix formatting.
9396 * config/h8300/h8300.h: Likewise.
9398 2002-02-17 Philipp Thomas <pthomas@suse.de>
9400 * doc/tm.texi: Explain why empty strings should not be
9401 marked for translation.
9403 2002-02-17 Philipp Thomas <pthomas@suse.de>
9405 * final.c (output_operand_lossage): Changed to accept
9406 printf style arguments. Change calls where necessary.
9407 * output.h (output_operand_lossage): Change declaration
9408 accordingly. Update copyright.
9409 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
9410 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
9411 Update copyright date where necessary.
9413 * config/i386/i386.c (print_operand): Likewise. Remove use of
9416 * config/cris/cris.c (cris_operand_lossage): Likewise.
9417 Rename parameter so that exgettext recognizes it as
9418 translatable message.
9419 (LOSE_AND_RETURN): Rename parameter to msgid.
9421 2002-02-17 Kazu Hirata <kazu@hxi.com>
9423 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
9424 hard coded register number with an appropriate macro.
9425 (HARD_REGNO_MODE_OK): Likewise.
9426 (ARG_POINTER_REGNUM): Likewise.
9427 (STATIC_CHAIN_REGNUM): Likewise.
9428 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
9429 * config/h8300/h8300.md (define_constants): Define more
9432 2002-02-17 Philipp Thomas <pthomas@suse.de>
9434 * config/i386/i386.h: Don't mark empty strings for translation.
9436 2002-02-16 H.J. Lu <hjl@gnu.org>
9438 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
9440 2002-02-16 Zack Weinberg <zack@codesourcery.com>
9442 * cppinit.c (merge_include_chains): Check for brack being
9443 NULL before attempting to merge it with qtail.
9445 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9447 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
9450 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
9452 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
9454 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
9456 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
9457 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
9458 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
9460 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9462 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
9463 now only if !TARGET_FIX.
9464 (*movsi_nt_vms_fix): New pattern.
9466 2002-02-16 Douglas B Rupp <rupp@gnat.com>
9468 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
9469 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
9470 (alpha_sa_mask, alpha_sa_size): Reflect above change.
9471 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
9472 (alpha_start_function, alpha_expand_epilogue): Likewise.
9473 (unicosmk_gen_dsib): Likewise.
9475 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9477 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
9479 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
9481 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
9482 check_and_change_labels, s390_final_chunkify): Delete.
9483 (s390_split_branches, s390_chunkify_pool): New functions.
9484 (s390_function_prologue): Call them.
9486 * config/s390/s390.h (S390_REL_MAX): Delete.
9487 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
9489 * config/s390/s390.md (cjump, icjump, jump): Fix length
9490 attribute calculation.
9493 2002-02-15 David Edelsohn <edelsohn@gnu.org>
9495 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
9496 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
9498 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
9500 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
9501 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
9502 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
9504 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
9506 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
9508 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
9510 * reload.c (find_dummy_reload): Check that an output register
9511 is valid for its mode.
9513 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
9515 * combine.c (known_cond): After replacing the REG of a SUBREG, try
9518 * function.c (assign_parms): Demote promoted argument passed by
9519 transparent reference.
9521 2001-02-14 Joel Sherrill <joel@OARcorp.com>
9523 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
9524 -Acpu() and -Amachine() to eliminate warnings.
9526 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
9528 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
9530 2002-02-14 Kazu Hirata <kazu@hxi.com>
9532 * config/h8300/h8300-protos.h: Update the prototype for
9534 * config/h8300/h8300.c (const_costs): Treat SET as a little
9535 more expensive operation.
9536 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
9537 reference to const_costs.
9539 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
9541 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
9543 2002-02-14 Jakub Jelinek <jakub@redhat.com>
9546 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
9547 use arguments from newtype.
9549 2002-02-13 Eric Christopher <echristo@redhat.com>
9551 * config/mips/mips.c (override_options): Add check for march/mipsX
9552 on the same command line. Fix error message in cpu processing.
9553 Remove architecture and ISA checks.
9555 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
9557 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
9559 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
9561 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
9563 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
9565 ("*movv8hi_internal1"): Same.
9566 ("*movv16qi_internal1"): Same.
9567 ("*movv4sf_internal1"): Same.
9569 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
9570 not push_reload for altivec modes.
9572 2002-02-13 Joel Sherrill <joel@OARcorp.com>
9574 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
9575 all RTEMS targets including removal of #includes from config/*/rtems*.h
9576 file and adding them to tm_file setting. Added xm_defines=POSIX to
9578 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
9579 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
9580 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
9581 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
9582 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
9583 config/m68k/rtemself.h: Ditto.
9584 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
9585 config/mips/rtems64.h: Ditto.
9586 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
9587 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
9589 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
9590 config/sparc/rtemself.h: Ditto.
9591 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
9592 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
9593 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
9595 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
9596 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
9597 target made more similar to i386-elf.
9598 * config/i386/t-rtems-i386: Added soft float support and multilibs.
9599 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
9600 be similar to config/m68k/t-m68kelf.
9601 * gthr-rtems.h: Encapsulate with extern "C" for C++.
9603 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
9605 * regmove.c (kill_value): Handle subregs.
9607 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
9609 * i386.md (mul patterns): Allow memory operand to be first;
9610 add expanders where needed; fix constraints.
9611 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
9612 Allow memory operand to be the first.
9614 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
9617 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9620 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
9623 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9625 PR optimization/5547:
9626 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
9627 all valid IA-32 address modes involving non-scaled %ebx and
9628 GOT/GOTOFF as displacement.
9630 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
9632 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
9633 after emitting ltorg insns.
9635 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
9636 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
9637 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
9638 *abssf2): Fix "op_type" attribute.
9640 2002-02-13 Douglas B Rupp <rupp@gnat.com>
9642 * mkconfig.sh: Avoid using a subshell redirect.
9643 ($output.T): Change to $(output)T.
9644 (ENABLE_NLS): Remove unneeded undef.
9646 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
9647 * config/alpha/x-vms (libsubdir): Define.
9649 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
9650 register frame procedures. Optimize retrieving context.
9652 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
9653 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
9654 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
9656 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9658 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
9659 Make same change as for find_base_value.
9661 2002-02-13 Kazu Hirata <kazu@hxi.com>
9663 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
9664 of QImode and SImode.
9666 2002-02-13 Kazu Hirata <kazu@hxi.com>
9668 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
9669 length computation of movsi.
9670 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
9672 2002-02-13 Kazu Hirata <kazu@hxi.com>
9674 * config/h8300/h8300.md (subqi3): Tighten the predicate for
9675 operands[2] to register_operand.
9677 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
9679 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
9681 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
9683 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
9684 for altivec_lvx* and altivec_stvx*.
9685 ("*movv4si_internal"): Add constraint for loading from GPRs.
9686 ("*movv8hi_internal1"): Same.
9687 ("*movv16qi_internal1"): Same.
9688 ("*movv4sf_internal1"): Same.
9690 * config/rs6000/rs6000.c (altivec_register_operand): New.
9692 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
9693 altivec_register_operand.
9695 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
9697 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
9700 2002-02-13 Stan Shebs <shebs@apple.com>
9702 * c-typeck.c (digest_init): Handle vectors.
9703 (really_start_incremental_init): Same.
9704 (pop_init_level): Same.
9705 (process_init_element): Same.
9707 * varasm.c (output_constant): Same.
9709 * expr.c (clear_storage): Same.
9710 (store_constructor): Same.
9712 2002-02-12 Eric Christopher <echristo@redhat.com>
9714 * explow.c (hard_function_value): Add comment explaining
9715 signed/unsigned comparison.
9717 2002-02-12 Jakub Jelinek <jakub@redhat.com>
9719 * jump.c (never_reached_warning): Add finish argument.
9720 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
9721 real insn after end.
9722 * rtl.h (never_reached_warning): Adjust prototype.
9723 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
9724 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
9725 never_reached_warning.
9727 2002-02-12 Graham Stott <grahams@redhat.com>
9729 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
9731 2002-02-12 Kazu Hirata <kazu@hxi.com>
9733 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
9734 logical shifts on H8/300.
9735 (shift_alg_si): Improve several shifts on H8/300.
9736 (get_shift_alg): Likewise.
9738 2002-02-12 Graham Stott <grahams@redhat.com>
9740 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
9742 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9744 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
9745 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
9747 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
9749 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
9750 non-CONST_INT through default_assemble_integer.
9751 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
9752 <case 8>: Abort for CONST_DOUBLE.
9754 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9756 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
9758 * config/pa/pa-linux.h (LIB_SPEC): Delete.
9759 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
9761 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
9763 * config/stormy16/stormy16.md (zero_extendqihi2): New.
9765 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
9767 * regrename.c (regrename_optimize): Don't accept a
9768 part-clobbered register if the replaced register is not part
9771 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
9772 take padding into account when computing the argument value.
9774 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
9776 * combine.c (try_combine): Apply substitutions in
9777 CALL_INSN_FUNCTION_USAGE too.
9779 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
9781 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
9782 __builtin_altivec_abs*.
9785 * config/rs6000/rs6000.h (rs6000_builtins): Add
9786 ALTIVEC_BUILTIN_ABS*.
9788 * config/rs6000/altivec.h: Use const char for builtins expecting
9790 (vec_abs): New versions for C and C++.
9793 2002-02-10 Kazu Hirata <kazu@hxi.com>
9795 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
9798 2002-02-10 Kazu Hirata <kazu@hxi.com>
9800 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
9801 constant definition from h8300.md.
9802 (FRAME_POINTER_REGNUM): Likewise.
9803 * config/h8300/h8300.md (define_constants): Add FP_REG.
9805 2002-02-10 Kazu Hirata <kazu@hxi.com>
9807 * config/h8300/h8300.c (print_operand): Remove redundant code.
9809 2002-02-10 Kazu Hirata <kazu@hxi.com>
9811 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
9812 * config/h8300/h8300.c (byte_reg): Make it static.
9814 2002-02-10 Richard Henderson <rth@redhat.com>
9817 * c-typeck.c (incomplete_type_error): Handle flexible array members.
9819 2002-02-10 Richard Henderson <rth@redhat.com>
9822 * tree.c (append_random_chars): Don't abort if main_input_filename
9825 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
9827 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
9829 2002-02-10 Kazu Hirata <kazu@hxi.com>
9831 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
9832 (pushhi1): Likewise.
9834 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
9836 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
9837 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
9839 2002-02-09 David O'Brien <obrien@FreeBSD.org>
9841 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
9843 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
9845 2002-02-09 Kazu Hirata <kazu@hxi.com>
9847 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
9848 a half of an SImode register on H8/300.
9850 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
9852 * i386.md (movdi_2): Add missing '!'.
9854 2002-02-09 Kazu Hirata <kazu@hxi.com>
9856 * config/h8300/h8300.h: Fix formatting. Remove commented-out
9859 2002-02-09 Kazu Hirata <kazu@hxi.com>
9861 * config/h8300/h8300.md (length): Correct the distance valid
9862 for the short branch.
9864 2002-02-09 Kazu Hirata <kazu@hxi.com>
9866 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
9868 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
9870 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
9871 registers in SImode.
9872 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
9875 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
9878 Contribute sh64-elf.
9879 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
9880 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
9881 (sh_cannot_modify_jumps_p): New function.
9882 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
9883 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
9884 (sh_ms_bitfield_layout_p): New function.
9885 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
9886 Zack Weinberg <zack@codesourcery.com>
9887 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
9888 expand_simple_binop instead of expand_binop.
9889 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
9890 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
9891 use of .quad and .uaquad.
9892 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
9893 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
9894 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9895 * config/sh/sh.md (movdi_const, movdi_const_32bit,
9896 movdi_const_16bit): Make sure all CONSTs have modes.
9897 (sym2PIC): Ditto, but by adjusting all callers.
9898 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
9899 if the prologue calls the SHmedia argument decoder or register
9901 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9902 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
9903 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
9904 (sh_expand_epilogue): Don't emit USE of return target register.
9905 (prepare_move_operands): Legitimize DImode PIC addresses.
9906 (sh_media_register_for_return): Skip tr0, used to initialize the
9908 (sh_expand_prologue): Remove explicit USE of return register.
9909 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
9910 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
9911 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
9912 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
9913 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
9915 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
9916 (MOVI_SHORI_BASE_OPERAND_P): New.
9917 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
9918 (EXTRA_CONSTRAINT_T): Define in terms of them.
9919 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
9920 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
9921 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
9922 alternatives supporting TARGET_REGS.
9923 (UNSPEC_GOTPLT): New constant.
9924 (movdi split): Move incrementing of LABEL_NUSES...
9925 (movdi_const, movdi_const_32bit): Here. Use
9926 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
9927 (movdi_const_16bit): New.
9928 (call, call_value) [flag_pic]: Use GOTPLT.
9929 (call_pop, call_value_pop): New expands.
9930 (call_pop_compact, call_pop_rettramp): New insns.
9931 (call_value_pop_compact, call_value_pop_rettramp): New insns.
9932 (sibcall) [flag_pic]: Use GOT.
9933 (builtint_setjmp_receiver): Remove bogus, unused expand.
9934 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
9935 (*pt, *ptb, ptrel): New insns.
9936 (sym2GOT): Handle DImode GOT.
9937 (sym2GOTPLT, symGOTPLT2reg): New expands.
9938 (sym2PIC): New expand.
9939 (shcompact_return_tramp): Use GOTPLT to return trampoline.
9940 (shcompact_return_tramp_i): Use return register explicitly.
9941 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
9942 disable flag_reorder_blocks.
9943 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
9944 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
9945 clobbers, for clarity.
9946 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
9947 restoring of r0 in macl as MAYBE_DEAD.
9948 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
9949 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
9950 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
9951 alter_subreg all over.
9952 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
9953 reload, instead of emitting instructions that would require
9955 (casesi_load_media): Add missing modes.
9956 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
9957 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
9958 as used if the argument decoder is called.
9959 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
9960 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
9961 Pmode, then extend it to DImode if necessary.
9962 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
9963 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
9964 constants in FPU-enabled SHmedia, let them be loaded from memory.
9965 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
9966 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
9967 Adjust whitespace in assembly output templates.
9968 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
9969 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
9970 mode of if_then_else.
9971 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
9972 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
9974 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
9975 Joern Rennecke <amylaar@redhat.com>
9976 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
9977 (SUBTARGET_CPP_PTR_SPEC): New.
9978 (SUBTARGET_CPP_SPEC): Remove.
9979 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
9980 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9981 Fix typo in previous checkin.
9982 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
9983 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
9984 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
9985 Alexandre Oliva <aoliva@redhat.com>
9986 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
9987 what single FP register can hold for SHmedia target.
9988 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
9989 Alexandre Oliva <aoliva@redhat.com>
9990 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9991 Do not split into SUBREG.
9992 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
9993 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
9994 and added new functions as specified in SH5 ABI r9.
9995 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
9996 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
9998 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
9999 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
10000 gen_consttable_4 and gen_consttable_8. Emit multiple labels
10001 and consttable_window_ends.
10002 2001-06-03 Graham Stott <grahams@redhat,com>
10003 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
10004 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
10005 * config/sh/sh.c (print_operand): Handle floating-point pair,
10006 vector and matrix registers.
10007 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
10008 vector modes into account.
10009 * config/sh/sh.md (movv2sf): Split move between registers into
10011 (movv4sf, movv16sf): Introduce insns that get split only after
10013 * config/sh/shmedia.h: Fix Copyright dates.
10014 * config/sh/ushmedia.h: Likewise. Move loop counter
10015 declarations into conditionals that uses them.
10016 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
10018 * config/sh/sshmedia.h: Fix Copyright dates.
10019 (sh_media_PUTCFG): Fix constraints.
10020 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
10021 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
10022 ptrmemfunc_vbit_in_delta for SH5.
10023 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
10024 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
10025 * invoke.texi: Likewise.
10026 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
10027 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
10028 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
10029 GCC_pop_shmedia_regs_nofpu): New global symbols.
10030 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
10031 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
10032 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
10033 compact function with nonlocal labels.
10034 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
10035 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
10036 (initial_elimination_offset): Account for their stack space.
10037 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
10038 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
10039 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
10040 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
10041 least one of the operands to be a register.
10042 (movv2sf): Likewise. Renamed to movv2sf_i.
10043 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
10044 prepare_move_operands() before emitting SHmedia insns.
10045 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
10046 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
10047 Don't save nor initialize r12. Don't mis-align the stack.
10048 Pad the code with a nop.
10049 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
10051 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
10052 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
10053 [__SHMEDIA__]: Implement.
10054 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
10055 * config/sh/sh.md: Set latency of `pt' closer to reality.
10056 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
10057 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
10058 Set move, load and store type attributes.
10059 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
10060 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
10062 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
10063 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
10064 * config/sh/sh.c (sh_media_register_for_return): New function.
10065 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
10066 branch-target register.
10067 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
10068 * config/sh/sh.md (return_media_i): Use any call-clobbered
10069 branch-target register.
10070 (return_media): If r18 wasn't copied in the prologue, copy it
10072 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
10073 Clear class FP0_REGS.
10074 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
10076 2001-03-08 DJ Delorie <dj@redhat.com>
10077 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
10078 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
10079 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
10080 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
10081 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
10082 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
10083 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
10084 return value correctly for call_cookie.
10085 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
10086 * config/sh/crt1.asm (start): Modified so as to call
10087 ___setup_argv_and_call_main.
10088 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
10089 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
10091 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
10092 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
10093 (STRIP_NAME_ENCODING): Use it.
10094 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
10095 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
10096 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
10097 prepare_scc_operands().
10098 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
10099 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
10100 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
10101 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
10102 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
10103 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
10104 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
10105 used in shcompact_incoming_args.
10106 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
10108 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
10110 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
10111 Adjust accordingly.
10112 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
10113 Simplify. Adjust. Add sanity check.
10114 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
10116 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
10118 (udivsi3, divsi3): Use them.
10119 (force_mode_for_call): New insn.
10120 (call, call_value, sibcall_value): Emit it before SHcompact
10122 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
10123 * config/sh/sh.md (call, call_value, sibcall): Make sure the
10124 call cookie is non-NULL before taking its value.
10125 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
10126 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
10127 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
10128 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
10130 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
10131 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
10132 temporary for stack adjusts. Use MACL and MACH to pass
10133 arguments to shcompact_incoming_args.
10134 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
10136 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
10137 (nested_trampoline): Load static chain address into r1.
10138 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
10139 2001-01-07 Alexandre Oliva <aoliva@redhat.com
10140 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
10141 fp_arith_reg_operand().
10142 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
10143 * config/sh/sh.md (casesi): Sign-extend the first two operands,
10144 and use signed compares for them.
10145 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
10146 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
10147 ones properly aligned.
10148 (find_barrier): Account for extra alignment needed for 8-byte wide
10150 (machine_dependent_reorg): Require a label for the second 4-byte
10151 constant after an 8-byte one.
10152 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
10154 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
10155 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
10156 last_float when switching float modes.
10157 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
10158 auto-increment for general-purpose registers.
10159 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
10161 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
10163 * config/sh/sh.c (sh_builtin_saveregs): Support using all
10164 registers for varargs.
10165 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
10166 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
10167 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
10168 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
10169 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
10170 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
10171 call_cookie accordingly.
10172 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
10173 (SHCOMPACT_BYREF): Likewise.
10174 (SHCOMPACT_FORCE_ON_STACK): New macro.
10175 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
10176 (sh_builtin_saveregs): Likewise.
10177 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10178 shcompact_incoming_args): Use new shift values. Support
10179 sequences of consecutive and non-consecutive pushes/pops.
10180 * config/sh/sh.md (return): Don't explicitly use PR_REG.
10181 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
10182 * config/sh/sh.h (TEXT_SECTION): Define.
10183 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
10184 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
10185 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
10186 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
10187 return values on FPU-enabled SHmedia.
10188 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
10189 FPU-enabled SHmedia.
10190 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
10191 value is returned in a non-FP reg and is not returned by
10193 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
10195 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
10196 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
10197 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
10198 quad-aligned to be passed by callee-copy reference.
10199 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
10200 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
10201 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
10202 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
10203 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
10204 copying low-numbered FP regs to r7 and r8.
10205 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
10206 FP regs to general-purpose regs only if the copy was passed on the
10208 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
10209 copying FP reg to r9.
10210 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
10211 copy FP regs to general-purpose regs only in outgoing calls.
10212 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
10213 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
10215 * config/sh/sh.h (struct sh_args): Document all fields.
10216 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
10217 passed partially on the stack should not consider making
10219 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
10220 stack_regs only for incoming calls. When passing FP args,
10221 make sure there are FP regs available before modifying
10223 (SHCOMPACT_BYREF): Pass double args in general-purpose
10224 registers by reference.
10225 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
10226 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
10227 attempt to generate sibcalls if the caller got any arguments
10229 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
10230 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
10231 to 8-byte boundaries.
10232 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
10233 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
10234 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
10235 stored in the stack.
10236 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
10237 for the offsets to have the ISA bit set.
10238 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
10239 invocation. Use beq instead of bgt to mark end of sequence of
10241 (shcompact_incoming_args): Fix store of r2. Use beq instead of
10242 bgt to mark end of sequence of stores.
10243 * config/sh/sh.c (arith_operand): Don't check whether
10244 CONST_OK_FOR_J for now.
10245 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
10246 instead of long for conversion.
10247 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
10248 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
10249 before passing it to fprintf.
10250 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
10251 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
10252 Call set_fpscr before reading/writing SR.
10253 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
10255 * config/sh/lib1funcs.asm: Add `.align 2' directives before
10257 (FMOVD_WORKS): Define on SH5 with FPU.
10258 (set_fpscr): Define on SH5. Remove separate _fpscr_values
10260 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
10262 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
10263 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
10265 (ia_main_table): Ditto.
10266 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
10267 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10268 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
10269 the definitions from sh.h.
10270 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
10272 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
10273 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
10274 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10275 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
10276 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
10277 Increment LABEL_NUSES.
10279 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
10281 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
10283 * config/sh/elf.h (SIZE_TYPE): Likewise.
10284 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10285 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10286 shcompact_incoming_args): Load switch table addresses using
10288 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10289 (NO_BUILTIN_SIZE_TYPE): Define.
10290 (SIZE_TYPE): Don't define.
10291 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10292 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
10293 definition of __SH5__=32 for -m5-compact-nofpu.
10294 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
10296 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
10297 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
10298 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
10299 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
10300 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
10301 (INSN_LENGTH_ALIGNMENT): Likewise.
10302 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
10303 * config/sh/sh.md (call, call_value, sibcall): Simplify
10304 copying of non-branch-target register.
10305 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
10306 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
10307 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
10308 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
10309 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
10310 floating-point values as structs.
10311 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
10312 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
10313 general-purpose register.
10314 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
10315 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
10316 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
10317 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
10318 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
10319 (ENCODE_SECTION_INFO): Enclose variables and constants in
10321 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
10322 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
10323 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
10324 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
10325 only for LABEL_REFs. For SYMBOL_REFs, prepend
10326 SH_DATALABEL_ENCODING to the symbol name.
10327 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
10329 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
10330 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
10332 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
10333 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
10334 (DATALABEL_REF_P): Don't require CONST.
10335 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
10337 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
10338 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
10340 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
10341 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
10342 Use shallow_copy_rtx and PUT_MODE to change the mode of
10343 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
10344 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
10345 on SHmedia using GENERAL_REGs.
10346 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10347 bltu_media_i): Fix reversion of conditions.
10348 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
10349 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
10350 * config/sh/sh.c (output_far_jump): Save r13 in macl.
10351 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
10352 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
10353 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
10354 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
10355 (GCC_nested_trampoline): Likewise.
10356 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
10357 * config/sh/sh.c (gen_datalabel_ref): Define.
10358 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
10359 (INITIALIZE_TRAMPOLINE): Likewise.
10360 (TRAMPOLINE_ADJUST_ADDRESS): Define.
10361 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
10362 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
10363 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
10364 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
10365 (ic_invalidate): Adjust for SH5.
10366 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
10367 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
10368 _nested_trampoline.
10369 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
10370 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
10371 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
10372 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
10373 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
10374 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
10375 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
10376 * config/sh/sh.c (target_reg_operand): Match only target-branch
10377 registers and pseudos that aren't virtual registers.
10378 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10379 Copy operands that don't match target_reg_operand to pseudos.
10380 (call_media, call_value_media, sibcall_media): Use
10381 target_reg_operand instead of target_operand.
10382 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
10383 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
10384 * config/sh/sh.c (target_reg_operand): Match hardware registers
10385 other than branch-target registers.
10386 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
10387 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
10388 (fpscr_values) [SH5 == 32]: Define.
10389 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
10390 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10391 Handle function addresses coming in SUBREGs.
10392 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
10393 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10394 shcompact_return_trampoline): Use datalabel where appropriate.
10395 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
10396 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
10397 general-purpose register to copy one branch-target register to
10399 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
10400 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
10401 SYMBOL_REFs with VOIDmode.
10402 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10403 bltu_media_i): New insns.
10404 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
10405 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
10406 (INIT_CUMULATIVE_ARGS): Likewise.
10407 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
10408 * machmode.def (V16SFmode): New mode.
10409 * c-common.c (type_for_mode): Support V2SF and V16SF.
10410 * tree.c (build_common_tree_nodes_2): Likewise.
10411 * tree.h (tree_index): Likewise.
10412 * calls.c (emit_call_1): Take args_so_far. Adjust all
10413 callers. Introduce CALL_POPS_ARGS.
10414 * tm.texi (CALL_POPS_ARGS): Document.
10415 * config/sh/crt1.asm: Implement in SHmedia mode.
10416 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
10417 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
10418 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
10419 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
10420 Implement divsi and udivsi in SHmedia mode. Introduce
10421 SHcompact trampolines.
10422 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
10424 (regno_reg_class): Rewrite.
10425 (fp_reg_names): Remove.
10426 (sh_register_names, sh_additional_register_names): New.
10427 (print_operand): Added `u'. Support SUBREGs in addresses.
10428 Add parentheses around shifted CONSTs.
10429 (output_file_start): Output .mode and .abi directives.
10430 (shiftcosts, addsubcosts, multcosts): Adjust.
10431 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
10432 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
10433 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
10434 bytes, not registers. Take into account the need for the
10435 SHcompact incoming args trampoline. Adjust all callers.
10436 (sh_expand_prologue): Take stack_regs into account. Call
10437 incoming args trampoline. Keep stack aligned as per SH5 ABI.
10438 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
10439 stack aligned as per SH5 ABI.
10440 (sh_builtin_saveregs): Support SH5 ABI.
10441 (sh_build_va_list, sh_va_start): Likewise.
10442 (initial_elimination_offset): Take alignment into account.
10443 Compute location of PR according to the SH5 stack frame.
10444 (arith_reg_operand): Reject branch-target registers.
10445 (shmedia_6bit_operand): New.
10446 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
10447 (target_reg_operand): Match DImode only. Accept SUBREGs.
10448 (target_operand): New.
10449 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
10450 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
10451 SIBCALL_REGS for SHmedia.
10452 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
10453 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
10454 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
10455 (TARGET_SWITCHES): New SH5 flags.
10456 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
10457 VALID_REGISTER_P to disable unsupported registers.
10458 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
10459 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
10460 (FUNCTION_ARG_PADDING): Define.
10461 (FASTEST_ALIGNMENT): Adjust.
10462 (SH_REGISTER_NAMES_INITIALIZER): New.
10463 (sh_register_names): Declare.
10464 (DEBUG_REGISTER_NAMES): Define.
10465 (REGISTER_NAMES): Define based on sh_register_names.
10466 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
10467 (sh_additional_register_names): Declare.
10468 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
10469 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
10470 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
10471 (REGISTER_NATURAL_MODE): Define.
10472 (FIRST_PSEUDO_REGISTER): Adjust.
10473 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
10474 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
10475 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
10476 (VECTOR_MODE_SUPPORTED_P): Define.
10477 (REG_CLASS_CONTENTS): Adjust.
10478 (SMALL_REGISTER_CLASSES): Adjust.
10479 (REG_ALLOC_ORDER): Adjust.
10480 (INDEX_REG_CLASS): Adjust.
10481 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
10482 (CONST_OK_FOR_LETTER_P): Adjust.
10483 (PREFERRED_RELOAD_CLASS): Adjust.
10484 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
10485 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
10486 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
10487 (FIRST_FP_PARM_REG): Adjust.
10488 (CALL_POPS_ARGS): Define.
10489 (FUNCTION_ARG_REGNO_P): Adjust.
10490 (struct sh_args): New fields.
10491 (GET_SH_ARG_CLASS): Adjust.
10492 (INIT_CUMULATIVE_ARGS): Adjust.
10493 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
10494 (FUNCTION_ARG_ADVANCE): Adjust.
10495 (FUNCTION_ARG): Adjust.
10496 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
10497 (FUNCTION_ARG_CALLEE_COPIES): Define.
10498 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
10499 (STRICT_ARGUMENT_NAMING): Define.
10500 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
10501 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
10502 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
10503 (SETUP_INCOMING_VARARGS): Adjust.
10504 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
10505 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
10506 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
10507 (SUBREG_OK_FOR_INDEX_P): Adjust.
10508 (EXTRA_CONSTRAINT_S): Update.
10509 (EXTRA_CONSTRAINT_T): New.
10510 (EXTRA_CONSTRAINT): Adjust.
10511 (GO_IF_LEGITIMATE_INDEX): Adjust.
10512 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
10513 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
10514 (MOVE_MAX): Adjust.
10515 (MAX_MOVE_MAX): Define.
10517 (CONST_COSTS): Adjust.
10518 (REGISTER_MOVE_COST): Adjust.
10519 (BRANCH_COST): Adjust.
10520 (TEXT_SECTION_ASM_OP): Adjust.
10521 (DBX_REGISTER_NUMBER): Adjust.
10522 (ASM_OUTPUT_DOUBLE_INT): New.
10523 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
10524 (PREDICATE_CODES): Adjust.
10525 (PROMOTE_MODE): Adjust.
10526 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
10527 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
10528 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
10529 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
10530 (DR0_REG, DR2_REG, DR4_REG): Renumber.
10531 (TR0_REG, TR1_REG, TR2_REG): New.
10532 (XD0_REG): Renumber.
10533 (UNSPEC_COMPACT_ARGS): New.
10534 (type): Added pt and ptabs.
10535 (length): Default to 4 on SHmedia. Default pt length to 12
10536 and 20 on SHmedia32 and SHmedia64, respectively.
10537 (pt): New function unit.
10538 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
10539 Add whitespace between operands of SHmedia instructions.
10541 (adddi3_media, addsi3_media): Adjust constraints.
10542 (subsi3) [SHmedia]: Force operand 1 into a register.
10543 (udivsi3_i1_media, udivsi3_i4_media): New.
10544 (udivsi3): Support SHmedia.
10545 (divsi3_i1_media, divsi3_i4_media): New.
10546 (divsi3): Support SHmedia.
10547 (anddi3, iordi3, xordi3): Adjust constraints.
10548 (zero_extendhidi2, zero_extendqidi2): New.
10549 (extendsidi2, extendhidi2, extendqidi2): New.
10550 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
10551 (pop_e, pop_fpul, pop_4): Likewise.
10552 (movsi_media): Support FP and BT registers.
10553 (movsi_media_nofpu): New. Adjust splits to DImode.
10554 (lduw, ldub): Renamed to zero_extend* above.
10555 (movqi_media): Fix typo.
10556 (movdi_media): Support FP and BT registers.
10557 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
10558 (movdi_const_32bit): New.
10559 (shori_media): Require immediate operand. Use `u' for output.
10560 (movdf_media, movsf_media): Simplified.
10561 (movdf_media_nofpu, movsf_media_nofpu): New.
10562 (movdf, movsf): Adjust
10563 (movv2sf, movv2sf, movv16sf): New.
10564 (beq_media, beq_media_i): Adjust constraints. Don't use
10565 scratch BT register.
10566 (bne_media, bne_media_i): Likewise.
10567 (bgt_media, bgt_media_i): Likewise.
10568 (bge_media, bge_media_i): Likewise.
10569 (bgtu_media, bgtu_media_i): Likewise.
10570 (bgeu_media, bgeu_media_i): Likewise.
10571 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
10572 bunordered): Emit jump insn. Force operands to registers when
10574 (jump_media, jump): Simplify.
10575 (call_compact, call_compact_rettramp): New.
10576 (call_value_compact, call_value_compact_rettramp): New.
10577 (call_media, call_value_media): Simplify.
10578 (sibcall_compact, sibcall_media): New.
10579 (call, call_value): Adjust for SHmedia and SHcompact.
10580 (sibcall, sibcall_value, untyped_call): Likewise.
10581 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
10582 (indirect_jump): Adjust for SHmedia.
10583 (casesi_jump_media): New.
10584 (nop): Re-enable for SHmedia.
10585 (call_site): Restrict to SH1.
10586 (casesi): Adjust for SHmedia.
10587 (casesi_shift_media, casesi_load_media): New.
10588 (return): Explicitly use PR register. Call return trampoline
10590 (return_i): Explicitly use PR register.
10591 (shcompact_return_tramp, shcompact_return_tramp_i): New.
10592 (return_media): Adjust.
10593 (shcompact_incoming_args): New.
10594 (epilogue): Adjust.
10595 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10596 (movstrsi): Disable on SH5.
10597 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
10598 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
10599 (subsf3, subsf3_media): Likewise.
10600 (mulsf3, mulsf3_media, mac_media): Likewise.
10601 (divsf3, divsf3_media): Likewise.
10602 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
10603 (floatsisf2, fux_truncsfsi2): Likewise.
10604 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
10606 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
10607 (cmpunsf_media, cmpsf): Likewise.
10608 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
10609 (abssf2, abssf2_media): Likewise.
10610 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
10611 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
10612 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
10613 (floatsidf2, fix_truncdfsi2): Likewise.
10614 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
10616 (cmpeqdf_media, cmpgtdf_media): Likewise.
10617 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
10618 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
10619 (absdf2, absdf2_media): Likewise.
10620 (extendsfdf2, extendsfdf2_media): Likewise.
10621 (truncsfdf2, truncsfdf2_media): Likewise.
10622 * config/sh/sh64.h: New file.
10623 * config/sh/t-sh64: New file.
10624 * config/sh/shmedia.h: New file.
10625 * config/sh/ushmedia.h: New file.
10626 * config/sh/sshmedia.h: New file.
10627 * configure.in: Added sh64-*-elf.
10628 * configure: Rebuilt.
10629 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
10630 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
10631 (reg_class_from_letter): Use `b' for TARGET_REGS.
10632 (print_operand): Support `%M', `%m', `AND' and
10633 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
10634 (andcosts): Adjust for SHmedia.
10635 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
10637 (target_reg_operand): New function.
10638 * config/sh/sh-protos.h (target_reg_operand): Declare.
10639 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
10640 FP registers on SH5.
10641 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
10643 (TARGET_REGISTER_P): New macro.
10644 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
10645 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
10646 (EXTRA_CONSTRAINT_S): New macro.
10647 (EXTRA_CONSTRAINT): Adjust.
10648 (FLOAT_TYPE_SIZE): Define to 32.
10649 (Pmode): DImode on SHmedia.
10650 (CONST_COSTS): Adjust for SHmedia literals.
10651 (PREDICATE_CODES): Added target_reg_operand.
10652 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
10653 * config/sh/sh.md: Remove all attrs from SHmedia insns.
10654 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
10655 (cmpdi): Accept SHmedia.
10656 (movdicc_false, movdicc_true): New insns.
10657 (movdicc): New expand.
10658 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
10660 (addsi3_media): Match `S' constraint.
10661 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
10662 (negdi2): Expand for SHmedia.
10663 (one_cmpldi2): New expand.
10664 (zero_extendsidi2): Change from expand to insn.
10665 (extendsidi2): Add constraints.
10666 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
10667 LD/ST address. Fix SI immediate loading split.
10668 (movhi_media, movqi_media, lduw, ldub): New insns.
10669 (movhi, movqi): Accept SHmedia.
10670 (shori_media, movdi_media): Relax input constraints. Split
10671 symbolic constants.
10672 (movdf_media, movsf_media): New insn. New split to movdi.
10673 (movdf, movsf): Match on SHmedia.
10674 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
10675 bgeu_media): New insns and splits. New insns with `_i' suffix.
10676 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
10677 (bunordered): New expand.
10678 (jump_compact): Renamed from `jump'.
10679 (jump_media): New insn.
10680 (jump): New expand.
10681 (call_media, call_value_media): New insns.
10682 (call, call_value): Adjust.
10683 (indirect_jump_compact): Renamed from `indirect_jump'.
10684 (indirect_jump_media): New insn.
10685 (indirect_jump): New expand.
10686 (untyped_call, return): Accept SHmedia.
10687 (return_media): New insn.
10688 (prologue, epilogue, blockage): Accept SHmedia.
10689 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10690 (sunordered): New expand.
10691 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
10692 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
10693 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
10694 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
10695 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
10696 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
10697 abssf2_media): New insns.
10698 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
10699 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
10700 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
10701 floatdidf2, floatsidf2_media, fix_truncdfdi2,
10702 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
10703 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
10704 absdf2_media): New insns.
10705 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
10706 (extendsfdf2_media, truncdfsf2_media): New insns.
10707 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
10708 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
10709 * config/sh/sh.h (CONST_OK_FOR_J): Document.
10710 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
10711 * config/sh/sh.md (adddi3): New expand.
10712 (adddi3_media, adddi3z_media): New insns.
10713 (adddi3_compact): Renamed from adddi3.
10714 (addsi3_media): Use add.l r63 to add constant zero.
10715 (subdi3): New expand.
10716 (subdi3_media): New insn.
10717 (subdi3_compact): Renamed from subdi3.
10718 (mulsidi3): New expand.
10719 (mulsidi3_media): New insn.
10720 (mulsidi3_compact): Renamed from mulsidi3.
10721 (umulsidi3): New expand.
10722 (umulsidi3_media): New insn.
10723 (umulsidi3_compact): Renamed from umulsidi3.
10724 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
10725 (ashlsi3, ashrsi3, lshrsi3): Use them.
10726 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
10727 (ashldi3, ashrdi3, lshrdi3): Use them.
10728 (zero_extendsidi2): New expand.
10729 (extendsidi2): New insn.
10730 (movsi_media): New insn. Split to movdi to load constants.
10731 (movsi): Enable for shmedia.
10732 (movdi_media): New insn. Use shori_media to load wide constants.
10733 (short_media): New insn.
10734 (movdi): Enable for shmedia.
10735 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
10736 * config/sh/sh.h (CPP_SPEC): Added `m5'.
10737 (SUBTARGET_CPP_SPEC): Added `!m5'.
10738 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
10739 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
10740 to all other SH variants.
10741 (TARGET_DEFAULT): Set to SH1_BIT.
10742 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
10743 (BITS_PER_WORD): Raise to 64 on shmedia.
10744 (MAX_BITS_PER_WORD): Change to 64.
10745 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
10746 (INT_TYPE_SIZE): Keep as 32.
10747 (UNITS_PER_WORD): Raise to 8 on shmedia.
10748 (MIN_UNITS_PER_WORD): Keep as 4.
10749 (POINTER_SIZE): Raise to 64 on shmedia.
10750 (CONST_OK_FOR_J): New macro.
10751 (CONST_OK_FOR_LETTER_P): Use it.
10752 (processor_type): Add PROCESSOR_SH5.
10753 * config/sh/sh.md: Conditionalize all expands, insns and
10754 splits to TARGET_SH1.
10756 (addsi3_compact): Renamed from...
10757 (addsi3): Now an expand.
10758 (addsi3_media, subsi3_media): New insns.
10759 (subsi3): Don't negate constants with SHmedia.
10761 * hooks.c: New file.
10762 * hooks.h: New file.
10763 * Makefile.in (HOOKS_H): New.
10764 (TARGET_DEF_H): Added $(HOOKS_H).
10765 (OBJS): Added hooks.o.
10766 (cfgcleanup.o, bb-reorder.o): Added target.h.
10767 (hooks.o): Added dependencies.
10768 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
10769 (TARGET_INITIALIZER): this.
10770 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
10771 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
10772 * bb-reorder.c: Include target.h.
10773 (reorder_basic_blocks): Skip if cannot modify jumps.
10774 * cfgcleanup.c: Include target.h.
10775 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
10777 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10779 * config/mips/mips.md (casesi_internal, casesi_internal_di):
10780 Protect jump delay slot instructions with .set noreorder and
10783 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10785 * config/mips/mips.md (casesi_internal_di): Calculate
10786 the index into the target offset table correctly.
10788 2002-02-08 Richard Henderson <rth@redhat.com>
10790 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
10791 * final.c (output_addr_const): Accept and discard SUBREG.
10792 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
10793 mark them unknown instead.
10794 (simplify_subtraction): Handle RTX_UNKNOWN.
10795 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
10797 2002-02-08 David Edelsohn <edelsohn@gnu.org>
10799 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
10801 2002-02-08 Richard Henderson <rth@redhat.com>
10803 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
10805 2002-02-08 Andreas Jaeger <aj@suse.de>
10807 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
10808 * config/i386/t-linux64: New file.
10810 2002-02-08 Jakub Jelinek <jakub@redhat.com>
10812 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
10813 * c-parse.in (compstmt): Clear last_expr_type.
10815 2002-02-07 Richard Henderson <rth@redhat.com>
10817 * loop.c (strength_reduce): Sink final_value when not
10820 2002-02-07 David O'Brien <obrien@FreeBSD.org>
10822 * config/sparc/freebsd.h: Fix mismatched spec {.
10824 2002-02-07 Richard Henderson <rth@redhat.com>
10826 * cfgrtl.c: Include recog.h and insn-config.h.
10827 (keep_with_call_p): Fix general_operand invocation.
10828 * Makefile.in (cfgrtl.o): Update dependencies.
10830 2002-02-07 Kazu Hirata <kazu@hxi.com>
10832 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
10833 comment. Accept HImode only if TARGET_H8300.
10835 2002-02-07 Eric Christopher <echristo@redhat.com>
10837 * config/mips/crtn.asm: Cleanup #ifdefs.
10839 2002-02-07 Eric Christopher <echristo@redhat.com>
10841 * config/mips/crti.asm: Add changes for mips16. mips16 uses
10842 register 7 as RA instead of $31.
10843 * config/mips/crtn.asm: Ditto.
10844 * config/mips/mips.c (mips_move_2words): Add case for
10845 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
10846 (compute_frame_size): Fix typo.
10847 (save_restore_insns): Ditto. Make documentation about using
10848 register $7 as return register more precise.
10849 (mips_expand_epilogue): Fix comment. Add code to work around not
10850 being able to add to the stack pointer directly.
10851 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
10852 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
10855 2002-02-07 Tom Rix <trix@redhat.com>
10857 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
10858 immediates in ldu and stdu DS opcode field.
10859 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
10860 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
10861 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
10863 2002-02-07 Jeff Sturm <jsturm@one-point.com>
10865 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
10866 offset for stack bias.
10868 2002-02-07 H.J. Lu <hjl@gnu.org>
10870 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
10872 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
10874 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
10876 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
10878 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
10879 * i386.c (x86_order_regs_for_local_alloc): New global function.
10880 * i386.h (REG_ALLOC_ORDER): CLeanup.
10881 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
10883 2002-02-07 Richard Henderson <rth@redhat.com>
10885 PR optimization/2463
10886 * alias.c (find_base_value): Recall base values for fixed hard regs.
10887 * loop.c (loop_regs_update): Don't use single_set on non-insns.
10889 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
10891 * config/mips/mips.md (define_delay) [mips16]: Adjust required
10894 2002-02-06 Richard Henderson <rth@redhat.com>
10897 * stmt.c (resolve_operand_name_1): Take more care with mixed
10898 named and unnamed operands.
10900 2002-02-06 Janis Johnson <janis187@us.ibm.com>
10901 Jan Hubicka <jh@suse.cz>
10903 * loop.c (remove_constant_addition): Avoid clobbering a shared
10906 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
10908 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
10909 * config/s390/t-linux64: New file.
10910 * config/s390/libgcc-glibc.ver: New file.
10912 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
10914 * config/s390/linux64.h: Delete file.
10915 * config/s390/s390x.h: New file.
10916 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
10917 as target header file.
10918 * config/s390/linux.h (TARGET_VERSION): Define depending on
10919 DEFAULT_TARGET_64BIT.
10920 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
10921 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
10922 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
10923 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
10924 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
10925 (EXTRA_SPEC): New define.
10926 * config/s390/s390.h (TARGET_VERSION): Define depending on
10927 DEFAULT_TARGET_64BIT.
10928 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
10930 2002-02-06 Jason Merrill <jason@redhat.com>
10932 * c-decl.c (finish_function): Warn about a non-void function with
10933 no return statement and no abnormal exit.
10934 (current_function_returns_abnormally): New variable.
10935 (start_function): Clear it.
10936 (struct c_language_function): Add returns_abnormally.
10937 (push_c_function_context): Save it.
10938 (pop_c_function_context): Restore it.
10939 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
10940 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
10941 an explicit return type.
10942 * c-tree.h: Declare current_function_returns_abnormally.
10943 (C_FUNCTION_IMPLICIT_INT): New macro.
10944 * c-typeck.c (build_function_call): Set it.
10945 (c_expand_return): Set current_function_returns_value even if the
10946 value is erroneous.
10948 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10951 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
10952 unsafe for reevaluation.
10954 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10957 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
10958 EXPR_STMT, but COMPOUND_STMT, recurse into it.
10960 2002-02-06 Richard Henderson <rth@redhat.com>
10962 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
10963 be a general_operand. Dest for function value must be a pseudo.
10965 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10967 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
10968 as SYMBOL_REFs from the constant pool.
10970 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
10972 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
10973 passed by invisible reference.
10975 2002-02-05 Richard Henderson <rth@redhat.com>
10977 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
10979 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
10981 Implement using "base addresses" in insn operands as default.
10982 * config/mmix/mmix.c (mmix_conditional_register_usage): if
10983 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
10984 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
10985 used to read the rtx value.
10986 (mmix_target_asm_function_epilogue): Fix spacing.
10987 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
10988 (mmix_legitimate_address): Ditto.
10989 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
10990 should be loaded with a GETA insn. Don't allocate needless extra
10991 char for nul termination and fix misleading comment.
10992 (mmix_print_operand_address): Handle constants if
10993 TARGET_BASE_ADDRESSES.
10994 (mmix_output_register_setting): Use base addressing if
10995 TARGET_BASE_ADDRESSES and the number of insns is 3.
10996 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
10997 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
10998 to use R as constraint, add LDA to match s.
10999 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
11000 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
11001 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
11002 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
11003 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
11004 order with other fixed registers.
11005 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
11006 other parameter/call-clobbered registers.
11007 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
11008 -mbase-addresses, -mno-base-addresses.
11009 (MMIX Options): Ditto.
11011 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
11013 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
11015 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
11017 * config/rs6000/altivec.h: Change elem to _S_elem.
11019 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
11021 * config/netbsd.h (WCHAR_TYPE): Define.
11022 (WCHAR_TYPE_SIZE): Ditto.
11023 (WINT_TYPE): Ditto.
11024 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
11025 (WCHAR_UNSIGNED): Ditto.
11026 (WCHAR_TYPE_SIZE): Ditto.
11027 (WINT_TYPE): Ditto.
11028 * config/arm/netbsd.h: Likewise.
11029 * config/i386/netbsd-elf.h: Likewise.
11030 * config/i386/netbsd.h: Likewise.
11031 * config/m68k/netbsd-elf.h: Likewise.
11032 * config/m68k/netbsd.h: Likewise.
11033 * config/ns32k/netbsd.h: Likewise.
11034 * config/sparc/netbsd.h: Likewise.
11035 * config/vax/netbsd.: Likewise.
11037 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
11039 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
11040 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
11041 (TARGET_INITIALIZER): this.
11042 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
11043 (BITFIELD_NBYTES_LIMITED): Markup fix.
11044 * tree.h (default_ms_bitfield_layout_p): Declare.
11045 (record_layout_info): Added prev_field.
11046 * tree.c (default_ms_bitfield_layout_p): New fn.
11047 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
11048 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
11049 * stor-layout.c: Include target.h.
11050 (start_record_layout): Initialize prev_field.
11051 (place_field): Handle MS bit-field layout, and disregard
11052 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
11053 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
11054 * Makefile.in (stor-layout.o): Adjust dependencies.
11056 2002-02-05 Jason Merrill <jason@redhat.com>
11058 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
11060 2002-02-05 Andreas Jaeger <aj@suse.de>
11062 * crtstuff.c: Fix comments.
11064 2002-02-05 Richard Henderson <rth@redhat.com>
11067 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
11068 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
11071 * config/mips/mips.c (function_arg): Handle TImode.
11072 (function_arg_advance): Likewise.
11074 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11076 * config/rs6000/altivec.h (vec_step_help): Rename to
11079 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11081 * config/rs6000/altivec.h: Fix typos.
11083 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
11085 * config/arm/netbsd.h: Correct a comment.
11087 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11089 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
11090 building void typed builtins.
11092 * config/rs6000/altivec.h (vec_ld*): Fix typos.
11093 (vec_step): Implement for C++.
11095 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11097 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
11099 2002-02-04 Richard Henderson <rth@redhat.com>
11101 * combine.c (nonzero_bits): Re-introduce special case for
11102 sp/fp/ap wrt REGNO_POINTER_ALIGN.
11104 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11106 * doc/extend.texi: Warn about unsupported usage of altivec
11109 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
11110 (altivec_predicate_*): New.
11112 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
11113 Add C++ version of vec_*() functions.
11115 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
11116 (bdesc_2arg): Remove altivec predicates.
11117 (altivec_expand_builtin): Handle predicates.
11118 (altivec_init_builtins): Handle predicates.
11119 (altivec_expand_predicate_builtin): New.
11121 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11123 * pa.c (DO_FRAME_NOTES): Move forward.
11124 (store_reg): Revise handling of frame notes.
11125 (load_reg): Likewise.
11126 (set_reg_plus_d): Likewise.
11127 (hppa_expand_prologue): Likewise.
11128 (hppa_expand_epilogue): Likewise.
11130 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11132 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
11134 2002-02-04 Jakub Jelinek <jakub@redhat.com>
11136 PR c/4475, c++/3780:
11137 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
11138 * c-common.h (SWITCH_TYPE): Define.
11139 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
11140 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
11141 Rename spareness variable to sparseness.
11142 (expand_end_case_type): Renamed from expand_end_case, use orig_type
11143 if non-NULL instead of TREE_TYPE (orig_index).
11144 * tree.h (expand_end_case_type): Renamed from expand_end_case.
11145 (expand_end_case): Define using expand_end_case_type.
11146 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
11147 to expand_end_case_type.
11148 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
11150 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11152 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
11153 (BIGGEST_ALIGNMENT): Change to 128.
11155 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11157 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
11159 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11161 * pa.md (call_internal_reg_64bit): Remove unused variable.
11163 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
11165 * config/arm/arm.h (machine_function): Add uses_anonymous_args
11167 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
11168 * config/arm/arm.c (current_function_anonymous_args): Delete,
11169 replace uses with cfun->machine->uses_anonymous_args.
11170 (arm_reorg): Do not reset uses_anonymous_args.
11172 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
11173 any geenral register.
11175 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
11177 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
11180 2002-02-04 Richard Henderson <rth@redhat.com>
11182 * combine.c (force_to_mode): Remove STACK_BIAS code.
11183 (nonzero_bits): Likewise. Replace sp/fp special case with
11184 REGNO_POINTER_ALIGN.
11186 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
11187 (HARD_FRAME_POINTER_REGNUM): New.
11188 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
11189 (FIXED_REGS, CALL_USED_REGS): Update.
11190 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
11191 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
11192 (HARD_REGNO_NREGS): Update for SFP.
11193 (STACK_POINTER_OFFSET): Include bias here ...
11194 (FIRST_PARM_OFFSET): ... not here.
11195 (STACK_BIAS): Remove.
11196 (INIT_EXPANDERS): New.
11197 (STARTING_FRAME_OFFSET): Do not include bias.
11198 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
11199 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
11200 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
11201 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
11202 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
11203 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
11204 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
11205 (MUST_SAVE_REGISTER): Likewise.
11206 (sparc_flat_function_prologue): Likewise.
11207 (sparc_flat_function_epilogue): Likewise.
11208 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
11209 (sparc_init_modes): SFP is GENERAL_REGS.
11210 (sparc_builtin_saveregs): SFP does not have bias applied.
11212 2002-02-04 Richard Henderson <rth@redhat.com>
11214 * config/alpha/alpha.c (current_function_is_thunk): Don't check
11215 current_function_is_thunk.
11216 (alpha_sa_mask): Distinguish between current_function_is_thunk
11217 called from ASM_OUTPUT_MI_THUNK and not.
11218 (alpha_does_function_need_gp): Thunks always need gp.
11219 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11220 (alpha_output_mi_thunk_osf): New.
11221 * config/alpha/alpha-protos.h: Update.
11222 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
11224 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
11226 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
11227 function types, not when they're taken away.
11229 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
11231 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
11232 CODE_LABEL and jump table when replacing a table jump with a
11235 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11237 * config/s390/s390-protos.h (legitimize_la_operand,
11238 s390_secondary_input_reload_class, s390_plus_operand,
11239 s390_expand_plus_operand): Add prototypes.
11241 config/s390/s390.c (s390_secondary_input_reload_class,
11242 s390_plus_operand, s390_expand_plus_operand): New functions.
11244 (struct s390_address): New member 'pointer'.
11245 (s390_decompose_address): Compute it.
11246 (legitimate_la_operand_p): Use it.
11247 (legitimize_la_operand): New function.
11248 (movti, movdi, movdf splitters): Call it.
11250 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
11251 (PREDICATE_CODES): Add s390_plus_operand.
11253 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
11254 (la_ccclobber): Allow GENERAL_REGS as output operand.
11256 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
11257 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
11258 (*la_64, *la_31, reload_indi, reload_insi): ... these.
11260 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11262 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
11263 register names for regular asm () construct.
11265 2002-02-04 Jakub Jelinek <jakub@redhat.com>
11267 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
11270 2002-02-04 Jakub Jelinek <jakub@redhat.com>
11272 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
11275 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
11277 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
11278 constant pool to be identical by string address and index.
11280 2002-02-04 Anthony Green <green@redhat.com>
11282 * output.h (SECTION_OVERRIDE): Define.
11283 * varasm.c (named_section): Obey SECTION_OVERRIDE.
11285 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
11287 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
11288 by existing arm*-*-netbsd* (a.out) target.
11289 (ns32k-*-netbsdelf*): Likewise.
11290 (sparc-*-netbsdelf*): Likewise.
11291 (vax-*-netbsdelf*): Likewise.
11293 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
11295 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
11296 headers and libobjc headers.
11298 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
11300 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
11301 (_mingw.h): Remove duplicate include.
11303 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
11305 * config.gcc: Set cpu_type to m68k for 68010, as well.
11306 (m68010-*-netbsdelf*): New...
11307 (m68k*-*-netbsdelf*): ...targets.
11308 * config/m68k/netbsd-elf.h: New file.
11310 2002-02-02 Kazu Hirata <kazu@hxi.com>
11312 * config/h8300/h8300.c (hand_list): Move inside function_arg.
11314 2002-02-02 Kazu Hirata <kazu@hxi.com>
11316 * config/h8300/h8300.c (h8_push_ops): Move inside
11318 (h8_pop_ops): Likewise.
11319 (h8_move_ops): Likewise.
11321 2002-02-02 Kazu Hirata <kazu@hxi.com>
11323 * config/h8300/h8300.c (os_task): Make it static.
11324 (monitor): Likewise.
11325 (pragma_saveall): Likewise.
11327 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
11329 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
11330 constant is a valid sign-extension for Pmode.
11332 2002-02-02 Kazu Hirata <kazu@hxi.com>
11334 * config/h8300/h8300.c: Fix formatting.
11336 2002-02-02 Kazu Hirata <kazu@hxi.com>
11338 * config/h8300/h8300.md: Fix formatting.
11340 2002-02-02 Kazu Hirata <kazu@hxi.com>
11342 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
11343 predicates of operands[1]. Split the patterns for each
11346 2002-02-02 Kazu Hirata <kazu@hxi.com>
11348 * config/h8300/h8300.md (xor patterns): Tighten the predicates
11349 of operands[1] to register_operand.
11351 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
11353 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
11354 * cpphash.c (_cpp_init_hashtable): Similarly.
11355 * cppinit.c (cpp_create_reader): Default the signed_char flag.
11356 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
11357 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
11358 (cpp_handle_option): Handle the new options.
11359 * cpplex.c (cpp_interpret_charconst): Use new flag.
11360 * cpplib.h (struct cpp_options): New member signed_char.
11361 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
11362 (cpp_options): Handle -fsigned-char and -funsigned-char.
11363 (static_specs): Remove signed_char_spec.
11364 (do_spec1): Don't handle %c.
11365 * system.h: Poison SIGNED_CHAR_SPEC.
11366 * tradcif.y (yylex): Use flag_signed_char.
11367 * tradcpp.h (flag_signed_char): New.
11368 * tradcpp.c (flag_signed_char): New.
11369 (main): Handle new command-line options.
11370 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
11372 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
11373 * avr/avr.h: Remove old comments.
11374 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
11375 (CC1_SPEC): Pass -fsigned-char if -mic*.
11376 (SIGNED_CHAR_SPEC): Remove.
11378 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
11380 2002-02-01 Eric Christopher <echristo@redhat.com>
11382 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
11383 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
11384 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
11385 (ASM_OUTPUT_REG_POP): Ditto.
11387 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
11389 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
11392 2002-02-02 Jakub Jelinek <jakub@redhat.com>
11394 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
11396 2002-02-02 Jakub Jelinek <jakub@redhat.com>
11399 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
11402 2002-02-01 Janis Johnson <janis187@us.ibm.com>
11404 * cfganal.c: Include tm_p.h.
11405 (keep_with_call_p): Fix the test that determines if a register holds
11406 the return value of a call.
11408 2002-02-01 DJ Delorie <dj@redhat.com>
11410 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
11411 we are given conflicting registers, switch to the other one we
11412 had allocated for us.
11413 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
11414 as TImode so we know when the "other" register is available.
11416 2002-02-01 David O'Brien <obrien@FreeBSD.org>
11418 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
11421 2002-02-01 Janis Johnson <janis187@us.ibm.com>
11423 * cfganal.c (keep_with_call_p): New function.
11424 (flow_call_edges_add): Prevent splitting a block between a call and
11425 a single-set instruction that should be kept in the same block.
11427 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
11429 * doc/install.texi (avr): Update outdated URL.
11431 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
11433 * config/stormy16/stormy16.md (pushqi): New.
11437 (movhi): Remove stack operands.
11439 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
11440 nonimmediate_nonstack_operand.
11441 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
11443 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
11446 2002-01-31 Jason Merrill <jason@redhat.com>
11448 * Makefile.in (c-parse.c): Handle .output file.
11449 * objc/Make-lang.in (objc-parse.c): Likewise.
11451 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
11453 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
11454 the -me[lb] option is given. Don't output the default flag
11457 2002-01-31 Zack Weinberg <zack@codesourcery.com>
11459 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
11460 the primary source file; this has not been done yet.
11461 * c-decl.c (c_expand_body): Reset input_filename from
11462 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
11464 2002-01-31 Kazu Hirata <kazu@hxi.com>
11466 * rtlanal.c (subreg_regno_offset): Do not use
11467 SUBREG_REGNO_OFFSET.
11468 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
11469 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
11471 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
11473 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
11474 version rather than GNATS version in --version output.
11476 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
11478 * ifcvt.c (noce_process_if_block): Make a copy of the destination
11479 when copying back from a temporary.
11481 2002-01-30 Richard Henderson <rth@redhat.com>
11483 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
11484 and new_dest are the same.
11486 2002-01-30 Richard Henderson <rth@redhat.com>
11489 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
11490 * rtl.c (note_insn_name): Update.
11491 * emit-rtl.c (remove_unnecessary_notes): Kill it.
11492 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
11493 to perform loop rotation.
11494 (expand_exit_loop_top_cond): New.
11495 * tree.h (expand_exit_loop_top_cond): Declare it.
11496 * c-semantics.c (genrtl_while_stmt): Use it.
11497 (genrtl_for_stmt): Likewise.
11499 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
11501 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
11502 arguments to 64-bit boundaries on 64-bit ABIs.
11504 2002-01-30 Steve Ellcey <sje@cup.hp.com>
11506 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
11508 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
11510 * c-decl.c (grokdeclarator): Handle type being a typedef for an
11513 2002-01-30 David O'Brien <obrien@FreeBSD.org>
11515 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
11516 * config/sparc/sparc_bi.h: Remove file.
11517 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
11519 2002-01-30 Richard Henderson <rth@redhat.com>
11521 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
11523 2002-01-30 Zack Weinberg <zack@codesourcery.com>
11525 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
11527 2002-01-30 Jason Merrill <jason@redhat.com>
11529 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
11530 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
11531 (reg_save): Use DW_CFA_offset_extended_sf instead.
11533 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
11535 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11537 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
11540 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
11542 * rs6000.md ("*call_value_local32"): Remove constraints.
11543 ("*call_value_local64"): Same.
11544 ("*call_value_indirect_nonlocal_aix32"): Same.
11545 ("*call_value_nonlocal_aix32"): Same.
11546 ("*call_value_indirect_nonlocal_aix64"): Same.
11547 ("*call_value_nonlocal_aix64"): Same.
11548 ("*call_value_nonlocal_sysv"): Same.
11550 2002-01-29 Richard Henderson <rth@redhat.com>
11552 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
11554 2002-01-29 Richard Henderson <rth@redhat.com>
11556 * expr.c (force_operand): Ignore flag_pic for detecting pic
11558 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
11559 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
11560 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
11561 instead of open-coded loop.
11562 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
11563 be fixed when in use.
11565 2002-01-29 Richard Henderson <rth@redhat.com>
11567 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
11568 * sched-rgn.c (propagate_deps): Update them.
11569 * sched-deps.c (sched_analyze_insn): Update them. Flush the
11570 clobbers list when either gets too long.
11572 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11574 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
11575 and INDEX_REGS the same as GENERAL_REGS.
11576 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
11578 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
11580 * tree.c (build_nonstandard_integer_type): Correct prototype.
11582 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
11584 * config/s390/s390.md (movstrsico, movstrdix_64,
11585 movstrsix_31): Remove, replace by ...
11586 (movstrdi_short, movstrsi_short, movstrdi_long,
11587 movstrsi_long): ... these. New.
11588 (movstrdi, movstrsi): Adapt.
11590 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
11591 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
11592 Remove unnecessary CC clobber.
11593 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
11594 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
11596 (divmoddi4): Don't partially initialize TImode register.
11598 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
11600 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
11602 2002-01-29 Richard Henderson <rth@redhat.com>
11604 * flow.c (print_rtl_and_abort): Remove.
11605 (print_rtl_and_abort_fcn): Remove.
11606 (verify_local_live_at_start): Use dump_bb instead.
11607 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
11608 (verify_wide_reg_1): Return 2 on mode test failure.
11610 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
11612 PR c/3325, c/3326, c/2511, c/3347
11613 * c-decl.c (enum_decl_context): Remove BITFIELD.
11614 (grokdeclarator): Take bitfield width as an input.
11615 Ensure bitfields are given the correct type. Perform
11616 bitfield width validation with build_bitfield_integer_type
11617 rather than waiting for finish_struct.
11618 (grok_typename, grok_typename_in_parm_context, start_decl,
11619 push_parmdecl, grokfield, start_function): Update calls to
11621 (build_bitfield_integer_type): New function.
11622 (finish_struct): Move bitfield validation to grokdeclarator
11623 and build_bitfield_integer_type.
11624 * tree.c (build_nonstandard_integer_type): New function.
11625 * tree.h (build_nonstandard_integer_type): New prototype.
11627 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
11629 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11632 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
11633 don't ignore unrecognized -W* options.
11634 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
11635 * cpplib.h (cpp_handle_option): Adjust prototype.
11636 * c-decl.c (c_decode_options): Pass 0 as last argument to
11640 * gcc.c (cpp_unique_options): Split from cpp_options.
11641 (cpp_options): Source cpp_unique_options.
11642 (default_compilers): Use cpp_unique_options instead of cpp_options
11643 when used together with cc1_options.
11644 (static_specs): Add cpp_unique_options.
11645 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
11646 when used together with cc1_options.
11648 2002-01-29 Kazu Hirata <kazu@hxi.com>
11650 * config/h8300/h8300-protos.h: Update the prototype of
11652 * config/h8300/h8300.c (output_a_shift): Remove an unused
11653 argument 'insn'. Remove redundant code.
11654 * config/h8300/h8300.md: Adust to the new prototype of
11657 2002-01-29 Kazu Hirata <kazu@hxi.com>
11659 * config/h8300/h8300-protos.h: Update the prototypes of
11660 emit_a_rotate and expand_a_rotate.
11661 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
11662 first argument to 'enum rtx_code'.
11663 (expand_a_rotate): Likewise.
11665 2002-01-28 Kazu Hirata <kazu@hxi.com>
11667 * config/h8300/h8300-protos.h: Update the prototype of
11669 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
11671 * config/h8300/h8300.md: Adjust to the new prototype.
11673 2002-01-28 Kazu Hirata <kazu@hxi.com>
11675 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
11678 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
11680 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
11681 is a fixed register before returning pic_offset_table_rtx.
11682 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
11683 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
11685 2002-01-28 Jason Merrill <jason@redhat.com>
11687 * dwarf2.h: Sync with src version.
11689 2002-01-28 Paul Koning <pkoning@equallogic.com>
11691 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
11692 BT_FN_VOID_PTR_VAR.
11693 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
11694 * doc/extend.texi (__builtin_prefetch): Update documentation:
11695 first argument is now const void ptr.
11697 2002-01-28 Kazu Hirata <kazu@hxi.com>
11699 * config/h8300/h8300-protos.h: Remove an unused prototype.
11701 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
11703 * toplev.c (lang_independent_init): Round up identifier size.
11705 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
11707 * config.gcc: Revert previous change.
11709 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
11711 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
11713 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
11715 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
11716 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
11717 other non-elf netbsd config frags.
11718 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
11719 collect2 will does that.
11720 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
11721 shared-lib frobbing will work.
11723 2002-01-28 Kazu Hirata <kazu@hxi.com>
11725 * config/h8300/h8300.h: Fix formatting.
11726 * config/h8300/h8300.md: Likewise.
11728 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
11730 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
11731 the old, removed AAA_standards fix.
11732 * fixinc/fixincl.x: Rebuilt.
11734 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
11736 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
11737 atexit call in crtbegin, hooked in after call to frame_dummy;
11738 register EH before registering __fini__start.
11740 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
11742 * config/rs6000/altivec.h: Remove spurious semicolons.
11744 2002-01-27 Kazu Hirata <kazu@hxi.com>
11746 * config/h8300/h8300.md: Replace dead bit extraction patterns
11747 with ones that work.
11749 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11751 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
11752 if not STRICT_ALIGNMENT.
11753 * rtl.h (MEM_ALIGN): Likewise.
11755 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
11757 * doc/invoke.texi (-fdump-translation-unit): Revert this
11758 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
11760 2002-01-27 Kazu Hirata <kazu@hxi.com>
11762 * config/h8300/h8300.md (define_constants): New.
11763 (anonymous patterns) Use defined constants appropriately.
11765 2002-01-27 Kazu Hirata <kazu@hxi.com>
11767 * config/h8300/h8300.c (function_arg): Remove redundant code.
11769 2002-01-26 Richard Henderson <rth@redhat.com>
11771 * sched-deps.c (reg_pending_uses_head): New.
11772 (reg_pending_barrier): Rename from reg_pending_sets_all.
11773 (find_insn_list): Don't mark inline.
11774 (find_insn_mem_list): Remove.
11775 (add_dependence_list, add_dependence_list_and_free): New.
11776 (flush_pending_lists): Replace only_write param with separate
11777 for_read and for_write parameters. Update all callers. Use
11778 add_dependence_list_and_free.
11779 (sched_analyze_1): Do not add reg dependencies here; just set
11780 the pending bits. Use add_dependence_list.
11781 (sched_analyze_2): Likewise.
11782 (sched_analyze_insn): Replace schedule_barrier_found with
11783 reg_pending_barrier. Add all dependencies for pending reg
11784 uses, sets, and clobbers.
11785 (sched_analyze): Don't add reg dependencies for calls, just
11786 set pending bits. Use regs_invalidated_by_call. Treat
11787 sched_before_next_call as a normal list, not a fake insn.
11788 (init_deps): No funny init for sched_before_next_call.
11789 (free_deps): Free pending mems lists. Don't zero reg_last.
11790 (init_deps_global): Init reg_pending_uses.
11791 (finish_deps_global): Free it.
11792 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
11793 (find_insn_mem_list): Remove.
11794 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
11795 (propagate_deps): Use them. Zero temp mem lists.
11797 2002-01-26 Richard Henderson <rth@redhat.com>
11799 * Makefile.in (CRTSTUFF_CFLAGS): New.
11800 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
11801 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
11802 crtstuff.c instead of alpha assembly version.
11803 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
11804 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
11805 not FORCE_{INIT,FINI}_SECTION_ALIGN.
11806 (__do_global_dtors_aux): Mark used.
11807 (frame_dummy, __do_global_ctors_aux): Mark used.
11808 (fini_dummy, init_dummy): Remove.
11810 * config/alpha/crtbegin.asm: Remove file.
11811 * config/alpha/crtend.asm: Remove file.
11812 * config/alpha/t-crtbe: Remove file.
11813 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
11814 (LINK_EH_SPEC): New.
11816 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
11817 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
11818 calling constructors.
11819 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
11821 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
11822 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
11823 CRT_END_INIT_DUMMY hack.
11824 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
11825 FORCE_{INIT,FINI}_SECTION_ALIGN.
11827 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
11828 FORCE_{INIT,FINI}_SECTION_ALIGN.
11830 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
11831 invocation sequence.
11832 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
11834 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
11835 (FORCE_CODE_SECTION_ALIGN): New.
11837 2002-01-26 Richard Henderson <rth@redhat.com>
11839 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
11841 2002-01-26 Richard Henderson <rth@redhat.com>
11843 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
11844 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
11846 2002-01-26 Kazu Hirata <kazu@hxi.com>
11848 * config/h8300/h8300.md: Remove bit extraction patterns that
11849 cannot be triggered.
11850 Restrict each bit extraction pattern to a variant on which the
11853 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
11855 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
11857 2002-01-26 Kazu Hirata <kazu@hxi.com>
11859 * config/h8300/h8300.md: Remove bit test patterns that cannot
11861 Restrict each bit test pattern to a variant on which the
11864 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11866 * builtins.c (expand_builtin_strncat): Remove redundant check for
11869 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11871 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
11873 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
11876 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11878 * dbxout.c (dbxout_init): Use assemble_name rather than just
11879 stripping off the first character.
11880 (dbxout_source_file): Likewise.
11882 2002-01-25 DJ Delorie <dj@redhat.com>
11884 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
11885 using rtx_equal_p, not by comparing pointers.
11887 2002-01-25 Steve Ellcey <sje@cup.hp.com>
11889 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
11890 for PIC_OFFSET_TABLE_REGNUM.
11891 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
11893 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11895 * config.gcc (x86_64-*-freebsd*): New target.
11896 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
11898 (i[34567]86-*-freebsd*): Don't include svr4.h.
11899 * config/i386/freebsd64.h: New file.
11901 2002-01-25 Douglas B Rupp <rupp@gnat.com>
11903 * config/alpha/x-vms (version): Make static.
11905 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
11906 in previous checkin.
11908 * Makefile.in (install-headers-cp): New target.
11909 * config.gcc (alpha-dec-*vms*): Install headers with
11912 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
11914 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
11917 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11919 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
11920 of compare_tree_int.
11921 (expand_builtin_strncat): Likewise.
11922 * c-decl.c (finish_struct): Use tree_low_cst.
11923 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
11924 * tree.c (compare_tree_int): Likewise.
11926 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
11928 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
11929 adjustments even if they are implemented by more than two insns.
11931 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
11933 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
11934 * df.h (struct ref): Kill B.
11935 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
11937 * basic-block.h (PROP_EQUAL_NOTES): New flag.
11938 * flow.c (propagate_one_insn): Use it.
11939 (mark_used_regs): Handle NIL.
11941 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11943 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
11946 2002-01-25 David Edelsohn <edelsohn@gnu.org>
11948 * rs6000.md (prefetch): Make address V4SI mode so that the address
11949 is restricted to legitimate form for instruction.
11951 2002-01-25 Bob Wilson <bob.wilson@acm.org>
11953 * doc/install.texi (xtensa-*-elf): New target.
11954 (xtensa-*-linux*): New target.
11955 * doc/contrib.texi: Add myself.
11957 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
11959 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
11960 purpose register to hold an SImode (or smaller) value.
11962 2002-01-25 Jakub Jelinek <jakub@redhat.com>
11964 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
11966 * crtstuff.c: Likewise.
11968 2002-01-25 Kazu Hirata <kazu@hxi.com>
11970 * config/h8300/h8300.md (negation patterns): Tighten
11971 predicates to register_operand.
11973 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
11975 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
11978 * builtins.c (expand_builtin_prefetch): Same.
11980 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11982 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
11985 2002-01-24 Kazu Hirata <kazu@hxi.com>
11987 * config/h8300/h8300.c (print_operand): Remove support for
11988 operand character 'A'.
11989 * config/h8300/h8300.md (three anonymous patterns): Replace
11990 operand character 'A' with either 'T' or 'S'.
11992 2002-01-24 Kazu Hirata <kazu@hxi.com>
11994 * config/h8300/h8300.c (print_operand): Remove support for
11995 operand character 'U'.
11997 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
11999 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
12001 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
12003 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
12004 values to be assigned to the stack pointer.
12006 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
12008 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
12009 to const_double needs to be done right for big-endian systems.
12011 2002-01-24 Jason Merrill <jason@redhat.com>
12014 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
12015 to can_throw_internal.
12017 2002-01-23 Richard Henderson <rth@redhat.com>
12019 * fold-const.c (fold): Change UINT_MAX test to check vs precision
12020 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
12022 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12024 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
12025 (symGOT2reg): Use them, then set as GOT value as unchanging.
12026 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
12027 as a temporary, if possible.
12028 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
12029 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
12031 2002-01-23 Kazu Hirata <kazu@hxi.com>
12033 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
12034 accept to accept 0x80 as operands[2].
12036 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12038 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
12040 2002-01-23 Richard Henderson <rth@redhat.com>
12042 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
12044 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
12046 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
12047 (parmlist_or_identifiers_1): Verify that only a parmlist follows
12050 2002-01-23 Richard Henderson <rth@redhat.com>
12052 * expr.c (move_by_pieces_1): Extend size before negation.
12054 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
12055 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
12056 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
12057 * config/m68k/t-m68kelf: Likewise.
12059 2002-01-23 Bob Wilson <bob.wilson@acm.org>
12061 * config/xtensa/elf.h: New file.
12062 * config/xtensa/lib1funcs.asm: New file.
12063 * config/xtensa/lib2funcs.S: New file.
12064 * config/xtensa/linux.h: New file.
12065 * config/xtensa/t-xtensa: New file.
12066 * config/xtensa/xtensa-config.h: New file.
12067 * config/xtensa/xtensa-protos.h: New file.
12068 * config/xtensa/xtensa.c: New file.
12069 * config/xtensa/xtensa.h: New file.
12070 * config/xtensa/xtensa.md: New file.
12071 * config.gcc (xtensa-*-elf*): New target.
12072 (xtensa-*-linux*): New target.
12073 * cse.c (canon_hash): Compare rtx pointers instead of register
12074 numbers. This is required for the Xtensa port.
12075 * integrate.c (copy_insn_list): Handle case where the static
12076 chain is in memory and the memory address has to be copied to
12078 * doc/invoke.texi (Option Summary): Add Xtensa options.
12079 (Xtensa Options): New node.
12080 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
12082 2002-01-23 Zack Weinberg <zack@codesourcery.com>
12084 * diagnostic.c (internal_error): Do ICE suppression only
12085 when ENABLE_CHECKING is not defined.
12087 * c-typeck.c (require_complete_type): Return error_mark_node
12088 if type is error_mark_node.
12090 2002-01-23 Janis Johnson <janis187@us.ibm.com>
12092 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
12093 -Os and issue a warning.
12095 2002-01-23 Zack Weinberg <zack@codesourcery.com>
12097 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
12098 current (lack of) need for host configuration by hand.
12100 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
12101 references. Documentation of some target macros moved from
12102 hostconfig.texi to tm.texi.
12104 2002-01-23 Will Cohen <wcohen@redhat.com>
12106 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
12109 2002-01-23 Kazu Hirata <kazu@hxi.com>
12111 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
12114 2002-01-23 Jason Merrill <jason@redhat.com>
12116 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
12118 * function.c (assign_parms): Don't put args of inline functions
12119 into registers when not optimizing.
12121 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
12123 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
12124 (prologue_use): New pattern.
12125 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
12126 preference to gen_rtx_USE.
12127 (thumb_expand_prologue): Use gen_prologue_use in preference to
12129 (thumb_expand_epilogue): Use gen_prologue_use in preference to
12132 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
12134 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
12136 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
12139 * doc/extend.texi: Correct documentation of __alignof__.
12141 2002-01-22 Zack Weinberg <zack@codesourcery.com>
12143 * params.h: Rename arguments of DEFPARAM so that it will be
12144 recognized as a translation keyword.
12146 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12148 * extend.texi: Document altivec functions.
12149 Fix N-bit adjectives in X86 builtin documentation.
12151 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
12153 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
12154 auto_inc_dec values.
12156 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
12158 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
12160 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
12162 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
12164 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
12166 2002-01-22 Richard Henderson <rth@redhat.com>
12168 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
12169 copy_insn not copy_rtx.
12171 2002-01-23 Alan Modra <amodra@bigpond.net.au>
12173 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
12174 "nonzero" as that might add "1" bits. Ensure "constop" is
12175 properly sign extened.
12176 (force_to_mode): Tweak for sign extended constop.
12178 2002-01-22 Richard Henderson <rth@redhat.com>
12180 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
12181 for_each_rtx instead of assuming we're already looking at the MEM.
12182 (split_small_symbolic_mem_operand): Likewise.
12183 * config/alpha/alpha.h (PREDICATE_CODES): Update.
12184 * config/alpha/alpha.md (small symbolic memory splitters): Update.
12186 2002-01-22 Richard Henderson <rth@redhat.com>
12188 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
12189 sequence number for the literal.
12190 (divmoddi_internal_er): Likewise.
12192 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
12195 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
12196 in LIBICONV variable.
12197 * configure: Regenerated.
12199 2002-01-22 Krister Walfridsson <cato@df.lth.se>
12201 * dependence.c (build_def_use): Remove array_idx.
12203 * dwarfout.c (last_filename): Remove.
12204 (output_compile_unit_die): Remove last_filename.
12206 2002-01-22 Roger Sayle <roger@eyesopen.com>
12207 Richard Henderson <rth@redhat.com>
12210 * fold-const.c (fold): Optimize unsigned comparisons against
12211 UINT_MAX (and similar unsigned constants).
12213 2002-01-22 Janis Johnson <janis187@us.ibm.com>
12215 * Makefile.in (loop.o): Depend on OPTABS_H.
12216 * loop.c (emit_prefetch_instructions): Check the prefetch operand
12217 against the predicate.
12220 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
12221 for the address operand.
12223 2002-01-22 Richard Henderson <rth@redhat.com>
12225 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
12227 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
12230 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
12231 preprocessor flags.
12233 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
12235 * config.gcc (x86_64-*-netbsd*): New target.
12236 * config/i386/netbsd64.h: New file.
12238 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12240 * regrename.c (kill_value): Fix typo.
12242 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12244 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
12246 * config/rs6000/rs6000.h: Same.
12248 * function.c (instantiate_virtual_regs): Remove
12249 STARTING_FRAME_PHASE.
12250 (assign_stack_local_1): Same.
12251 Calculate frame phase.
12253 2002-01-22 Nick Clifton <nickc@redhat.com>
12255 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
12256 variable declaration to outer scope in order to simplify
12258 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
12259 arm_hard_regno_mode_ok.
12260 * config/arm/arm-protos.h: Add a prototype for
12261 arm_hard_regno_mode_ok.
12262 * config/arm/arm.c (soft_df_operand): Remove now redundant
12263 check for DImode values using IP_REGNUM.
12264 (nonimmediate_soft_df_operand): Remove now redundant check for
12265 DImode values using IP_REGNUM.
12266 (arm_hard_regno_mode_ok): New function. New check: make sure
12267 that DImode values are not stored in IP_REGNUM.
12269 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
12271 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
12273 2002-01-22 Jason Merrill <jason@redhat.com>
12275 * c-semantics.c (genrtl_compound_stmt): Only check nesting
12276 consistency if this COMPOUND_STMT is scoped.
12278 2002-01-22 Kazu Hirata <kazu@hxi.com>
12280 * predict.c: Fix formatting.
12281 * print-tree.c: Likewise.
12282 * protoize.c: Likewise.
12283 * real.h: Likewise.
12285 * sbitmap.h: Likewise.
12286 * scan.c: Likewise.
12287 * sched-deps.c: Likewise.
12288 * sched-vis.c: Likewise.
12289 * sdbout.c: Likewise.
12290 * sibcall.c: Likewise.
12292 * ssa-ccp.c: Likewise.
12293 * ssa-dce.c: Likewise.
12294 * stmt.c: Likewise.
12295 * stor-layout.c: Likewise.
12296 * system.h: Likewise.
12298 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12300 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
12301 if fits in bounds of base type.
12303 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
12304 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
12305 (add_bound_info, default): If can't find a context, make a
12307 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
12309 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
12311 * c-typeck.c (parser_build_binary_op): If result from
12312 build_binary_op is ERROR_MARK just return error_mark_node without
12313 further processing.
12315 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
12317 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
12318 Split a.out-specific bits into...
12319 * config/netbsd-aout.h: ...this.
12320 * config/netbsd-elf.h: New file.
12321 * config/alpha/netbsd-elf.h: Remove.
12322 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
12323 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
12324 (STARTFILE_SPEC): Remove redundant definition.
12325 (ENDFILE_SPEC): Likewise.
12326 (LINK_SPEC): Likewise.
12327 (CPP_SPEC): Likewise.
12328 (ASM_SPEC): Likewise.
12329 (LIB_SPEC): Likewise.
12330 (SWITCH_TAKES_ARG): Likewise.
12331 (TARGET_MEM_FUNCTIONS): Likewise.
12332 (CPP_PREDEFINES): Redefine.
12333 (ASM_FINAL_SPEC): Remove redefinition.
12334 (ASM_COMMENT_START): Redefine.
12335 (FUNCTION_PROFILER): Define.
12336 (TARGET_VERSION): Redefine.
12337 Comment and formatting cleanup.
12338 * config/i386/netbsd.h: Include <netbsd-aout.h>.
12339 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
12340 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
12341 big- or little-endian.
12342 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
12343 * config.gcc (*-*-netbsd*): Add definitions common to all
12345 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
12346 gnu_ld definitions. Add netbsd-elf.h to and remove
12347 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
12348 tmake_file, and don't lose previous tmake_file contents.
12349 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
12350 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
12351 gnu_ld definitions. Add netbsd-elf.h to tm_file.
12352 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
12353 (mipsel-*-netbsd*): Rename this to...
12354 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
12355 mips/little.h to tm_file for mips*el-*.
12356 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
12357 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
12358 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
12360 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
12362 * pa-protos.h (reg_before_reload_operand): New function prototype.
12363 * pa.c (reg_before_reload_operand): New function implementation.
12364 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
12365 contraints to "*m".
12367 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12369 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
12371 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
12373 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
12374 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
12375 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
12376 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
12377 (ENDFILE_SPEC): Undefine.
12378 (STARTFILE_SPEC): Redefine for PA.
12380 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12382 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
12384 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
12386 * config.gcc: Add entries to supported PowerPC --with-cpu
12389 2002-01-21 Jakub Jelinek <jakub@redhat.com>
12391 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
12392 true for 64-bit mode only SSE registers in 32-bit mode.
12394 2002-01-21 Kazu Hirata <kazu@hxi.com>
12396 * unwind-dw2.c: Fix formatting.
12397 * unwind-dw2-fde.c: Likewise.
12398 * unwind-dw2-fde.h: Likewise.
12399 * unwind-pe.h: Likewise.
12400 * varasm.c: Likewise.
12401 * varray.h: Likewise.
12403 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
12405 Remove workaround for register stack overwrite bug in mmix.
12406 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
12407 support for TARGET_REG_STACK_FILL_BUG.
12408 * config/mmix/mmix.h: Remove member has_call_without_parameters.
12409 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
12411 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
12412 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
12413 -mno-reg-stack-fill-bug-workaround.
12414 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
12415 machine member has_call_without_parameters.
12416 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
12417 -mreg-stack-fill-bug-workaround and
12418 -mno-reg-stack-fill-bug-workaround.
12419 (MMIX Options): Ditto.
12421 2002-01-21 Kazu Hirata <kazu@hxi.com>
12423 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
12425 Remove redundant code.
12427 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
12429 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
12430 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12431 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12432 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
12433 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
12434 out target macro definitions and non-target-specific comments
12435 mostly taken from old versions of the manual.
12437 2002-01-20 Kazu Hirata <kazu@hxi.com>
12439 * config/h8300/h8300.h: Fix comment formatting.
12440 * config/ia64/aix.h: Likewise.
12441 * config/ia64/ia64-protos.h: Likewise.
12442 * config/ia64/ia64.c: Likewise.
12443 * config/ia64/ia64.h: Likewise.
12444 * config/ia64/ia64intrin.h: Likewise.
12445 * config/ia64/linux.h: Likewise.
12446 * config/ia64/unwind-aix.c: Likewise.
12447 * config/ia64/unwind-ia64.c: Likewise.
12449 2002-01-20 Kazu Hirata <kazu@hxi.com>
12451 * config/h8300/h8300.c: Revise comments about shift code.
12453 2002-01-20 Kazu Hirata <kazu@hxi.com>
12455 * config/h8300/h8300.c (function_arg): Update a comment.
12457 2002-01-20 Kazu Hirata <kazu@hxi.com>
12459 * config/h8300/h8300.md: Update the comments at the beginning
12462 2002-01-20 Kazu Hirata <kazu@hxi.com>
12464 * config/i370/i370.c: Fix comment formatting.
12465 * config/i370/i370.h: Likewise.
12466 * config/i370/i370.md: Likewise.
12467 * config/i370/linux.h: Likewise.
12469 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12471 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
12473 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
12474 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
12475 in incomplete case.
12477 2002-01-20 Graham Stott <grahams@redhat.com>
12479 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
12481 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
12483 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
12485 2002-01-19 Tom Rix <trix@redhat.com>
12487 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
12489 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
12491 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
12493 * function.c (assign_stack_local_1): Adjust x_frame_offset with
12494 STARTING_FRAME_PHASE.
12495 (STARTING_FRAME_PHASE): New.
12496 (instantiate_virtual_regs): Check saneness of
12497 STARTING_FRAME_PHASE.
12499 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
12501 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12503 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
12505 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
12507 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
12508 be used for bootstrapping GCC 3.0.
12510 2002-01-18 Kazu Hirata <kazu@hxi.com>
12512 * config/h8300/h8300.md: Fix an insn length.
12514 2002-01-18 Kazu Hirata <kazu@hxi.com>
12516 * bitmap.h: Fix comment formatting.
12517 * combine.c: Likewise.
12518 * cppfiles.c: Likewise.
12519 * c-pragma.h: Likewise.
12520 * c-typeck.c: Likewise.
12522 * dwarf2out.c: Likewise.
12523 * function.c: Likewise.
12525 * genattrtab.c: Likewise.
12526 * gthr-win32.h: Likewise.
12527 * haifa-sched.c: Likewise.
12528 * predict.c: Likewise.
12529 * rtlanal.c: Likewise.
12531 * unwind-dw2-fde.h: Likewise.
12532 * unwind-pe.h: Likewise.
12533 * vmsdbgout.c: Likewise.
12535 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12537 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
12538 if type_required and passed decl.
12540 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
12542 * config.gcc (cpu_type): Include altivec.h in powerpc
12546 * config/rs6000/altivec.h: New.
12548 2002-01-17 David Edelsohn <edelsohn@gnu.org>
12550 * doc/install.texi (*-ibm-aix*): Update assembler and exception
12551 handling information.
12552 * doc/trouble.texi (Interoperation): Add libstdc++ information
12554 (Misunderstandings): Add template instantiation and static template
12555 member information for AIX.
12557 2002-01-17 Jason Merrill <jason@redhat.com>
12559 * dbxout.c (dbxout_type): Support const and volatile.
12561 * except.c (add_partial_entry): Remove backwards compatibility code.
12562 (end_protect_partials): Likewise.
12564 2002-01-17 Jakub Jelinek <jakub@redhat.com>
12566 * config/ia64/ia64.md (prologue_use): New.
12567 * config/ia64/ia64.c (ia64_expand_prologue): Use
12568 gen_prologue_use instead of gen_rtx_USE.
12569 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
12570 as CODE_FOR_pred_rel_mutex.
12571 (ia64_sched_reorder2): Likewise.
12573 2002-01-16 Eric Christopher <echristo@redhat.com>
12575 * config/mips/r3900.h: Reformat.
12576 (SUBTARGET_CPP_SIZE_SPEC): Remove.
12577 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
12578 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
12579 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
12580 * config/mips/t-elf: Remove mips3 multilib.
12582 2002-01-16 H.J. Lu <hjl@gnu.org>
12584 * config/mips/linux.h: Include "mips/abi64.h".
12586 2002-01-16 H.J. Lu <hjl@gnu.org>
12588 * config/mips/t-linux: New.
12590 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
12592 * config/mips/linux.h: Don't include "gofast.h".
12593 (INIT_SUBTARGET_OPTABS): Removed.
12595 2002-01-16 Kazu Hirata <kazu@hxi.com>
12597 * config/h8300/h8300-protos.h: Replace emit_a_shift with
12599 * config/h8300/h8300.c: Likewise.
12600 * config/h8300/h8300.md: Likewise.
12602 2002-01-16 Kazu Hirata <kazu@hxi.com>
12604 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
12605 spaces after an opcode name.
12606 (pushqi1_h8300hs): Likewise.
12607 (pushhi1_h8300hs): Likewise.
12609 2002-01-16 Kazu Hirata <kazu@hxi.com>
12611 * doc/extend.texi: Replace "option" with "attribute"
12614 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12616 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
12617 (and:DI () (const_int -8)).
12618 (split_small_symbolic_mem_operand): Split
12619 (mem (and:DI () (const_int -8)).
12621 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12624 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
12625 same way as TYPE_IMUL.
12626 (ultrasparc_sched_reorder): Likewise.
12627 * config/sparc/sparc.md (type): Add comment to update
12628 ultrasparc_sched_reorder when making changes.
12630 2002-01-16 Kazu Hirata <kazu@hxi.com>
12632 * doc/invoke.texi: Change the dump file name of block
12633 reordering pass from 28.bbro to 29.bbro.
12634 Mention -dk option.
12636 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
12638 * i386.md (minsf splitter): Fix pasto.
12640 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
12642 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
12643 to frame pointer initialisation instruction.
12644 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
12645 initialisation instruction.
12646 (soft_df_operand): Do not accept the IP register.
12647 (nonimmediate_soft_df_operand): Do not accept the IP register.
12649 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12652 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
12653 MASK_V8 being both set.
12655 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
12657 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
12658 insn for GOT register; add REG_MAYBE_DEAD notes instead.
12659 config/s390/s390.md (call, call_value): Add GOT register to
12660 CALL_INSN_FUNCTION_USAGE where needed.
12661 (call_exp, call_value_exp): New.
12663 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
12665 * config/arm/arm.c: General formatting tidy up.
12667 2002-01-16 Graham Stott <grahams@redhat.com>
12669 * calls.c (try_to_integrate): Use "(size_t)" intermediate
12670 cast and when casting an integer literal to "rtx" pointer.
12671 (expand_call): Likewise.
12672 * flow.c (try_pre_increment): Likewise.
12673 (find_use_as_address): Likewise.
12674 * integrate.c (expand_iline_function): Likewise.
12675 * regmove.c (try_auto_increment): Likewise.
12677 2002-01-16 Graham Stott <grahams@redhat.com>
12679 * sched-rgn.c (passed): Use sbitmap_free.
12680 (header): Likewise.
12682 (in_queue): Likewise.
12683 (in_stack): Likewise.
12685 2002-01-15 Eric Christopher <echristo@redhat.com>
12687 * flow.c (propagate_one_insn): Change to use fatal_insn.
12689 2002-01-15 Kazu Hirata <kazu@hxi.com>
12691 * expmed.c (extract_fixed_bit_field): Remove unused code.
12692 * system.h: Poison SLOW_ZERO_EXTEND.
12693 * doc/tm.texi: Remove.
12694 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
12695 * config/arm/arm.h: Likewise.
12696 * config/avr/avr.h: Likewise.
12697 * config/clipper/clipper.h: Likewise.
12698 * config/convex/convex.h: Likewise.
12699 * config/d30v/d30v.h: Likewise.
12700 * config/dsp16xx/dsp16xx.h: Likewise.
12701 * config/elxsi/elxsi.h: Likewise.
12702 * config/fr30/fr30.h: Likewise.
12703 * config/h8300/h8300.h: Likewise.
12704 * config/i370/i370.h: Likewise.
12705 * config/i386/i386.h: Likewise.
12706 * config/m68k/m68k.h: Likewise.
12707 * config/mips/mips.h: Likewise.
12708 * config/ns32k/ns32k.h: Likewise.
12709 * config/pdp11/pdp11.h: Likewise.
12710 * config/pj/pj.h: Likewise.
12711 * config/s390/s390.h: Likewise.
12712 * config/sh/sh.h: Likewise.
12713 * config/stormy16/stormy16.h: Likewise.
12714 * config/v850/v850.h: Likewise.
12715 * config/vax/vax.h: Likewise.
12716 * config/we32k/we32k.h: Likewise.
12718 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
12720 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
12721 (altivec_lvsl): Change constraint to b.
12722 (altivec_lvsr): Same.
12723 (altivec_lvebx): Same.
12724 (altivec_lvehx): Same.
12725 (altivec_lvewx): Same.
12726 (altivec_lvxl): Same.
12727 (altivec_lvx): Same.
12728 (altivec_stvx): Add parallel.
12729 (altivec_stvxl): Same.
12730 (altivec_stvehx): Same.
12731 (altivec_stvebx): Same.
12732 (altivec_stvebx): Same.
12734 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
12736 * config.gcc: Change altivec.h to altivec-defs.h.
12738 * config/rs6000/altivec.h: Delete.
12740 * config/rs6000/altivec-defs.h: Add.
12742 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
12744 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
12747 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
12748 less than or equal to eight bytes.
12750 * vax.md (andsi3): Remove constraints and change SET destination
12751 operand type to nonimmediate_operand.
12752 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
12753 when it is a CONST_INT.
12755 2002-01-15 Jason Merrill <jason@redhat.com>
12757 * c-common.def (FILE_STMT): New code.
12758 * c-common.c (statement_code_p): It's a statement.
12759 * c-common.h (stmt_tree_s): Add x_last_filename.
12760 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
12761 (last_expr_filename): New macro.
12762 * c-semantics.c (begin_stmt_tree): Initialize it.
12763 (add_stmt): If the filename changed, also insert a
12765 (expand_stmt): Handle seeing one.
12767 2002-01-15 Eric Christopher <echristo@redhat.com>
12769 * flow.c (propagate_one_insn): Add error message and print out
12770 insn for debugging.
12772 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
12774 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
12775 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
12776 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
12777 TRAMPOLINE_ALIGNMENT.
12778 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
12780 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
12781 PCC_BITFIELD_TYPE_MATTERS.
12782 * config/interix.h (STDC_VALUE): Remove. Use
12783 STDC_0_IN_SYSTEM_HEADERS.
12784 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
12785 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
12786 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
12788 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
12790 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
12791 not work on this platform currently.
12793 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
12795 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
12796 readonly_warning in _().
12798 2002-01-15 Douglas B Rupp <rupp@gnat.com>
12800 * gcc.c (delete_if_ordinary): Backout previous change.
12802 2002-01-15 Kazu Hirata <kazu@hxi.com>
12804 * config/h8300/h8300.c (print_operand): Remove support for
12805 unused operand characters.
12807 * read-rtl.c: Fix formatting.
12808 * real.c: Likewise.
12809 * recog.c: Likewise.
12810 * regclass.c: Likewise.
12811 * regmove.c: Likewise.
12812 * reg-stack.c: Likewise.
12813 * reload1.c: Likewise.
12814 * rtlanal.c: Likewise.
12816 2002-01-15 Kazu Hirata <kazu@hxi.com>
12818 * config/i386/i386.c: Fix formatting.
12820 2002-01-15 Jakub Jelinek <jakub@redhat.com>
12822 * c-typeck.c (process_init_element): Don't save_expr
12823 COMPOUND_LITERAL_EXPR if just its initializer will be used.
12825 2002-01-15 David Edelsohn <edelsohn@gnu.org>
12827 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
12828 emit optional traceback table if optimize_size or TARGET_ELF.
12829 * config/rs6000/rs6000.md (prefetch): New.
12831 2002-01-15 Andreas Jaeger <aj@suse.de>
12833 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
12835 2002-01-15 Kazu Hirata <kazu@hxi.com>
12837 * mips-tfile.c: Fix formatting.
12839 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
12841 * unroll.c (final_reg_note_copy): Fix previous commit.
12843 2002-01-14 Kazu Hirata <kazu@hxi.com>
12845 * config/h8300/h8300-protos.h: Remove the prototype for
12847 * config/h8300/h8300.c (eq_operator): Remove.
12849 2002-01-14 Richard Henderson <rth@redhat.com>
12851 * config/i386/i386.md (prefetch): Tidy.
12852 (prefetch_3dnow): Fix locality operand.
12854 2002-01-14 Richard Henderson <rth@redhat.com>
12856 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
12857 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
12859 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
12861 * reload1.c (reload_combine): Pass reg_sum replacement through
12862 copy_rtx in loop performing multiple changes.
12864 2002-01-14 Jakub Jelinek <jakub@redhat.com>
12866 * except.c (remove_unreachable_regions): New.
12867 (free_eh_status): Clear exception_handler_labels.
12868 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
12869 (find_exception_handler_labels): Don't add the same label more than
12871 (remove_exception_handler_label): Don't die if
12872 find_exception_handler_labels hasn't been called for the current
12875 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
12877 * toplev.c (rest_of_compilation): Rebuild jump labels after
12880 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
12882 * doc/extend.texi: Move documentation of X86 built-in functions
12884 * doc/invoke.texi: From here.
12885 * doc/sourcebuild.texi: Document location of documentation for
12886 machine built-in functions.
12888 2002-01-13 Christopher Faylor <cgf@redhat.com>
12890 * cppfiles.c (TEST_THRESHOLD): New macro.
12891 (SHOULD_MMAP): Ditto.
12892 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
12895 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
12897 * unroll.c (final_reg_note_copy): Properly handle
12899 (unroll_loops): Fix LOOP_CONDITION heuristics.
12901 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
12903 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
12904 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
12906 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
12908 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
12911 2002-01-14 Tom Rix <trix@redhat.com>
12913 * config/rs6000/rs6000.md: Fix typo with sradi.
12915 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
12917 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
12918 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
12919 (clrstrdi, clrstrsi): Adapt callers.
12921 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
12923 (movti splitter): Never use register 0 as base register.
12925 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
12927 * combine.c (simplify_shift_const): Always generate new rtx
12928 for shift expression instead of reusing given expression.
12930 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12932 * config/alpha/alpha.c (alpha_expand_mov): Don't call
12933 alpha_legitimize_address unless mode is Pmode.
12935 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
12937 * doc/md.texi (Modifiers): Document the '*' constraint for the
12940 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
12941 * doc/extend.texi (Function Attributes): 'interrupt' is valid
12944 2002-01-13 Richard Henderson <rth@redhat.com>
12946 * reload.c (find_reloads): Use a hard reg destination as reload reg
12947 for an input reload of the source.
12949 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12951 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
12954 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
12956 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12957 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12959 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
12961 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12963 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
12965 2002-01-12 Tom Rix <trix@redhat.com>
12967 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
12970 2002-01-12 Richard Henderson <rth@redhat.com>
12972 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
12974 * doc/invoke.texi: Update Alpha options.
12976 * doc/invoke.texi: Update i386 built-in function lists.
12978 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
12980 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
12981 referencing outside.
12983 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12985 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
12986 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
12987 offsets, and change line folding.
12988 * optabs.c (expand_binop): Remove warnings.
12989 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
12991 2002-01-12 Graham Stott <grahams@redhat.com>
12993 * attribs.c (handle_deprecated_attribute): constify WHAT.
12994 * diagnostic.c (warn_deprecated_use): Add braces, fixes
12995 dangling else warning and constify WHAT.
12996 * except.h (struct function, struct inline_remap): Move
12997 struct tag forward defs before all prototypes.
12998 (duplicate_eh_regions): Whitespace.
13000 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
13002 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13003 MODE_BASE_REG_CLASS.
13004 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
13006 2002-01-12 Richard Henderson <rth@redhat.com>
13008 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
13009 (ix86_expand_vector_move): New.
13010 (bdesc_2arg): Remove andps, andnps, orps, xorps.
13011 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
13012 Remove old prefetch builtins. Special case the logicals removed above.
13013 (ix86_expand_builtin): Likewise.
13014 (safe_vector_operand): Use V4SFmode, not TImode.
13015 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
13016 (ix86_expand_timode_binop_builtin): New.
13017 * config/i386/i386-protos.h: Update.
13018 * config/i386/i386.h (enum ix86_builtins): Update.
13019 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
13020 Use ix86_expand_vector_move in vector move expanders.
13021 (movti_internal, movti_rex64): Add xorps alternative.
13022 (sse_clrv4sf): Rename and adjust from sse_clrti.
13023 (prefetch): Don't work so hard.
13024 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
13025 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
13026 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
13028 2002-01-11 Richard Henderson <rth@redhat.com>
13030 * config/i386/mmintrin.h: New file.
13031 * config/i386/xmmintrin.h: New file.
13032 * config.gcc (i?86-*-*): Add extra_headers.
13033 * simplify-rtx.c (simplify_unary_operation): Handle saturating
13035 (simplify_binary_operation): Handle saturating arithmetic codes.
13036 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
13037 not the lowpart subreg.
13038 (ix86_expand_builtin): Return a TImode dummy register instead of 0
13040 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
13042 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13044 * conflict.c (conflict_graph_compute): Free regsets when finished.
13045 * ssa.c (compute_coalesced_reg_partition): Likewise.
13047 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13049 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
13050 every where we allocate a register.
13052 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13054 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
13055 * lcm.c (compute_earliest, compute_farthest): Likewise.
13057 2002-01-11 Janis Johnson <janis187@us.ibm.com>
13059 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
13061 2002-01-11 Janis Johnson <janis187@us.ibm.com>
13063 * doc/rtl.texi (Insns): Fix 2 typos.
13065 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
13067 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
13068 options. Use @table @gcctabopt for MMIX options. Add index
13069 entries for MMIX options. Start new paragraph with first
13070 heading of the machine-dependent options.
13072 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
13075 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
13076 * combine.c (force_to_mode): Same.
13077 * reload1.c (clear_reload_reg_in_use): Same.
13079 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
13081 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
13084 2002-01-11 Andreas Jaeger <aj@suse.de>,
13085 Brad Lucier <lucier@math.purdue.edu>
13087 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
13090 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
13092 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
13093 Protect with IN_LIBGCC.
13094 (LINK_EH_SPEC): Add required trailing space.
13096 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
13098 * c-tree.h: Move function declarations so that they are listed
13099 under the filename which contains them.
13100 (check_identifier, finish_decl_top_level,
13101 lookup_name_current_level_global, shadow_record_fields): Remove.
13103 2002-01-11 Andreas Jaeger <aj@suse.de>
13105 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
13108 2002-01-10 Richard Henderson <rth@redhat.com>
13110 * config/alpha/alpha.c (print_operand): Add 'J'.
13111 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
13112 new operand with the sequence number for the lituse. When splitting
13113 the insns, use gen_movdi_er_high_g and generate a sequence number.
13114 (gen_movdi_er_high_g): Print the sequence number if non-zero.
13116 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
13118 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
13119 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
13121 (altivec_expand_builtin): Same.
13122 (altivec_expand_stv_builtin): New.
13124 * config/rs6000/rs6000.h (rs6000_builtins): Same.
13126 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
13127 ("altivec_lvehx"): New.
13128 ("altivec_lvewx"): New.
13129 ("altivec_lvxl"): New.
13130 ("altivec_lvx"): New.
13131 ("altivec_stvx"): New.
13132 ("altivec_stvebx"): New.
13133 ("altivec_stvehx"): New.
13134 ("altivec_stvewx"): New.
13135 ("altivec_stvxl"): New.
13137 2002-01-10 Richard Henderson <rth@redhat.com>
13139 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
13140 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
13141 care not to delete instructions twice.
13143 2002-01-10 Zack Weinberg <zack@codesourcery.com>
13145 * toplev.c: Don't declare environ (it's not used anywhere).
13146 * configure.in: Don't check for declaration of environ.
13147 * config/i386/xm-mingw32.h: Don't #define environ.
13148 * config.in, configure: Regenerate.
13150 2002-01-10 Zack Weinberg <zack@codesourcery.com>
13152 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
13153 * configure: Regenerate.
13155 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
13156 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
13157 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
13159 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
13160 LIMITS_H_TEST here, not in m68k/x-next.
13161 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
13162 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
13164 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
13165 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
13166 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
13168 * config/i386/x-djgpp: Renamed i386/t-djgpp.
13169 * config/m88k/x-dolph: Renamed m88k/t-dolph.
13170 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
13171 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
13172 replacement of quadlib.asm with quadlib.c.
13174 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
13175 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
13176 config/rs6000/xm-beos.h: Delete file.
13178 * config.gcc: Update to match above changes.
13180 2002-01-10 Kazu Hirata <kazu@hxi.com>
13182 * config/h8300/h8300.h: Fix comment typos.
13183 * config/h8300/h8300.md: Likewise.
13184 * config/h8300/lib1funcs.asm: Likewise.
13186 2002-01-10 Dale Johannesen <dalej@apple.com>
13188 PR optimization/5269
13189 * unroll.c (precondition_loop_p): Make *increment be the correct
13190 sign when n_iterations known, to avoid confusing caller.
13192 2002-01-10 Kazu Hirata <kazu@hxi.com>
13194 * doc/extend.texi (deprecated): Fix a typo.
13196 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
13198 * basic-block.h (update_br_prob_note): Declare.
13199 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
13200 (try_forward_edges): Care negative frequencies and update note.
13201 (outgoing_edges_match): Tweek conditional merging heuristics.
13202 (try_crossjump_to_edge): use update_br_prob_note.
13203 * cfglayout.c (fixup_reorder_chain): Likewise.
13204 * cfrtl.c (update_br_prob_note): New.
13205 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
13207 * i386.c (ix86_decompose_address): Return -1 if address contains
13209 (legitimate_address_p): Require ix86_decompose_address to return 1.
13211 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
13212 (cprop_insn): Likewise.
13214 2002-01-10 Kazu Hirata <kazu@hxi.com>
13216 * toplev.c: Fix formatting.
13217 * tree.c: Likewise.
13218 * tree-dump.c: Likewise.
13219 * unroll.c: Likewise.
13220 * unwind-dw2.c: Likewise.
13221 * unwind-dw2-fde.c: Likewise.
13222 * unwind-dw2-fde-glibc.c: Likewise.
13223 * unwind-sjlj.c: Likewise.
13225 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
13227 * doc/invoke.texi: Document PDP-11 options.
13229 2002-01-10 Kazu Hirata <kazu@hxi.com>
13231 * config/h8300/h8300.h: Fix formatting.
13233 2002-01-10 Ira Ruben <ira@apple.com>
13235 Add __attribute__ ((deprecated)).
13236 * extend.texi: Document __attribute__ ((deprecated)).
13237 * invoke.texi: Document -Wno-deprecated-declarations.
13238 * testsuite/g++.dg/other/deprecated.C: New C++ test.
13239 * testsuite/gcc.dg/deprecated.c: New C test.
13240 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
13241 (c_common_attribute_table): Add "deprecated" entry.
13242 (handle_deprecated_attribute): New function.
13243 * c-decl.c (deprecated_states): New enum.
13244 deprecated_state: State of "deprecated" handling.
13245 (start_decl): Set deprecated_state based on attributes.
13246 (grokdeclarator): Test for deprecated uses, propagate attribute.
13247 * c-typeck.c (build_component_ref): Test for deprecated fields.
13248 (build_external_ref): Test for deprecated primaries.
13249 * diagnostic.c (warn_deprecated_use) New function to issue
13250 warnings about __attribute__ ((depricated)) references.
13251 * flags.h (warn_deprecated_decl): Extern declared for
13252 -W[no-]deprecated-declarations option.
13253 * print-tree.c (print_node): Show deprecated flag status.
13254 * toplev.c (warn_deprecated_decl): Defined.
13255 (W_options): Added "deprecated-declaration".
13256 * toplev.h (warn_deprecated_use): Extern declared.
13257 * tree.h (struct tree_common): Define deprecated_flag.
13258 (TREE_DEPRECATED): New macro to access flag.
13259 * cp/call.c (build_call): Test for deprecated calls.
13260 * cp/class.c (add_implicitly_declared_members): Set global
13261 flag to tell grokdeclarator to not issue deprecated warnings.
13262 * cp/cp-tree.h: Add extern for adding_implicit_members.
13263 * cp/decl.c (deprecated_states): New enum.
13264 (start_decl): Set deprecated_state based on attributes.
13265 (grokdeclarator): Test for deprecated uses, propagate attribute.
13266 * cp/lex.c (do_identifier): Test for deprecated primaries.
13267 * cp/typeck.c (build_component_ref): Test for deprecated fields.
13269 2002-01-10 Ira Ruben <ira@apple.com>
13271 Fix to assign attributes to inline member functions.
13272 * cp/decl.c (start_method): Handle attrlist.
13274 2002-01-10 Kazu Hirata <kazu@hxi.com>
13276 * combine.c (expand_field_assignment): Use subreg_lsb().
13278 2002-01-10 David Edelsohn <edelsohn@gnu.org>
13280 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
13281 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
13282 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
13283 Recurse for any operand of AND as long as constant is non-zero.
13285 2002-01-10 Kazu Hirata <kazu@hxi.com>
13287 * config/h8300/h8300.md: Remove constraints from expanders.
13289 2002-01-10 Kazu Hirata <kazu@hxi.com>
13291 * varasm.c: Fix formatting.
13292 * varray.c: Likewise.
13293 * vmsdbgout.c: Likewise.
13294 * xcoffout.c: Likewise.
13296 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
13298 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
13299 update edge probabilities to match.
13301 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
13303 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
13305 * doc/languages.texi, doc/sourcebuild.texi: New files.
13306 * doc/configfiles.texi: Make a subsubsection. Update.
13307 * doc/configterms.texi: Add @node. Remove warning that this isn't
13308 instructions for building GCC.
13309 * doc/makefile.texi: Make a subsection.
13310 * doc/gccint.texi: Update.
13312 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
13314 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
13316 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
13318 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
13320 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
13322 * optabs.c (expand_fix): Look for wider integer modes first.
13324 * i386.md (mov?f): Avoid the fake const double trick for medium
13326 (min?f*/max?f*): Prohibit memory operands for i387 variant.
13327 (fop_df_4): Disable for SSE compilation.
13329 2002-01-10 Graham Stott <grahams@redhat.com>
13331 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
13332 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
13334 2002-01-10 Richard Henderson <rth@redhat.com>
13336 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
13338 2002-01-10 Richard Henderson <rth@redhat.com>
13340 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
13341 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
13343 2002-01-10 Kazu Hirata <kazu@hxi.com>
13345 * combine.c (can_combine_p): Fix a comment typo.
13347 2002-01-09 Zack Weinberg <zack@codesourcery.com>
13349 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
13350 empty list correctly. Change loop index $t to $f for
13351 consistency with rest of Makefile.
13353 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
13355 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
13356 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13358 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
13359 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
13360 (altivec_init_builtins): Same.
13361 (altivec_expand_unop_builtin): Return NULL_RTX on error.
13362 (altivec_expand_binop_builtin): Same.
13363 (altivec_expand_ternop_builtin): Same.
13366 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
13367 ("altivec_vctuxs"): Fix typo.
13368 ("altivec_vnmsubfp"): Same.
13369 ("altivec_dssall"): New.
13370 ("altivec_mfvscr"): New.
13371 ("altivec_dss"): New.
13372 ("altivec_lvsl"): New.
13373 ("altivec_lvsr"): New.
13374 ("altivec_dstt"): New.
13375 ("altivec_dstst"): New.
13376 ("altivec_dststt"): New.
13377 ("altivec_dst"): New.
13379 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
13380 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13382 2002-01-09 Richard Henderson <rth@redhat.com>
13384 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
13386 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
13388 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
13390 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
13392 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
13394 2002-01-09 Kazu Hirata <kazu@hxi.com>
13396 * read-rtl.c: Fix formatting.
13397 * real.c: Likewise.
13398 * regclass.c: Likewise.
13399 * regrename.c: Likewise.
13400 * reg-stack.c: Likewise.
13401 * reload1.c: Likewise.
13402 * reload.c: Likewise.
13405 2002-01-09 Kazu Hirata <kazu@hxi.com>
13407 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
13408 to extract items in the expr_list chain.
13410 2002-01-09 Richard Henderson <rth@redhat.com>
13412 * config/vax/vax.c (vax_rtx_cost): Never abort.
13414 * config/vax/vax.h (REAL_ARITHMETIC): Define.
13416 2002-01-09 Jan Hubicka <jh@suse.cz>
13418 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
13420 2002-01-09 Richard Henderson <rth@redhat.com>
13422 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
13423 Unify code from various alternatives.
13425 2002-01-09 Richard Henderson <rth@redhat.com>
13427 * regrename.c (copy_value): Ignore the copy if the source register
13428 is present in the value chain with a narrower mode.
13430 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13432 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
13433 for the c4x target. Also improve layout.
13435 2002-01-09 Richard Henderson <rth@redhat.com>
13437 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
13438 * config/m32r/m32r.md (and ior xor splitters): Swap operands
13439 to match insn patterns.
13441 2002-01-09 Richard Henderson <rth@redhat.com>
13443 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
13444 (copyprop_hardreg_forward_1): Likewise.
13446 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
13448 * pa.md (decrement_and_branch_until_zero): Change predicate for
13449 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
13451 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
13453 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
13454 gets undefined. For Darwin.
13456 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13458 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
13460 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13462 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
13464 2002-01-08 Richard Henderson <rth@redhat.com>
13466 * regrename.c (copy_value): Ignore overlapping copies.
13468 2002-01-08 Richard Henderson <rth@redhat.com>
13470 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
13471 as needed to avoid shared structure.
13473 2002-01-08 Kazu Hirata <kazu@hxi.com>
13475 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
13478 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13480 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
13481 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
13482 documentation of obsolete macros.
13483 * system.h: Poison these macros.
13484 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
13485 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
13486 config/c4x/c4x.h, config/clipper/clipper.h,
13487 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
13488 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
13489 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
13490 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
13491 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
13492 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
13493 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
13494 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
13495 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
13496 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
13497 config/sparc/sparc.h, config/stormy16/stormy16.h,
13498 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
13499 definitions and commented out definitions of obsolete macros.
13500 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
13501 of MAX_INT_TYPE_SIZE.
13503 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
13505 * config/s390/s390.c (s390_preferred_reload_class): Never
13506 return ADDR_REGS if it isn't a subset of the given class.
13507 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
13508 FP_REGS, but all superclasses as well.
13510 * config/s390/s390.c (s390_function_profiler): Fix thinko.
13512 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
13513 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
13514 must not be a const_int.
13516 2002-01-08 Richard Henderson <rth@redhat.com>
13518 * Makefile.in (toplev.o): Depend on options.h.
13519 (gcc.o): Depend on specs.h.
13521 2002-01-08 Jakub Jelinek <jakub@redhat.com>
13523 * expr.c (store_expr): Convert VOIDmode constants back to target's
13526 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13528 * doc/invoke.texi: Markup gcc as @command. Refer to
13529 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
13530 of http://gcc.gnu.org/thanks.html.
13532 2002-01-08 Dale Johannesen <dalej@apple.com>
13534 * config/rs6000/rs6000.md: Add missing int register
13535 target case to movdf_low.
13537 2002-01-08 Zack Weinberg <zack@codesourcery.com>
13539 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
13540 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
13541 (cppinit.o): Depend on except.h.
13542 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
13543 s-specs): New rules.
13545 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
13546 Don't create specs.h/options.h/gencheck.h here. Remove
13547 unnecessary variable settings from last argument of AC_OUTPUT.
13548 * config.in, configure: Regenerate.
13549 * intl.c: Hardcode package name as "gcc".
13551 * cppinit.c: Include except.h.
13552 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
13554 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
13555 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
13556 (!)USING_SJLJ_EXCEPTIONS.
13557 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
13559 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13561 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
13562 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
13563 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
13564 documentation of obsolete macros.
13565 * system.h: Poison these macros.
13566 * config/d30v/d30v.h, config/ns32k/encore.h,
13567 config/stormy16/stormy16.h: Remove definitions and commented out
13568 definitions of obsolete macros.
13570 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
13572 * objc/objc-act.c (handle_class_ref): Mark the declaration of
13573 %sobjc_class_ref_%s as used - to prevent unwanted compiler
13576 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
13578 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
13579 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
13580 to insn adjusting stack/frame pointer.
13581 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
13582 accept operands that cause the insn to be non-splittable.
13584 2002-01-08 Graham Stott <grahams@redhat.com>
13586 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
13587 (C_TYPE_FIELDS_VOLATILE): Likewise.
13588 (C_TYPE_BEING_DEFINED): Likewise.
13589 (C_IS_RESERVED_WORD): Likewise.
13590 (C_TYPE_VARIABLE_SIZE): Likewise.
13591 (C_DECL_VARIABLE_SIZE): Likewise.
13592 (C_MISSING_PROTOTYPE_WARNED): Likewise.
13593 (C_SET_EXP_ORIGINAL_CODE): Likewise.
13594 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
13596 (C_DECL_ANTICIPATED): Likewise.
13597 (c_build_type_variant): Add parenthesis.
13599 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13601 * gcc.c (option_map): Remove --version.
13602 (process_command): Handle -fversion following the GNU Coding
13603 Standards. Partially addresses PR other/704.
13605 2002-01-08 Graham Stott <grahams@redhat.com>
13607 * combine.c (combine_instructions): Fix typo.
13609 2002-01-08 Graham Stott <grahams@redhat.com>
13611 * debug.h: Use "tree" and "rtx" throughout.
13613 * debug.c: Likewise.
13615 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
13617 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
13618 constant pool, use the pool's version of the symbol instead.
13620 2002-01-07 Richard Henderson <rth@redhat.com>
13622 * regrename.c (find_oldest_value_reg): Ignore the value chain if
13623 the original register was copied in a mode with a fewer number of
13624 hard registers than the desired mode.
13625 (copyprop_hardreg_forward_1): Likewise.
13626 (debug_value_data): Fix loop test.
13627 * toplev.c (parse_options_and_default_flags): Reenable
13628 -fcprop-registers at -O1.
13630 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13632 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
13633 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
13635 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
13638 * config/rs6000/rs6000.md: Add altivec predicate patterns.
13640 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
13642 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
13643 (pa_output_function_prologue): Output local label at the beginning of
13644 the prologue when profiling.
13645 (hppa_profile_hook): Use the local label rather than the function label.
13646 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
13648 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13650 * config/rs6000/rs6000.c (print_operand): Remove extra space.
13651 (altivec_expand_unop_builtin): Fix thinko.
13652 (altivec_expand_binop_builtin): Same.
13653 (altivec_expand_ternop_builtin): Same.
13654 (altivec_expand_builtin): Same.
13656 2002-01-07 Richard Henderson <rth@redhat.com>
13658 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
13660 2002-01-07 Jason Merrill <jason@redhat.com>
13662 * unwind-dw2.c (execute_cfa_program): Use < again.
13664 2002-01-07 Jakub Jelinek <jakub@redhat.com>
13666 * predict.c (combine_predictions_for_insn): Avoid division by zero.
13668 2002-01-07 Jakub Jelinek <jakub@redhat.com>
13670 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
13671 Don't allow -1 - x -> ~x simplifications in the first pass.
13673 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13675 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
13677 (altivec_expand_binop_builtin): Same.
13678 (altivec_expand_unop_builtin): Same.
13679 (print_operand): Fix typo.
13680 (bdesc_1arg): Add vupk* variants.
13682 * rs6000.h (rs6000_builtins): Add vupk* enums.
13684 * rs6000.md: Add altivec_vupk* variants.
13686 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
13688 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
13689 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
13690 and last update dates.
13692 2002-01-07 Janis Johnson <janis187@us.ibm.com>
13694 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
13696 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
13698 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
13699 * config/avr/avr.h (CPP_SPEC): Likewise.
13700 (LINK_SPEC): Likewise.
13701 (CRT_BINUTILS_SPECS): Likewise.
13702 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13703 * doc/invoke.texi (AVR Options): Document them.
13705 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
13707 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
13710 2002-01-07 Graham Stott <grahams@redhat.com>
13712 * config/i386/i386.h: Update copyright date.
13713 (HALF_PIC_PTR): Add parenthesis.
13714 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
13715 (CONSTANT_ALIGNMENT): Add parenthesis.
13716 (DATA_ALIGNMENT): Likewise.
13717 (LOCAL_ALIGNMENT): Likewise.
13718 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
13719 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
13720 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
13721 (HARD_REGNO_NREGS): Add paranethesis.
13722 (VALID_SSE_REG_MODE): Whitespace.
13723 (VALID_MMX_REG_MODE): Whitespace.
13724 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
13725 (ix86_hard_regno_mode_ok): Add parenthesis.
13726 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
13727 (RETURN_IN_MEMORY): Whitespace.
13728 (N_REG_CLASSES): Add parenthesis.
13729 (INTEGER_CLASS_P): Add parenthesis and wrap.
13730 (FLOAT_CLASS_P): Likewise.
13731 (SSE_CLASS_P): Likewise.
13732 (MMX_CLASS_P): Likewise.
13733 (MAYBE_INTEGER_CLASS_P): Likewise.
13734 (MAYBE_FLOAT_CLASS_P): Likewise.
13735 (MAYBE_SSE_CLASS_P): Likewise.
13736 (MAYBE_MMX_CLASS_P): Likewise.
13737 (Q_CLASS_P): Likewise.
13738 (GENERAL_REGNO_P): Uppercase macro parameter.
13739 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
13740 (FP_REGNO_P): Likewise.
13741 (ANY_FP_REGNO_P): Uppercase macro parameter.
13742 (SSE_REGNO_P): Likewise.
13743 (SSE_REGNO): Likewise.
13744 (SSE_REG_P): Likewise.
13745 (SSE_FLOAT_MODE_P): Likewise.
13746 (MMX_REGNO_P): Likewise.
13747 (MMX_REG_P):Likewise.
13748 (STACK_REG_P): Likewise.
13749 (NON_STACK_REG_P): Likewise.
13750 (STACK_TOP_P): Likewise.
13751 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
13752 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
13753 (SECONDARY_MEMORY_NEEDED): Likewise.
13754 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
13755 (MD_ASM_CLOBBERS): Whitespace and wrap.
13756 (MUST_PASS_IN_STACK): Whitespace and wrap.
13757 (RETURN_POPS_ARGS): Add parenthesis.
13758 (INIT_CUMULATIVE_ARGS): Likewise.
13759 (FUNCTION_ARG): Likewise.
13760 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
13761 (SETUP_INCOMING_VARARGS): Likewise.
13762 (BUILD_VA_LIST_TYPE): Add parenthesis.
13763 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
13765 (EXPAND_BUILTIN_VA_ARG): Likewise.
13766 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
13767 (INITIALIZE_TRAMPOLINE): Add parenthesis.
13768 (INITIAL_ELIMINATION_OFFSET): Likewise.
13769 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
13770 (REGNO_OK_FOR_BASE_P): Likewise.
13771 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
13772 (REGNO_OK_FOR_DIREG_P): Likewise.
13773 (REG_OK_FOR_INDEX_P): Whitespace.
13774 (REG_OK_FOR_BASE_P): Whitespace.
13775 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
13777 (FIND_BASE_TERM): Fix typo.
13778 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
13779 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
13780 (SYMBOLIC_CONST; Whitespace.
13781 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
13782 (ENCODE_SECTION_INFO): Whitespace.
13783 (FINALIZE_PIC): Remove do { ... } while (0).
13784 (PROMOTE_MODE): Wrap in do { ... } while (0).
13785 (CONST_COSTS): Whitespace.
13786 (RTX_COSTS): Add paramethesis, whitespace and wrap.
13787 (REGISTER_MOVE_COST): Add parenthesis.
13788 (MEMORY_MOVE_COST): Likewise.
13789 (EXTRA_CC_MODES): Whitespace.
13790 (SELECT_CC_MODE): Add parenthesis and whitespace.
13791 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
13792 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
13793 (ASM_OUTPUT_LABEL): Add paramethesis.
13794 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
13795 (ASM_OUTPUT_REG_POP): Likewise.
13796 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
13797 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13799 * config/i386/i386.c: Update copyright.
13800 (CHECK_STACK_LIMIT): Add parenthesis.
13801 (AT_BP): Uppercase macro parameter.
13802 (x86_64_int_parameter_registers): Constify.
13803 (x86_64_int_return_registers): Likewise.
13804 (ix86_compare_op0): Use rtx.
13805 (construct_container): Constify INTREG parameter.
13806 (function_arg): Use rtx.
13808 * diagnostic.h: Update copyright date.
13809 (output_buffer_state): Add parenthesis.
13810 (output_buffer_format_args): Likewise.
13812 * combine.c (combine_instructions): Replace XEXP (links, 0)
13815 2002-01-06 H.J. Lu <hjl@gnu.org>
13817 * cfgcleanup.c (thread_jump): Fix 2 typos.
13819 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
13821 * config.gcc: Add support for --enable-altivec.
13823 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13825 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
13827 2002-01-06 Jakub Jelinek <jakub@redhat.com>
13829 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
13830 __objc_class_name_*.
13832 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13834 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
13836 2002-01-06 Richard Henderson <rth@redhat.com>
13838 * reorg.c (emit_delay_sequence): Remove death notes, not merely
13839 nop them out. Increment label reference count for REG_LABEL.
13840 (fill_slots_from_thread): Frob label reference count around
13841 delete_related_insns.
13843 2002-01-05 Richard Henderson <rth@redhat.com>
13845 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
13848 2002-01-05 Richard Henderson <rth@redhat.com>
13850 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
13851 * integrate.c (output_inline_function): Likewise.
13852 * toplev.c (rest_of_compilation): Do it here instead. Move call
13853 to remove_unnecessary_notes after emitting abstract instance.
13854 Force an emitted nested function to have its parent emited as well.
13855 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
13857 (rtl_for_decl_location): Do not look at reload data structures
13858 before reload has run.
13860 2002-01-05 Kazu Hirata <kazu@hxi.com>
13862 * cse.c: Fix formatting.
13863 * dwarf2asm.c: Likewise.
13864 * dwarf2out.c: Likewise.
13865 * explow.c: Likewise.
13866 * expmed.c: Likewise.
13867 * function.c: Likewise.
13868 * gcov.c: Likewise.
13869 * gencheck.c: Likewise.
13870 * genrecog.c: Likewise.
13871 * ggc-common.c: Likewise.
13872 * ggc-page.c: Likewise.
13873 * global.c: Likewise.
13875 2002-01-05 Kazu Hirata <kazu@hxi.com>
13877 * combine.c: Fix formatting.
13879 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
13882 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
13884 2002-01-05 David Edelsohn <edelsohn@gnu.org>
13886 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
13887 as 1 for __powerpc64__ as well.
13889 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
13891 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
13894 2002-01-05 Daniel Berlin <dan@dberlin.org>
13896 * lcm.c: Revert change, due to performance regression it causes on
13897 SPEC because it's slightly more conservative (sigh, I hate
13900 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
13902 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
13904 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
13906 * doc/cppinternals.texi: Update.
13908 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
13910 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
13911 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
13913 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
13914 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
13915 kludge for pre-october-14th mmix versions to handle new-found bug
13916 with PUSHJ/PUSHGO and the register stack.
13917 * config/mmix/mmix.h (struct machine_function): Rename member
13918 has_call_value_without_parameters to has_call_without_parameters.
13919 All referers changed.
13920 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
13921 TARGET_MASK_BRANCH_PREDICT): New macros.
13922 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
13923 -mno-reg-stack-fill-bug-workaround.
13924 * config/mmix/mmix.md ("call"): Set struct machine member
13925 has_call_without_parameters.
13927 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
13929 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
13931 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
13933 * cfgcleanup.c: Include tm_p.h
13934 (mark_effect): Fix handling of hard register; fix handling of SET
13936 2002-01-04 Kazu Hirata <kazu@hxi.com>
13938 * config/h8300/h8300.md (anonymous patterns): Check that
13939 operands are registers before using REGNO on them.
13941 2002-01-03 Roland McGrath <roland@frob.com>
13943 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
13945 2002-01-04 Jakub Jelinek <jakub@redhat.com>
13947 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
13948 * c-common.h (genrtl_expr_stmt_value): Likewise.
13949 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
13950 (expand_expr_stmt_value): Add maybe_last argument.
13951 Don't warn about statement with no effect if it is the last statement
13952 in expression statement.
13953 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
13954 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
13955 expand_expr_stmt_value.
13956 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
13957 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
13958 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
13959 as maybe_last to expand_expr_stmt_value.
13961 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
13963 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
13964 be passed in, do not build it.
13965 (c_begin_if_stmt): New function.
13966 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13967 * c-common.h (c_expand_start_cond): Update prototype.
13968 (c_begin_if_stmt): Prototype new function.
13969 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13970 * c-parse.in (if_prefix): Use c_begin_if_stmt,
13971 c_begin_while_stmt and c_finish_while_stmt_cond.
13973 2002-01-04 William Cohen <wcohen@redhat.com>
13975 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
13976 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
13977 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
13978 * config/pa/som.h (ASM_FILE_START): Likewise.
13980 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
13982 * lcm.c: Include df.h.
13983 Add available_transfer_function prototype.
13984 (compute_available): Rework to use iterative dataflow framework.
13985 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
13986 with bb_info in df.h
13987 (available_transfer_function): New function.
13989 * Makefile.in (lcm.o): add df.h to dependencies.
13991 2002-01-04 Richard Henderson <rth@redhat.com>
13993 * config/alpha/alpha.c (some_operand): Accept HIGH.
13994 (input_operand): Likewise; accept simple references to globals.
13995 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
13996 (alpha_const_double_ok_for_letter_p): Likewise.
13997 (alpha_extra_constraint): Likewise.
13998 (alpha_preferred_reload_class): Likewise. Do not force
13999 symbolic constants to memory.
14000 (alpha_legitimate_address_p): Accept simple references
14001 to small_symbolic_operand.
14002 (alpha_legitimize_address): New arg scratch. Be prepared to be
14003 called when no_new_pseudos. Emit simple symbolic references.
14004 Split integers into low, high, and rest.
14005 (alpha_expand_mov): Use alpha_legitimize_address.
14006 (some_small_symbolic_mem_operand): New.
14007 (split_small_symbolic_mem_operand): New.
14008 * config/alpha/alpha-protos.h: Update.
14009 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
14010 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
14011 (EXTRA_CONSTRAINT): Likewise.
14012 (PREFERRED_RELOAD_CLASS): Likewise.
14013 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
14014 (PREDICATE_CODES): Update.
14015 * config/alpha/alpha.md: New post-reload splitters to convert
14016 simplfied symbolic operands to the form that references $29.
14017 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
14018 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
14020 2002-01-03 Richard Henderson <rth@redhat.com>
14022 * local-alloc.c (function_invariant_p): Update commentary.
14024 2002-01-04 H.J. Lu <hjl@gnu.org>
14026 * toplev.c (rest_of_compilation): Fix a typo when calling
14029 2002-01-03 Kazu Hirata <kazu@hxi.com>
14031 * c-common.c: Fix formatting.
14032 * diagnostic.c: Likewise.
14033 * doloop.c: Likewise.
14034 * dwarf2out.c: Likewise.
14036 2002-01-03 Kazu Hirata <kazu@hxi.com>
14038 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
14039 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
14041 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
14043 * cpperror.c: Update comments and copyright.
14044 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
14045 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
14047 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
14049 * collect2.c (main): Use strcmp when testing for "-shared".
14051 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
14053 * cppmacro.c: Don't include intl.h. Update comments.
14054 (new_number_token): Allocate enough buffer for 64-bit unsigned
14055 integers; update prototype.
14056 * cppmain.c: Update comments.
14058 2002-01-03 William Cohen <wcohen@redhat.com>
14060 * function.h (struct function): Add profile.
14061 (current_function_profile): New.
14062 doc/extend.texi: Update documentation.
14063 * final.c (final_start_function): Use current_function_profile
14064 instead of profile_flag.
14065 (profile_after_prologue): Likewise.
14066 * function.c (expand_function_start): Likewise.
14067 (expand_function_start): Likewise.
14068 * config/alpha/alpha.c (direct_call_operand):
14069 (alpha_does_function_need_gp): Likewise.
14070 (alpha_expand_prologue): Likewise.
14071 * config/arm/arm.c (arm_expand_prologue): Likewise.
14072 thumb_expand_prologue: Likewise.
14073 * config/d30v/d30v.c (d30v_stack_info): Likewise.
14074 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
14075 (fr30_expand_prologue): Likewise.
14076 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
14077 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
14078 * config/i386/i386.h (FINALIZE_PIC): Likewise.
14079 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
14080 * config/i960/i960.c (i960_output_function_prologue): Likewise.
14081 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14082 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
14083 (m32r_expand_prologue): Likewise.
14084 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
14085 (m88k_expand_prologue): Likewise.
14086 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
14087 * config/mips/mips.c (compute_frame_size): Likewise.
14088 (mips_expand_prologue): Likewise.
14089 (mips_can_use_return_insn): Likewise.
14090 * config/pa/elf.h (ASM_FILE_START): Likewise.
14091 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14092 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14093 * config/pa/som.h (ASM_FILE_START): Likewise.
14094 * config/romp/romp.c (romp_using_r14): Likewise.
14095 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
14096 (rs6000_stack_info): Likewise.
14097 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14098 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
14099 * config/v850/v850.c (compute_register_save_size): Likewise.
14101 2002-01-03 Jakub Jelinek <jakub@redhat.com>
14103 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
14104 gen_lowpart_common fails, use gen_lowpart_SUBREG.
14106 2002-01-03 Turly O'Connor <turly@apple.com>
14108 * darwin.c (machopic_output_possible_stub_label): Don't generate
14109 stub routines for pseudo-stubs which we've just defined.
14111 2002-01-03 Kazu Hirata <kazu@hxi.com>
14113 * builtins.c: Fix formatting.
14114 * c-typeck.c: Likewise.
14115 * combine.c: Likewise.
14116 * expr.c: Likewise.
14117 * loop.c: Likewise.
14119 2002-01-03 Andreas Schwab <schwab@suse.de>
14121 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
14122 and return true if _cpp_push_next_buffer pushed a new include
14124 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
14125 _cpp_pop_file_buffer did not push a new file.
14126 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
14128 2002-01-02 Eric Christopher <echristo@redhat.com>
14130 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
14131 FIND_REG_INC_NOTE call. Update copyright.
14132 * loop.c (canonicalize_condition): Ditto.
14133 * reorg.c (delete_scheduled_jump): Ditto.
14135 2002-01-03 Kazu Hirata <kazu@hxi.com>
14137 * gcse.c: Fix formatting.
14139 2002-01-03 Graham Stott <grahams@redhat.com>
14141 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
14142 forward defs for struct tags rtx_def, union_tree, rtvec_def
14143 also output corresponding typedefs for rtx, tree, and rtvec.
14145 * system.h: Move forward defs for struct tags rtx_def, union_tree,
14146 rtvec_def along with corresponding typedefs for rtx, tree, and
14147 rtvec to config.h, hconfig.h, tconfig.h.
14149 2002-01-03 Graham Stott <grahams@redhat.com>
14151 * tree.h: Update copyright date.
14152 (IS_EXPR_CODE_CLASS): Add parenthesis.
14153 (TREE_SET_CODE): Add whitespace.
14154 (TREE_CHECK): Add parenthesis.
14155 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
14156 (CST_OR_CONSTRUCTOR_CHECK):
14157 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
14158 (TREE_SYMBOL_REFERENCED): Whitespace.
14159 (INT_CST_LT): Likewise.
14160 (INT_CST_LT_UNSIGNED): Likewise.
14161 (tree_real_cst): Unwrap comment.
14162 (tree_string): Likewise.
14163 (tree_complex): Likewise.
14164 (IDENTIFIER_POINTER): correct cast.
14165 (SAVE_EXPR_CONTEXT): Whitespace.
14166 (EXPR_WFL_FILENAME_NODE): Likewise.
14167 (EXPR_WFL_FILENAME): Remove parenthesis.
14168 (DECL_ORIGIN): Add parenthesis.
14169 (DECL_FROM_INLINE): Use NULL_TREE.
14170 (build_int_2): Whitespace.
14171 (build_type_variant): Add parenthesis.
14173 * gcc/jcf-parse.c: Update copyright date.
14174 (yyparse): Constify resource_filename.
14176 2002-01-03 Graham Stott <grahams@redhat.com>
14178 * rtl.h: Update copyright date.
14179 (RTL_CHECK1): Wrap long line.
14180 (RTL_CHECK2): Likewise.
14181 (RTL_CHECKC1): Wrap long line and whitespace.
14182 (RTL_CHECKC2): Likewise.
14183 (XWINT): Whitespace.
14189 (XBITMAP): Likewise.
14191 (XBBDEF): Likewise.
14193 (X0WINT): Likewise.
14195 (X0UINT): Likewise.
14199 (X0MODE): Likewise.
14200 (X0BITMAP): Likewise.
14201 (X0TREE): Likewise.
14202 (X0BBDEF): Likewise.
14203 (X0ADVFLAGS): Likewise.
14204 (X0CSELIB): Likewise.
14205 (X0MEMATTR): Likewise.
14206 (XCWINT): Likewise.
14208 (XCUINT): Likewise.
14212 (XCMODE): Likewise.
14213 (XCBITMAP): Likewise.
14214 (XCTREE): Likewise.
14215 (XCBBDEF): Likewise.
14216 (XCADVFLAGS): Likewise.
14217 (XCCSELIB): Likewise.
14218 (XC2EXP): Likewise.
14219 (INSN_UID): Likewise.
14220 (PREV_INSN): Likewise.
14221 (PATTERN): Likewise.
14222 (INSN_CODE): Likewise.
14223 (PUT_REG_NOTE_KIND): Likewise.
14224 (CODE_LABEL_NUMBER): Likewise.
14225 (NOTE_SOURCE_FILE): Likewise.
14226 (NOTE_BLOCK): Likewise.
14227 (NOTE_EH_HANDLER): Likewise.
14228 (NOTE_RANGE_INFO): Likewise.
14229 (NOTE_LIVE_INFO): Likewise.
14230 (NOTE_BASIC_BLOCK): Likewise.
14231 (NOTE_EXPECTED_VALUE): Likewise.
14232 (NOTE_LINE_NUMBER): Likewise.
14233 (LABEL_NAME): Likewise.
14234 (LABEL_NUSES): Likewise.
14235 (LABEL_ALTERNATE_NAME): Likewise.
14236 (ADDRESSOF_DECL): Likewise.
14237 (JUMP_LABEL): Likewise.
14238 (LABEL_NEXTREF): Likewise.
14240 (ORIGINAL_REGNO: Likewise.
14241 (HARD_REGISTER_NUM_P): Add parenthesis.
14242 (SUBREG_REG): Whitespace.
14243 (SUBREG_BYTE): Likewise.
14244 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
14245 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
14246 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
14247 (ASM_OPERANDS_INPUT_VEC): Likewise.
14248 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
14249 (ASM_OPERANDS_INPUT): Likewise.
14250 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
14251 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
14252 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
14253 (ASM_OPERANDS_INPUT_MODE): Likewise.
14254 (ASM_OPERANDS_SOURCE_FILE): Likewise.
14255 (ASM_OPERANDS_SOURCE_LINE): Likewise.
14256 (MEM_SET_IN_STRUCT_P): Minor reformat.
14257 (TRAP_CONDITION): Whitespace.
14258 (TRAP_CODE): Likewise.
14259 (COND_EXEC_TEST): Likewise.
14260 (COND_EXEC_CODE): Likewise.
14261 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
14262 (PHI_NODE_P): Add parenthesis.
14263 (plus_constant): Whitespace and add parenthesis.
14265 2002-01-03 Kazu Hirata <kazu@hxi.com>
14267 * config/avr/avr.c: Fix comment typos.
14268 * config/c4x/c4x.md: Likewise.
14269 * config/dsp16xx/dsp16xx.h: Likewise.
14270 * config/dsp16xx/dsp16xx.md: Likewise.
14271 * config/i386/i386.md: Likewise.
14272 * config/ia64/ia64.c: Likewise.
14273 * config/m32r/m32r.h: Likewise.
14274 * config/m68hc11/m68hc11.md: Likewise.
14275 * config/mmix/mmix.c: Likewise.
14276 * config/mn10200/mn10200.c: Likewise.
14277 * config/romp/romp.c: Likewise.
14278 * config/sh/sh.c: Likewise.
14279 * config/stormy16/stormy16.c: Likewise.
14280 * config/stormy16/stormy16.h: Likewise.
14281 * config/stormy16/stormy16.md: Likewise.
14283 2002-01-03 Graham Stott <grahams@redhat.com>
14285 * loop.h: Update copyright date.
14286 (LOOP_MOVABLES): Fix typo.
14287 (LOOP_REGS): Likewise.
14288 (LOOP_IVS): Likewise.
14290 2002-01-03 Graham Stott <grahams@redhat.com>
14292 * cppinit.c: Update copyright date.
14293 Don't include output.h
14294 * Makefile.in: Update copyright date.
14297 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
14300 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
14301 (-pthread) Add to RS/6000 options.
14303 2002-01-02 Kazu Hirata <kazu@hxi.com>
14305 * except.c: Fix comment typos.
14306 * loop.c: Likewise.
14307 * varasm.c: Likewise.
14308 * doc/tm.texi: Fix a typo.
14310 2002-01-02 Jakub Jelinek <jakub@redhat.com>
14312 * c-typeck.c (output_init_element): Allow initializing static storage
14313 duration objects with compound literals.
14315 2002-01-02 Richard Henderson <rth@redhat.com>
14317 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
14320 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14322 * gcc.c (default_compilers): Const-ify.
14323 * mips-tdump.c (stab_names): Likewise.
14324 * mips-tfile.c (map_coff_types, map_coff_storage,
14325 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
14326 pseudo_ops_t, pseudo_ops): Likewise.
14327 * protoize.c (default_include): Likewise
14329 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
14330 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
14331 Add array size in declaration.
14332 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
14333 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
14334 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
14335 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
14336 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
14337 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
14338 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
14339 emtens, make_nan): Const-ify.
14340 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
14341 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
14343 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
14345 * config.gcc (ia64-*-*): Set extra_headers.
14346 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
14347 * config/alpha/t-osf: Remove.
14348 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
14350 2002-01-02 David Edelsohn <edelsohn@gnu.org>
14352 * config/rs6000/t-aix43: Revert previous change.
14354 2002-01-02 Jason Merrill <jason@redhat.com>
14356 * c-decl.c (c_expand_body): Call outlining_inline_function when
14357 emitting an inline function out of line.
14359 2002-01-02 Richard Henderson <rth@redhat.com>
14361 * dwarf2out.c (limbo_die_node): Add created_for member.
14362 (new_die): New argument created_for. Update all callers.
14363 (mark_limbo_die_list): New.
14364 (dwarf2out_init): Register limbo_die_list as a root.
14365 (dwarf2out_finish): Force insert limbo dies into their function
14368 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
14371 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
14373 2002-01-02 Kazu Hirata <kazu@hxi.com>
14375 * config/h8300/fixunssfsi.c: Update copyright.
14378 * config/h8300/h8300.c: Update copyright.
14379 Eliminate warnings.
14381 2002-01-02 Kazu Hirata <kazu@hxi.com>
14383 * config/romp/romp.c: Fix comment formatting.
14384 * config/romp/romp.h: Likewise.
14385 * config/romp/romp.md: Likewise.
14386 * config/s390/s390.c: Likewise.
14387 * config/stormy16/stormy16.c: Likewise.
14388 * config/stormy16/stormy16.h: Likewise.
14390 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
14392 * c-common.h (genrtl_expr_stmt_value): Declare.
14393 * c-semantics.c (genrtl_goto_stmt): Redirect to...
14394 (genrtl_goto_stmt_value): ... this new function. Pass new
14395 argument down to expand_expr_stmt_value, taking
14396 TREE_ADDRESSABLE into account.
14397 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
14398 STMT_EXPR as addressable, i.e., one whose result we want.
14399 * expr.c (expand_expr): Don't save expression statement value
14400 of labeled_blocks or loop_exprs.
14401 * stmt.c (expand_expr_stmt): Redirect to...
14402 (expand_expr_stmt_value): ... this new function. Use new
14403 argument to tell whether to save expression value.
14404 (expand_end_stmt_expr): Reset last_expr_type and
14405 last_expr_value if we don't have either.
14406 * tree-inline.c (declare_return_variable): Mark its use
14407 statement as addressable.
14408 * tree.h: Document new use of TREE_ADDRESSABLE.
14409 (expand_expr_stmt_value): Declare.
14411 2002-01-01 Tom Rix <trix@redhat.com>
14413 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
14414 rs6000_emit_allocate_stack.
14416 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
14418 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
14419 ${srcdir}/ginclude/ to every entry in extra_headers.
14420 * configure: Regenerate.
14421 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
14422 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
14423 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
14424 * ginclude/proto.h: Rename to config/convex/proto.h.
14426 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14428 * attribs.c (handle_vector_size_attribute): Use host_integerp
14429 and tree_int_cst; remove warnings.
14430 * caller-save.c (insert_restore): Add cast to get rid of warning.
14431 (insert_save): Likewise.
14432 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
14433 * regmove.c (find_matches): Add temporary var to kill a warning.
14435 2002-01-01 Douglas B Rupp <rupp@gnat.com>
14437 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
14438 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
14439 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
14440 (vms-dwarf2eh.o): Add Makefile rule.
14441 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
14442 * config/alpha/vms-dwarf2eh.asm: New file.
14444 * gcc.c (delete_if_ordinary): Delete all versions.
14446 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
14448 * config/mmix/mmix.md: Update FIXME to not mention
14450 (MMIX_rJ_REGNUM): New define_constants constant.
14451 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
14452 "*movdicc_real"): Adjust contraints formatting.
14453 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
14454 for branch prediction.
14455 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
14457 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
14458 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
14459 number. Delete related FIXMEs.
14460 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
14461 from number to MMIX_rJ_REGNUM.
14462 (TARGET_MASK_BRANCH_PREDICT): New.
14463 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
14464 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
14465 value. Add -mbranch-predict and -mno-branch-predict.
14466 (TARGET_VERSION): Drop date.
14467 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
14468 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
14469 for finding out global symbols.
14470 (mmix_asm_output_labelref): Revert condition for global symbol.
14471 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
14472 (mmix_print_operand_punct_valid_p): A '+' is valid.
14474 See ChangeLog.6 for earlier changes.