1 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3 * doc/install.texi (Configuration): Document PWDCMD.
5 2002-05-16 Dale Johannesen <dalej@apple.com>
7 * combine.c (cant_combine_insn_p): Reenable combinations
8 involving hard regs unless CLASS_LIKELY_SPILLED_P.
10 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
12 * c-common.c (cb_register_builtins): Handle more built-ins
13 here rather than in gcc.c specs.
14 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
15 (cpp_options): Pass -O flags even when only preprocessing.
16 * toplev.c (set_fast_math_flags): New prototype.
17 (fast_math_flags_set_p): New.
18 (set_no_fast_math_flags): Remove.
19 (decode_f_option): Update.
20 * toplev.h (set_fast_math_flags): Update.
21 (fast_math_flags_set_p): New.
22 (set_no_fast_math_flags): Remove.
24 * c4x/c4x.c (c4x_override_options): Update.
26 2002-05-16 Zack Weinberg <zack@codesourcery.com>
28 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
30 (builtin_define_with_value): Can now wrap the expansion in
31 quotation marks if such is wanted.
32 (cb_register_builtins): Update calls to builtin_define_with_value.
33 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
35 (c_common_init): Set options->stdc_0_in_system_headers.
36 * c-lex.h: Update prototype of builtin_define_with_value.
37 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
40 * cppinit.c (VERS, ULP, C, X): Kill.
41 (builtin_array): Remove entries for __VERSION__,
42 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
43 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
45 (init_builtins): Kill off a bunch of now-dead code.
46 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
47 -fno-leading-underscore.
48 (cpp_handle_option): Remove code to set user_label_prefix.
49 (cpp_post_options): Likewise.
51 * cpplib.h (struct cpp_options): Remove user_label_prefix.
52 (stdc_0_in_system_headers): New.
53 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
54 stdc_0_in_system_headers) too to decide the value of __STDC__.
56 * tradcpp.c (user_label_prefix): Kill.
57 (main): Remove code handling -f(no-)leading-underscore.
58 (initialize_builtins): Don't define __REGISTER_PREFIX__
59 or __USER_LABEL_PREFIX__.
60 (install_value): Wrap compound statement in dummy loop so the
61 macro works properly in an if statement.
64 2002-05-16 Janis Johnson <janis187@us.ibm.com>
66 * loop.h (struct loop_info): Add member has_prefetch.
67 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
68 (prescan_loop): Initialize has_prefetch.
69 (struct prefetch_info): Change prefetch_in_loop and
70 prefetch_before_loop from bit fields to ints.
71 (emit_prefetch_instructions): Several small fixes.
72 (check_dbra_loop): Don't reverse loop that uses prefetch.
74 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
76 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
77 * configure.in: Likewise.
78 * fixinc/check.tpl: Likewise.
79 * fixinc/fixinc.dgux: Likewise.
80 * fixinc/fixinc.svr4: Likewise.
81 * fixinc/fixinc.winnt: Likewise.
82 * fixinc/fixincl.sh: Likewise.
84 * configure: Regenerate.
86 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
88 Basic block renumbering removal:
89 * basic_block.h (struct basic_block_def): Renamed index to sindex,
90 added prev_bb and next_bb fields.
91 (n_basic_blocks): Renamed to num_basic_blocks.
92 (last_basic_block): New, index of last basic block.
93 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
94 traversing basic block chain.
95 (BLOCK_NUM): index -> sindex.
96 (create_basic_block_structure, create_basic_block): Declaration changed.
97 (debug_num2bb): Declare.
98 (expunge_block_nocompact): Declaration removed.
99 (link_block, unlink_block, compact_blocks): Declare.
100 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
101 * cfg.c (entry_exit_blocks): Initialize new fields.
102 (clear_edges, alloc_block, expunge_block, cached_make_edge,
103 redirect_edge_pred, dump_flow_info, dump_edge_info,
104 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
105 free_aux_for_edges): Modified.
106 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
107 (expunge_block_nocompact): Removed.
108 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
109 find_unreachable_blocks, create_edge_list, print_edge_list,
110 verify_edge_list, flow_edge_list_print, remove_fake_successors,
111 remove_fake_edges, flow_reverse_top_sort_order_compute,
112 flow_depth_first_order_compute, flow_preorder_transversal_compute,
113 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
114 flow_dfs_compute_reverse_execute): Modified.
115 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
116 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
118 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
119 merge_blocks_move_predecessor_nojumps,
120 merge_blocks_move_successor_nojumps, merge_blocks,
121 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
122 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
123 * cfglayout.c (skip_insns_after_block, label_for_bb,
124 record_effective_endpoints, scope_to_insns_finalize,
125 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
126 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
127 cfg_layout_duplicate_bb): Modified.
128 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
129 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
130 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
131 flow_loops_find, flow_loop_outside_edge_p): Modified.
132 * cfgrtl.c (create_basic_block_structure, create_basic_block,
133 flow_delete_block, compute_bb_for_insn, split_block,
134 try_redirect_by_replacing_jump, redirect_edge_and_branch,
135 force_nonfallthru_and_redirect, tidy_fallthru_edge,
136 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
137 commit_edge_insertions, commit_edge_insertions_watch_calls,
138 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
139 purge_all_dead_edges): Modified.
140 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
141 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
142 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
144 * conflict.c (conflict_graph_compute): Modified.
145 * df.c (FOR_ALL_BBS): Removed.
146 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
147 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
148 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
149 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
150 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
151 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
152 * final.c (compute_alignments, final_scan_insn): Modified.
153 * flow.c (verify_local_live_at_start, update_life_info,
154 update_life_info_in_dirty_blocks, free_basic_block_vars,
155 delete_noop_moves, calculate_global_regs_live,
156 initialize_uninitialized_subregs, allocate_bb_life_data,
157 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
158 mark_used_reg, count_or_remove_death_notes): Modified.
159 * function.c (thread_prologue_and_epilogue_insns): Modified.
160 * gcse.c (struct null_pointer_info): Change typo of current_block
162 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
163 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
164 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
165 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
166 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
167 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
168 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
169 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
170 pre_delete, one_pre_gcse_pass, compute_transpout,
171 invalidate_nonnull_info, delete_null_pointer_checks_1,
172 free_code_hoist_mem, compute_code_hoist_vbeinout,
173 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
174 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
175 compute_store_table, build_store_vectors, insert_insn_start_bb,
176 insert_store, replace_store_insn, free_store_memory, store_motion):
178 * global.c (global_alloc, global_conflicts, mark_elimination,
179 build_insn_chain): Modified.
180 * graph.c (print_rtl_graph_with_bb): Modified.
181 * haifa-sched.c (sched_init): Modified.
182 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
183 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
184 if_convert): Modified.
185 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
186 compute_insert_delete, pre_edge_lcm, compute_available,
187 compute_farthest, compute_nearerout, compute_rev_insert_delete,
188 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
190 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
191 * loop.c (loop_dump_aux): Modified.
192 * predict.c (combine_predictions_for_insn, estimate_probability,
193 last_basic_block_p, process_note_prediction, process_note_predictions,
194 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
195 expensive_function_p, estimate_bb_frequencies,
196 compute_function_frequency): Modified.
197 * print-rtl.c (print_rtx): Modified.
198 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
199 get_exec_counts, compute_branch_probabilities, compute_checksum,
200 branch_prob, find_spanning_tree): Modified.
201 * recog.c (split_all_insns, peephole2_optimize): Modified.
202 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
203 convert_regs_1, convert_regs_2, convert_regs): Modified.
204 * regclass.c (scan_one_insn, regclass): Modified.
205 * regmove.c (mark_flags_life_zones, regmove_optimize,
206 combine_stack_adjustments): Modified.
207 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
208 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
209 * reorg.c (dbr_schedule): Modified.
210 * resource.c (find_basic_block, init_resource_info): Modified.
211 * sbitmap.c (sbitmap_intersection_of_succs,
212 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
213 sbitmap_union_of_preds): Modified.
214 * sched-deps.c (init_dependency_caches): Modified.
215 * sched-ebb.c (schedule_ebbs): Modified.
216 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
217 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
218 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
219 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
220 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
221 ssa_const_prop): Modified.
222 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
223 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
224 * ssa.c (remove_phi_alternative, find_evaluations,
225 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
226 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
227 make_regs_equivalent_over_bad_edges,
228 make_equivalent_phi_alternatives_equival,
229 compute_conservative_reg_partition,
230 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
231 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
234 2002-05-16 Mark Mitchell <mark@codesourcery.com>
236 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
238 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
240 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
241 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
242 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
243 calling CONSTANT_POOL_ADDRESS_P.
244 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
245 to decide whether to define __arm__ or __thumb.
246 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
247 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
249 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
251 * config/arc/arc.h (CPP_PREDEFINES): Remove.
253 (TARGET_CPU_CPP_BUILTINS): New.
255 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
257 * cpphash.h (cpp_macro): Move here, and make expansion a union.
258 * cppmacro.c (cpp_macro): Remove.
259 (enter_macro_context, replace_args, warn_of_redefinition,
260 _cpp_create_definition, cpp_macro_definition): Update.
262 2002-05-16 Jason Merrill <jason@redhat.com>
264 * config/mips/mips.c (mips_output_external): Don't do sdata
265 optimization for a variable with DECL_COMDAT set.
267 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
269 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
270 Cleanups for accepting modifiers on pointers.
272 Allow long pointers as well as int pointers.
274 2002-05-15 Richard Henderson <rth@redhat.com>
276 * varasm.c (merge_weak): Remove special case for extern and common.
278 2002-05-15 Matt Hiller <hiller@redhat.com>
280 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
282 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
283 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
284 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
285 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
286 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
287 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
289 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
291 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
293 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
295 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
296 ("altivec_mfvscr"): Read from VSCR.
298 Add vscr sets for the following insns: altivec_vctuxs,
299 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
300 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
301 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
302 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
303 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
304 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
305 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
306 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
307 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
308 altivec_vsum2sws, altivec_vsumsws.
310 * config/rs6000/rs6000.h: Add VSCR fixed register.
311 (CALL_REALLY_USED_REGISTERS): Add vscr.
312 (CALL_USED_REGISTERS): Same.
313 (FIXED_REGISTERS): Same.
314 (REG_ALLOC_ORDER): Same.
315 (reg_class): Add VSCR_REGS.
316 (REG_CLASS_NAMES): Same.
317 (REG_CLASS_CONTENTS): Same.
319 (REGISTER_NAMES): Add vscr.
320 (DEBUG_REGISTER_NAMES): Same.
321 (ADDITIONAL_REGISTER_NAMES): Same.
322 (FIRST_PSEUDO_REGISTER): Increment.
323 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
325 2002-05-15 Jakub Jelinek <jakub@redhat.com>
327 * fold-const.c (fold): Fix a typo.
329 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
331 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
332 comparison against the highest or lowest integer value before
333 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
334 transformation and that of an unsigned comparison against 0
337 2002-05-15 Richard Henderson <rth@redhat.com>
339 * varasm.c (merge_weak): Error for any weakening after definition.
340 Adjust weakening after use warning to catch more cases.
341 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
342 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
344 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
346 * invoke.texi (-malign-double): Re-add lost warning.
348 * i386-protos.h (x86_output_mi_thunk): Declare.
349 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
350 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
352 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
353 when flag_asynchronous_unwind_tables is set.
355 * flags.h (flag_reorder_functions): Declare.
356 * function.c (prepare_function_start): Initialize frequnecy.
357 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
358 * Makefile.in (predict.o): Add dependency on target.h and params.h
359 * defaults.h (HOT_TEXT_SECTION_NAME,
360 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
361 * predict.c (choose_function_section): New function.
362 (estimate_bb_frequencies): Use it.
363 * toplev.c (flag_reorder_functions): New global variable.
364 (lang_independent_options): New.
365 (parse_options_and_default_flags): Set.
366 * varasm.c (assemble_start_function): Bypass functdion alignment
367 for never executed functions.
368 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
369 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
370 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
373 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
375 * predict.c: Inlude profile.h
376 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
377 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
378 Use the information about maximal counter in the program.
380 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
382 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
383 probably_never_executed_bb_p): New functions.
384 * cfgcleanup.c (outgoing_edges_match): Use them.
385 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
386 (maybe_hot_bb_p, probably_cold_bb_p,
387 probably_never_executed_bb_p): New functions.
389 * function.h (function): Add new field function_frequency.
390 * predict.c (compute_function_frequency): New function.
391 (estimate_probability): Call it.
393 2002-03-09 Jakub Jelinek <jakub@redhat.com>
395 PR optimization/5172, optimization/5200
396 * gcse.c (gcse_main): Disable store_motion.
398 2002-05-14 Zack Weinberg <zack@codesourcery.com>
400 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
401 (c_common_nodes_and_builtins): Use it.
402 (builtin_define_with_value): New function.
403 (cb_register_builtins): Define __SIZE_TYPE__,
404 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
405 using builtin_define_with_value. Use consistent notation when
406 defining __GXX_WEAK__.
407 (WCHAR_TYPE_SIZE): Don't redefine.
408 (combine_strings): Don't use WCHAR_TYPE_SIZE.
410 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
411 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
412 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
413 * tradcpp.c (initialize_builtins): Likewise.
414 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
416 * c-lex.h (builtin_define_with_value): Prototype.
417 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
418 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
419 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
421 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
422 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
423 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
424 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
425 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
426 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
427 config/sparc/sol2-bi.h, config/sparc/sparc.h:
428 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
429 to __SIZE_TYPE__ etc from all spec strings. When this makes
430 extra specs empty, delete them.
432 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
434 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
435 for PA8000 or generating dwarf2 call frame information.
436 (output_call): Remove DO_FRAME_NOTES check from return pointer
438 (following_call): Return 0 when scheduling for PA8000 or generating
439 dwarf2 call frame information. Revise comment.
441 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
444 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
445 and __IEEE_FP_INEXACT as appropriate.
446 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
447 (CPP_SPEC): Remove ieee defines.
448 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
450 2002-05-14 Richard Henderson <rth@redhat.com>
452 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
453 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
455 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
457 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
459 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
460 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
461 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
462 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
463 (EXTRA_SPECS): Update.
464 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
465 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
466 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
467 define TARGET_OS_CPP_BUILTINS if necessary.
469 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
471 * gcc.c (cpp_options): Must pass -m* and -f* options
472 to the front end even when only preprocessing.
473 (cc1_options): Remove redundant -lang-c.
474 * tradcpp.c (main): Ignore -m options.
476 * lang-specs.h: Similarly.
478 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
480 * genautomata.c (transform_3): Add code for transformation
481 `(A,B,...)+C -> A+C,B,...'.
483 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
485 * final.c (end_final): Do not output profile_arcs constructor, when
486 no functions are instrumented.
488 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
490 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
492 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
494 * doc/install.texi: Remove special markup originally required for
495 HTML generation with texi2html.
497 2002-05-14 Andreas Schwab <schwab@suse.de>
499 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
501 (UNIQUE_SECTION): Define to get small data correctly.
503 * varasm.c (resolve_unique_section): Add third parameter
504 flag_function_or_data_sections and use it instead of
505 flag_function_sections.
506 (assemble_start_function): Pass flag_function_sections.
507 (asm_emit_uninitialised): Pass flag_data_sections.
508 (assemble_variable): Likewise.
510 2002-05-14 Richard Henderson <rth@redhat.com>
512 * config/i386/i386.md: Use define_constants for unspec numbers.
513 * config/i386/i386.c: Likewise.
515 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
517 * doc/contrib.texi: Update my entry.
519 2002-05-13 Mark Mitchell <mark@codesourcery.com>
521 * fixinc/inclhack.def (winidss_valist): Limit applicability.
522 * fixinc/fixincl.x: Regenerated.
523 * fixinc/tests/base/math.h: Update.
524 * fixinc/tests/base/testing.h: Likewise.
526 2002-05-13 Zack Weinberg <zack@codesourcery.com>
528 * genattr.c (gen_attr): Don't emit a comma after the last
531 2002-05-13 Richard Henderson <rth@redhat.com>
533 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
535 * recog.c (peephole2_optimize): Likewise.
537 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
539 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
542 2002-05-13 Jeffrey A Law (law@redhat.com)
544 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
545 Update prototype and callers.
546 (propagate_one_insn): Stack pointer adjustments kill MEMs on
547 the mem_set_list which reference the stack pointer, as do
548 calls to constant functions as they may clobber outgoing
551 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
553 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
554 (ia32_multipass_dfa_lookahead): New function.
556 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
558 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
559 (translate_options): Remove 'V'.
560 (process_command): Similarly.
562 * invoke.texi: Remove documentation of 'V'.
564 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
566 * config/s390/linux.h: Revert 2002-04-22 changes.
568 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
570 * config/fr30/fr30.md: Only allow splits of immediate loads
571 if the destination is a register.
573 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
575 * Makefile.in (c-common.o, cppinit.o): Update.
576 * c-common.c: Include except.h.
577 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
578 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
579 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
580 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
581 CPP_PREDEFINES): Handle here.
583 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
584 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
585 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
586 TARGET_OS_CPP_BUILTINS.
587 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
588 (CPP_SPEC, EXTRA_SPECS): Update.
589 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
590 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
591 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
592 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
593 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
595 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
596 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
598 2002-05-12 Zack Weinberg <zack@codesourcery.com>
600 * emit-rtl.c (global_rtl): Update comment.
601 (const_double_htab, const_double_htab_hash,
602 const_double_htab_hash, lookup_const_double): New.
603 (const_int_htab_hash, const_int_htab_eq): Remove const
604 qualifiers, which cause tons of warnings with RTL checking on.
605 (gen_rtx_CONST_DOUBLE): Deleted.
606 (const_double_from_real_value): New function - bears some
607 resemblance to the former immed_real_const_1.
608 (immed_double_const): Moved here from varasm.c and
610 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
611 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
612 (gen_rtx): Use immed_double_const.
613 (init_emit_once): Initialize the const_double_htab. Use
614 REAL_VALUE_FROM_INT where possible. Can now use
615 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
616 * varasm.c (struct varasm_status): Remove x_const_double_chain.
617 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
618 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
619 (init_varasm_status, mark_varasm_status): Don't touch
620 x_const_double_chain.
622 * output.h: Delete prototype for clear_const_double_mem.
623 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
624 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
625 const_double_from_real_value, not immed_real_const_1, and use
626 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
628 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
629 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
630 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
631 (gen_rtx_REG): Second arg is unsigned.
633 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
634 (excluded_rtx): New, return true for CONST_DOUBLE.
635 (genmacro): Write nothing for excluded codes.
636 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
637 * expr.c (expand_expr): Likewise.
638 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
640 * toplev.c (rest_of_compilation): Don't call
641 clear_const_double_mem.
643 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
644 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
645 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
646 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
647 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
648 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
649 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
650 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
652 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
654 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
656 2002-05-12 Tom Tromey <tromey@redhat.com>
658 * tree.h (copy_node): Don't mention TREE_PERMANENT.
660 2002-05-12 Zack Weinberg <zack@codesourcery.com>
662 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
663 (scan_comma_elt): New function. Accepts whitespace in comma lists.
664 * gensupport.h: Prototype new routines.
665 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
667 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
668 (next_comma_elt): Use scan_comma_elt.
670 * config/i386/i386.md: Use new attribute notation to break up
671 long lines in define_attr forms.
673 2002-05-12 Richard Henderson <rth@redhat.com>
675 * expr.c (compress_float_constant): New.
676 (emit_move_insn): Use it.
677 (float_extend_from_mem): New.
678 (init_expr_once): Initialize it.
679 * real.c (exact_real_truncate): New.
681 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
682 dropped into memory; penalize for size.
683 (RTX_COSTS): FLOAT_EXTEND is free.
684 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
685 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
687 2002-05-12 Richard Henderson <rth@redhat.com>
689 * profile.h (profile_info): Add missing extern to declaration.
690 * profile.c (profile_info): Define it.
692 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
694 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
695 used for DImode and TImode.
697 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
699 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
702 2002-05-11 Zack Weinberg <zack@codesourcery.com>
704 * config/rs6000/rs6000.c (rs6000_default_long_calls,
705 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
706 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
707 (rs6000_override_options): Handle -m(no-)longcall.
708 (init_cumulative_args, output_mi_thunk): Check for both
709 longcall and shortcall attributes on the function.
710 (rs6000_attribute_table): Add "shortcall".
711 (rs6000_handle_longcall_attribute): Update comment.
712 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
713 altivec_expand_ternop_builtin): Add default clauses to switches
716 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
717 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
718 (TARGET_OPTIONS): Add longcall and no-longcall.
720 * config/rs6000/rs6000.md (call_nonlocal_sysv,
721 call_value_nonlocal_sysv): Split by alternatives. One pair
722 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
723 the call cookie. The other pair accepts only LR/CTR and has
726 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
727 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
729 * config/rs6000/rs6000-c.c: New file.
730 * config/rs6000/t-rs6000-c-rule: New file.
731 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
732 Prototype rs6000_pragma_longcall.
734 * doc/extend.texi: Document shortcall attribute.
735 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
737 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
739 * reorg.c (dbr_schedule): Remove unnecessary test.
741 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
743 * i386.md (testsi to testqi spliters): New.
745 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
747 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
749 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
751 * basic-block.h: New flag EDGE_CAN_FALLTHRU
752 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
753 that can be made fallthru.
755 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
757 * cfglayout.c (cleanup_unconditional_jumps): New static function.
758 (cfg_layout_initialize): Use it.
760 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
762 * config/avr/avr.c (avr_mcu_types): Update supported devices.
763 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
764 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
766 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
768 * dbxout.c: Fix formatting.
769 * dependence.c: Likewise.
771 * diagnostic.c: Likewise.
772 * doloop.c: Likewise.
773 * dominance.c: Likewise.
774 * doschk.c: Likewise.
775 * dwarf2asm.c: Likewise.
776 * dwarf2out.c: Likewise.
777 * dwarfout.c: Likewise.
779 2002-05-10 Richard Henderson <rth@redhat.com>
781 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
782 Convert integers constants as needed. Replace "nwords" field with
784 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
785 * function.h: Fix typo in comment.
786 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
788 2002-05-10 Roger Sayle <roger@eyesopen.com>
790 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
791 into the equivalent (signed char)c > 0.
793 2002-05-10 Janis Johnson <janis187@us.ibm.com>
795 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
796 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
797 (struct prefetch_info): Fix spelling of member bytes_accessed.
798 (emit_prefetch_instructions): Make dump messages more regular;
799 restructure code to add more dump messages; use new macros for
800 heuristics. (There are no code generation changes in any of this).
802 2002-05-10 David S. Miller <davem@redhat.com>
804 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
805 (struct rtx_def): Update unchanging flag comment.
806 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
807 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
808 to be handled to INSN too.
809 (dbr_schedule): Likewise.
810 * resource.c (next_insn_no_annul): Likewise.
812 * cse.c (rtx_cost): Remove multiplication by power of 2 special
815 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
817 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
818 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
819 (possibly) work around broken /bin/sh.
821 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
823 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
824 . as N64/N32 libgcc_s.so subdirs.
826 2002-05-10 David S. Miller <davem@redhat.com>
828 * config/sparc/sparc.md: Use define_constants for unspec numbers.
830 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
832 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
834 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
835 * doc/rtl.texi: Document these macros more accurately.
836 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
837 JUMP_INSNs and CALL_INSNs.
838 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
839 or INSN_FROM_TARGET_P if the code is appropriate.
841 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
843 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
844 before using SYMBOL_REF_FLAG (addr).
846 * config/avr/avr-protos.h (avr_io_address_p): Declare.
847 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
848 Make non-static. Update all callers.
849 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
850 New insns to clear/set/test a single bit in I/O address space.
852 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
854 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
856 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
858 * Makefile.in: Update.
859 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
860 builtin_define_std): New.
861 (c_common_init): Register CPP builtins callback.
862 * c-common.h (flag_iso, flag_undef): New.
863 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
864 * c-lex.c: Don't include target.h.
865 (cb_register_builtins): Move to c-common.c.
866 (init_c_lex): Don't register hook here.
867 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
868 (cpp_define, cpp_assert): Remove.
869 * gcc.c (cc1_options): Pass -undef to front end.
870 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
871 (TARGET_INITIALIZER): Update.
872 * target.h (struct cpp_reader): Don't predeclare.
873 (struct gcc_target): Remove cpp builtin hook.
874 * tree.c (default_register_cpp_builtins): Remove.
878 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
880 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
882 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
884 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
885 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
887 2002-05-09 Jakub Jelinek <jakub@redhat.com>
889 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
890 * config/sparc/libgcc-sparc-glibc.ver: New file.
891 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
892 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
894 2002-05-09 Jakub Jelinek <jakub@redhat.com>
897 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
898 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
899 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
901 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
902 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
903 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
904 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
906 2002-05-09 Richard Henderson <rth@redhat.com>
908 * config/ia64/ia64.md: Use define_constants for unspec numbers.
909 * config/ia64/ia64.c: Likewise.
911 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
913 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
914 (save_restore_insns): Likewise.
915 (mips_expand_prologue, mips_expand_epilogue): Update callers.
916 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
918 Thu May 9 11:50:09 2002 Jeffrey A Law (law@cygnus.com)
920 * athlon.md, k6.md, pentium.md, ppro.md): New files.
921 * i386.md: Move scheduling information into new files.
923 * i386.md (type attribute): Add "rotate" for rotate insns.
924 (rotate insns): Set type to "rotate".
925 (various attributes and function units): Treat rotate like shift.
926 (pent_pair attribute): Only rotates by one bit position are
928 (sbb insns): Explicitly set pent_pair attribute on a couple
929 that were missing it.
931 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
933 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
934 make sure that buffer starts on odd word address.
935 (sh_va_arg): Skip odd fp registers when reading a double precision
938 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
940 * tree.h (preserve_data, object_permanent_p, type_precision):
943 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
945 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
946 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
948 * cpp.texi: Update for removal of obsolete features.
950 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
951 Jeffrey A Law (law@redhat.com)
953 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
954 the DFA interface for Pentium processors.
955 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
956 (attr_pent_pair, ix86_pent_find_pair): Remove.
957 (ix86_sched_reorder_pentium): Remove.
958 (ix86_sched_reorder): Remove reordering for Pentium.
959 * i386.md (Pentium scheduling): Rewrite using DFA description.
961 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
963 * cfganal.c (can_fallthru): Fix fast path.
964 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
965 with edges to the next block.
967 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
968 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
970 * final.c (end_final): Use C trees to output data structures for profiling.
972 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
973 (profile.o): New dependency profile.h
974 (final.o): New dependency profile.h
975 * profile.h: New file. New global structure profile_info.
976 * final.h (count_edges_instrumented_now): Declare.
977 (current_function_cfg_checksum): Declare.
978 (function_list): New structure.
979 (functions_head, functions_tail): New static variables.
980 (end_final): Emits more data, removed some -ax stuff.
981 (final): Stores function names and chcksums.
982 * gcov-io.h (__write_gcov_string): New function.
983 (__read_gcov_string): New function.
984 * gcov.c (read_profile): New function.
985 (create_program_flow_graph): Uses read_profile instead of reading
987 (read_files): Removed da_file checking, it's done by read_profile now.
988 * libgcc2.c (bb_function_info): New structure.
989 (bb): New field in structure, removed some -ax stuff.
990 (__bb_exit_func): Changed structure of da_file.
991 * profile.c (count_edges_instrumented_now): New global variable.
992 (current_function_cfg_checksum): New global variable.
993 (max_counter_in_program): New global variable.
994 (get_exec_counts): New function.
995 (compute_checksum): New function.
996 (instrument_edges): Sets count_edges_instrumented_now.
997 (compute_branch_probabilities): Uses get_exec_counts instead of
999 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
1000 (init_branch_prob): Removed da_file checking, done in get_exec_counts
1002 (end_branch_prob): Removed da_file checking, done in get_exec_counts
1004 * gcov.texi: Updated information about gcov file format.
1006 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
1008 * sbitmap.c: Fix formatting.
1010 * scan-decls.c: Likewise.
1011 * sched-deps.c: Likewise.
1012 * sched-ebb.c: Likewise.
1013 * sched-rgn.c: Likewise.
1014 * sched-vis.c: Likewise.
1015 * sdbout.c: Likewise.
1016 * sibcall.c: Likewise.
1017 * simplify-rtx.c: Likewise.
1019 * ssa-ccp.c: Likewise.
1020 * ssa-dce.c: Likewise.
1022 * stor-layout.c: Likewise.
1023 * stringpool.c: Likewise.
1025 2002-05-09 David S. Miller <davem@redhat.com>
1027 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
1029 2002-05-07 David S. Miller <davem@redhat.com>
1031 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
1032 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
1033 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
1034 library implementation clobbers the output before the inputs
1035 are fully consumed, use stack temporary for the output.
1037 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
1039 * config/netbsd.h (CPP_SPEC): Remove.
1040 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
1041 * config/i386/netbsd.h (CPP_SPEC): Define.
1042 * config/ns32k/netbsd.h (CPP_SPEC): Define.
1043 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
1044 * config/sparc/netbsd.h (CPP_SPEC): Define.
1045 * config/vax/netbsd.h (CPP_SPEC): Define.
1047 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
1049 * read-rtl.c: Fix formatting.
1051 * recog.c: Likewise.
1052 * regclass.c: Likewise.
1053 * regmove.c: Likewise.
1054 * reg-stack.c: Likewise.
1055 * reload1.c: Likewise.
1056 * reload.c: Likewise.
1057 * resource.c: Likewise.
1058 * rtlanal.c: Likewise.
1060 * rtl-error.c: Likewise.
1062 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
1064 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
1065 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
1067 2002-05-08 Bernd Schmidt <bernds@redhat.com>
1069 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
1070 use __SSE2__ macro instead.
1071 * config/i386/xmmintrin.h: Likewise.
1073 2002-05-08 Janis Johnson <janis187@us.ibm.com>
1075 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
1076 and use it in all invocations of these macros. Clean up comments.
1077 * rtl.c (rtl_check_failed_flag): Add an argument for the name
1078 of the flag access macro whose check failed.
1079 * doc/rtl.texi (Flags): Document additional flag uses.
1081 2002-05-08 Robert Spier <rspier@pobox.com>
1082 Neil Booth <neil@daikokuya.demon.co.uk>
1084 PR preprocessor/6521
1085 * cppfiles.c (handle_missing_header): Don't do anything
1086 different for <> includes.
1088 * cppopts.texi: Update documentation for -MG.
1090 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
1092 * cpplex.c (cpp_interpret_charconst): Truncate as well as
1095 * cpp.texi: Clarify multichar charconst valuation.
1097 2002-05-08 Mark Mitchell <mark@codesourcery.com>
1099 * doc/invoke.texi: Document -mwindiss option.
1101 2002-05-08 Jason Merrill <jason@redhat.com>
1103 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
1105 * dwarf2out.c (gen_type_die): Abort on broken recursion.
1108 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
1111 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
1113 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
1114 little-endian multilibs to override arm/thumb multilibs.
1115 Do not build hardware floating point multilibs, nor apcs-26
1116 multilibs for the Thumb.
1118 2002-05-08 Mark Mitchell <mark@codesourcery.com>
1121 * varasm.c (mark_weak): New function.
1122 (merge_weak): Use it. Do not call declare_weak.
1123 (declare_weak): Use merge_weak.
1125 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1127 * cse.c (dead_libcall_p): Update counts.
1128 (delete_trivially_dead_insns): Update call of dead_libcall_p.
1130 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
1132 * cfglayout.c (function_tail_eff_head): Rename to ...
1133 (function_footer): ... this one.
1134 (unlink_insn_chain): New functions.
1135 (label_for_bb): Only call block_label and emit debug message.
1136 (record_effective_endpoints): Actually unlink the headers and footers.
1137 (fixup_reorder_cahin): Re-insert the unlinked sequences.
1138 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
1139 * cfglayout.h (struct reorder_block_def): New fields footer/header;
1140 remove eff_head/eff_end.
1141 * rtl.h (set_first_insn): Declare.
1142 * emit-rtl.c (set_first_insn): New function.
1144 * cfglayout.c (fixup_reorder_chain): Dump duplicated
1145 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1146 cfg_layout_duplicate_bb): New global function.
1147 (duplicate_insn_chain): New static function.
1148 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1149 cfg_layout_duplicate_bb): Declare.
1150 (struct reorder_block_def): Add "original" field.
1151 * emit-rtl.c (emit_copy_of_insn_after): New function.
1152 * rtl.h (emit_copy_of_insn_after): Declare.
1154 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
1155 (fixup_reorder_chain): properly handle edges to exit block.
1157 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1158 Jan Hubicka <jh@suse.cz>
1160 * basic-block.h (note_prediction_to_br_prob): declare.
1161 * c-semantics.c: Inlucde predit.h
1162 (expand_stmt): predict GOTO_STMT as not taken.
1163 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
1164 (cleanup_cfg): Do not free tail_recursion_list.
1165 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
1166 (flow_delete_block): Kill predictions past end of basic block.
1167 * output.h (delete_unreachable_blocks): Declare.
1168 * predict.c (predicted_by_p, process_note_predictions,
1169 process_note_prediction, last_block_p): New function.
1170 (estimate_probability): Bypass loop on PRED_CONTINUE;
1171 do not handle noreturn heuristics; kill PRED_RETURN; add
1173 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
1174 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
1175 * predict.h (IS_TAKEN): New constant.
1176 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
1177 * rtl.c (NOTE_INSN_PREDICTION): New.
1178 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
1180 (insn_note): add NOTE_INSN_PREDICTION.
1181 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
1182 CFG; free tail_recursion_label_list.
1183 * stmt.c: Include predict.h;
1184 (return_prediction): New.
1185 (expand_value_return): Use it.
1186 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
1188 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
1190 * config/mips/mips.md: Name the unspecs with define_constant.
1191 (*HILO_delay): Rename to 'hilo_delay' (no star).
1192 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
1193 (reload_outdi, reload_outsi): Likewise.
1195 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
1197 * toplev.c: Fix formatting.
1199 2002-05-07 Janis Johnson <janis187@us.ibm.com>
1201 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
1202 * configure.in (ac_rtlflag_checking): New.
1203 * doc/install.texi (--enable-checking): Document RTL flag checking.
1205 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
1207 * c-common.c (c_common_init): Set options->unsigned_wchar.
1208 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
1209 group target dependencies.
1210 (init_builtins, cpp_handle_option): Update.
1211 * cpplex.c (cpp_interpret_charconst): Update.
1212 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
1213 signed_char to unsigned_char, group target dependencies.
1214 * defaults.h (WCHAR_UNSIGNED): Remove.
1215 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
1217 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
1218 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
1219 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
1220 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
1221 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
1223 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
1225 2002-05-07 Mark Mitchell <mark@codesourcery.com>
1227 * fixinc/inclhack.def (windiss_math1): New fix.
1228 (windiss_math2): Likewise.
1229 (windiss_valist): Likewise.
1230 * fixinc/fixincl.x: Regenerated.
1232 2002-05-07 Andreas Jaeger <aj@suse.de>
1234 * genautomata.c (output_internal_min_issue_delay_func): Add
1235 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
1236 (output_internal_trans_func): Likewise.
1238 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
1240 * pa.c (hppa_profile_hook): Use force_reg to get the address
1241 of the profile hook into an appropriate pseudo register.
1243 2002-05-07 Mark Mitchell <mark@codesourcery.com>
1245 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
1246 (LINK_START_SPEC): Handle it.
1247 (LINK_OS_SPEC): Likewise.
1248 (CPP_SPEC): Likewise.
1249 (STARTFILE_SPEC): Likewise.
1250 (LIB_SPEC): Likewise.
1251 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
1253 (CRTSAVRES_DEFAULT_SPEC): New macro.
1254 (LIB_WINDISS_SPEC): New macro.
1255 (CPP_OS_WINDISS_SPEC): Likewise.
1256 (STARTFILE_WINDISS_SPEC): Likewise.
1257 (ENDFILE_WINDISS_SPEC): Likewise.
1258 (LINK_START_WINDISS_SPEC): Likewise.
1259 (LINK_OS_WINDISS_SPEC): Likewise.
1260 * config/rs6000/windiss.h: New file.
1262 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
1264 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
1266 2002-05-06 David S. Miller <davem@redhat.com>
1268 * config/sparc/sparc.md (shift insns): Do not mask off
1269 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
1272 2002-05-06 Richard Henderson <rth@redhat.com>
1275 * expr.c (highest_pow2_factor_for_type): New.
1276 (expand_assignment): Use it.
1278 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
1280 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
1282 ("altivec_mfvscr"): Same.
1284 2002-05-06 Janis Johnson <janis187@us.ibm.com>
1286 * rtl.h (struct rtx_def): Update comments.
1287 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
1288 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
1289 RTL_FLAG_CHECK macros with list of expected RTL codes.
1290 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
1291 (rtl_check_failed_flag): New.
1292 * reload1.c (reload): Use REG macro before changing rtx to MEM.
1293 (reload_cse_noop_set_p): Check rtx code before using access macro.
1294 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
1295 before using access macro.
1297 2002-05-06 Janis Johnson <janis187@us.ibm.com>
1299 * doc/rtl.texi (Flags): Update to reflect current usage.
1301 2002-05-06 Roger Sayle <roger@eyesopen.com>
1304 * fold-const.c (sign_bit_p): New function.
1305 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
1306 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1307 Reapply fold when converting (A & C) == C into (A & C) != 0.
1308 (fold_binary_op_with_conditional_arg): Fix typo in comment.
1310 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
1312 * c-common.c (warn_multichar): New.
1313 (c_common_init): Set CPP's warn_multichar.
1314 * c-common.h (warn_multichar): New.
1315 * c-decl.c (warn_multichar): Remove.
1316 * c-lex.c (lex_charconst): Update.
1317 * c-tree.h (warn_multichar): Remove.
1318 * cppexp.c (eval_token): Sign-extend charconst value.
1319 * cppinit.c (cpp_create_reader): Set warn_multichar.
1320 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
1321 each character. Update prototype. Sign-extend the result.
1322 * cpplib.h: Fix conditions.
1323 (struct cpp_options): Add new warning flag.
1324 (cpp_interpret_charconst): Update prototype.
1326 * cpp.texi: Update documentation.
1328 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
1330 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
1331 Fix typo in usage of allof instead of unit.
1333 2002-05-06 Richard Henderson <rth@redhat.com>
1335 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
1336 and any jump or call for IN.
1338 2002-05-06 Bernd Schmidt <bernds@redhat.com>
1340 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
1342 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
1344 2002-05-06 Roger Sayle <roger@eyesopen.com>
1346 * fold-const.c (lshift-double): Cast the high word to an unsigned
1347 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
1348 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
1349 avoid compiler warning. (fold): Remove redundant code from
1350 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
1352 2002-05-06 Jeff Law <law@redhat.com>
1354 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
1355 * pa.c (pa_adjust_cost): Remove all true dependency cost
1356 adjustments. Also remove support for non-DFA scheduling.
1357 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
1358 to adjust true dependency costs. Update various comments.
1359 (7100lc, 7200, 7300 scheduling): Simplify by combining the
1360 FP ALU & MPY units into a single unit.
1362 2002-05-06 Catherine Moore <clm@redhat.com>
1364 * config/v850/v850.c (compute_register_save_size): Make sure
1365 to count all of the registers that will be saved.
1367 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1369 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
1371 2002-05-06 David S. Miller <davem@redhat.com>
1373 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
1374 allow result to overlap input operands in memory.
1376 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
1379 * cpp.texi: Update multichar charconst docs.
1381 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
1383 * cpplex.c (cpp_interpret_charconst): Sign-extend each
1384 character. Don't ignore excess characters. Treat
1385 multicharacter character constants as signed.
1386 (cpp_parse_escape): Clarify diagnostic.
1388 2002-05-05 Jakub Jelinek <jakub@redhat.com>
1390 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
1391 use add instead of shift.
1392 (ashldi3_sp64): Likewise.
1393 (ashlsi3_const1, ashldi3_const1): Remove.
1394 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
1395 * config/sparc/sparc.c (const1_operand): New.
1397 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
1399 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
1401 2002-05-05 Jakub Jelinek <jakub@redhat.com>
1404 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
1406 2002-05-05 Richard Henderson <rth@redhat.com>
1408 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
1409 memory latency adjustments.
1410 (alpha_variable_issue): Remove.
1411 (alpha_use_dfa_pipeline_interface): New.
1412 (alpha_multipass_dfa_lookahead): New.
1413 * config/alpha/alpha.md: Remove define_function_unit scheduling;
1414 include new dfa scheduling.
1415 (attr type): Add none.
1417 * config/alpha/ev4.md: New.
1418 * config/alpha/ev5.md: New.
1419 * config/alpha/ev6.md: New.
1421 2002-05-05 David S. Miller <davem@redhat.com>
1423 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
1425 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
1427 * cse.c: Fix formatting.
1428 * emit-rtl.c: Likewise.
1430 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
1432 * genautomata.c (initiate_states): Add additional guard to
1433 initialize `units_array'.
1435 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
1437 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
1438 process_unit_to_form_the_same_automaton_unit_lists,
1439 form_the_same_automaton_unit_lists
1440 check_unit_distributions_to_automata): New prototypes and
1442 (check_automata): Rename it into `check_automata_insn_issues'.
1443 (unit_decl): New fields `the_same_automaton_unit' and
1444 `the_same_automaton_message_reported_p'.
1445 (unit_decl_t): New typedef.
1446 (the_same_automaton_lists): New gloval variable.
1447 (unit_regexp, unit_set_el, units_array, units_cmp,
1448 output_get_cpu_unit_code_func): Use the typedef.
1449 (evaluate_max_reserv_cycles): Increment
1450 `description->max_insn_reserv_cycles'.
1451 (initiate_states): Don't increment `max_cycles_num'.
1452 (transform_insn_regexps): Move code around transformation of
1453 regexps from `generate'.
1454 (generate): Remove call of `transform_insn_regexps'.
1455 (expand_automata): Call `transform_insn_regexps' and
1456 `check_unit_distributions_to_automata'. Check errors before
1459 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
1460 automaton `ultrasparc3_1'.
1462 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
1464 * c-common.c (c_common_init): Set up CPP arithmetic.
1465 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
1466 something reasonable for the host.
1467 (sanity_checks): Add checks.
1468 (cpp_read_main_file): Call sanity_checks() from here...
1469 (cpp_post_options): ... not here.
1470 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
1471 * cpplib.h (struct cpp_options): New member int_precision.
1473 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1475 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
1477 2002-05-04 David S. Miller <davem@redhat.com>
1479 * config/sparc/linux.h, config/sparc/linux64.h
1480 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
1482 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
1484 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
1486 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
1489 2002-05-05 Tim Josling <tej@melbpc.org.au>
1491 * treelang; New directory for new sample language treelang.
1493 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1495 * Makefile.in (c-lex.o): Update.
1496 * c-lex.c: Include target.h.
1497 (cb_register_builtins): New.
1498 (init_c_lex): Set builtins callback.
1499 * c-lex.h (cpp_define, cpp_assert): New prototypes.
1500 * cppinit.c (init_builtins): Use callback, including for
1502 * cpplib.h (struct cpp_callbacks): New member.
1503 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
1504 (TARGET_INITIALIZER): Update.
1505 * target.h (struct gcc_target): New hook.
1506 * tree.c (default_register_cpp_builtins): New.
1507 * tree.h (default_register_cpp_builtins): New.
1509 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
1511 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1513 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
1514 (cpp_post_options): Move sanity checks to...
1515 (sanity_checks): New.
1516 * cpplex.c (maybe_read_ucs): Fix prototype.
1517 (parse_string, cpp_parse_escape): Cast for %c format specifier.
1518 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
1521 2002-05-04 Bernd Schmidt <bernds@redhat.com>
1523 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
1524 builtins. Use V2DI patterns instead of TI for logical operations.
1525 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
1526 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
1527 (ix86_expand_builtins): Change the pattern used for movntdq.
1528 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
1529 sse2_nandv2di3): New patterns.
1530 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
1532 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
1533 (cvtdq2pd): Correct mode on operand 1.
1534 (sse2_umulsidi3): Describe without unspec.
1535 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
1537 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
1538 (ashlv2di3): Likewise, from sse2_ashlv2di3.
1539 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
1540 ashlv4si3, ashlv2di3): Use SImode for shift count.
1541 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
1542 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
1544 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
1546 (__m128i, __m128d): New macros.
1547 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
1548 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
1549 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
1550 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
1551 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
1552 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
1553 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
1554 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
1555 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
1556 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
1557 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
1558 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
1559 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
1560 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
1561 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
1562 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
1563 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
1564 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
1565 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
1566 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
1567 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
1568 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
1569 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
1570 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
1571 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
1572 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
1573 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
1574 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
1575 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
1576 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
1577 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
1578 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
1579 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
1580 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
1581 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
1582 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
1583 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
1585 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
1586 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
1588 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
1590 * dwarf2out.c: Fix formatting.
1591 * varasm.c: Likewise.
1593 2002-05-04 David Edelsohn <edelsohn@gnu.org>
1596 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
1597 clobber and use result as temporary value.
1599 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1601 * expr.c (force_operand): Use expand_simple_* to handle more
1604 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1606 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
1608 (lex_charconst): Update for change in prototype of
1609 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
1611 * cpphash.h (BITS_PER_CPPCHAR_T): New.
1612 * cppinit.c (cpp_create_reader): Initialize them for no
1613 change in semantics.
1614 (cpp_post_options): Add sanity checks.
1615 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
1616 and truncation issues. Calculate in type cppchar_t.
1617 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
1618 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
1619 run-time dependent precision correctly. Return whether the
1620 result is signed or not.
1621 * cpplib.c (dequote_string): Use cppchar_t; update.
1622 * cpplib.h (cppchar_signed_t): New.
1623 struct cpp_options): New precision members.
1624 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
1625 * cppexp.c (eval_token): Update.
1627 2002-05-03 David S. Miller <davem@redhat.com>
1629 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
1630 * config/sparc/sparc.c (sparc_rtx_costs): New function
1631 implementing RTX_COSTS and CONST_COSTS.
1632 * config/sparc/sparc.h (CONST_COSTS): Delete.
1633 (RTX_COSTS_CASES): Define.
1634 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
1637 * config/sparc/sparc.md (DFA schedulers): Split out...
1638 * config/sparc/cypress.md, config/sparc/hypersparc.md,
1639 config/sparc/sparclet.md, config/sparc/supersparc.md,
1640 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
1642 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
1643 checks on it, always defined for Sparc.
1645 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
1646 Tweak, and add more detailed comments.
1648 2002-05-03 Zack Weinberg <zack@codesourcery.com>
1650 * Re-apply patch accidentally reverted with
1651 DFA scheduler merge: remove all rules and variables to slurp
1652 source files out of libiberty and rebuild them with HOST_CC.
1653 ($(HOST_PREFIX_1)varray.o): New rule.
1654 (genattrtab rule): Word wrap.
1656 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1658 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
1659 (CPP_SUBTARGET_SPEC): Define.
1660 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
1661 cpp_subtarget specs.
1662 (CPP_SPEC): Redefine to include %(cpp_subtarget).
1664 2002-05-03 David S. Miller <davem@redhat.com>
1666 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
1667 * target.h (struct gcc_target): Delete cycle_display member.
1669 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
1670 (rtx_needs_barrier): Delete reference to cycle_display unspec.
1671 (ia64_sched_reorder2): Mention need for cycle display handling
1672 once such notes exist.
1674 2002-05-03 Richard Henderson <rth@redhat.com>
1676 * real.c (etoasc): Strip most trailing zeros for clarity.
1677 * sched-vis.c: Include real.h.
1678 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
1679 * Makefile.in (sched-vis.o): Add real.h.
1681 2002-05-03 David S. Miller <davem@redhat.com>
1683 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
1686 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
1688 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
1689 when we get an out of range literal.
1690 (altivec_expand_ternop_builtin): Same.
1691 (altivec_expand_unop_builtin): Same.
1692 (altivec_expand_builtin): Same, for dss.
1693 (altivec_expand_builtin): Use trees instead of rtl when
1694 determining literal argument validity.
1696 2002-05-03 David S. Miller <davem@redhat.com>
1698 Delete cycle display scheduling hook.
1699 * config/ia64/ia64.c (ia64_cycle_display,
1700 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
1701 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
1702 and use emit_insn_before instead of ia64_emit_insn_before.
1703 * config/ia64/ia64.md (unspec usage): Delete cycle display.
1704 (cycle_display): Delete insn pattern.
1705 * config/sparc/sparc.md (unspec usage): Delete cycle display.
1706 (cycle_display): Delete insn pattern.
1707 * config/sparc/sparc.c (sparc_cycle_display,
1708 TARGET_SCHED_CYCLE_DISPLAY): Delete.
1709 * doc/md.texi (cycle_display): Don't mention.
1710 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
1712 2002-05-03 Richard Henderson <rth@redhat.com>
1714 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
1715 * recog.h: Declare them.
1717 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
1718 * config/sparc/sparc.md: Use store_data_bypass_p instead.
1719 * config/sparc/sparc-protos.h: Update.
1721 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1723 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
1724 -D__arch64__. Add -D_LP64.
1725 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
1727 (CPP_ARCH64_SPEC): Likewise.
1728 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
1729 (NO_BUILTIN_SIZE_TYPE): Undef.
1731 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
1733 * genautomata.c (min_issue_delay_pass_states): Change return type
1735 (min_issue_delay_pass_states): Change the algorithm.
1736 (min_issue_delay): Set up min_insn_issue_delay for the state.
1737 (output_min_issue_delay_table): Interchange the nested loops and
1738 and initiate min_insn_issue_delay for states.
1740 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
1742 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
1745 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
1747 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
1750 2002-05-03 Richard Henderson <rth@redhat.com>
1753 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1754 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
1755 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
1756 code before JUMP, not EARLIEST.
1758 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
1760 * c-format.c (check_format_info_main): Don't check for presence of
1761 parameter for * width until after operand number has been read,
1762 and only check for it if format parameters are available.
1765 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1767 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
1768 (LINK_SPEC): Undef before defining.
1770 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1772 PR preprocessor/6489
1773 * tradcpp.c (fixup_newlines): New.
1774 (main, finclude): Use it.
1776 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
1778 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
1779 * config/mips/mips.c (mips_unique_section): Strip encoding from
1782 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1784 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
1787 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1789 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
1790 (Specific): Removed buildstats references.
1791 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
1792 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
1793 Accomodate Solaris versions beyond 8.
1794 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
1795 (Specific, *-*-solaris2.8): Removed, obsolete.
1797 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1800 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
1801 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
1802 fill leaf_reg_remap with identity.
1803 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
1805 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1807 * config/h8300/crti.asm: Remove trailing spaces.
1808 * config/h8300/h8300.c: Likewise.
1809 * config/h8300/lib1funcs.asm: Likewise.
1811 2002-05-02 Jason Merrill <jason@redhat.com>
1813 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
1814 * c-decl.c (c_init_decl_processing): Use it.
1815 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
1816 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
1817 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
1819 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1821 * regrename.c: Fix formatting.
1824 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
1826 * i386.md (attribute memory): Handle compares properly.
1828 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
1830 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
1833 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
1835 * function.c: Fix formatting.
1837 2002-05-02 Jan Hubicka <jh@suse.cz>
1839 * haifa-sched.c (schedule_insn): Print table of instructions and
1841 (sched_block): Do not print ready list at verbosity level 1.
1842 * sched-vis.c (print_insn): Make global.
1843 * sched-ebb.c (ebb_print_insn): Rename from...
1844 (print_insn): ... this one.
1845 * sched-int.h (print_insn): Declare
1847 2002-05-02 Richard Henderson <rth@redhat.com>
1849 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
1850 emitted by cycle_display.
1852 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
1854 * doc/install.texi (*-*-freebsd*): Update to latest status.
1856 2002-05-02 Jakub Jelinek <jakub@redhat.com>
1859 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
1860 * config/float-sparc.h: Assume 128-bit long double if
1861 __LONG_DOUBLE_128__ is defined.
1863 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
1865 * genattrtab.c (write_function_unit_info): Add a dummy element
1866 when num_units == 0.
1868 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1870 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
1871 TYPE_MODE (double_type_node) instead of DFmode.
1873 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
1875 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
1877 * toplev.c (rest_of_compilation): Revert Richard's patch.
1879 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
1881 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
1883 2002-05-02 Catherine Moore <clm@redhat.com>
1885 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
1887 2002-05-02 Kazu Hirata <kazu@hxi.com>
1889 * combine.c: Fix comment typos.
1891 * genautomata.c: Likewise.
1895 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
1897 * doc/install.texi: State GNAT version requirements.
1899 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
1901 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
1902 of the frame pointer or arg pointer register which strict register
1903 checking is not enabled.
1905 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
1907 * gcc.dg/altivec-8.c: New.
1909 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
1910 PRE_INC and PRE_DEC for altivec modes.
1912 2002-05-01 Bruce Korb <bkorb@gnu.org>
1914 * fixinc/check.tpl(set-writable): make sure the function exists first
1915 * fixinc/inclhack.def(alpha_assert): fix test_text
1916 * fixinc/tests/base/assert.h: add in missing result
1918 2002-05-01 Jeff Law <law@redhat.com>
1920 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
1923 2002-05-01 Joel Brobecker <brobecker@gnat.com>
1925 * dbxout.c (dbxout_type): Emit size information for range types,
1926 as well, but only when using GDB extensions.
1928 2002-05-01 Richard Henderson <rth@redhat.com>
1930 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
1931 target-independent gnu binutils date test.
1933 2002-05-01 Richard Henderson <rth@redhat.com>
1935 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
1936 info before expunging the block.
1938 2002-05-01 Jakub Jelinek <jakub@redhat.com>
1940 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
1941 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
1942 -M -or -MM is in effect.
1944 2002-05-01 Zack Weinberg <zack@codesourcery.com>
1946 * config.gcc: Correct test of --enable-obsolete. Obsolete all
1947 A29k configurations.
1948 * doc/install.texi: Update to match.
1950 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1953 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
1954 for duplicates. Always loop over whole list.
1956 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1958 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
1960 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1962 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
1965 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1967 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
1969 2002-05-01 David Edelsohn <edelsohn@gnu.org>
1971 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
1972 (nabs_nopower): Same.
1973 (floatdisf2): New pattern.
1974 (absdi2): Convert to define_insn_and_split.
1979 (fix_trunctfdi2): Same.
1980 (fix_trunctfsi2): Same.
1982 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
1984 * doc/install.texi: Update Texinfo version requirement
1987 2002-05-01 Jakub Jelinek <jakub@redhat.com>
1989 PR target/6512, PR target/5628
1990 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
1991 when memory is not aligned.
1992 (movdf_insn_v9only_vis): Likewise.
1993 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
1994 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
1995 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
1997 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
1999 * gcc.dg/altivec-7.c: New.
2001 * config/rs6000/altivec.h: Cleanup.
2003 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
2005 * doc/invoke.texi (Option Summary): Add -mvrsave=.
2006 (RS/6000 and PowerPC Options): Document -mvrsave=.
2008 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
2009 (rs6000_altivec_vrsave_string): Same.
2010 (rs6000_override_options): Call rs6000_parse_vrsave_option.
2011 (rs6000_parse_vrsave_option): New.
2012 (rs6000_stack_info): Only generate vrsave instructions when
2013 TARGET_ALTIVEC_VRSAVE.
2015 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
2016 (rs6000_altivec_vrsave_string): Define extern.
2017 (rs6000_altivec_vrsave): Same.
2018 (TARGET_ALTIVEC_VRSAVE): New.
2020 2002-04-30 Richard Henderson <rth@redhat.com>
2023 * toplev.c (rest_of_compilation): Don't run cross-jump before
2026 2002-04-30 Tom Rix <trix@redhat.com>
2028 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
2029 check which_alternative.
2031 2002-04-30 Kazu Hirata <kazu@hxi.com>
2033 * cpplex.c: Fix comment formatting.
2034 * function.c: Likewise.
2035 * integrate.c: Likewise.
2036 * regrename.c: Likewise.
2037 * sibcall.c: Likewise.
2038 * simplify-rtx.c: Likewise.
2039 * tree-inline.c: Likewise.
2041 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2043 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
2044 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
2045 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
2046 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
2047 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
2048 * pa/x-ada: New file. Define ADA_CFLAGS.
2050 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
2052 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
2053 from MMIX_LAST_REGISTER_FILE_REGNUM.
2054 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
2055 (struct machine_function): New member highest_saved_stack_register
2056 previously static variable in mmix.c.
2057 (MACHINE_DEPENDENT_REORG): Define.
2058 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
2059 (MMIX_OUTPUT_REGNO): New.
2060 (mmix_target_asm_function_prologue): Move calculation of last used
2061 saved-stack-register into...
2062 (mmix_machine_dependent_reorg): New function. Update to also handle
2064 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
2065 register names, simplify somewhat by new variable regno.
2066 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
2068 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
2069 emitting register names.
2070 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
2071 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
2073 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
2076 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
2078 2002-04-30 Richard Henderson <rth@redhat.com>
2080 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
2081 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
2082 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
2083 emit_tfmode_cvt): New.
2084 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
2085 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
2086 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
2087 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
2088 * config/sparc/sparc-protos.h: Update.
2090 2002-04-30 Janis Johnson <janis187@us.ibm.com>
2092 * install.texi (Final install): Add to the list of info to include
2093 in a report of a successful bootstrap, and add link to 3.1 list.
2095 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
2097 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
2098 (mode): Add vector modes
2099 (i387): Kill attribute.
2100 (unit): New attribute.
2101 (length_immediate): Grok new types.
2102 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
2103 (modrm): Use "unit".
2104 (memory): Handle MMX/SSE properly.
2105 (scheduling descriptions): Kill uses of fop1.
2106 (sse, mmx, fp patterns): Set type and mode properly.
2108 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
2110 * pa.c (override_options): Default to PA8000 scheduling.
2111 * doc/invoke.texi (HP-PA options): Mention newly added 7300
2112 scheduling parameter.
2114 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
2115 handling of double precision multiplies.
2117 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
2118 fpdiv and fpsqrt instructions.
2119 (7200 & 7300 scheduling): Fix typo in handling of
2120 store-load and store-store penalties.
2122 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2124 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
2125 mips. Add two missing commas.
2127 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
2129 * doc/contrib.texi (Contributors): Update Paolo Carlini's
2130 and Benjamin Kosnik's entries.
2132 2002-04-29 David S. Miller <davem@redhat.com>
2134 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
2135 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
2136 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
2137 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
2139 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2141 * combine.c (find_split_point): Use gen_int_mode.
2143 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
2145 Merging code from dfa-branch:
2147 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
2149 * genautomata.c (output_reserv_sets): Fix typo.
2151 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
2153 * genautomata.c (output_reserv_sets): Remove
2154 next_cycle_output_flag.
2156 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
2158 * sched-rgn.c (init_ready_list): Make the DFA code handle
2159 USE/CLOBBER insns in the same way as the traditional
2161 (new_ready): Similarly..
2163 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
2165 * haifa-sched.c (schedule_block): Change the DFA state only after
2168 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
2170 * pa.c (hppa_use_dfa_pipeline_interface): New function.
2171 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
2172 (override_options): Add PA7300 scheduling support.
2173 (pa_adjust_cost): Update various comments. Properly
2174 handle anti and output dependencies when using the
2176 (pa_issue_rate): Add PA7300 scheduling support.
2177 (pa_can_combine_p): Call extract_insn before calling
2178 constrain_operands (taken from mainline tree).
2179 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
2180 * pa.md (cpu attr): Add 7300. Rewrite pipeline
2181 descriptions using DFA descriptions. Add PA7300
2184 2002-03-30 David S. Miller <davem@redhat.com>
2186 Add UltraSPARC-III DFA scheduling support.
2187 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
2188 Update FP conditional move on register insn patterns to use it, as
2190 (define_attr cpu): Add ultrasparc3.
2191 (define_attr us3load_type): New, update integer load patterns to
2192 set it, as appropriate.
2193 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
2194 (rest): Add UltraSPARC3 scheduling description.
2195 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
2196 (PROCESSOR_ULTRASPARC3): New.
2197 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
2198 ({ASM,CPP}_CPU_SPEC): Likewise.
2199 (REGISTER_MOVE_COST): Likewise.
2200 (RTX_COSTS): Likewise.
2201 * config/sparc/sparc.c (sparc_override_options,
2202 sparc_initialize_trampoline, sparc64_initialize_trampoline,
2203 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2204 sparc_issue_rate): Likewise.
2205 * config/sparc/sol2.h: Likewise.
2206 * config/sparc/sol2-sld-64.h: Likewise.
2207 * config/sparc/linux64.h: Likewise.
2209 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
2211 * doc/md.texi: Add comments about usage the latency time for the
2212 different dependencies and about case when two or more conditions
2213 in different define_insn_reservations returns TRUE for an insn.
2215 * doc/md.texi: Add reference for automaton based pipeline
2218 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
2220 * doc/passes.texi: Add missed information about genattrtab.
2222 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
2224 * genautomata.c (output_automata_list_transition_code): Check
2225 automata_list on NULL.
2227 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
2229 * genautomata.c (output_insn_code_cases,
2230 output_automata_list_min_issue_delay_code,
2231 output_automata_list_transition_code,
2232 output_automata_list_state_alts_code): Comment the functions.
2234 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
2236 * genautomata.c (automata_list_el_t): New typedef.
2237 (get_free_automata_list_el,free_automata_list_el,
2238 free_automata_list, automata_list_hash, automata_list_eq_p,
2239 initiate_automata_lists, automata_list_start, automata_list_add,
2240 automata_list_finish, finish_automata_lists,
2241 output_insn_code_cases, output_automata_list_min_issue_delay_code,
2242 output_automata_list_transition_code,
2243 output_automata_list_state_alts_code, add_automaton_state,
2244 form_important_insn_automata_lists): New functions and prototypes.
2245 (insn_reserv_decl): Add members important_automata_list and
2247 (ainsn): Add members important_p.
2248 (automata_list_el): New structure.
2249 (first_free_automata_list_el, current_automata_list,
2250 automata_list_table): New global variables.
2251 (create_ainsns): Initiate member important_p.
2252 (output_internal_min_issue_delay_func): Generate the switch and
2253 call output_insn_code_cases.
2254 (output_internal_trans_func, output_internal_state_alts_func):
2256 (generate): Call initiate_automata_lists.
2257 (automaton_states): New global variable.
2258 (expand_automata): Call form_important_insn_automata_lists.
2259 (write_automata): Call finish_automata_lists.
2261 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
2263 * genautomata.c (add_excls, add_presence_absence): Check that
2264 cpu units in the sets belong the same automaton.
2266 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
2267 about that cpu units in the sets belong the same automaton.
2269 * doc/md.texi: Ditto.
2271 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
2272 Nitin Gupta <niting@noida.hcltech.com>
2274 * config/sh/sh.c (sh_use_dfa_interface): New function.
2276 (sh_issue_rate): New Function.
2277 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
2278 TARGET_SCHED_ISSUE_RATE: define.
2280 * config/sh/sh.md: Add DFA based pipeline description for SH4.
2282 (define_attr insn_class): New attribute used for DFA
2284 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
2285 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
2286 cmpeqdi_t): Likewise.
2288 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
2289 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
2291 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
2293 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
2295 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
2298 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
2300 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
2301 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
2303 (output_dfa_start_func): Initiate new variable insn_codes_length,
2304 (write_automata): Output definition of the new variable.
2306 2001-10-02 David S. Miller <davem@redhat.com>
2308 * haifa-sched.c (advance_one_cycle): New function.
2309 (schedule_block): Use it.
2310 (queue_to_ready): Use it, and also make sure to advance the DFA
2311 state on all stall cycles, not just those where insn_queue links
2314 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
2316 * haifa-sched.c (max_issue): Remove last_p argument. Only return
2317 non-zero if the highest-priority instruction could be scheduled.
2318 (choose_ready): Remove last argument from max_issue call.
2320 2001-09-28 David S. Miller <davem@redhat.com>
2322 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
2323 ultrasparc and 3 for other multi-issue sparcs.
2325 2001-09-27 David S. Miller <davem@redhat.com>
2327 * config/sparc/sparc.md (cycle_display): New pattern.
2328 * config/sparc/sparc.c (sparc_cycle_display): New.
2329 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
2331 2001-09-25 David S. Miller <davem@redhat.com>
2333 Convert all of Sparc scheduling to DFA
2334 * config/sparc/sparc.md: Kill all define_function_unit
2335 directives and replace with DFA equivalent.
2336 * config/sparc/sparc.c (ultrasparc_adjust_cost,
2337 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
2338 ultra_fpmode_conflict_exists, ultra_find_type,
2339 ultra_build_types_avail, ultra_flush_pipeline,
2340 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
2341 ultrasparc_variable_issue, ultrasparc_sched_init,
2342 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
2343 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
2344 ultra_cur_hist, ultra_cycles_elapsed): Kill.
2345 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2346 ultrasparc_store_bypass_p): New.
2347 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
2350 2001-09-24 David S. Miller <davem@redhat.com>
2352 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
2353 ready->vec[foo] not ready[foo].
2355 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
2357 * doc/md.texi: Correct examples for define_insn_reservations
2360 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
2362 * genautomata.c (create_automata): Print message about creation of
2364 (generate): Remove printing meease about creation of
2367 2001-09-05 David S. Miller <davem@redhat.com>
2369 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
2370 * config/sparc/linux64.h: Likewise.
2372 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
2374 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
2375 schedule_block, sched_init, sched_finish): Add missed calls of
2376 use_dfa_pipeline_interface.
2378 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
2381 * sched-vis.c (get_visual_tbl_length): Ditto.
2383 2001-08-27 Richard Henderson <rth@redhat.com>
2385 * genattr.c (main): Emit state_t even when not doing scheduling.
2387 2001-08-27 Richard Henderson <rth@redhat.com>
2389 * genautomata.c (expand_automata): Always create a description.
2391 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
2393 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
2394 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
2395 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
2398 * genattr.c (main): New variable num_insn_reservations. Increase
2399 it if there is DEFINE_INSN_RESERVATION. Output automaton based
2400 pipeline hazard recognizer interface.
2402 * genattrtab.h: New file.
2404 * genattrtab.c: Include genattrtab.h.
2405 (attr_printf, check_attr_test, make_internal_attr,
2406 make_numeric_value): Move protypes into genattrtab.h. Define them
2408 (num_dfa_decls): New global variable.
2409 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
2410 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
2411 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
2412 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
2414 * genautomata.c: New file.
2416 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
2418 * sched-int.h: (curr_state): Add the external definition for
2419 automaton pipeline interface.
2420 (haifa_insn_data): Add comments for members blockage and units.
2422 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2423 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2424 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2425 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2426 TARGET_SCHED_DFA_POST_CYCLE_INSN,
2427 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2428 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
2430 (TARGET_SCHED): Use the new macros.
2432 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
2433 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
2434 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
2435 dfa_bubble): New members in gcc_target.sched.
2437 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
2438 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
2439 (insn_queue): Redefine it as pointer to array.
2440 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
2442 (max_insn_queue_index_macro_value): New variable.
2443 (curr_state, dfa_state_size, ready_try): New varaibles for
2444 automaton interface.
2445 (ready_element, ready_remove, max_issue): New function prototypes
2446 for automaton interface.
2447 (choose_ready): New function prototype.
2448 (insn_unit, blockage_range): Add comments.
2449 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
2450 FUNCTION_UNITS_SIZE == 0.
2451 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
2452 actual_hazard, potential_hazard): Add comments.
2453 (insn_cost): Use cost -1 as undefined value. Remove
2454 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
2456 (ready_element, ready_remove): New functions for automaton
2458 (schedule_insn): Add new code for automaton pipeline interface.
2459 (queue_to_ready): Add new code for automaton pipeline interface.
2460 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
2461 (debug_ready_list): Print newline when the queue is empty.
2462 (max_issue): New function for automaton pipeline interface.
2463 (choose_ready): New function.
2464 (schedule_block): Add new code for automaton pipeline interface.
2465 Print ready list before scheduling each insn.
2466 (sched_init): Add new code for automaton pipeline interface.
2467 Initiate insn cost by -1.
2468 (sched_finish): Free the current automaton state and finalize
2469 automaton pipeline interface.
2471 * sched-rgn.c: Include target.h.
2472 (init_ready_list, new_ready, debug_dependencies): Add new code for
2473 automaton pipeline interface.
2475 * sched-vis.c: Include target.h.
2476 (get_visual_tbl_length): Add code for automaton interface.
2477 (target_units, print_block_visualization): Add comments.
2479 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
2480 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
2481 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
2482 (getruntime.o, genautomata.o): New entries.
2483 (genattrtab.o): Add new dependency file genattrtab.h.
2484 (genattrtab): Add new dependencies. Link it with `libm.a'.
2485 (getruntime.o, hashtab.o): New entries for canadian cross.
2487 * doc/md.texi: Description of automaton based model.
2489 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
2491 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2492 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2493 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2494 TARGET_SCHED_DFA_POST_CYCLE_INSN,
2495 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2496 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2497 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
2499 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
2500 MAX_DFA_ISSUE_RATE): New macro descriptions.
2502 * doc/contrib.texi: Add dfa based scheduler contribution.
2504 * doc/gcc.texi: Add more information about genattrtab.
2506 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2508 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
2509 adjust_address_nv call.
2511 2002-04-29 Janis Johnson <janis187@us.ibm.com>
2513 * doc/install.texi (Testing): Provide additional information, and
2514 a stronger encouragement, for running the testsuites.
2516 2002-04-29 DJ Delorie <dj@redhat.com>
2518 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
2519 given in upper case.
2521 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2523 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
2524 Solaris 2 <widec.h> if missing.
2525 * fixinc/fixincl.x: Regenerate.
2526 * fixinc/tests/base/widec.h: New file.
2528 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
2530 * toplev.c (f_options): Add "profile" switch so that
2531 -fno-profile can be used to disable -p.
2533 2002-04-29 Bernd Schmidt <bernds@redhat.com>
2535 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
2537 * tree.c (build_common_tree_nodes_2): Likewise.
2538 * tree.h (enum tree_index): Likewise.
2539 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
2541 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
2543 (init_mmx_sse_builtins): Initialize SSE2 builtins.
2544 (ix86_expand_builtin): Add support for SSE2 builtins.
2545 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
2546 (VALID_SSE_REG_MODE): Use it.
2547 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
2548 (enum ix86_builtins): Add SSE2 builtins.
2549 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
2550 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
2551 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
2552 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
2553 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
2554 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
2555 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
2556 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
2557 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
2558 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
2559 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
2560 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
2561 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
2562 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
2563 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
2564 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
2565 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
2566 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
2567 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
2568 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
2569 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
2570 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
2571 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
2572 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
2573 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
2574 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
2575 lfence_insn): New patterns.
2576 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
2577 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
2579 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
2581 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
2583 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2585 * doc/contrib.texi (Contributors): Add Paolo Carlini and
2587 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
2588 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
2589 and CPU instead of cpu.
2591 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
2593 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
2595 (lang_independent_options): Add -fif-conversion, -fif-conversion2
2596 (rest_of_compilation): Do if conversion only when asked for.
2597 (parse_options_and_default_flags): Set new variables to 1 for -O1
2598 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
2600 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
2602 * i386.c (dbx64_register_map): Fix typo.
2604 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
2606 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
2607 real_one_half, real_bb_freq_max): New static variables.
2608 (debug_profile_bbauxs): Kill.
2609 (process_note_predictions): Kill unused variable.
2610 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
2612 (propagate_freq): Use REAL_ARITHMETICS.
2613 (estimate_bb_frequencies): Likevise; init new static variables.
2614 * Makefile.in (predict.o): Add dependency on real.h
2616 2002-04-28 David S. Miller <davem@redhat.com>
2619 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
2620 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
2621 several {reads,writes} instead.
2622 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
2625 2002-04-27 David S. Miller <davem@redhat.com>
2628 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
2631 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
2632 including signal.h and sys/ucontext.h, not needed.
2634 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
2636 * varasm.c (output_constant_def): Correct test for not calling
2637 ENCODE_SECTION_INFO for INTEGER_CST.
2639 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
2641 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
2642 keep most cases as function eval_token.
2643 (eval_token): New function.
2644 (_cpp_parse_expr): Read token here for improved diagnostics.
2645 Don't use op_as_text. Detect bad ':' here.
2646 (reduce): Don't detect bad ':' here.
2647 (op_as_text): Remove.
2648 * cpphash.h (_cpp_test_assertion): Change prototype.
2649 * cpplib.c (_cpp_test_assertion): Change prototype.
2651 2002-04-28 Richard Henderson <rth@redhat.com>
2654 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
2655 (ggc_mark_rtx_children): New.
2657 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2660 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
2661 after call peepholes for UltraSPARC.
2662 (call + jump 64-bit peepholes): Remove.
2664 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2667 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
2668 result as temporary value.
2670 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2673 * toplev.c (rest_of_compilation): Only run regrename and copy
2674 propagation if optimizing.
2676 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2678 PR optimization/6475
2679 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
2680 register of REGNO_DECL (i).
2681 * Makefile.in (reload1.o): Add $(TREE_H).
2683 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
2685 * cppexp.c (lex): Update to use state.skip_eval.
2686 (struct op): Remove prio and flags members.
2687 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
2688 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
2689 (LEFT_ASSOC): New macro.
2690 (optab): New table of operator priorities and flags.
2692 (_cpp_parse_expr): Clean up logic. Return bool. Use a
2693 malloc-ed parser stack.
2694 (reduce): New; reduce the operator stack.
2695 (_cpp_expand_op_stack): Expand the operator stack as necessary.
2696 * cpphash.h (struct op): Predeclare.
2697 (struct cpp_reader): New members op_stack, op_limit.
2698 (struct lexer_state): New member skip_eval.
2699 (_cpp_parse_expr): Update.
2700 (_cpp_expand_op_stack): New.
2701 * cpplib.c (do_if): Update.
2702 * cppinit.c (cpp_create_reader): Create op stack.
2703 (cpp_destroy): And destroy it.
2704 * cpplib.h (CPP_LAST_CPP_OP): Correct.
2705 (TTYPE_TABLE): Correct.
2707 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2710 * c-decl.c (duplicate_decls): Call merge_weak.
2711 * c-pragma.c (apply_pragma_weak): Warn about misuse.
2712 * output.h (merge_weak): Prototype merge_weak.
2713 * varasm.c (merge_weak): New function.
2714 (declare_weak): Make sure we don't give an error on VAR_DECLs.
2715 Mark RTL with SYMBOL_REF_WEAK.
2717 2002-04-27 Kurt Garloff <garloff@suse.de>
2719 * tree-inline.c (inlinable_function_p): Improve heuristics
2720 by using a smoother function to cut down allowable inlinable size.
2721 * param.def: Add parameters max-inline-insns-single,
2722 max-inline-slope, min-inline-insns that determine the exact
2723 shape of the above function.
2724 * param.h: Likewise.
2726 2002-04-26 Richard Henderson <rth@redhat.com>
2728 * c-parse.in (malloced_yyss, malloced_yyvs): New.
2729 (yyoverflow): Re-add. Set them.
2730 (free_parser_stacks): New.
2731 * c-common.h: Declare it.
2732 * c-lex.c (c_common_parse_file): Call it.
2734 2002-04-26 Richard Henderson <rth@redhat.com>
2736 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
2737 for fallthru search.
2739 2002-04-26 Eric Christopher <echristo@redhat.com>
2741 PR optimization/3700
2742 * config/mips/mips.c (mips_issue_rate): Define. New function.
2743 (TARGET_SCHED_ISSUE_RATE): Use.
2745 2002-04-25 David S. Miller <davem@redhat.com>
2748 * reorg.c (optimize_skip): Do not allow exception causing
2749 instructions to be considered for delay slots.
2750 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
2751 (relax_delay_slots): Do not try to consider exception causing
2752 instructions as redundant.
2754 2002-04-26 Richard Henderson <rth@redhat.com>
2757 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
2759 2002-04-26 Mark Mitchell <mark@codesourcery.com>
2762 * config/i386/i386.md (untyped_call): Return the value in a float
2763 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
2766 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
2768 * tree.c (tree_int_cst_lt): Compare constants whose types differ
2769 in unsigned-ness correctly.
2771 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
2773 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
2774 portable runtime model.
2776 2002-04-26 Richard Henderson <rth@redhat.com>
2778 * c-parse.in (yyoverflow): Revert.
2780 2002-04-26 David Edelsohn <edelsohn@gnu.org>
2781 Richard Henderson <rth@redhat.com>
2783 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
2784 result as temporary value.
2786 2002-04-26 Richard Henderson <rth@redhat.com>
2789 * c-common.c (fix_string_type): Split out of ...
2790 (combine_strings): ... here. Take a varray, not a tree list.
2791 (c_expand_builtin_printf): Use fix_string_type.
2792 * c-common.h: Update decls.
2793 * c-parse.in (string): Remove. Update all uses to use STRING
2794 instead, and not call combine_strings.
2797 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
2798 (build_asm_stmt): Likewise.
2799 * objc/objc-act.c (my_build_string): Use fix_string_type.
2800 (build_objc_string_object): Build varray for combine_strings.
2802 2002-04-26 Bo Thorsen <bo@suse.co.uk>
2804 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
2807 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
2809 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
2810 (HAVE_NO_R_OPERAND): Remove.
2811 (HAVE_VALUE): Remove.
2812 (op_to_prio): Update.
2813 (UNARY): Don't alter flags.
2814 (_cpp_parse_expr): want_value used to indicate whether
2815 a number or unary operator is expected next. Distinguish
2816 unary and binary +/-.
2817 (op_as_text): Update for unary operators.
2819 2002-04-25 Richard Henderson <rth@redhat.com>
2822 * c-parse.in (yyoverflow): New.
2824 2002-04-25 Richard Henderson <rth@redhat.com>
2827 * c-common.c (shorten_compare): Simplfy conditions leading to
2828 the generation of a warning.
2830 2002-04-25 Richard Henderson <rth@redhat.com>
2833 * expmed.c (extract_bit_field): Fall through to generic code rather
2834 than aborting on subreg special case.
2836 2002-04-25 David S. Miller <davem@redhat.com>
2838 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
2839 for DECL being NULL.
2841 2002-04-25 Steve Christiansen <smc@us.ibm.com>
2843 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
2845 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
2847 * c-decl.c (grokdeclarator): Remove outdated ??? note
2848 on invalid declaration of flexible array members.
2850 2002-04-25 Richard Henderson <rth@redhat.com>
2852 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
2854 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2856 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
2857 needed by the compiler, even if they are used as global regs.
2859 2002-04-25 Matt Hiller <hiller@redhat.com>
2861 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
2863 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
2864 of the corresponding functions.
2865 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
2868 2002-04-25 Matt Hiller <hiller@redhat.com>
2870 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
2872 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
2873 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
2874 registers, adjust comment accordingly.
2875 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
2876 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
2877 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
2878 for coprocessor registers.
2879 (ADDITIONAL_REGISTER_NAMES): Include
2880 ALL_COP_ADDITIONAL_REGISTER_NAMES.
2882 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
2883 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
2884 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
2885 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
2886 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
2888 (mips_char_to_class): Adjust comment to include coprocessor
2891 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
2893 (mips_reg_names, mips_regno_to_class): Include coprocessor
2895 (mips_sw_reg_names): Ditto, make non-static.
2896 (mips_move_1word): Handle moves to and from coprocessor registers.
2897 (mips_move_2words): Handle moves to and from coprocessor
2899 (mips_class_max_nregs, mips_register_move_cost): Handle
2900 coprocessor register classes.
2901 (override_options): Initialize mips_char_to_class and
2902 mips_hard_regno_mode_ok properly for coprocessor registers.
2904 * config/mips/mips.md (movdi_internal, movdi_internal2,
2905 movsi_internal1, movsi_internal2): Add constraint-sets for
2906 coprocessor registers.
2907 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
2908 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
2910 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
2911 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
2913 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
2914 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
2916 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
2917 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
2920 * doc/tm.texi: Document feature.
2922 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
2924 * integrate.c (function_attribute_inlinable_p): Simplify.
2925 Check the table pointer is not NULL.
2927 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
2929 * doc/c-tree.texi: Fix typo in introduction.
2931 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
2933 * c-common.h (c_common_parse_file): Update.
2934 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2935 * c-lex.c (YYDEBUG): Get from c-lex.h.
2936 (c_common_parse_file): Update.
2937 * c-lex.h (YYDEBUG, yydebug): New.
2938 * c-parse.in (YYDEBUG): Get from c-lex.h.
2939 (c_set_yydebug): Remove.
2940 * c-tree.h (c_set_yydebug): Remove.
2941 * langhooks-def.h (lhd_do_nothing_i): New.
2942 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
2943 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
2944 * langhooks.c (lhd_do_nothing_i): New.
2945 (lhd_set_yydebug): Remove.
2946 * langhooks.h (struct lang_hooks): Update.
2947 * toplev.c (set_yydebug): New.
2948 (compile_file): Update call to parse_file hook.
2949 (decode_d_option): Update.
2951 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2953 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
2955 * loop.c (load_mems): Don't change the interface of called functions.
2957 * calls.c (expand_call): Take current_function_pretend_args_size
2958 into account when setting argblock for sibcalls.
2960 2002-04-24 Matt Hiller <hiller@redhat.com>
2962 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
2965 * cpplex.c (skip_line_comment): Process comment one multibyte
2966 character at a time rather than one char at a time, if
2968 (parse_string): Process string one multibyte character at a time
2969 rather than one char at a time, if appropriate.
2970 * c-lex.c (lex_string): Lex and copy multibyte strings
2972 * cpplib.h (cppchar_t): Change to unsigned.
2974 2002-04-24 Richard Henderson <rth@redhat.com>
2977 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
2980 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
2982 * sh.c (sh_va_arg): If argument was passed by reference,
2983 dereference the pointer.
2985 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
2987 * sh.md (divsi3_i4_media): Use match_operand for input values
2988 rather than hard registers.
2989 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
2990 unnecessarily through hard registers. Keep copies of pseudo
2991 registers outside of the libcall sequence.
2993 * sh.md (casesi_shift_media): Add modes.
2995 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
2998 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
3000 * attribs.c (c_common_attribute_table): Move table and handlers
3002 (format_attribute_table, lang_attribute_table,
3003 lang_attribute_common): Remove.
3004 (init_attributes): Replace NULL pointers with pointers to the
3006 (handle_packed_attribute, handle_nocommon_attribute,
3007 handle_common_attribute, handle_noreturn_attribute,
3008 handle_noinline_attribute, handle_always_inline_attribute,
3009 handle_used_attribute, handle_unused_attribute,
3010 handle_const_attribute, handle_transparent_union_attribute,
3011 handle_constructor_attribute, handle_destructor_attribute,
3012 handle_mode_attribute, handle_section_attribute,
3013 handle_aligned_attribute, handle_weak_attribute,
3014 handle_alias_attribute, handle_visibility_attribute,
3015 handle_no_instrument_function_attribute, handle_malloc_attribute,
3016 handle_no_limit_stack_attribute, handle_pure_attribute,
3017 handle_deprecated_attribute, handle_vector_size_attribute,
3018 vector_size_helper): Move to c-common.c.
3019 * c-common.c (c_common_attribute_table,
3020 handle_packed_attribute, handle_nocommon_attribute,
3021 handle_common_attribute, handle_noreturn_attribute,
3022 handle_noinline_attribute, handle_always_inline_attribute,
3023 handle_used_attribute, handle_unused_attribute,
3024 handle_const_attribute, handle_transparent_union_attribute,
3025 handle_constructor_attribute, handle_destructor_attribute,
3026 handle_mode_attribute, handle_section_attribute,
3027 handle_aligned_attribute, handle_weak_attribute,
3028 handle_alias_attribute, handle_visibility_attribute,
3029 handle_no_instrument_function_attribute, handle_malloc_attribute,
3030 handle_no_limit_stack_attribute, handle_pure_attribute,
3031 handle_deprecated_attribute, handle_vector_size_attribute,
3032 vector_size_helper): Move from attribs.c.
3033 * c-common.h (c_common_attribute_table,
3034 c_common_format_attribute_table): New.
3035 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3036 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3037 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
3038 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
3039 (LANG_HOOKS_INITIALIZER): Update.
3040 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
3041 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
3042 * target.h: Update comment.
3043 * tree.c (default_target_attribute_table): Remove.
3044 * tree.h (default_target_attribute_table, format_attribute_table,
3045 lang_attribute_table, lang_attribute_common): Remove.
3047 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3048 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3050 2002-04-24 Jason Merrill <jason@redhat.com>
3052 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
3053 * dwarf2out.c (dwarf_attr_name): Support it.
3054 (gen_array_type_die): Emit it.
3055 (lookup_type_die): No special handling for VECTOR_TYPE.
3056 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
3058 2002-04-24 Richard Henderson <rth@redhat.com>
3060 * config/mips/mips.md (movdi_usd): Renumber.
3062 2002-04-24 David S. Miller <davem@redhat.com>
3065 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
3066 32-bit Sparc and current_function_returns_struct is true.
3068 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
3070 * loop.c (canonicalize_condition): Use gen_int_mode.
3072 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
3074 * config/rs6000/altivec.h: Cleanup file. Add non individual
3096 (vec_vcmpequb): New.
3097 (vec_vcmpequh): New.
3098 (vec_vcmpequw): New.
3099 (vec_vcmpeqfp): New.
3100 (vec_vcmpgefp): New.
3101 (vec_vcmpgtub): New.
3102 (vec_vcmpgtsb): New.
3103 (vec_vcmpgtuh): New.
3104 (vec_vcmpgtsh): New.
3105 (vec_vcmpgtuw): New.
3106 (vec_vcmpgtsw): New.
3107 (vec_vcmpgtfp): New.
3108 (vec_vcmpgefp): New.
3113 (vec_vexptefp): New.
3118 (vec_lde): Add vector float variant.
3123 (vec_vmhaddshs): New.
3145 (vec_vmladduhm): New.
3146 (vec_vmhraddshs): New.
3148 (vec_vmsummbm): New.
3149 (vec_vmsumuhm): New.
3150 (vec_vmsumshm): New.
3151 (vec_vmsumuhs): New.
3152 (vec_vmsumshs): New.
3161 (vec_vnmsubfp): New.
3179 (vec_vrsqrtefp): New.
3190 (vec_vspltisb): New.
3191 (vec_vspltish): New.
3192 (vec_vspltisw): New.
3217 (vec_vsum4ubs): New.
3218 (vec_vsum4sbs): New.
3219 (vec_vsum4shs): New.
3220 (vec_vsum2sws): New.
3231 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
3234 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
3235 added literals from substracted literals.
3236 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
3237 (fold) [associate]: Preserve MINUS_EXPR if needed.
3239 2002-04-23 Zack Weinberg <zack@codesourcery.com>
3241 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
3244 2002-04-23 Tom Tromey <tromey@redhat.com>
3246 * gcc.c: Added --resource. For PR java/6314.
3248 2002-04-23 David O'Brien <obrien@FreeBSD.org>
3250 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
3251 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
3254 2002-04-23 David O'Brien <obrien@FreeBSD.org>
3256 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
3258 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
3260 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
3262 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
3263 (ix86_expand_clrstr): Fix typo.
3264 * loop.c (gen_load_of_final_value): New.
3265 (loop_givs_rescan, strength_reduce, check_dbra_loop):
3268 2002-04-23 Roger Sayle <roger@eyesopen.com>
3270 * builtins.c (builtin_memset_gen_str): New function.
3271 (expand_builtin_memset): Optimize the case of constant length, but
3274 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
3276 * config/rs6000/altivec.h (vec_step): Remove extraneous
3278 (vec_ctu): Cast return.
3280 2002-04-23 Alan Modra <amodra@bigpond.net.au>
3283 * function.h: (struct function): Add profile_label_no field.
3284 (current_function_profile_label_no): Define.
3285 * function.c: (profile_label_no): New static var.
3286 (expand_function_start): Increment it, and copy to
3287 current_function_profile_label_no.
3288 * output.h (profile_label_no): Delete.
3289 * final.c (profile_label_no): Delete.
3290 (profile_function): Use current_function_profile_label_no.
3291 (final_end_function): Don't increment profile_label_no here.
3292 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
3293 profile_label_no with current_function_profile_label_no.
3294 * config/pa/pa.c (current_function_number): Delete.
3295 (pa_output_function_prologue): Don't output profile label here.
3296 (hppa_profile_hook): Use label_no param rather than
3297 current_function_number.
3298 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
3299 * config/pa/pa.h: .. here.
3300 (FUNCTION_PROFILER): Output profile label here.
3302 2002-04-22 Eric Christopher <echristo@redhat.com>
3304 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
3305 patch of 2002-04-09 due to binutils issues.
3306 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
3308 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
3310 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
3311 constraint to 'o' for m=r and r=m alternatives.
3312 ("*movv8hi_internal1"): Same.
3313 ("*movv16qi_internal1"): Same.
3314 ("*movv4sf_internal1"): Same.
3316 2002-04-22 Janis Johnson <janis187@us.ibm.com>
3318 * rtl.h (RTX_FLAG): New macro.
3319 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
3320 * final.c (alter_subreg): Use macro to access rtx flag.
3321 * integrate.c (copy_rtx_and_substitute): Use new access macro.
3322 * print-rtl.c (print_rtx): Use new access macro.
3324 * cse.c (insert): Check rtx code before accessing flag.
3326 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
3327 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
3328 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
3329 convert_const_symbol_ref, make_canonical, make_alternative_compare,
3330 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
3331 simplify_test_exp, optimize_attrs, simplify_by_exploding,
3332 find_and_mark_used_attributes, unmark_used_attributes,
3333 add_values_to_cover, simplify_with_current_value,
3334 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
3335 copy_rtx_unchanging, main): Use new access macros.
3337 2002-04-22 Tom Rix <trix@redhat.com>
3339 * expmed.c (init_expmed): Generate shifted constant once.
3341 2002-04-22 Zack Weinberg <zack@codesourcery.com>
3343 * c-lex.c (lex_charconst): Call convert to get constant in
3344 proper type; don't just smash the type field.
3347 * config.gcc: Add list of obsolete configurations. Disallow
3348 building these without --enable-obsolete.
3349 * doc/install.texi: Document --enable-obsolete and obsoletion
3350 policy. Mention obsoletion of individual targets in
3353 2002-04-22 Richard Henderson <rth@redhat.com>
3355 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
3357 2002-04-22 Mark Mitchell <mark@codesourcery.com>
3360 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
3361 (walk_fixup_memory_subreg): Likewise.
3362 (fixup_var_refs_insn): Adjust accordingly.
3363 (fixup_var_refs_1): Likewise.
3365 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
3367 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
3368 LIBPATH_ARCH64_SPEC): Define.
3369 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
3370 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
3371 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
3372 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
3374 2002-04-22 Joel Sherrill <joel@OARcorp.com>
3376 * gthr-rtems.h: Correct prototypes to remove warnings.
3378 2002-04-22 Richard Henderson <rth@redhat.com>
3381 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
3383 * gcse.c (free_insn_expr_list_list): New.
3384 (clear_modify_mem_tables): Use it. Fix bit set usage.
3385 (canon_list_insert): Use EXPR_LISTs for expressions.
3386 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
3388 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
3390 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
3391 file change and include code to _cpp_pop_buffer.
3392 * cpphash.h (struct pending_option): Predeclare.
3393 (struct cpp_reader): New member next_include_file.
3394 (_cpp_pop_file_buffer): Update.
3395 (_cpp_push_next_buffer): Update, rename.
3396 * cppinit.c (cpp_destroy): Free include chain and pending here.
3397 (cpp_finish_options): Simplify.
3398 (_cpp_push_next_buffer): Rename and clean up.
3399 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
3401 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
3403 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
3405 * config/rs6000/altivec.h (vec_xor): Add variant for both args
3406 being vector signed int.
3408 (vec_xor): Add variant for both args being vector signed char.
3409 Remove redundant variant.
3412 2002-04-21 David S. Miller <davem@redhat.com>
3414 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
3415 compare mode in output RTL.
3417 2002-04-22 David Edelsohn <edelsohn@gnu.org>
3419 * config/rs6000/rs6000.c (rs6000_override_options): Correct
3420 style and formatting of previous patch.
3422 2002-04-22 Alan Modra <amodra@bigpond.net.au>
3424 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
3425 flag_pic for ABI_AIX.
3427 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
3429 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
3430 * cppfiles.c (read_include_file): Similarly.
3431 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
3432 uxstrdup ustrchr, ufputs): Similarly.
3433 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
3434 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
3435 cpp_ideq, parse_identifier, parse_number): Similarly.
3436 * cpplib.c (struct directive, dequote_string, D, run_directive,
3437 cpp_push_buffer): Similarly.
3438 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
3439 _cpp_create_definition, check_trad_stringification,
3440 cpp_macro_definition): Similarly.
3442 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
3444 * cppmacro.c (funlike_invocation_p): Don't step back
3447 2002-04-21 David Edelsohn <edelsohn@gnu.org>
3449 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
3452 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
3454 * doc/invoke.texi: Remove Chill references.
3455 * doc/gcc.texi: Update last modified date.
3457 2002-04-20 Kazu Hirata <kazu@hxi.com>
3459 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
3460 push and pop. Replace add.l with add.w.
3462 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3464 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
3465 multiply instructions for H8/300H case.
3467 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3469 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
3470 Bum three instructions from each routine.
3472 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
3474 * Makefile.in: Update.
3475 * decl.c (push_c_function_context, pop_c_function_context,
3476 mark_c_function_context): Rename for consistency.
3477 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
3478 * c-tree.h (push_c_function_context, pop_c_function_context,
3479 mark_c_function_context): Rename for consistency.
3480 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3481 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3482 * function.c (init_lang_status, save_lang_status,
3483 restore_lang_status, mark_lang_status, free_lang_status):
3484 Move to langhooks.h.
3485 (push_function_context_to, pop_function_context_from,
3486 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
3488 * function.h (init_lang_status, save_lang_status,
3489 restore_lang_status, mark_lang_status, free_lang_status):
3490 Move to langhooks.h.
3491 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
3492 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
3493 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
3494 LANG_HOOKS_FUNCTION_INITIALIZER): New.
3495 (LANG_HOOKS_INITIALIZER): Update.
3496 (lhd_do_nothing_f): New.
3497 * langhooks.h (struct lang_hooks_for_functions): New.
3498 (struct lang_hooks): New hooks.
3499 * langhooks.c (lhd_do_nothing_f): New.
3501 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3502 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3504 2002-04-19 David S. Miller <davem@redhat.com>
3506 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
3507 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
3509 2002-04-19 Jakub Jelinek <jakub@redhat.com>
3511 PR optimization/3756
3512 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
3513 x = ((int) y < 0) ? cst1 : cst2.
3515 2002-04-19 Jakub Jelinek <jakub@redhat.com>
3518 * function.c: Reapply patch for c/6358.
3519 (expand_function_end): Copy decl_rtl's mode, not
3520 current_function_return_rtx mode.
3522 2002-04-19 Joel Sherrill <joel@OARcorp.com>
3524 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
3527 2002-04-19 Tom Tromey <tromey@redhat.com>
3529 * doc/install.texi (Specific): Update status of Solaris 2.8.
3532 2002-04-19 Andreas Schwab <schwab@suse.de>
3534 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
3535 (PUT_REAL): Restore old definition.
3537 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
3538 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3540 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
3541 binutils 2.11.2 and higher generate smaller binaries than Sun's
3544 2002-04-19 Mark Mitchell <mark@codesourcery.com>
3547 * toplev.c (rest_of_compilation): Do not defer functions for which
3548 TREE_SYMBOL_REFERENCED has already been set.
3550 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
3552 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
3555 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
3557 * builtins.c: Include langhooks.h.
3558 (lang_type_promotes_to): Remove.
3559 (expand_builtin_va_arg): Use new hook.
3560 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
3561 (simple_type_promotes_to): Move to c-typeck.c.
3562 * c-common.h (simple_type_promotes_to): Remove.
3563 * c-decl.c (duplicate_decls, grokdeclarator): Update.
3564 * c-format.c: Include langhooks.h.
3565 (check_format_types): Update.
3566 * c-tree.h (c_type_promotes_to): New.
3567 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
3568 (type_lists_compatible_p): Update.
3569 * langhooks-def.h (lhd_type_promotes_to): New.
3570 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
3571 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3572 * langhooks.c (lhd_type_promotes_to): New.
3573 * langhooks.h (struct lang_hooks_for_types): New hook.
3574 * tree.h (lang_type_promotes_to): Remove.
3576 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
3578 2002-04-18 Richard Henderson <rth@redhat.com>
3580 * function.c: Revert patch for c/6358.
3582 2002-04-18 Richard Henderson <rth@redhat.com>
3584 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
3585 blocks. Handle multiple references to the TRAP block. Handle
3586 non-adjacent THEN and OTHER blocks.
3588 2002-04-18 Richard Henderson <rth@redhat.com>
3590 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
3591 crash with no type for by-mode libcalls.
3593 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
3595 2002-04-18 Bob Wilson <bob.wilson@acm.org>
3597 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
3598 __xtensa_nonlocal_goto): Use a syscall instructions to flush
3599 the register windows.
3601 2002-04-18 Zack Weinberg <zack@codesourcery.com>
3603 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
3604 appropriate. Document need for extended precision even when
3605 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
3606 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
3607 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
3608 instead of relying on later syntax error when REAL_WIDTH > 5.
3609 * real.c: Define NE based only on whether or not we have a
3610 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
3611 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
3612 define GET_REAL and PUT_REAL as simple memcpy operations; no
3613 need to byteswap or round.
3614 Use #error instead of #ifdef-ing out the entire file, for
3615 prompt error detection.
3617 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
3619 2002-04-18 David S. Miller <davem@redhat.com>
3621 * config/sparc/sparc.h (BRANCH_COST): Define.
3623 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
3626 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
3628 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
3629 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
3630 propagate_block calls after relaxation loop using new variable
3631 stabilized_prop_flags.
3633 2002-04-18 Richard Henderson <rth@redhat.com>
3635 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
3636 (ia64_va_arg): Expect variable sized types by reference.
3637 * config/ia64/ia64-protos.h: Update.
3638 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
3639 ia64_function_arg_pass_by_reference.
3641 2002-04-18 Richard Henderson <rth@redhat.com>
3643 * ifcvt.c: Include except.h.
3644 (block_has_only_trap): Break out from find_cond_trap.
3645 (find_cond_trap): Use it. Always delete the trap block.
3646 (merge_if_block): Allow then block null. Be less simplistic about
3647 what insns can end a block.
3648 * Makefile.in (ifcvt.o): Depend on except.h.
3650 * config/ia64/ia64.md (trap, conditional_trap): New.
3652 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3655 * function.c (assign_parms): Assign hard current_function_return_rtx
3657 (expand_function_end): ...not here.
3659 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
3661 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3662 * c-tree.h (c_incomplete_type_error): New.
3663 * c-typeck.c (require_complete_type, build_component_ref): Update.
3664 (incomplete_type_error): Rename.
3665 * langhooks-def.h (lhd_incomplete_type_error): New.
3666 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
3667 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3668 * langhooks.c (lhd_incomplete_type_error): New.
3669 * langhooks.h (struct lang_hooks_for_types): New hook.
3670 * tree.c (size_in_bytes): Use new hook.
3671 * tree.h (incomplete_type_error): Remove.
3673 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3675 2002-04-18 Zack Weinberg <zack@codesourcery.com>
3677 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
3678 TARGET_FLOAT_FORMAT blocks.
3680 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3682 * doc/install.texi (Downloading the source): Do not mention Chill
3683 any longer, but mention Ada.
3684 (Configuration): Do not mention Chill any longer.
3686 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
3688 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
3690 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
3692 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
3695 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3697 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
3698 instead of unsigned_type.
3700 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
3702 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
3703 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
3706 2002-04-18 Bernd Schmidt <bernds@redhat.com>
3708 * attribs.c (vector_type_node_list): New static variable.
3709 (handle_vector_size_attribute): Use it to avoid generating a
3710 new type node each time we are called.
3712 * combine.c (subst): Avoid trying to make a vector mode subreg of
3713 an integer constant.
3714 (gen_lowpart_for_combine): Likewise.
3716 2002-04-18 Roger Sayle <roger@eyesopen.com>
3717 Jakub Jelinek <jakub@redhat.com>
3719 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
3720 for integer constant c (if x has unsigned type or sign bit is not
3721 set in c). This folds the zero/sign extension into the bit-wise and
3724 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3727 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
3730 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
3732 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
3734 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
3736 * gcc.c (read_specs): Detect and fail if an attempt is made to
3737 rename a spec string to an already existing string.
3739 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3741 * config/s390/s390.c (legitimize_pic_address): Do not generate
3742 illegal address constant without CONST.
3744 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3746 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
3747 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
3749 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3751 PR optimization/6305
3752 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
3753 to make sure previous reloads are taken into account. Generate
3754 better code if one operand is an in-range immediate constant.
3756 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
3758 * doc/install.texi (Building): libgcj requires GNU make.
3760 2002-04-17 Jakub Jelinek <jakub@redhat.com>
3763 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
3764 even if hard quad and register is not floating.
3765 (movtf reg<-mem split): Disallow splitting if hard quad and
3766 register is floating.
3767 (movtf mem<-reg split): Likewise.
3768 * config/sparc/sparc.c (fp_register_operand): New predicate.
3769 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
3771 2002-04-17 Zack Weinberg <zack@codesourcery.com>
3773 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
3774 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
3775 (unprotoize.o): Ditto. Build from protoize.c. Define
3776 UNPROTOIZE on command line.
3777 * protoize.c: Include cppdefault.h. Delete include_defaults.
3778 (in_system_include_dir): Use cpp_include_defaults (defined in
3780 * unprotoize.c: Delete file.
3782 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
3784 * config/rs6000/altivec.h (vec_ld): Add array variants.
3788 2002-04-17 Alan Matsuoka <alanm@redhat.com>
3789 Aldy Hernandez <aldyh@redhat.com>
3791 * config/rs6000/altivec.h: Define __ALTIVEC__.
3798 Add parentheses to all macro arguments.
3800 2002-04-16 Richard Henderson <rth@redhat.com>
3803 * except.c (remove_eh_handler): Insert inner regions at beginning
3804 of sibling chain. Refactor expressions.
3806 2002-04-16 Richard Henderson <rth@redhat.com>
3808 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
3809 * config/sparc/sol2-gas-bi.h: New file.
3810 * config.gcc (sparc*-solaris): Add it as needed.
3811 * configure.in (AS_SPARC64_FLAG): Remove check.
3812 * config.in, configure: Regenerate.
3814 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
3816 2002-04-16 Richard Henderson <rth@redhat.com>
3818 * config/mips/mips.c (override_options): Don't override N32 for
3822 * config/mips/mips.md (can_delay): Split out of existing define_delays.
3823 (HILO_delay): Set can_delay false.
3825 2002-04-16 Dale Johannesen <dalej@apple.com>
3827 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
3828 instruction addresses.
3829 (rs6000_output_function_epilogue): Likewise.
3831 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
3833 * c-parse.in (poplevel, compstmt_start,
3834 compstmt_primary_start): Add ending ';', in accordance
3837 2002-04-16 Richard Henderson <rth@redhat.com>
3839 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
3840 Adjust tm_file order to get TARGET_DEFAULT set properly.
3841 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
3842 * doc/install.texi (sparc-solaris): Update.
3844 2002-04-16 Dale Johannesen <dalej@apple.com>
3846 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
3847 comparison operands do not match each other or if modes of
3848 conditions do not match result.
3850 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
3853 * config/s390/s390.md (mulsidi3): Set both subregs of the
3856 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
3858 * config/rs6000/altivec.h (vec_addc): Type check.
3860 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3863 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
3865 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
3867 2002-04-15 Richard Henderson <rth@redhat.com>
3869 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
3870 call_really_used_regs too.
3872 2002-04-15 Richard Henderson <rth@redhat.com>
3874 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
3876 2002-04-15 David S. Miller <davem@redhat.com>
3878 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
3881 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3884 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
3885 CONST_VECTOR is { 0, ... 0 }.
3887 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
3889 * doc/install.texi (Installing GCC: Configuration): Clarify
3890 the only supported ways to configure gcc.
3892 2002-04-15 Roland McGrath <roland@frob.com>
3894 * config.gcc (alpha*-*-gnu*): New target configuration.
3895 * config/alpha/gnu.h: New file for it.
3896 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
3898 2002-04-16 Mark Mitchell <mark@codesourcery.com>
3900 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
3901 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
3902 * tree.h (expand_start_stmt_expr): Update prototype.
3903 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
3904 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
3905 on the STMT_EXPR created for the inline function.
3907 2002-04-15 Richard Henderson <rth@redhat.com>
3909 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
3910 config/i386/linux-aout.h, config/i386/linux-oldld.h,
3911 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
3912 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
3913 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
3914 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
3915 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
3916 Define __gnu_linux__, not gnu_linux.
3917 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
3919 2002-04-15 Mark Mitchell <mark@codesourcery.com>
3921 Remove Chill front end.
3922 * gcc.c (default_compilers): Remove Chill entries.
3923 * ch: Remove directory.
3924 * doc/frontends.texi: Remove information about Chill.
3925 * doc/sourcebuild.texi: Likewise.
3926 * doc/standards.texi: Likewise.
3928 2002-04-15 Douglas B Rupp <rupp@gnat.com>
3930 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
3931 (LONGLONG_STANDALONE): Define.
3933 2002-04-15 David S. Miller <davem@redhat.com>
3935 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
3936 Call emit_library_call with LCT_NORMAL.
3937 (sparc_initialize_trampoline): Use LCT_foo instead of
3938 magic constant in emit_library_call invocations.
3939 (sparc64_initialize_trampoline): Likewise.
3940 (sparc_profile_hook): Likewise.
3941 * config/sparc/sparc.md: Likewise.
3943 * config/sparc/sparc.c (sparc_extra_constraint_check):
3944 Fix type of argument 'c'.
3945 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
3948 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3950 * diagnostic.h (output_buffer_state): Redefine.
3951 (output_format_decoder): New macro.
3952 (output_prefixing_rule): Likewise.
3953 (output_line_cutoff): Likewise.
3954 (diagnostic_format_decoder): Adjust.
3955 (diagnostic_prefixing_rule): Likewise.
3956 (diagnostic_line_cutoff): Likewise.
3957 (diagnostic_state): Likewise.
3958 (diagnostic_kind_count): Likewise.
3959 (diagnostic_buffer): Now a macro.
3961 * diagnostic.c (diagnostic_buffer): Remove definition.
3962 (output_is_line_wrapping): Adjust.
3963 (set_real_maximum_length): Likewise.
3964 (output_set_maximum_length): Likewise.
3965 (init_output_buffer): Likewise.
3966 (lhd_print_error_function): Likewise.
3967 (output_do_verbatim): Likewise.
3969 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
3971 * cpperror.c (print_location): Don't print include chain
3973 (cpp_begin_message): Update to use DL_ macros.
3974 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
3975 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3976 cpp_notice, cpp_notice_from_errno): Remove.
3977 (cpp_error, cpp_error_with_line): Update to take a diagnostic
3980 * cppexp.c (CPP_ICE): Remove.
3981 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
3982 lex, integer_overflow, _cpp_parse_expr): Update.
3983 * cppfiles.c (read_include_file, find_include_file,
3984 handle_missing_header, _cpp_read_file, remap_filename): Update.
3985 * cpphash.h (enum error_type): Remove.
3986 (_cpp_begin_message): Update.
3987 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
3988 cpp_handle_option, cpp_post_options): Update.
3989 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
3990 skip_whitespace, parse_identifier, parse_slow, parse_string,
3991 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
3992 cpp_interpret_charconst): Update.
3993 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
3994 lex_macro_node, do_undef, glue_header_name, parse_include,
3995 do_include_common, read_flag, do_line, do_linemarker, do_ident,
3996 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
3997 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
3998 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
3999 _cpp_pop_buffer, do_diagnostic): Update.
4000 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
4001 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
4002 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4003 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4004 cpp_notice, cpp_notice_from_errno): Remove.
4005 (cpp_error, cpp_error_with_line): Update to take a diagnostic
4008 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
4009 collect_args, enter_macro_context, save_parameter, parse_params,
4010 _cpp_create_definition, check_trad_stringification,
4011 cpp_macro_definition): Update.
4012 * cppmain.c (cpp_preprocess_file): Update.
4013 * fix-header.c (read_scan_file): Update.
4015 2002-04-14 Andreas Schwab <schwab@suse.de>
4017 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
4019 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4021 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
4023 2002-04-13 Mark Mitchell <mark@codesourcery.com>
4025 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
4028 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
4030 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
4032 2002-04-13 Joel Sherrill <joel@OARcorp.com>
4034 * config/sparc/t-elf: Enable v8 multilibs. Impacts
4035 sparc-elf and sparc-rtems targets.
4037 2002-04-13 Mark Mitchell <mark@codesourcery.com>
4039 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
4040 defined, and __gnu_hurd__ wherever __GNU__ is defined.
4041 * arm/linux-elf.h: Likewise.
4042 * cris/aout.h: Likewise.
4043 * cris/linux.h: Likewise.
4044 * i370/linux.h: Likewise.
4045 * i386/gnu.h: Likewise.
4046 * i386/linux-aout.h: Likewise.
4047 * i386/linux-oldld.h: Likewise.
4048 * i386/linux.h: Likewise.
4049 * i386/linux64.h: Likewise.
4050 * ia64/linux.h: Likewise.
4051 * m68k/linux-aout.h: Likewise.
4052 * m68k/linux.h: Likewise.
4053 * mips/linux.h: Likewise.
4054 * pa/pa-linux.h: Likewise.
4055 * pj/linux.h: Likewise.
4056 * rs6000/sysv4.h: Likewise.
4057 * s390/linux.h: Likewise.
4058 * sh/linux.h: Likewise.
4059 * sparc/linux-aout.h: Likewise.
4060 * sparc/linux.h: Likewise.
4061 * sparc/linux64.h: Likewise.
4062 * xtensa/linux.h: Likewise.
4064 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
4066 * stmt.c (check_unique_operand_names): Expect operand names to
4067 be strings rather than identifiers. Use simple_cst_equal to
4069 (resolve_operand_name_1): Make same identifier to string change here.
4070 * c-parse.in (asm_operand): Convert a named operand into a string.
4071 * cp/parse.y (asm_operand): Likewise.
4073 2002-04-13 Andreas Schwab <schwab@suse.de>
4075 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
4077 2002-04-12 Mark Mitchell <mark@codesourcery.com>
4079 Revert these changes:
4081 2002-04-06 Mark Mitchell <mark@codesourcery.com>
4084 * stor-layout.c (layout_decl): Reset the RTL for the decl.
4086 2002-04-12 Richard Henderson <rth@redhat.com>
4088 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
4089 (sparc*-*-solaris): Clean up header files.
4090 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
4091 and plan on generating 64-bit code.
4092 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
4093 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
4094 * config/sparc/sol2-sld-64.h: Rename ...
4095 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
4096 for AS_SPARC64_FLAG not defined.
4097 * config/sparc/sol2-gld-bi.h: New.
4098 * config/sparc/sol2-sld.h: Remove.
4099 * config/sparc/sol26-sld.h: New.
4100 * config/sparc/sol2.h: Tidy comments.
4101 * doc/install.texi: Document sparc-solaris configury changes.
4103 2002-04-12 Richard Henderson <rth@redhat.com>
4105 * recog.c (offsettable_address_p): Match the logic in adjust_address.
4107 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
4108 in 64-bit mode only. Use only for 32-bit or MEDLOW.
4110 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4112 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
4114 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
4116 * pa.c (pa_can_combine_p): Call extract_insn before calling
4119 2002-04-12 Douglas B Rupp <rupp@gnat.com>
4121 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
4122 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
4123 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
4124 (CPP_PREDEFINES): Handle __declspec.
4125 * config/i386/t-interix (USER_H): Remove.
4127 2002-04-12 DJ Delorie <dj@redhat.com>
4129 * integrate.c (compare_blocks): Make comparisons safe for when
4130 sizeof(int) < sizeof(char *).
4131 (find_block): Likewise.
4133 2002-04-12 Jan Hubicka <jh@suse.cz>
4134 David Edelsohn <edelsohn@gnu.org>
4136 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
4138 (symbol_ref_operand): New.
4139 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
4140 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
4142 2002-04-12 Andreas Schwab <schwab@suse.de>
4144 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
4145 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
4146 overrides the definition in config/svr4.h.
4148 2002-04-12 Eric Norum <eric.norum@usask.ca>
4150 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
4151 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
4152 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
4153 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
4154 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
4155 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
4156 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
4157 definitions to config/rtems.h and make the targets more similar.
4159 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4161 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
4162 POINTERS_EXTEND_UNSIGNED.
4163 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
4164 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
4166 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
4169 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
4171 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
4172 depends on TARGET_SHMEDIA, not TARGET_SH5.
4174 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
4176 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
4177 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
4179 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
4181 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
4184 2002-04-12 Andreas Schwab <schwab@suse.de>
4186 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
4188 2002-04-12 Richard Henderson <rth@redhat.com>
4191 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
4193 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
4194 modes spanning multiple hard regs.
4196 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
4198 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
4200 * pa.c (pa_output_function_prologue): Don't accumulate the total
4201 number of code bytes when using TARGET_64BIT, or gas, SOM and not
4202 the portable runtime.
4203 (output_deferred_plabels): Handle 64bit plabels.
4204 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
4205 generating pic code using the GAS assembler for object formats that
4206 are not SOM (ie., ELF32 and ELF64).
4207 (output_millicode_call): Check attribute type if attribute length is 28.
4208 Likewise use $PIC_pcrel$0. Only call get_attr_length and
4209 dbr_sequence_length once.
4210 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
4211 dbr_sequence_length once.
4212 * pa.h (TARGET_SOM): Define if not defined.
4213 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
4214 with GAS and not SOM.
4215 (jump, call_internal_reg, call_value_internal_reg): Likewise.
4216 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
4218 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4220 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
4221 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
4222 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
4223 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
4224 elfos.h and dbxelf.h values are fine now.
4225 * config/i386/freebsd.h, config/alpha/freebsd.h
4226 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
4228 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4230 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
4231 or set Acpu or Amachine. Reformat.
4232 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4234 (LINK_SPEC): Do not need to undef.
4235 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
4236 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
4237 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4239 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
4240 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
4241 (LINK_SPEC): Do not need to undef.
4242 (DONT_USE_BUILTIN_SETJMP): Do not define.
4243 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
4244 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
4245 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
4246 Remove trailing spaces.
4247 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
4248 __ELF__, or set Acpu or Amachine. Reformat.
4249 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4252 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4254 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
4255 all other *-*-freebsd* targets.
4257 2002-04-11 Richard Henderson <rth@redhat.com>
4259 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
4261 2002-04-11 David O'Brien <obrien@FreeBSD.org>
4263 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
4264 Include {cpu}/{cpu}.h thru tm_file.
4265 (alpha*-*-linux*ecoff): Remove target.
4266 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
4267 (LINK_SPEC): Remove, is not OS independent.
4268 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
4269 (LINK_SPEC): Do not need to #undef any longer.
4270 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
4272 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
4274 (LINK_SPEC): Moved here from alpha/elf.h.
4275 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
4277 * config/alpha/linux-ecoff.h: Remove.
4278 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
4279 (CPP_SPEC): Define _POSIX_SOURCE as needed.
4280 (CPP_SUBTARGET_SPEC): Do not define.
4281 (LINK_SPEC): Do not need to #undef any longer.
4282 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
4283 * config/alpha/vms.h: Likewise.
4285 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4287 * doc/extend.texi: Remove old claim that typedefs cannot have
4288 an alignment attribute.
4290 2002-04-11 Jakub Jelinek <jakub@redhat.com>
4292 PR optimization/6177
4293 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
4294 bitpos is 0 and bitsize CONCAT size.
4296 2002-04-11 Jakub Jelinek <jakub@redhat.com>
4299 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
4301 2002-04-10 David O'Brien <obrien@FreeBSD.org>
4303 * config/alpha/freebsd.h: Minor reformatting.
4304 (CPP_SPEC): Define ELF and add cpp_subtarget.
4305 (ASM_SPEC): No longer needed.
4307 2002-04-11 Richard Henderson <rth@redhat.com>
4309 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
4310 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
4311 (dimode mem/zero splitter): New.
4313 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
4315 * config/cris/cris.c (cris_override_options): Tweak error message
4316 for PIC not implemented.
4318 * config/cris/cris.h: Tweak comments related to parameter-passing.
4320 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
4322 2002-04-10 Richard Henderson <rth@redhat.com>
4324 * except.c (add_ehl_entry): Allow duplicates after landing pad
4327 2002-04-10 David Edelsohn <edelsohn@gnu.org>
4329 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
4331 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
4333 * c-decl.c (c_init_decl_processing): Move generation of
4334 decls for g77_integer_type_node and friends from here ...
4335 * c-common.c (c_common_nodes_and_builtins): ... to here.
4337 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
4339 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
4340 is only used as frame pointer when frame_pointer_needed is true.
4342 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
4345 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
4346 for the fact that the pool entry uses two words.
4347 (movdf_hard_insn): Similarly. Also, ADR instruction can span
4349 (movdf_soft_insn): Similarly.
4350 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
4351 for the fact that the pool entry uses three words.
4353 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
4355 * config/mips/mips.c (mips_va_arg): When using the struct version
4356 of the EABI va_list, allow arguments in the register save area to
4357 take up less room than a stack argument.
4359 2002-04-10 Richard Henderson <rth@redhat.com>
4361 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
4362 if EXPAND_INITIALIZER.
4364 2002-04-09 Richard Henderson <rth@redhat.com>
4366 * config/alpha/alpha.md (movdi_er_maybe_g): New.
4367 * config/alpha/alpha.c (alpha_expand_mov): Use it.
4369 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4371 PR optimization/6233
4372 * rtlanal.c (pure_call_p): New function.
4373 * rtl.h (pure_call_p): Declare.
4374 * loop.c (prescan_loop): Use it to set has_nonconst_call.
4375 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
4377 2002-04-09 Eric Christopher <echristo@redhat.com>
4379 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
4380 information to .comm directive.
4382 2002-04-09 Richard Henderson <rth@redhat.com>
4385 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
4387 2002-04-09 Richard Henderson <rth@redhat.com>
4389 * basic-block.h (flow_delete_block_noexpunge): Declare.
4390 (expunge_block_nocompact): Declare.
4391 * cfg.c (expunge_block_nocompact): Split out from ...
4392 (expunge_block): ... here.
4393 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
4394 (flow_delete_block_noexpunge): Split out from ...
4395 (flow_delete_block): ... here.
4396 * cfgcleanup.c (delete_unreachable_blocks): Compact while
4397 removing dead blocks.
4398 * except.c (exception_handler_labels): Remove.
4399 (exception_handler_label_map): New.
4400 (struct eh_region): Add aka member.
4401 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
4402 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
4403 (for_each_eh_label, for_each_eh_label_1): New.
4404 (init_eh): Register exception_handler_label_map.
4405 (free_eh_status): Use free_region.
4406 (find_exception_handler_labels): Use the map, not the list.
4407 (remove_exception_handler_label): Likewise.
4408 (maybe_remove_eh_handler): Likewise.
4409 (remove_eh_handler): Use the region aka bitmap.
4410 * except.h (exception_handler_labels): Remove.
4411 (for_each_eh_label): Declare.
4412 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
4413 * loop.c (invalidate_loops_containing_label): New.
4414 (find_and_verify_loops): Use it. Use for_each_eh_label.
4415 * sched-rgn.c (is_cfg_nonregular): Use
4416 current_function_has_exception_handlers.
4418 2002-04-09 Richard Henderson <rth@redhat.com>
4420 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
4421 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
4422 Do not return changed status.
4423 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
4424 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
4425 New functions that do return changed status.
4426 * sbitmap.h: Update decls.
4427 * gcse.c, lcm.c: Use _cg functions as needed.
4429 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
4431 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
4432 (sh64-*-elf*, sh-*-rtemself*): Likewise.
4433 * config/sh/embed_bb.c: New file.
4434 * config/sh/embed-elf.h: New file.
4435 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
4436 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
4437 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4439 (SUBTARGET_CPP_PTR_SPEC): Don't define.
4440 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
4441 Add subtarget_asm_endian_spec.
4442 (ASM_SPEC): Use subtarget_asm_endian_spec.
4443 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
4444 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
4445 (WCHAR_UNSIGNED): Define.
4446 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
4447 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4448 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
4450 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
4451 (sh_adjust_cost): Likewise.
4452 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4454 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
4455 (WCHAR_TYPE_SIZE): Likewise.
4456 (ASM_SPEC): Use subtarget_asm_endian_spec.
4457 (SH_ELF_WCHAR_TYPE): #undef/ #define.
4458 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
4459 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
4460 (MAX_WCHAR_TYPE_SIZE): Don't #define .
4461 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
4462 (USER_LABEL_PREFIX): Don't #undef /#define .
4463 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4464 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
4465 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
4466 (ASM_SPEC): Likewise.
4467 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
4468 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
4469 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
4470 (LIB2FUNCS_EXTRA): Define.
4471 * t-sh64 (LIB2FUNCS_EXTRA): Define.
4472 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
4473 (LIB1ASMFUNCS_CACHE): Define.
4474 (LIB2FUNCS_EXTRA): Redefine empty.
4476 2002-04-08 Richard Henderson <rth@redhat.com>
4478 * reorg.c (get_branch_condition): Use reversed_comparison_code.
4480 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4482 * config/m68hc11/larith.asm (__map_data_section): Fix condition
4483 and optimize for size.
4484 (__do_global_ctors): Fix pointer comparison.
4485 (__do_global_dtors): Likewise.
4487 2002-04-09 David S. Miller <davem@redhat.com>
4489 * config/sparc/sparc.c (sparc_extra_constraint_check): New
4490 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
4491 allow reloading pseudos.
4492 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
4493 * config/sparc/sparc-protos.h: Declare it.
4495 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
4496 unsigned comparison warning.
4497 (output_restore_regs): Mark leaf_function as unused.
4499 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4501 * expr.c (is_aligning_offset): New function.
4502 (expand_expr, case COMPONENT_EXPR): Call it.
4504 2002-04-08 David S. Miller <davem@redhat.com>
4507 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
4509 Make init_priority work on Sparc when using GNU ld.
4510 * config/sparc/linux.h, config/sparc/linux64.h,
4511 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
4512 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
4513 * config/sparc/sol2-gld.h: New file to do the same.
4514 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
4515 sparc/sol2-gld.h to tm_file.
4517 PR optimization/4328
4518 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
4519 * doc/md.texi: Document it.
4520 * config/sparc/sparc.md (movdi_insn_sp64_novis,
4521 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
4522 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
4523 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
4524 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
4526 2002-04-08 Andreas Jaeger <aj@suse.de>
4528 * stmt.c (expand_asm_operands): Revert last patch from Richard
4531 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4533 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
4534 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
4536 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4538 * doc/contrib.texi (Contributors): Add David O'Brien.
4540 2002-04-08 Alan Modra <amodra@bigpond.net.au>
4542 * configure.in (auto-build.h): Use target_alias and build_alias
4543 when running configure.
4544 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
4545 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
4546 * configure: Regenerate.
4548 2002-04-07 David S. Miller <davem@redhat.com>
4550 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
4552 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
4555 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
4556 generating 32-bit pic code.
4558 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
4560 * cppinit.c (cpp_create_reader): Initialize
4561 discard_comments_in_macro_exp.
4562 (COMMAND_LINE_OPTIONS): Add "-CC" option.
4563 (cpp_handle_option): Handle "-CC" option.
4564 * cpplex.c (save_comment): If saving a C++ comment in
4565 a directive, convert it to a C comment.
4566 (_cpp_lex_direct): Pass second comment start character to
4567 save_comment to indicate comment type.
4568 * cpplib.c (_cpp_handle_directive): If processing
4569 a "#define" directive and discard_comments_in_macro_exp
4570 is false, re-enable saving of comments.
4571 (lex_macro_node): If discard_comments_in_macro_exp is false,
4572 discard any comments before the macro identifier.
4573 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
4575 * cppmacro.c (cpp_get_token): If expanding a macro while
4576 processing a directive, discard any comments we might encounter.
4577 (parse_params): If discard_comments_in_macro_exp is false,
4578 ignore comments in the macro parameter list.
4579 * gcc.c (cpp_unique_options): Add "-CC" option.
4580 (option_map): Map "--comments-in-macros" to "-CC".
4581 * doc/cppopts.texi: Document "-CC" option.
4582 * f/lang-specs.h: Add "-CC" option.
4583 * testsuite/gcc.dg/cpp/maccom1.c: New test.
4584 * testsuite/gcc.dg/cpp/maccom2.c: New test.
4585 * testsuite/gcc.dg/cpp/maccom3.c: New test.
4586 * testsuite/gcc.dg/cpp/maccom4.c: New test.
4587 * testsuite/gcc.dg/cpp/maccom5.c: New test.
4588 * testsuite/gcc.dg/cpp/maccom6.c: New test.
4590 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4593 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
4595 2002-04-06 Mark Mitchell <mark@codesourcery.com>
4598 * stor-layout.c (layout_decl): Reset the RTL for the decl.
4601 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
4602 RTX_UNCHANGING_P for the functions arguments when a tail call
4605 2002-04-06 Jason Merrill <jason@redhat.com>
4607 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
4608 (parse_options_and_default_flags): Set them appropriately.
4609 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
4611 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
4613 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
4616 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
4619 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
4620 types come in by-reference. Fix typo in comment.
4622 2002-04-05 David S. Miller <davem@redhat.com>
4624 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
4625 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
4626 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
4627 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
4629 2002-04-05 David S. Miller <davem@redhat.com>
4631 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
4632 are not going to emit return instructions, emit at least a nop
4633 for the sake of sane backtraces.
4635 2002-04-05 Richard Henderson <rth@redhat.com>
4637 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
4639 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
4641 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
4643 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
4645 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
4646 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
4647 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
4649 2002-04-05 Andreas Schwab <schwab@suse.de>
4651 * c-convert.c: Include c-common.h.
4652 * Makefile.in (c-convert.o): Updated.
4654 2002-04-05 Jakub Jelinek <jakub@redhat.com>
4656 * mklibgcc.in: Use separate libgcc.map for each multilib.
4657 * Makefile.in (distclean): Don't remove libgcc.map here.
4659 2002-04-05 Jakub Jelinek <jakub@redhat.com>
4661 * Makefile.in (s-mlib): Handle --disable-multilib by separate
4662 genmultilib invocation.
4664 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
4666 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
4667 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
4668 to num_gprs for symmetry.
4669 * config/mips/mips.c: Adjust accordingly.
4671 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
4673 * c-common.c (truthvalue_conversion): Rename, update.
4674 * c-common.h (c_common_truthvalue_conversion): New.
4675 * c-convert.c (convert): Update.
4676 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4677 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
4678 * c-typeck.c (build_binary_op, build_unary_op,
4679 build_conditional_expr): Update.
4680 * fold-const.c (constant_boolean_node, fold): Use langhook.
4681 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
4682 * langhooks.h (struct lang_hooks): New hook.
4683 * stmt.c (expand_decl_cleanup): Use langhook.
4684 * tree.h (truthvalue_conversion): Remove.
4686 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4688 2002-04-05 Alan Modra <amodra@bigpond.net.au>
4690 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
4691 Add rules to make null object file.
4693 2002-04-04 Jim Blandy <jimb@redhat.com>
4695 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
4696 macro formal parameter names.
4698 2002-04-04 David S. Miller <davem@redhat.com>
4700 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
4702 2002-04-04 Richard Henderson <rth@redhat.com>
4705 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
4706 Support copies into and out of memory. Don't accept allows_reg
4707 and allows_mem as gospel.
4709 2002-04-04 Richard Henderson <rth@redhat.com>
4712 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
4713 (write_dependence_p): Likewise.
4715 2002-04-04 Richard Henderson <rth@redhat.com>
4717 * predict.c (estimate_bb_frequencies): Do frequency calculation
4718 with a volatile temporary.
4720 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
4722 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
4724 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4727 * final.c (final_start_function): Don't bump profile_label_no here...
4728 (final_end_function): ...but here.
4730 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4732 * config/sparc/sparc.md (pic): New attribute.
4733 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
4735 (split after do_builtin_setjmp_setup): New.
4737 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4740 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
4743 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4745 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
4746 UNITS_PER_WORD for zero sized aggregates.
4748 2002-04-03 David S. Miller <davem@redhat.com>
4750 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
4751 one-character spec for this, just use %(link_gcc_c_sequence).
4753 2002-04-03 David S. Miller <davem@redhat.com>
4755 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
4758 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
4760 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
4761 (DWARF_FRAME_RETURN_COLUMN): Move.
4762 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4763 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
4764 * pa.c (except.h, predict.h): Include.
4766 (store_reg_modify, set_reg_plus_d): Revise prototypes.
4767 (output_ascii): Add cast.
4768 (store_reg_modify): Revise to add frame notes.
4769 (set_reg_plus_d): Likewise.
4770 (compute_frame_size): Include space for eh data registers in frame if
4771 the current function calls eh_return.
4772 (hppa_expand_prologue): Ensure register %r2 is saved if the current
4773 function calls eh_return. Save eh data registers if the current
4774 function calls eh_return. Fix code to add frame notes. Emit
4775 blockage to prevent insns with frame notes being scheduled in the
4776 delay slot of calls.
4777 (hppa_expand_epilogue): Restore eh data registers and do final stack
4778 adjustment if the current function calls eh_return. Don't add frame
4780 (output_call): Revise for change in length of call insn. Don't do
4781 return pointer adjustment for an unconditional jump in the delay slot
4782 of a call when using frame notes.
4783 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
4784 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
4785 (ARG_POINTER_CFA_OFFSET): Define.
4786 * pa.md (return_external_pic): New pattern.
4787 (prologue): Correct formatting. Use return_external_pic if current
4788 function calls eh_return.
4789 (call_internal_symref, call_value_internal_symref,
4790 sibcall_internal_symref, sibcall_value_internal_symref): Change default
4791 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
4793 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
4795 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
4796 list of targets to check using "nop" insn.
4797 * configure: Rebuilt.
4799 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4801 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
4803 2002-04-03 David S. Miller <davem@redhat.com>
4805 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
4806 library sequence passed to the linker.
4807 (LINK_COMMAND_SPEC): Use it.
4808 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
4809 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
4810 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4812 2002-04-03 Jason Merrill <jason@redhat.com>
4814 * except.c (struct eh_status): Remove protect_list.
4815 (begin_protect_partials, end_protect_partials): Remove.
4816 (add_partial_entry): Remove.
4817 * except.h: Remove prototypes.
4819 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
4820 expand_decl_cleanup_eh.
4823 * tree.h (CLEANUP_EH_ONLY): New macro.
4824 * stmt.c (expand_decl_cleanup_eh): New fn.
4825 (expand_cleanups): Check CLEANUP_EH_ONLY.
4826 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
4827 Use expand_decl_cleanup_eh.
4828 (expand_stmt): Adjust.
4829 * c-common.h: Adjust prototype.
4831 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
4833 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
4834 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
4835 (cris_target_asm_function_epilogue): Ditto.
4836 (cris_initial_frame_pointer_offset): Ditto.
4837 (cris_simple_epilogue): Ditto.
4838 (cris_expand_builtin_va_arg): Variable-size types come in
4841 2002-04-03 David S. Miller <davem@redhat.com>
4843 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
4845 (set_fast_math): Correct 'fsr' type.
4847 2002-04-03 Richard Henderson <rth@redhat.com>
4850 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
4851 * toplev.c (check_global_declarations): Use it.
4852 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
4853 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4854 (LANG_HOOKS_DECLS): Add it.
4855 * langhooks.c (lhd_warn_unused_global_decl): New.
4856 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4857 * c-objc-common.c (c_warn_unused_global_decl): New.
4858 * c-tree.h (c_warn_unused_global_decl): Declare.
4859 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4861 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
4863 * langhooks-def.h (lhd_set_decl_assembler_name,
4864 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
4865 (LANG_HOOKS_INITIALIZER): Update.
4866 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
4867 * langhooks.h (struct lang_hooks): New hook.
4868 * tree.c (set_decl_assembler_name): Move to langhooks.c.
4869 (lang_set_decl_assembler_name): Remove.
4870 (init_obstacks): Don't set hook.
4871 (decl_assembler_name): New function.
4872 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
4873 (decl_assembler_name): New.
4874 (lang_set_decl_assembler_name): Remove.
4876 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4878 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
4879 works properly with .hidden symbols.
4880 * configure: Rebuilt.
4881 * config.in: Rebuilt.
4882 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
4883 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
4884 properly with .hidden symbols.
4886 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4889 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
4892 2002-04-03 Richard Henderson <rth@redhat.com>
4895 * sched-rgn.c (sets_likely_spilled): New.
4896 (sets_likely_spilled_1): New.
4897 (add_branch_dependences): Use it.
4899 2002-04-02 Richard Henderson <rth@redhat.com>
4902 * loop.h (LOOP_FIRST_PASS): New.
4903 * loop.c (strength_reduce): Mind it when deciding to unroll.
4904 * toplev.c (rest_of_compilation): Set it.
4906 2002-04-02 David S. Miller <davem@redhat.com>
4908 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
4909 mems_ok_for_ldd_peep when the order of the loads being examined
4911 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
4912 existing comment to increase comprehension of this situation.
4914 2002-04-02 Zack Weinberg <zack@codesourcery.com>
4916 * config/sh/sh.md: Don't use union real_extract.
4918 2002-04-02 Richard Henderson <rth@redhat.com>
4920 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
4922 2002-04-02 David O'Brien <obrien@FreeBSD.org>
4924 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
4925 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
4926 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
4927 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
4928 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
4929 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
4930 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
4931 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
4932 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
4933 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
4934 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
4935 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
4936 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
4937 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
4938 Include as many configury headers via tm_file as possible. This
4939 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
4940 * config/openbsd-oldgas.h: New file.
4941 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
4942 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
4943 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
4944 config/i386/i386-coff.h, config/i386/i386-interix.h,
4945 config/i386/iscdbx.h, config/i386/linux-aout.h,
4946 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
4947 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
4948 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
4949 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
4950 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
4951 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
4952 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
4953 config/i386/vxi386.h: Do not directly include configury headers.
4954 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
4955 Directly include configury headers that are no longer automatically
4956 included by the above headers.
4957 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
4958 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
4959 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
4960 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
4961 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
4962 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
4963 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
4964 (TARGET_VERSION): Define.
4965 * config/i386/beos-elf.h, config/i386/freebsd.h,
4966 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
4967 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
4968 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
4969 config/i386/sco5.h, config/i386/sysv4.h
4970 (TARGET_VERSION): Do not need to protect.
4971 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
4972 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
4973 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
4974 config/i386/i386-interix.h, config/i386/linux-aout.h,
4975 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
4976 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
4977 (YES_UNDERSCORES): Do not define - not needed.
4978 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
4979 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
4980 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
4981 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
4982 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
4983 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
4984 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
4985 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
4987 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
4988 Richard Henderson <rth@redhat.com>
4991 * function.c (assign_temp): Accept either type or decl argument.
4992 Detect variables whose size is too large to fit into an integer.
4993 * stmt.c (expand_decl): Pass the decl, not the type.
4995 2002-04-02 David O'Brien <obrien@FreeBSD.org>
4997 * protoize.c: Match include directory usage with cppdefault.c.
4999 2002-04-03 Jeffrey A Law (law@redhat.com)
5000 Hans-Peter Nilsson <hp@bitrange.com>
5002 * combine.c (simplify_comparison): Avoid narrowing a comparison
5003 with a paradoxical subreg when doing so would drop signficant bits.
5005 2002-04-02 Steve Ellcey <sje@cup.hp.com>
5007 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
5008 if POINTERS_EXTEND_UNSIGNED is defined.
5010 2002-04-02 Richard Henderson <rth@redhat.com>
5013 * local-alloc.c (contains_replace_regs): LO_SUM may contain
5016 2002-04-02 Richard Henderson <rth@redhat.com>
5018 * doc/standards.texi: Document required freestanding libc entry points.
5020 2002-04-02 Alan Modra <amodra@bigpond.net.au>
5022 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
5023 associated splitter. Remove MQ constraint.
5024 (ctrdi_internal4): Correct CCmode clobber.
5026 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
5028 * milli64.S ($$dyncall): New function.
5029 * t-linux (LIB1ASMFUNCS): Revise module list.
5030 (LIB1ASMSRC): Use pa/milli64.S.
5032 2002-04-02 Richard Henderson <rth@redhat.com>
5034 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
5035 rename solaris_sys_varargs_h.
5037 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5039 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
5040 the same mode as its component.
5042 2002-04-02 Richard Henderson <rth@redhat.com>
5045 * final.c (this_is_asm_operands): Export.
5046 * output.h (this_is_asm_operands): Declare.
5047 * config/i386/i386.c (print_operand): Error odd asm operands.
5049 2002-04-02 Richard Henderson <rth@redhat.com>
5052 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
5054 2002-04-01 Richard Henderson <rth@redhat.com>
5057 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
5058 * fixinc/fixincl.x: Rebuild.
5060 2002-04-01 Richard Henderson <rth@redhat.com>
5062 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
5063 (atomic_alloc, atomic_free): New.
5064 (SIZE, MASK_FOR, PTR_IN): New.
5065 (emergency_reg_state, emergency_reg_state_free): New.
5066 (emergency_labeled_state, emergency_labeled_state_free): New.
5067 (reg_state_alloced, labeled_state_alloced): New.
5068 (alloc_reg_state, free_reg_state): New.
5069 (alloc_label_state, free_label_state, free_label_states): New.
5070 (push, pop, dup_state_stack, free_state_stack): Use them.
5071 (desc_label_state): Likewise.
5072 (uw_frame_state_for): Free label states and state stack.
5073 (uw_update_reg_address): Eliminate warnings.
5075 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
5077 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
5078 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
5080 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5082 * c-decl.c (grokdeclarator): Update.
5083 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5084 * c-tree.h (c_mark_addressable): New.
5085 * c-typeck.c (default_function_array_conversion, build_unary_op,
5086 build_array_ref, convert_for_assignment): Update.
5087 (mark_addressable): Rename.
5088 * calls.c (try_to_integrate, expand_call): Use langhook.
5089 * expr.c (expand_expr): Use langhook.
5090 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
5091 * langhooks.h (struct lang_hooks): New hook.
5092 * stmt.c (expand_asm_operands): Use langhook.
5093 * tree.h (mark_addressable): Remove.
5095 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5097 2002-04-01 Bob Wilson <bob.wilson@acm.org>
5099 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
5102 2002-04-01 Bob Wilson <bob.wilson@acm.org>
5104 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
5105 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
5107 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5109 * c-common.c (unsigned_conversion_warning, convert_and_check,
5110 unsigned_type, signed_type, shorten_compare,
5111 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
5112 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
5113 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
5115 * c-decl.c (grokdeclarator): Update.
5116 * c-format.c (check_format_types): Update.
5117 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5118 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5119 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
5120 * convert.c (convert_to_integer): Use new hooks.
5121 * expmed.c (make_tree): Use new hooks.
5122 * expr.c (store_expr): Use new hooks.
5123 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
5124 all_ones_mask_p, unextend, fold): Use new hooks.
5125 * langhooks.h (struct lang_hooks_for_types): New hooks.
5126 * tree.h (signed_or_unsigned_type, signed_type,
5127 unsigned_type): Remove.
5129 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5130 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5132 2002-03-31 Richard Henderson <rth@redhat.com>
5134 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
5135 (desc_frgr_mem): Fix reference to f16-f31.
5137 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5139 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
5140 RTVEC_ELT): Const-ify.
5141 * varray.h (VARRAY_CHECK): Const-ify.
5142 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
5143 ggc_mark_rtvec, ggc_mark): Const-ify.
5145 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
5147 * diagnostic.c: Include langhooks-def.h.
5148 * Makefile.in (diagnostic.o): Update.
5150 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
5152 * c-common.c (c_unsafe_for_reeval): Rename.
5153 * c-common.h (c_unsafe_for_reeval): Rename.
5154 * c-decl.c (finish_incomplete_decl): Rename.
5155 (c_init_decl_processing): Don't set langhook.
5156 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5157 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5158 * c-objc-common.c (c_objc_common_init): Don't set langhook.
5159 * c-tree.h (finish_incomplete_decl): Rename.
5160 * langhooks-def.h (lhd_unsafe_for_reeval): New.
5161 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
5162 (LANG_HOOKS_INITIALIZER): Update.
5163 * langhooks.c (lhd_unsafe_For_reeval): New.
5164 * langhooks.h (struct langhooks): New hooks.
5165 * toplev.c (incomplete_decl_finalize_hook): Remove.
5166 (wrapup_global_declarations): Update.
5167 * tree.c (lang_unsafe_for_reeval): Remove.
5168 (unsafe_for_reeval): Update.
5169 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
5172 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5173 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5175 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
5177 * diagnostic.c (print_error_function): Remove.
5178 (default_print_error_function): Rename.
5179 (report_error_function): Update.
5180 * diagnostic.h (print_error_function): Remove.
5181 (default_print_error_function): Remove.
5182 * langhooks-def.h (struct diagnostic_context): Predeclare.
5183 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
5184 (LANG_HOOKS_INITIALIZER): Update.
5185 * langhooks.h (struct diagnostic context): Predeclare.
5186 (struct lang_hooks): New hook.
5188 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5190 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
5191 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
5193 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
5194 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
5195 of PIC_OFFSET_TABLE_REGNUM thruout.
5196 * config/rs6000/rs6000.md: Likewise.
5197 * config/rs6000/darwin.h: Likewise.
5199 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5201 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
5202 unsigned HOST_WIDE_INT, not unsigned int.
5204 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5206 PR middle-end/6096, middle-end/6098, middle-end/6099
5207 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
5209 (fill_slots_from_thread): Likewise.
5211 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5213 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
5214 floating fields in float regs.
5215 (function_arg_record_value_2): Likewise.
5217 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
5219 * config/mmix/mmix.md (define_constants): Remove misleading
5220 FIXME. Add MMIX_fp_rO_OFFSET.
5221 ("nonlocal_goto_receiver"): Don't have stack-frame address of
5222 saved rO as part of the pattern. Remove FIXME.
5223 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
5224 here, at output-time.
5226 2002-03-31 Jakub Jelinek <jakub@redhat.com>
5229 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
5231 (output_v9branch): Likewise.
5233 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
5235 * gcc.c: Revert previous patch for now.
5236 * config/i386/djgpp.h: Likewise.
5238 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
5240 * config/mmix/crti.asm (_init): Register _fini with atexit.
5241 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
5243 2002-03-31 Richard Henderson <rth@redhat.com>
5246 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
5247 (ASM_OUTPUT_DEF_FROM_DECLS): New.
5249 2002-03-31 Richard Henderson <rth@redhat.com>
5251 * libgcc2.c (__bb_exit_func): Make static.
5253 * config/alpha/alpha.md (trap): New.
5255 2002-03-31 Richard Henderson <rth@redhat.com>
5257 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
5258 promoted argument types; build trap.
5259 (expand_builtin_trap): New.
5260 (expand_builtin): Use it.
5261 * stmt.c (expand_nl_goto_receivers): Likewise.
5262 * expr.h (expand_builtin_trap): Declare.
5263 * libfuncs.h (LTI_abort, abort_libfunc): New.
5264 * optabs.c (init_optabs): Init abort_libfunc.
5266 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
5268 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
5269 (LINK_COMMAND_SPEC): ... from here.
5270 (init_gcc_specs): Duplicate it here too, omitting
5271 shared_name in the second copy.
5272 (init_spec): Test for duplicate
5273 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
5275 2002-03-30 David S. Miller <davem@redhat.com>
5277 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5278 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
5280 2002-03-30 Roger Sayle <roger@eyesopen.com>
5281 Richard Henderson <rth@redhat.com>
5283 * regmove.c (combine_stack_adjustments_for_block): Avoid
5284 emitting a stack adjustment of zero bytes. Let delete_insn
5287 2002-03-30 Richard Henderson <rth@redhat.com>
5289 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
5290 (sparc_emitting_epilogue): New.
5291 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
5292 * config/sparc/sparc-protos.h: Update.
5293 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
5294 (TARGET_SWITCHES): Update.
5295 * config/sparc/sparc.md (return): Remove.
5296 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
5297 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
5298 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
5299 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5300 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
5301 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
5302 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
5303 Remove MASK_EPILOGUE.
5304 * doc/invoke.texi: Update.
5306 2002-03-30 Daniel Berlin <dan@dberlin.org>
5308 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
5309 CPP will start the file for us.
5311 2002-03-30 Richard Henderson <rth@redhat.com>
5314 * config/ia64/ia64.c (group_barrier_needed_p): Special case
5315 prologue_allocate_stack.
5316 (ia64_single_set): Use insn codes for recognition of special
5317 cases, not rtl matching.
5318 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
5320 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
5322 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
5324 2002-03-30 Richard Henderson <rth@redhat.com>
5327 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
5328 or -fomit-frame-pointer with profiling.
5329 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5330 (FUNCTION_PROFILER): Do nothing.
5331 (PROFILE_HOOK): New.
5332 * config/sparc/sparc.c (sparc_override_options): Don't check
5333 code models for profiling.
5334 (sparc_function_profiler): Remove.
5335 (sparc_profile_hook): New.
5336 * config/sparc/sparc-protos.h: Update.
5338 2002-03-30 Jakub Jelinek <jakub@redhat.com>
5340 PR optimization/6086
5341 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
5342 of SUBREG of volatile MEM or because the MEM was mode dependent,
5343 return CLOBBER instead of unmodified SUBREG.
5345 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
5347 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
5348 when not optimizing.
5350 * toplev.c (rest_of_compilation): Cann mark_constant_function
5351 only when optimizing.
5353 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
5356 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
5357 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
5358 (try_optimize_cfg): clear all AUX fields.
5360 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
5361 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
5362 (ix86_address_cost): Be prepared for SUBREGed registers.
5363 (legitimate_address_p): Accept SUBREGed registers.
5365 2002-03-29 Richard Henderson <rth@redhat.com>
5368 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
5370 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5372 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
5373 for aggregate and TFmode types.
5375 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
5377 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
5379 2002-03-29 Richard Henderson <rth@redhat.com>
5382 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
5383 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
5385 2002-03-29 Richard Henderson <rth@redhat.com>
5388 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
5389 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
5390 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
5391 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
5393 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
5395 2002-03-29 Dale Johannesen <dalej@apple.com>
5397 * loop.c (combine_movables): Do allow combination of pseudos.
5399 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
5401 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
5402 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
5403 No functional change except ...
5404 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
5405 * doc/install.texi (*-*-freebsd*): Document port configuration.
5407 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
5409 * Makefile.in (convert.o, calls.o, expmed.o): Update.
5410 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
5412 * builtin-types.def (BT_PTRMODE): Update.
5413 * c-common.c (type_for_size): Rename c_common_type_for_size.
5414 (type_for_mode): Similarly.
5415 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
5417 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
5418 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
5419 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
5421 * c-typeck.c (common_type, comptypes, default_conversion):
5423 * calls.c: Include langhooks.h.
5424 (emit_library_call_value_1): Use new hooks. Avoid redundant
5426 * convert.c: Include langhooks.h
5427 (convert_to_pointer, convert_to_integer): Use new hooks.
5428 * except.c (init_eh): Similarly.
5429 * expmed.c: Include langhooks.h.
5430 (expand_mult_add): Use new hooks.
5431 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
5432 try_casesi): Similarly.
5433 * fold-const.c (optimize_bit_field_compare, make_range,
5434 decode_field_reference, fold_truthop, fold): Similarly.
5435 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
5436 put_var_into_stack): Similarly.
5437 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
5438 LANG_HOOKS_TYPE_FOR_SIZE): New.
5439 (LANG_HOOKS_TYPES_INITIALIZER): Update.
5440 * langhooks.h (lang_hooks_for_types): New hooks.
5441 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
5442 * tree.c (get_unwidened, get_narrower): Similarly.
5443 * tree.h (type_for_mode, type_for_size): Remove.
5444 * varasm.c (force_const_mem): Use new hooks.
5445 * utils2.c (nonbinary_modular_operation): Update.
5447 * objc-act.c (handle_impent): Update.
5448 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
5451 2002-03-29 Steve Ellcey <sje@cup.hp.com>
5453 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
5454 * config/ia64/ia64.c (basereg_operand): New.
5455 * config/ia64/ia64-protos.h (basereg_operand): Declare.
5456 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
5458 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
5460 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
5461 unwind information when frame_pointer_needed.
5462 (mmix_assemble_integer): Tweak wording in comment.
5464 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
5466 * Makefile.in (except.o): Update.
5467 * except.c: Include langhooks.h.
5468 (init_eh): Use langhook.
5469 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
5470 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
5471 (LANG_HOOKS_INITIALIZER): Update.
5472 * langhooks.h (lang_hooks_for_types): New.
5473 (struct lang_hooks): Add it.
5474 * tree.c (make_lang_type_fn, make_lang_type): Remove.
5475 * tree.h (make_lang_type_fn, make_lang_type): Remove.
5477 * alpha/alpha.c: Include langhooks.h.
5478 (alpha_build_va_list): Use langhook.
5479 * d30v/d30v.c: Include langhooks.h.
5480 (d30v_build_va_list): Use langhook.
5481 * i386/i386.c: Include langhooks.h.
5482 (ix86_build_va_list): Use langhook.
5483 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
5484 * s390/s390.c: Include langhooks.h.
5485 (s390_build_va_list): Use langhook.
5486 * stormy16/stormy16.c: Include langhooks.h.
5487 (stormy16_build_va_list): Use langhook.
5489 2002-03-29 Jakub Jelinek <jakub@redhat.com>
5492 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
5494 (length): Compute variable length for branches/calls/jumps here.
5495 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
5496 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
5497 define branch_type attribute.
5498 (divsi3_sp32): Maximum length is 6 not 7.
5499 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
5500 call_address_untyped_struct_value_sp32,
5501 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
5502 * config/sparc/sparc.c (empty_delay_slot): New function.
5503 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
5504 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
5506 2002-03-29 Jakub Jelinek <jakub@redhat.com>
5508 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
5509 nonzero_bits if not needed.
5510 (nonzero_bits) [XOR]: Likewise.
5511 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
5512 reg_last_set_mode and mode are both MODE_INT, but not equal.
5513 (record_value_for_reg): Compute reg_last_set_nonzero_bits
5514 in nonzero_bits_mode for MODE_INT modes.
5516 2002-03-28 Richard Henderson <rth@redhat.com>
5519 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
5520 to GAS. Correct drift between alternatives.
5522 2002-03-28 Richard Henderson <rth@redhat.com>
5525 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
5527 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
5529 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
5530 emulation to the linker.
5532 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
5534 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
5535 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
5537 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
5539 * combine.c (simplify_and_const_int): Make sure to apply mask
5540 when force_to_mode returns a constant integer. PR3311.
5542 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5544 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
5546 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5548 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
5549 and Objective-C Dialect Options.
5551 2002-03-28 Richard Henderson <rth@redhat.com>
5553 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
5554 comparison should be done vs !=0 not >0 return code. Tidy cases.
5556 2002-03-28 Richard Henderson <rth@redhat.com>
5558 * c-decl.c (finish_function): New arg can_defer_p. Pass it
5559 on to c_expand_body.
5560 * c-tree.h (finish_function): Update decl.
5561 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
5563 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
5565 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
5567 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
5569 * rtlanal.c: Include flags.h
5570 (may_trap_p): Do not mark FP operations if trapping
5571 if !flag_trapping_math
5572 * Makefile.in (rtlanal.o): Add dependency on flag.h
5573 * ifcvt.c (noce_operand_ok): Avoid the lameness.
5575 2002-03-27 Zack Weinberg <zack@codesourcery.com>
5577 * mips.md: Use dconst1, not 1.0, as first argument of
5578 REAL_VALUE_LDEXP. Don't use union real_extract.
5580 2002-03-28 Alan Modra <amodra@bigpond.net.au>
5582 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
5583 rather than $target. Heed program_prefix and
5584 program_transform_name. Search for gas in cross-compiler case too.
5585 "test -x" rather than "test -f".
5586 (gcc_cv_ld): Likewise.
5587 (gcc_cv_nm): Heed program_prefix and program_transform_name.
5588 (gcc_cv_objdump): Likewise.
5589 * configure: Regenerate.
5591 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5593 * Makefile.in (attribs.o): Update.
5594 * attribs.c: Include langhooks.h.
5595 (decl_attributes): Use langhook.
5596 * c-decl.c (insert_default_attributes): Rename.
5597 * c-tree.h (c_insert_default_attributes): New.
5598 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
5599 (LANG_HOOKS_INITIALIZER): Update.
5600 * langhooks.h (struct lang_hooks): New hook.
5601 * tree.h (insert_default_attributes): Remove.
5603 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
5605 2002-03-27 Andreas Schwab <schwab@suse.de>
5607 * config/i386/i386.c (classify_argument): Also check for
5610 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5612 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
5615 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
5617 * i960.md (ret): Set PC.
5618 (nonlocal_goto): Fix expander.
5619 * builtins.c (epxand_builin_longjmp): Check that we've emitted
5622 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
5624 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
5627 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5629 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
5630 assigning to BLOCK_FOR_INSN directly.
5632 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
5634 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
5636 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5638 * c-common.c (c_expand_expr): Fix prototype.
5639 * c-common.h (c_expand_expr): Always declare, update.
5640 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5641 * c-objc-common.c (c_objc_common_init): No global hook.
5642 * expr.c (expand_expr): Use langhook.
5643 * expr.h (enum expand_modifier): Conditionally declare.
5644 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
5645 (LANG_HOOKS_INITIALIZER): Update.
5646 * langhooks.c (lhd_expand_expr): New.
5647 * langhooks.h (struct lang_hooks): New hook.
5648 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
5649 (lang_independent_init): Don't default hook.
5651 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5653 2002-03-27 Richard Henderson <rth@redhat.com>
5656 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
5657 TARGET_CONST_GP. Simplify conditions.
5659 2002-03-27 Richard Henderson <rth@redhat.com>
5661 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5662 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
5663 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
5665 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
5667 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
5668 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
5669 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
5670 Remove unnecessary masks.
5671 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
5672 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
5673 -mwindows, -mdll switches and their negations.
5675 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5677 * gcc-common.c (lang_mark_false_label_stack): Remove.
5678 * ggc.h (lang_mark_false_label_stack): Similarly.
5680 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
5682 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
5684 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
5685 or __rtems_ is defined.
5687 2002-03-26 Richard Henderson <rth@redhat.com>
5689 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
5690 if a non-trivial load was emitted.
5691 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
5692 in high+extra+low case.
5694 2002-03-26 Richard Henderson <rth@redhat.com>
5696 * config.gcc (sparc*-solaris): Use float_format=sparc.
5698 2002-03-26 Richard Henderson <rth@redhat.com>
5700 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
5701 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
5702 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
5703 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
5704 (WINT_TYPE_SIZE): Fix at 32.
5706 2002-03-26 Richard Henderson <rth@redhat.com>
5708 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
5709 until after eh landing pad generation.
5710 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
5711 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
5713 2002-03-26 Richard Henderson <rth@redhat.com>
5715 * expr.h (ADD_PARM_SIZE): One more convert for INC.
5717 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
5719 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
5720 and warning switches.
5721 (cc1_options): Likewise.
5723 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
5725 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
5726 Restore more of the signal context. Set no_reg_stack_frame.
5727 * config/ia64/unwind-ia64.c (unw_state_record):
5728 Add no_reg_stack_frame, comments.
5729 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
5730 (uw_update_context): Adjust bsp when unwinding from leaf,
5731 but not signal frame.
5733 2002-03-26 David Edelsohn <edelsohn@gnu.org>
5735 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
5737 2002-03-26 Bob Wilson <bob.wilson@acm.org>
5739 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
5741 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
5744 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
5745 "Add a pool_range attribute", which was lost during the ARM/Thumb
5748 2002-03-26 Bob Wilson <bob.wilson@acm.org>
5750 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
5751 a register into the MAC16 accumulator.
5753 2002-03-26 Andrew Cagney <ac131313@redhat.com>
5755 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
5756 (Warning Options): Document -Wswitch-enum.
5757 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
5759 (warn_switch_enum): Define variables.
5760 * flags.h (warn_switch_enum): Declare variables.
5761 * stmt.c (expand_end_case_type): When warn_switch_enum /
5762 -Wswitch-enum, perform switch checks.
5765 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
5767 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
5768 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
5769 (reload_muladdsi_compare0_scratch): Delete.
5771 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
5773 * doc/install.texi (*-*-freebsd*): Update.
5775 2002-03-26 Richard Henderson <rth@redhat.com>
5777 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
5778 (SUB_PARM_SIZE): Cast DEC to ssizetype.
5780 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
5781 types from the normal argument frame.
5783 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
5784 variable sized objects by reference.
5785 (sparc_va_arg): Receive them by reference too.
5787 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
5789 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
5790 code to not restoring global registers.
5792 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
5794 * Makefile.in (ggc-common.o): Update.
5795 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
5796 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5797 * c-tree.h (c_mark_tree): New.
5798 * ggc-common.c: Include langhooks.h.
5799 (gcc_mark_trees): Use new langhook.
5800 * ggc-callbacks.c: Delete file.
5801 * ggc.h (lang_mark_tree): Remove.
5802 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
5803 (LANG_HOOKS_INITIALIZER): Update.
5804 * langhooks.h (struct lang_hooks): New hook.
5806 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5808 2002-03-25 Zack Weinberg <zack@codesourcery.com>
5810 * doc/cpp.texi: Exclude entire Top node from printed manual.
5811 Move option index after directive index. Insert page breaks
5812 before GFDL and concept index. Index environment variables
5813 with command line options.
5814 * doc/cppenv.texi: Use @vtable for environment variable list.
5815 Add paragraph explaining semantics of empty elements in path
5816 variables. Exclude a cross-reference to Fishkill from the
5817 manpage. Remove an unnecessary cross-reference of the entry
5818 right above the referer. Don't use @anchor in text that goes
5820 * doc/cppopts.texi: Cross-reference the environment variables
5821 section, not the specific environment variable, for consistency.
5823 2002-03-25 Richard Henderson <rth@redhat.com>
5825 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
5826 anywhere in the block. Don't refer to insns that have been
5827 removed from the chain. Iterate backward through the new insns.
5828 Don't refer to edges that have been removed.
5830 2002-03-26 Alan Modra <amodra@bigpond.net.au>
5832 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
5833 test for overflow of constant.
5835 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
5838 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
5839 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
5840 these patterns on arm_archv4.
5842 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
5844 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
5847 2002-03-25 Zack Weinberg <zack@codesourcery.com>
5849 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
5850 float_handled, float_handler, float_signal, set_float_handler,
5851 and do_float_handler. Set handler for SIGFPE to crash_signal.
5852 * toplev.h: Don't prototype do_float_handler.
5854 * c-lex.c: Fold parse_float into lex_number. Make warning
5855 about portability of hex float constants more informative, and
5856 don't issue it on top of a syntax error.
5857 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
5859 * real.h: Define REAL_VALUE_ABS here...
5860 * simplify-rtx.c: ... not here. Fold check_fold_consts,
5861 simplify_unary_real, simplify_binary_real, and
5862 simplify_binary_is2orm1 into their callers.
5863 * tree.c: Fold build_real_from_int_cst_1 into caller.
5865 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
5867 * tsystem.h: Include float.h here...
5868 * libgcc2.c: ... not here.
5870 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
5872 Fixes for: PR bootstrap/3591, target/5676
5873 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
5874 defined. Do not disable exceptions or rtti.
5875 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
5876 mcore.h. Disable exceptions and rtti, since they are not
5879 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
5881 * c-decl.c (maybe_build_cleanup): Remove.
5882 * expr.c (expand_expr): Use langhook.
5883 * langhooks-def.h (lhd_return_null_tree,
5884 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
5885 (LANGHOOKS_INITIALIZER): Update.
5886 * langhooks.c (lhd_return_null_tree): New.
5887 * langhooks.h (struct lang_hooks): New hook.
5888 * tree-inline.c (initialize_inlined_parameters): Use langhook.
5889 * tree.h (maybe_build_cleanup): Remove.
5891 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5893 * regrename.c (build_def_use): Move recog_memoized
5894 before extract_insn.
5896 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5899 * expr.c (emit_group_store): Handle storing into CONCAT.
5901 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5903 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
5904 corresponding MATCH_DUP.
5906 2002-03-24 Richard Henderson <rth@redhat.com>
5908 * unroll.c (unroll_loop): Zero label_map.
5910 * gcse.c: Include except.h.
5911 * Makefile.in (gcse.o): Update.
5913 2002-03-24 Richard Henderson <rth@redhat.com>
5915 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
5916 Do resolve_unique_section before shared data clause.
5918 2002-03-24 Richard Henderson <rth@redhat.com>
5920 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
5922 2002-03-24 Richard Henderson <rth@redhat.com>
5924 * recog.c (peephole2_optimize): Split blocks when EH insns are
5925 generated in the middle of a block. Do global life update if
5928 2002-03-24 Richard Henderson <rth@redhat.com>
5930 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
5932 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5935 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
5936 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
5937 (init_dependency_output): Don't make no_output decision here.
5939 2002-03-24 Andrew Cagney <ac131313@redhat.com>
5941 * stmt.c (check_for_full_enumeration_handling): Remove tests of
5942 warn_switch. Update description.
5943 (expand_end_case_type): Call check_for_full_enumeration_handling
5946 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5948 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
5949 (m68hc11_split_move): Call it to see if the source and destination
5950 operands use the same direction auto inc/dec mode, otherwise make the
5951 source an offsetable memory operand and generate an add.
5953 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5955 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
5956 register for operand 2.
5957 ("*subsi3_zero_extendqi"): Likewise.
5958 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
5959 bits so that it is compatible with a pop.
5960 ("*andhi3_gen"): Likewise.
5961 ("xorhi3"): Likewise.
5963 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5965 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
5967 (cpp_post_options): ... not here.
5969 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5970 Aldy Hernandez <aldyh@redhat.com>
5972 Removal of separate preprocessor cpp0.
5974 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
5975 cpp0, install-common): Update.
5976 * c-common.c (flag_preprocess_only): New.
5977 (c_common_init): Preprocess for -E.
5978 * c-common.h (flag_preprocess_only): New.
5979 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
5980 * c-objc-common.c (c_init_decl_processing): Exit quickly
5981 for NULL return from c_common_init.
5982 * cpplib.h (cpp_preprocess_file): New.
5983 * cppmain.c (main, general_init, pfile, progname): Remove.
5984 (do_preprocessing): Rename cpp_preprocess_file, don't call
5985 cpp_finish. Don't close stdout here.
5986 (setup_callbacks): Update prototype.
5987 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
5989 * tradcpp.c (main): Ignore -quiet.
5991 * lang-specs.h (default_compilers): Preprocess with cc1obj.
5993 2002-03-24 Richard Henderson <rth@redhat.com>
5995 PR optimization/5742
5996 * machmode.def: Add inner mode field to complex modes.
5997 * config/mips/mips.c (mips_function_value): Always define. Add
5998 new argument to handle libcalls.
5999 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
6000 (FUNCTION_VALUE): Likewise.
6001 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
6002 * config/mips/mips-protos.h: Update.
6004 2002-03-23 Richard Henderson <rth@redhat.com>
6006 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
6007 * config/sparc/sparc-protos.h: Update.
6008 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
6010 2002-03-23 Richard Henderson <rth@redhat.com>
6012 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
6013 _start or _init begins the text segment.
6015 2002-03-23 David Edelsohn <edelsohn@gnu.org>
6017 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
6018 not HOST_WIDEST_INT.
6019 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
6021 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
6024 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
6025 operand argument to output_return_instruction.
6026 * arm.c (arm_print_operand, case 'd'): If the operand is
6027 const_true_rtx then just return.
6028 (arm_print_operand, case 'D'): If the operand is const_true_rtx
6031 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6033 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
6034 (Warning Options): Document -Wswitch-default.
6035 * toplev.c (W_options): Add -Wswitch-default. Update comment on
6037 (warn_switch_default): Define variable.
6038 (warn_switch): Update comment.
6039 * flags.h (warn_switch_default): Declare variable.
6040 (warn_switch): Update comment.
6041 * stmt.c (expand_end_case): Check for and, when
6042 warn_switch_no_default, warn of a missing default case.
6044 2002-03-23 Alan Modra <amodra@bigpond.net.au>
6046 * real.h (N): Special case 128 bit doubles.
6048 * combine.c (simplify_comparison): When widening modes, ignore
6049 sign extension on CONST_INTs.
6051 2002-03-22 Bob Wilson <bob.wilson@acm.org>
6053 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
6054 passed to adjust_address. Fix comment formatting.
6057 2002-03-22 Zack Weinberg <zack@codesourcery.com>
6059 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
6060 Always make REAL_VALUE_TYPE a struct containing an array of
6061 HOST_WIDE_INT, not a double. Tidy up the code deciding how
6062 big it is. Don't declare or use union real_extract.
6064 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
6065 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
6066 (print_operand), config/arm/arm.c (output_move_double),
6067 config/arm/arm.md (consttable_4, consttable_8),
6068 config/romp/romp.c (output_fpops), config/s390/s390.h
6069 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
6070 (xtensa_output_literal): Don't use union real_extract.
6072 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
6073 (sfmode_constant_to_ulong), config/ns32k/merlin.h
6074 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
6075 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
6076 (PRINT_OPERAND): Don't use local version of union
6079 * config/convex/convex.c (check_float_value), config/vax/vax.c
6080 (vax_float_literal), config/m88k/m88k.md (divdf3),
6081 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
6082 config/pdp11/pdp11.c (output_move_quad): Don't do host
6083 arithmetic on target floating point quantities.
6085 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
6086 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
6088 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
6089 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
6091 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
6092 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
6094 * print-rtl.c (print_rtx): Disable code which needs
6095 floating-point emulator.
6096 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
6097 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
6098 depending on HOST_FLOAT_FORMAT to be defined properly.
6100 * config/1750a/1750a.c (get_double, float_label): Delete.
6101 (print_operand): Delete huge commented-out chunk. Use
6102 REAL_VALUE_TO_DECIMAL.
6103 * config/1750a/1750a-protos.h: Delete prototypes of deleted
6105 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
6107 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
6108 Use REAL_VALUE_TO_DECIMAL as ELF version does.
6109 * config/m88k/m88k.c (real_power_of_2_operand,
6110 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
6111 real_extract out of the union; run the input through
6112 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
6113 from that into the union.
6114 * config/pdp11/pdp11.c (output_move_double): Rearrange
6115 parentheses to make automatic indenter happy.
6117 * doc/tm.texi (Cross-compilation): Rename node to "Floating
6118 Point" and rewrite to describe current situation. Also adjust
6119 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
6121 * doc/rtl.texi: Adjust cross reference.
6123 2002-03-22 Bob Wilson <bob.wilson@acm.org>
6125 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
6126 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
6127 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
6128 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
6129 prevent use of sp as a reload register.
6130 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
6131 non_acc_reg_operand.
6132 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
6133 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
6134 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
6135 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
6137 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
6139 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
6140 * cpplex.c (unterminated): Delete.
6141 (parse_string): No string literal may extend over multiple
6142 lines. Suppress the error when preprocessing assembly.
6143 * cppmain.c (scan_translation_unit): Strings are single-line.
6145 * doc/cpp.texi: Update to match.
6147 2002-03-22 Jakub Jelinek <jakub@redhat.com>
6149 PR optimization/5854
6150 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
6152 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
6153 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
6154 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
6155 const0 if scratch register was not allocated.
6156 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
6157 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
6159 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
6160 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
6161 with GEN_INT (...) everywhere. Remove constraints in define_split
6163 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
6164 require scratch register for setting 0 into regs/non-pushable memory.
6166 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
6168 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
6169 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
6171 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
6173 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
6174 * cppinit.c (cpp_create_reader): On by default.
6175 (cpp_handle_option): Handle -W[no-]endif-labels.
6176 (cpp_post_options): Also enable if -pedantic.
6177 * cpplib.c (do_else): Use it.
6178 (do_endif): Likewise.
6179 * doc/cppopts.texi: Document new option.
6180 * doc/invoke.texi: Document new option.
6182 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
6184 * config/i386/i386.c, config/i386/i386.md: Change all occurences
6185 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
6187 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
6189 * flow.c (calculate_global_regs_live): Clear aux fields of
6192 2002-03-22 Jakub Jelinek <jakub@redhat.com>
6194 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
6195 REG or MEM subregs, pass rtx * instead of rtx to it.
6196 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
6197 rtx * instead of rtx to alter_subreg.
6198 * config/m32r/m32r.c (gen_split_move_double): Likewise.
6199 * config/pj/pj.c (pj_output_rval): Likewise.
6201 2002-03-22 Richard Henderson <rth@redhat.com>
6204 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
6205 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
6206 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
6207 (ia64_expand_prologue): Look at int_regs, not words, for number
6208 of incomming int regs.
6210 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
6212 * expr.c (expand_expr): A RESULT_DECL is part of a call.
6214 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
6216 * toplev.c (flag_loop_optimize, flag_crossjumping):
6217 New static variables.
6218 (rest_of_compilation): Conditionalize crossjumping and
6220 (parse_options_and_default_flags): Default loop_optimize and
6222 (lang_independent_options): Add -fcrossjumping and -floop-optimize
6223 * invoke.texi (crossjumping, loop-optimize): Document.
6225 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
6227 * real.c (eiisneg): Move outside #ifdef NANS.
6229 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
6231 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
6232 frequencies match; avoid match on different loop depths.
6233 (try_crossjump_to_bb): Kill tests that no longer brings time
6235 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
6237 (split_edge): Likewise.
6239 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
6242 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
6243 * cfgrtl.c: Include insn-config.h
6244 (split_block) Dirtify block in presence of conditional execution
6246 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
6248 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
6249 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
6250 (function_arg): Constify CUMULATIVE_ARGS.
6251 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
6252 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
6253 (UNITS_PER_DOUBLE): New macro.
6254 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
6255 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
6256 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
6257 fp_regs and stack_words.
6258 (EABI_FLOAT_VARARGS_P): New macro.
6259 * config/mips/mips.c (struct mips_arg_info): New.
6260 (mips_arg_info): New function.
6261 (function_arg_advance): Use it. Add adjustment instructions here
6262 rather than in function_arg.
6263 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
6264 for VOIDmode at the beginning of the function.
6265 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
6266 (function_arg_pass_by_reference): Likewise.
6267 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
6268 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
6269 (mips_va_start): Likewise. Use the new stack_words field of
6270 CUMULATIVE_ARGS to set up overflow area. Reformat.
6271 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
6272 doubles and other types, aligning the overflow pointer for non-doubles
6273 too. Remove some code duplication. Replace hard-coded constants.
6275 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
6277 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
6278 (CLASS_UNITS): Undefine.
6279 (CLASS_MAX_NREGS): Use FP_INC.
6280 * config/mips/mips.c (compute_frame_size): Likewise.
6281 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
6283 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
6285 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
6286 prototype, and handle lexing numbers and identifiers.
6287 (parse_identifier): Update to new form of parse_slow.
6288 (parse_number): Fast path only, use parse_slow otherwise.
6289 (_cpp_lex_direct): Update calls to parse_number.
6291 2002-03-21 DJ Delorie <dj@redhat.com>
6293 * bb-reorder.c (make_reorder_chain_1): Protect against
6294 when redundant edges are omitted.
6295 * predict.c (dump_prediction): Likewise.
6297 2002-03-21 Richard Henderson <rth@redhat.com>
6300 * fixinc/inclhack.def (solaris_stdio_tag): New.
6301 * fixinc/fixincl.x: Regenerate.
6303 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
6306 * c-typeck.c (process_init_element): Flag non-static
6307 initialization of a flexible array member as illegal.
6309 2002-03-22 Alan Modra <amodra@bigpond.net.au>
6311 * config/rs6000/t-linux64: New.
6312 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
6313 t-ppccomm. Use t-rs6000 and t-linux64.
6314 (powerpc64-*-gnu* <tmake_file>): Likewise.
6315 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
6316 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
6317 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
6319 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
6321 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
6322 flag_really_no_inline instead of optimize == 0.
6324 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
6326 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
6328 * flags.h (flag_really_no_inline): New.
6330 * c-common.c (c_common_post_options): Initialize
6331 flag_really_no_inline.
6333 * toplev.c (flag_really_no_inline): New.
6335 2002-03-21 Jakub Jelinek <jakub@redhat.com>
6337 * config/avr/avr.md (length): Fix length computation for
6338 conditional branches.
6340 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
6342 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
6343 sdbout.o, profile.o): Update.
6344 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
6346 * c-common.h (gettags): Move here from tree.h.
6347 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
6348 insert_block, getdecls, kept_level_p, global_bindings_p): New.
6349 * dbxout.c (dbxout_init): Use getdecls langhook.
6350 * expr.c (expand_expr): Use insert_block langhook.
6351 * fold-const.c: Include langhooks.h.
6352 (fold_range_test, fold_binary_op_with_conditional_arg,
6353 fold): Use global_bindings_p langhook.
6354 * integrate.c (expand_inline_function): Use insert_block langhook.
6355 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
6356 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
6357 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
6358 LANG_HOOKS_GETDECLS): New.
6359 (LANG_HOOKS_INITIALIZER): Update.
6360 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
6362 * langhooks.h (struct lang_hooks_for_decls): New.
6363 (struct lang_hooks): Update.
6364 * profile.c: Include langhooks.h.
6365 (output_func_start_profiler): Use new langhooks.
6366 * sdbout.c: Include langhooks.h.
6367 (sdbout_init, sdbout_finish): Use getdecls langhook.
6368 * stmt.c: Include langhooks.h.
6369 (expand_fixup, fixup_gotos): Use new langhooks.
6370 * stor-layout.c: Include langhooks.h.
6371 (variable_size): Use global_bindings_p langhook.
6372 * toplev.c (compile_file): Use getdecls langhook.
6373 * tree-inline.c (remap_block): Use insert_block langhook.
6374 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
6375 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
6377 2002-03-21 Richard Henderson <rth@redhat.com>
6379 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
6380 constants in .data when -fpic.
6382 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6384 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
6387 2002-03-21 Tom Tromey <tromey@redhat.com>
6389 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
6391 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6393 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
6395 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
6397 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
6398 Richard Henderson <rth@redhat.com>
6401 * c-common.c (c_expand_expr): Preserve result of a statement
6402 expression if needed.
6404 2002-03-21 Jakub Jelinek <jakub@redhat.com>
6407 * genrecog.c (maybe_both_true_mode): Remove.
6408 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
6409 * machmode.def (Pmode): Likewise.
6411 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
6413 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
6414 (nonlocal_mentioned_p_1): New function.
6415 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
6416 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
6417 (mark_constant_function): Recognize pure functions.
6418 * rtl.h (global_reg_mentioned_p): New prototype.
6419 * rtlanal.c (global_reg_mentioned_p,
6420 global_reg_mentioned_p_1): New function.
6422 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6424 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
6426 * fixinc/fixincl.x: Regenerate.
6428 2002-03-20 Jason Merrill <jason@redhat.com>
6430 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
6432 2002-03-20 Michael Meissner <meissner@redhat.com>
6434 * doc/invoke.texi (Optimize Options): Document that -O2 sets
6437 2002-03-20 Bob Wilson <bob.wilson@acm.org>
6439 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
6440 ".literal_position" directive before the constant pool.
6442 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6444 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
6445 Add Craig Rodrigues.
6446 Add Brad Lucier to testers.
6448 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6451 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
6453 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
6454 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
6455 instead of insn_extract.
6457 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6460 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
6462 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
6463 stmt if some case has been output.
6465 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6468 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
6469 movsfcc_1, movdfcc_1): Add %O2.
6470 * config/i386/i386.c (print_operand): Handle %ON.
6471 Print . before float condition codes in Sun as cmov syntax.
6472 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
6473 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
6476 2002-03-20 Philip Blundell <pb@nexus.co.uk>
6478 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
6479 return instruction if PC was popped.
6481 2002-03-20 Bob Wilson <bob.wilson@acm.org>
6483 * config/xtensa/xtensa.md: Remove unused type attributes.
6484 (adddi_carry, subddi_carry): Change type attribute to "multi".
6486 2002-03-19 Dale Johannesen <dalej@apple.com>
6488 PR optimization/5999, middle-end/5731
6489 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
6490 multiplications by reciprocals.
6492 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
6494 * Makefile.in: Update.
6495 * c-common.c: Include langhooks.h.
6496 (inline_forbidden_p): Use new hook.
6497 * diagnostic.c: Include langhooks.h.
6498 (format_with_decl, announce_function,
6499 default_print_error_function): Use new hook.
6500 * dwarf2out.c (dwarf2_name): Use new hook.
6501 * function.c: Include langhooks.h.
6502 (init_function_start): Use new hook.
6503 * langhooks-def.h (lhd_decl_printable_name): New.
6504 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
6505 (LANGHOOKS_INITIALIZER): Update.
6506 * langhooks.c (lhd_decl_printable_name): New.
6507 * langhooks.h (struct lang_hooks): New hook.
6508 * toplev.c (decl_name, decl_printable_name): Remove.
6509 (open_dump_file): Use new hook.
6510 (process_options): Remove old hook.
6511 * tree.h (decl_printable_name): Remove.
6513 * objc-act.c (objc_init): Remove old hook.
6514 (objc_printable_name): Export.
6515 * objc-act.h (objc_printable_name): New.
6516 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
6518 2002-03-19 Jim Blandy <jimb@redhat.com>
6520 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
6521 the start_source_file debug hook, not the current line number.
6523 2002-03-19 Richard Henderson <rth@redhat.com>
6525 * flow.c (EH_USES): Provide default.
6526 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
6527 * doc/tm.texi (EH_USES): New.
6529 * config/ia64/ia64.c (ia64_eh_uses): New.
6530 * config/ia64/ia64-protos.h: Update.
6531 * config/ia64/ia64.h (EH_USES): New.
6533 2002-03-19 Richard Henderson <rth@redhat.com>
6535 * varasm.c (output_constant_def): Fix stupid typo.
6537 2002-03-19 Richard Henderson <rth@redhat.com>
6540 * except.c (current_function_has_exception_handlers): New.
6541 * except.h: Declare it.
6542 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
6543 Combine tests that disable all sibcalls for the function.
6545 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
6547 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
6550 2002-03-19 Richard Henderson <rth@redhat.com>
6553 * config/ia64/ia64.c: Revert 2002-03-01 patch.
6554 * config/ia64/ia64.h (INIT_EXPANDERS): New.
6556 2002-03-19 Jim Blandy <jimb@redhat.com>
6558 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
6559 name, even if the replacement list contains no tokens, as required
6562 2002-03-19 Jason Merrill <jason@redhat.com>
6564 * varasm.c (globalize_decl): Get the name from the RTL, not
6565 DECL_ASSEMBLER_NAME.
6567 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
6569 2002-03-19 Bob Wilson <bob.wilson@acm.org>
6571 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
6572 subdi_carry): Define.
6574 2002-03-19 David Edelsohn <edelsohn@gnu.org>
6576 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
6577 about -fpic/-fPIC if extra_warnings set.
6579 2002-03-19 David Edelsohn <edelsohn@gnu.org>
6581 * expr.c (expand_expr): Sign-extend CONST_INT generated from
6582 TREE_STRING_POINTER.
6583 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
6585 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6587 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
6588 in favor of SP if FRAME_POINTER_REQUIRED is false.
6590 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
6592 * emit-rtl.c (gen_int_mode): New function.
6593 * rtl.h: Prototype for it.
6594 * combine.c (make_extraction, simplify_comparison), expmed.c
6595 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
6596 (convert_modes, store_field), optabs.c (expand_fix),
6597 simplify-rtx.c (neg_const_int, simplify_unary_real),
6599 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
6600 Use it instead of GEN_INT (trunc_int_for_mode (...)).
6602 2002-03-19 Jakub Jelinek <jakub@redhat.com>
6605 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
6606 convert_parm_for_inlining.
6607 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
6609 * langhooks-def.h: Likewise.
6610 * objc/objc-lang.c: Likewise.
6611 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
6613 * tree-inline.c (initialize_inlined_parameters):
6614 Call convert_parm_for_inlining lang hook if needed.
6615 * c-typeck.c (c_convert_parm_for_inlining): New function.
6616 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
6618 2002-03-18 Mark Mitchell <mark@codesourcery.com>
6620 * calls.c (precompute_arguments): Do not assume that temporaries
6621 can be destroyed after expanding the argument.
6622 (expand_call): Likewise.
6624 2002-03-15 Eric Christopher <echristo@redhat.com>
6626 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
6627 Fix register preference on last change.
6628 * config/mips/mips.c (mips_return_in_memory): New function.
6629 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
6630 * config/mips/mips-protos.h: Declare.
6631 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
6632 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
6634 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
6636 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
6638 (anddi3, iorsi3): Likewise.
6640 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
6641 use %gprel for symbols that are going to be placed in linkonce
6644 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
6645 RETURN_ADDRESS_POINTER_REGNUM to $ra.
6646 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
6647 not needed. Disregard leaf_function_p().
6648 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
6649 mips16 frame pointer.
6650 * config/mips/mips.md (store ra): Only to small SP offsets.
6651 2001-08-22 Graham Stott <grahams@redhat.com>
6652 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
6653 return a REG rtx for the return address register.
6655 2002-03-18 Bob Wilson <bob.wilson@acm.org>
6657 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
6658 constant-pool addresses as "mode-dependent".
6659 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
6661 2002-03-18 Jakub Jelinek <jakub@redhat.com>
6664 * expr.c (emit_group_load): Use extract_bit_field if
6665 needed for CONCAT arguments.
6667 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
6670 * arm.md (tablejump): Make this a define_expand. For PIC add the
6671 offset to the base of the table.
6672 (thumb_tablejump): Matcher for Thumb tablejump insn.
6673 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
6674 as the difference of two labels.
6675 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6676 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
6678 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
6679 * arm.c (get_jump_table_size): If the table is not in the text
6680 section, return zero.
6682 2002-03-18 Bernd Schmidt <bernds@redhat.com>
6684 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
6686 (arm_reload_out_hi): Use gen_lowpart instead of
6687 gen_rtx_SUBREG to access QImode components.
6688 * config/arm/arm.md: Disable zero_extend split for QImode
6689 subregs in BIG_ENDIAN mode.
6690 (storehi_bigend): Match use of least significant byte.
6691 (storeinthi): Remove extraneous SUBREG.
6692 Add missing construction of operands[2].
6693 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
6694 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
6695 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
6697 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
6699 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
6702 2002-03-17 Richard Henderson <rth@redhat.com>
6704 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
6707 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
6709 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
6710 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
6712 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6714 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
6716 * predict.c (estimate_bb_frequencies): Delete unused variables.
6718 2002-03-17 Richard Henderson <rth@redhat.com>
6720 * config/ia64/ia64.c (ia64_attribute_table): Move before
6721 targetm definition. Make static.
6723 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
6725 * c-common.h (yyparse, c_common_parse_file): New.
6726 * c-lang.c: Include c-common.h.
6727 (LANG_HOOKS_PARSE_FILE): Redefine.
6728 * c-lex.c: Include c-common.h.
6729 (yyparse): Rename c_common_parse_file. Call yyparse.
6730 * c-parse.in (yyparse): Remove macro.
6731 * c-tree.h (yyparse_1): Remove.
6732 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
6733 (LANG_HOOKS_INITIALIZER): Update.
6734 * langhooks.h (struct lang_hoooks): New hook parse_file.
6735 * toplev.c (compile_file): Use parse_file hook.
6736 * tree.h (yyparse): Remove.
6737 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
6739 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
6741 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
6742 float_truncate, not fix.
6743 ("*truncdfsf2_real"): Ditto.
6744 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
6746 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
6748 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
6750 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
6751 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
6752 where appropriate. Make the second reference to
6753 leaf_function_p a function call, as intended. Reindented.
6755 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
6756 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
6758 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
6759 add register to non-constant into sp.
6761 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
6762 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
6763 (mips16_gp_pseudo_rtx): Lose.
6764 (INIT_EXPANDERS): Deleted.
6765 * config/mips/mips.c (mips_init_machine_status): New.
6766 (mips_free_machine_status): New.
6767 (mips_mark_machine_status): New.
6768 (override_options): Set them.
6769 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
6770 (struct machine_function): ... new. Replaced all references.
6771 (mips_add_gc_roots): Don't mark them.
6772 (embedded_pic_fnaddr_reg): New, extracted from...
6773 (embedded_pic_offset): ... here.
6774 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
6777 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
6779 * cppinit.c: Revert -MD removal.
6781 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6783 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
6784 soft registers by default for 68HC12.
6785 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
6786 when compiling with -fomit-frame-pointer.
6787 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
6788 (expand_epilogue): Likewise.
6789 (m68hc11_gen_rotate): Use exg when rotating by 8.
6791 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6793 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
6794 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
6795 (splits): Remove unused add splits.
6796 ("*addhi3_68hc12"): Tune constraints.
6797 ("addhi_sp"): Try to use X instead of Y in all cases and if the
6798 constant fits in 8-bits and D is dead use abx/aby instructions.
6799 ("*addhi3"): Remove extern declaration of ix_reg.
6800 ("*subsi3"): Optimize and provide new split.
6801 ("subhi3"): Cleanup.
6802 ("*subhi3_sp"): Avoid saving X if we know it is dead.
6803 (arith splits): For 68hc12 save the address register on the stack
6804 and do the arithmetic operation with a pop.
6806 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6808 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
6809 allocating QImode in address registers.
6810 ("*movqi_m68hc11"): Likewise.
6812 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
6814 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
6816 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
6818 * cppinit.c (print_help): Display -MD and -MMD.
6819 Don't display usage string. Update assertion syntax and
6821 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
6822 (cpp_handle_option): Update.
6824 2002-03-15 Chris Demetriou <cgd@broadcom.com>
6826 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
6827 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
6828 and define it so that regardless of target CPU size,
6829 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
6830 of "int" rather than "long."
6832 2002-03-15 Richard Henderson <rth@redhat.com>
6834 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
6837 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6839 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
6840 ("tstqi" split): Avoid using memory for tstqi on address register.
6841 (splits): Remove constraints.
6842 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
6843 ("cmpdf", "cmpsf"): Remove since not used.
6844 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
6845 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
6847 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6849 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
6850 ("neghi2"): Tighten constraints.
6851 ("one_cmplsi2"): Optimize and simplify split.
6852 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
6854 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6856 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
6857 and split of AND operation to clear the upper bits.
6858 ("*logicalsi3_zextqi"): Likewise.
6859 ("*logicallhi3_zexthi_ashift8"): Likewise.
6860 ("*logicalsi3_silshr16"): Likewise.
6861 ("logicalsi3_silshl16"): Likewise.
6862 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
6864 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6866 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
6867 (m68hc11_indirect_p): New function.
6868 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
6869 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
6871 (asm_print_register): Likewise.
6872 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
6873 (m68hc11_indirect_p): Declare.
6874 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
6875 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
6876 (TARGET_SWITCHES): New option -mrelax.
6877 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
6879 ("iorsi3", "xorsi3"): Likewise.
6880 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
6881 ("*andhi3_mem"): New to handle destination in memory with bclr
6882 and a scratch register.
6883 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
6884 ("*andhi3_const"): New when operand2 is constant.
6885 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
6886 ("*andhi3_gen"): Cleanup of the old "andhi3".
6887 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
6888 ("xorqi3"): Update constraints.
6890 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6892 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
6893 for reg_equiv_memory_loc when the operand is a register that does
6894 not get a hard register (stack location).
6895 (tst_operand): After reload, accept all memory operand.
6896 (symbolic_memory_operand): Fix detection of symbolic references.
6897 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
6898 accept symbols and any constant.
6900 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6902 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
6903 note on the insn that sets the soft frame register.
6904 (must_parenthesize): ix and iy are also reserved names.
6905 (print_operand_address): One more place where parenthesis are required
6906 to avoid confusion with register names.
6907 (m68hc11_gen_movhi): Allow push of stack pointer.
6908 (m68hc11_check_z_replacement): Fix handling of parallel with a
6910 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
6911 the replacement register is.
6912 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
6913 and D8_REGS classes.
6914 (MODES_TIEABLE_P): All modes are tieable except QImode.
6916 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6918 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
6919 (___subdi3): Likewise.
6920 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
6921 (__map_data_section): Optimize 68hc11 case.
6923 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6925 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
6926 than a shift to avoid adding a register with itself.
6927 (m68hc11_memory_move_cost): Take into account NO_REGS.
6928 (m68hc11_register_move_cost): Update and use memory move cost
6930 (m68hc11_address_cost): Make cost of valid offset not 0 so that
6931 it gives more opportunities to cse to optimize.
6932 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
6933 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
6935 2002-03-15 Mark Mitchell <mark@codesourcery.com>
6937 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
6938 * c-common.def (CLEANUP_STMT): New tree node.
6939 * c-common.h (CLEANUP_DECL): New macro.
6940 (CLEANUP_EXPR): Likewise.
6941 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
6942 * expr.c (expand_expr): Tidy.
6943 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
6944 * tree-inline.c (initialize_inlined_parameters): Clean up
6945 new local variables.
6947 2002-03-15 Jakub Jelinek <jakub@redhat.com>
6950 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
6951 before movrXX only, use reg_overlap_mentioned_p.
6952 Only special case NE if just one insn can be generated.
6954 2002-03-15 Jason Merrill <jason@redhat.com>
6956 * varasm.c (assemble_variable): Call resolve_unique_section before
6957 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
6960 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6963 * arm.md (split pattern for thumb shiftable immediates): Add comment
6964 explaining non-obvious test.
6966 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6969 * arm.md (movaddr, movaddr_insn): Delete.
6971 2002-03-15 Jason Merrill <jason@redhat.com>
6973 * toplev.c (wrapup_global_declarations): Clarify variable handling.
6974 -fkeep-static-consts doesn't apply to comdats.
6976 2002-03-14 Richard Henderson <rth@redhat.com>
6978 * c-decl.c: Include c-pragma.h.
6979 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
6980 (finish_function): Tidy.
6981 * c-pragma.c: Include c-common.h.
6982 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
6983 (handle_pragma_weak): Use them.
6984 (init_pragma): Register pending_weaks.
6985 * c-pragma.h (maybe_apply_pragma_weak): Declare.
6986 * print-tree.c (print_node): Print DECL_WEAK.
6987 * varasm.c (mark_weak_decls): Remove.
6988 (remove_from_pending_weak_list): Remove.
6990 (asm_emit_uninitialised): Call globalize_decl for weak commons.
6991 (weak_decls): Make a tree_list.
6992 (declare_weak): Cons weak_decls directly.
6993 (globalize_decl): Remove weak_decls elements directly.
6994 (weak_finish): Simplify weak_decls walk. Don't weaken unused
6995 symbols. Don't pretend to handle aliases.
6996 (init_varasm_once): Update weak_decls registry.
6997 * Makefile.in: Update dependencies.
6999 2002-03-14 Richard Henderson <rth@redhat.com>
7002 * config/ia64/ia64.c: Include tm_p.h last.
7003 (gen_nop_type): Remove duplicate definition.
7004 (cycle_end_fill_slots): Set sched_data for second L slot.
7005 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
7006 (nop_cycles_until): Fix typos.
7008 2002-03-15 Jakub Jelinek <jakub@redhat.com>
7010 PR optimization/5891
7011 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
7013 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
7015 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
7016 descriptors correctly.
7018 2002-03-14 Michael Meissner <meissner@redhat.com>
7020 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
7021 100, allowing MAX_UNROLLED_INSNS to be overridden.
7023 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
7026 * unroll.c (params.h): Include.
7027 (MAX_UNROLLED_INSNS): Delete, now in params.h.
7029 * doc/invoke.texi (--param max-unroll-insns): Document.
7031 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
7033 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
7035 * arm.md: Fix warnings about constraints in peepholes and splits.
7037 2002-03-14 Zack Weinberg <zack@codesourcery.com>
7039 * cpphash.h (struct lexer_state): Remove line_extension member.
7040 * cpplib.c (dequote_string, do_linemarker): New functions.
7041 (linemarker_dir): New data object.
7042 (DIRECTIVE_TABLE): No longer need to interpret #line in
7043 preprocessed source. Delete obsolete comment about return
7045 (end_directive, directive_diagnostics, _cpp_handle_directive):
7046 Don't muck with line_extension.
7047 (directive_diagnostics): No need to issue warnings for
7049 (_cpp_handle_directive): Issue warnings for linemarkers here,
7050 when appropriate. Dispatch linemarkers to do_linemarker, not
7052 (do_line): Code to handle linemarkers split out to do_linemarker.
7053 Convert escape sequences in filename argument, both places.
7055 * cppmacro.c (quote_string): Rename cpp_quote_string and
7056 export. All callers changed.
7057 * cpplib.h (cpp_quote_string): Prototype.
7058 * cppmain.c (print_line): Call cpp_quote_string on to_file
7061 * doc/cpp.texi: Document that escapes are now interpreted in
7062 #line and in linemarkers, and that non-printing characters are
7063 converted to octal escapes when linemarkers are generated.
7065 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
7067 * emit-rtl.c (try_split): Use delete_insns.
7068 * recog.c (split_all_insns): Fix terminating condition.
7070 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
7071 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7074 * arm.c (arm_output_epilogue): Fix floating-point register save
7075 adjustment when using a frame pointer.
7077 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
7079 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
7080 * config/mips/mips.c (compute_frame_size): Retrofit them here.
7081 (save_restore_insns, mips_expand_epilogue): And here.
7082 (build_mips16_call_stub): And here.
7083 (mips_function_value): Use the new macros to decide whether a single
7084 or complex float can be returned in floating-point registers. Return
7085 a parallel rtx in the complex case.
7087 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
7089 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
7090 call after liveness analysis.
7092 * recog.c (split_insn): Use delete_insn_and_edges.
7094 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
7095 instructions to have branch prediction notes.
7096 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
7098 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
7100 * configure.in: Don't pass -Wno-long-long to a ADA compiler
7101 that doesn't support it.
7102 * configure: Regenerate.
7104 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7107 * config/sparc/sparc.md (normal_branch, inverted_branch,
7108 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
7109 inverted_fp_branch): Adjust calls to output_cbranch.
7110 Set length attribute.
7111 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
7112 output_v9branch. Set length attribute.
7113 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
7115 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
7116 (output_cbranch): Likewise. Handle far branches.
7117 (output_v9branch): Handle far branches.
7118 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
7120 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
7121 noov_compare64_op predicates.
7123 2002-03-13 Jason Merrill <jason@redhat.com>
7125 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
7126 into the function and constify it.
7127 * gthr-dce.h, gthr-solaris.h: Likewise.
7129 2002-03-13 David Edelsohn <edelsohn@gnu.org>
7131 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
7132 * config/rs6000/rs6000.c (rs6000_va_arg): Use
7133 std_expand_builtin_va_arg if not ABI_V4.
7135 2002-03-13 Jason Merrill <jason@redhat.com>
7137 * varasm.c (globalize_decl): New fn.
7138 (assemble_start_function): Use it.
7139 (asm_emit_uninitialized): Use it.
7140 (assemble_alias): Use it.
7141 (assemble_variable): Use it.
7143 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
7145 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
7146 2002-03-12 internal visibility change.
7147 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
7148 visibility into SYMBOL_REF_FLAG.
7150 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
7152 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
7153 VOIDmode operand. Add compile-time optimization for constant results.
7155 2002-03-12 Jason Merrill <jason@redhat.com>
7157 * c-typeck.c (convert_for_assignment): Don't allow conversions
7158 between pointers and references. Only allow lvalues to convert to
7161 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
7163 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
7164 before prologue, to avoid scheduling problems.
7166 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7168 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
7169 (ELIMINABLE_REGS): Add sfp->sp.
7170 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
7172 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7174 PR optimization/5892
7175 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
7177 2002-03-13 Jakub Jelinek <jakub@redhat.com>
7179 * loop.c (basic_induction_var): Don't call convert_modes if mode
7180 classes are different.
7182 2002-03-12 Richard Henderson <rth@redhat.com>
7184 PR optimization/5901
7185 * function.c (reposition_prologue_and_epilogue_notes): Position
7186 the markers after/before the last/first insn not deleted.
7188 2002-03-12 Richard Henderson <rth@redhat.com>
7190 PR optimization/5878
7191 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
7192 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
7193 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7195 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
7196 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
7197 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
7199 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
7200 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
7201 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
7202 also. Don't set it if not flag_pic.
7203 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
7204 to be INVALID_REGNUM when not used.
7206 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
7208 * expmed.c (store_bit_field): Reset alias set for memory.
7209 (extract_bit_field): Same.
7211 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7213 * c-common.c (c_tree_code_type, c_tree_code_length,
7214 c_tree_code_name, add_c_tree_codes): Delete.
7215 * c-common.h (add_c_tree_codes): Delete.
7216 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
7218 * c-objc-common.c (c_objc_common_init): Don't call
7219 add_c_tree_codes, instead set lang_unsafe_for_reeval.
7220 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
7221 objc_tree_code_name, add_objc_tree_codes): Delete.
7222 (objc_init): Don't call add_objc_tree_codes.
7223 * objc/objc-lang.c (tree_code_type, tree_code_length,
7224 tree_code_name): Define.
7225 * toplev.c (lang_independent_init): Don't set
7226 tree_code_length[IDENTIFIER_NODE].
7227 * tree.c (tree_code_type, tree_code_length, tree_code_name):
7228 Delete definitions, moved to language front-ends.
7229 * tree.def (IDENTIFIER_NODE): Hardwire the length.
7230 * tree.h (tree_code_type, tree_code_length, tree_code_name):
7232 (tree_code_length): Change type to unsigned char.
7234 2002-03-12 Richard Henderson <rth@redhat.com>
7236 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
7237 internal visibility change.
7239 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7241 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
7242 validize_mem() instead of change_address to avoid clobbering
7245 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
7247 * c-lex.h (position_after_whitespace): Remove.
7249 2002-03-12 Jakub Jelinek <jakub@redhat.com>
7251 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
7252 (lex_string): Use unsigned char pointers.
7254 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
7256 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
7257 is not a valid memory_operand.
7259 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7261 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
7262 * config/xtensa/lib1funcs.asm: Fix copyright to include
7263 special case for libgcc files.
7264 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
7265 (__divsi3): Likewise.
7266 (__umodsi3): Likewise.
7267 (__modsi3): Likewise.
7268 * config/xtensa/lib2funcs.S: Fix copyright to include
7269 special case for libgcc files.
7271 2002-03-12 Tom Rix <trix@redhat.com>
7273 * collect2.c (resolve_lib_name): Move outside of
7274 OBJECT_FORMAT_COFF ifdef.
7275 (ignore_library): Same.
7277 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7279 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
7281 2002-03-12 Bob Wilson <bob.wilson@acm.org>
7283 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
7284 to function_section before writing out the constant pool.
7286 2002-03-12 David Edelsohn <edelsohn@gnu.org>
7288 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
7290 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
7292 2002-03-12 Alan Modra <amodra@bigpond.net.au>
7294 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
7298 (cmpsi splitter): Likewise.
7299 (modsi3): Fail if <= 0.
7300 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
7301 redundant test when HOST_BITS_PER_WIDE_INT != 32.
7302 (reg_or_sub_cint64_operand): Likewise.
7303 (num_insns_constant_wide): Optimize sign extension.
7304 (rs6000_legitimize_address): Likewise.
7306 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
7308 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7309 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7311 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
7313 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
7314 address calculation.
7316 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
7318 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
7319 scratch register to DImode / TImode.
7320 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
7321 register used does not overlap the target.
7323 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7325 * Makefile.in (debug.o): Depend on debug.h.
7326 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
7327 * debug.c (do_nothing_debug_hooks): Likewise.
7328 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
7329 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
7330 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
7331 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
7332 * dwarfout.c (dwarf_debug_hooks): Likewise.
7333 * integrate.c (output_inline_function): Likewise.
7334 * objc/objc-act.c (synth_module_prologue): Likewise.
7335 * sdbout.c (sdb_debug_hooks): Likewise.
7336 * toplev.c (debug_hooks): Likewise.
7337 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7339 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7341 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
7342 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
7343 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
7344 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
7345 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
7346 * defaults.h (POINTER_SIZE): Define.
7347 * doc/tm.texi (POINTER_SIZE): Document default.
7349 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7351 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
7353 2002-03-11 Richard Henderson <rth@redhat.com>
7355 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
7356 if rebuild_label_notes_after_reload.
7358 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
7360 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
7361 emit pic register load if "internal" visibility.
7362 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
7363 (cris_expand_builtin_va_arg): Do all computations on trees.
7365 2002-03-11 Richard Henderson <rth@redhat.com>
7367 * rtlanal.c: Include recog.h.
7368 (keep_with_call_p): Fix thinko.
7369 * Makefile.in (rtlanal.o): Update dependencies.
7371 2002-03-11 Chris Meyer <cmeyer@gatan.com>
7373 * genflags.c (gen_insn): Use IS_VSPACE.
7374 * genoutput.c (output_insn_data): Likewise.
7375 (process_template): Likewise.
7377 2002-03-11 Richard Henderson <rth@redhat.com>
7379 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
7381 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
7383 * Makefile.in: Update.
7384 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
7385 Update documentation.
7386 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
7387 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
7389 2002-03-11 Zack Weinberg <zack@codesourcery.com>
7391 * Makefile.in: Give texi2pod its input file as a command line
7392 argument, not on stdin.
7394 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
7395 Daniel Berlin <dan@dberlin.org>
7397 C++ alias analysis improvement.
7398 * alias.c (record_component_aliases): Record aliases for base
7401 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
7403 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
7405 2002-03-11 Douglas B Rupp <rupp@gnat.com>
7407 * toplev.c (vms_fopen): Remove, not needed.
7409 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
7411 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
7413 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
7414 for FP, already done later.
7416 * toplev.c (debug_args): Add entry for VMS_DEBUG.
7417 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
7419 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
7421 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
7422 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
7423 LARGEST_EXPONENT_IS_NORMAL for the given mode.
7424 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
7425 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
7426 (ediv, emul, eldexp, esqrt): Likewise.
7427 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
7428 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
7429 (saturate): New function.
7430 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
7431 (make_nan): Use a saturation value instead of a NaN if
7432 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
7433 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
7434 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
7435 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
7436 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
7437 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
7438 !ROUND_TOWARDS_ZERO.
7439 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
7440 (ROUND_TOWARDS_ZERO): Document.
7442 2002-03-11 Andreas Jaeger <aj@suse.de>
7444 * cfg.c (dump_flow_info): Remove unused variable.
7446 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
7448 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
7449 computations on trees.
7451 2002-03-10 Richard Henderson <rth@redhat.com>
7454 * reload.c (copy_replacements_1): New.
7455 (copy_replacements): Use it to recurse through the rtx.
7457 2002-03-10 Richard Henderson <rth@redhat.com>
7459 * loop.c (strength_reduce): Compute number of iterations as
7460 unsigned HOST_WIDE_INT.
7462 2002-03-10 Richard Henderson <rth@redhat.com>
7464 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
7465 to move away from the end of the block.
7467 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
7469 PR preprocessor/5899
7470 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
7472 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7474 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
7476 * attribs.c (decl_attributes): Fix signed/unsigned warning.
7478 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
7480 * config/mmix/mmix.c: Improve comments.
7481 (mmix_target_asm_function_prologue): Drop variable
7482 empty_stack_frame. Don't allocate unused slot above fp.
7483 (mmix_target_asm_function_epilogue): Mirror prologue changes.
7484 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
7485 brace in first column.
7486 (enum reg_class): Ditto.
7487 (FIRST_PARM_OFFSET): Now 0.
7488 (USER_LABEL_PREFIX): Remove #if 0:d definition.
7490 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7492 * combine.c (make_extraction): Fix error in last change.
7494 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7496 * c4x.c (c4x_fp_reglist): Const-ify.
7497 * cris.c (cris_print_operand): Likewise.
7498 * i386.c (ix86_va_arg): Likewise.
7499 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
7500 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
7501 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
7502 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
7503 * mcore.h (regno_reg_class): Likewise.
7504 * mips.c (gen_int_relational): Likewise.
7505 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
7506 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
7507 * pdp11.c (move_costs): Likewise.
7508 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
7509 * s390.c (s390_branch_condition_mnemonic, regclass_map):
7511 * s390.h (regclass_map): Likewise.
7512 * sh.c (shift_amounts): Likewise.
7513 * sh.md (rotlsi3): Likewise.
7515 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
7517 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
7518 (ne0+5): Use new clobber to generate proper shift pattern.
7519 Patch by Michael Matz <matz@kde.org>.
7521 2002-03-09 Andreas Schwab <schwab@suse.de>
7523 * gcc.c (validate_all_switches): Also handle `%W{...}'.
7525 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
7527 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
7529 2002-03-09 Jakub Jelinek <jakub@redhat.com>
7532 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
7533 even for non-representable constants.
7535 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7537 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
7538 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
7539 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
7540 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
7541 (pop_function_context): Compute MAY_SHARE parameter for
7543 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
7544 (gen_mem_addressof): Call fixup_var_refs with new parm.
7546 * combine.c (make_extraction): Don't make extension of CONST_INT.
7548 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
7550 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
7551 in o32 and o64 ABIs.
7552 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
7553 but getting fixed-size structs passed in registers regardless of
7554 padding in o32 and o64 ABIs.
7556 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
7557 offset before loading address of argument passed by transparent
7560 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
7562 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
7564 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
7566 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
7567 marker such that registers after it are saved.
7569 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7571 * sparc.c (arith_4096_operand): Fix error in last change.
7573 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
7575 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
7578 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
7580 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
7583 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
7585 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
7587 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
7589 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
7590 removed; fix return value.
7591 * combine.c (combine_instructions): Dirtify blocks where we failed to
7592 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
7593 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
7595 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7597 * gcse.c (insert_insn_end_bb): Fix typo in last change.
7599 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
7601 * recog.c (peephole2_optimize): Re-distribute EH edges.
7603 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
7605 * expr.c (expand_expr): Use unsave lang hook.
7606 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
7607 (LANG_HOOKS_INITIALIZER): Update.
7608 * langhooks.h (struct lang_hooks): New hook unsave.
7609 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
7610 (unsave_expr_1): Remove unused lang_unsave_expr_now.
7611 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
7612 (unsave_expr_now): Remove.
7613 * tree.h (unsave_expr_now, lang_unsave,
7614 lang_unsave_expr_now): Remove.
7617 2002-03-08 Andreas Jaeger <aj@suse.de>
7619 * flow.c (propagate_block_delete_insn): Remove unused variable.
7621 2002-03-08 Kazu Hirata <kazu@hxi.com>
7623 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
7624 insn length for memory load/store.
7626 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
7628 * doc/install.texi (--with-libiconv-prefix): Document.
7630 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
7632 * doc/sourcebuild.texi: Fix typo.
7634 2002-03-08 Jakub Jelinek <jakub@redhat.com>
7637 * builtins.c (std_expand_builtin_va_arg): Do all computations on
7640 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7642 * rtl.c (copy_most_rtx): Move from here ...
7643 * emit-rtl.c (copy_most_rtx): ... to here.
7645 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
7647 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
7648 SUBTARGET_CPP_SIZE_SPEC.
7649 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
7651 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
7653 2002-03-07 Matt Hiller <hiller@redhat.com>
7655 * gensupport.c (first_dir_md_include): Renamed from include;
7656 change all references.
7657 (last_dir_md_include): Renamed from last_include; change all
7659 (init_md_reader): Unconditionally initialize base_dir whether or
7660 not filename is a relative path.
7662 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
7664 * config/fp-bit.c (_unord_f2): Compile it in even if
7665 US_SOFTWARE_GOFAST is enabled.
7667 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
7668 NULL_RTX. Set all HFmode operations as NULL_RTX.
7669 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
7670 NULL_RTX, try reversing the comparison and the operands.
7672 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
7674 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
7675 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
7678 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
7680 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
7682 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
7684 * basic-block.h (fixup_abnormal_edges): Declare.
7685 * reload1.c (fixup_abnormal_edges): New function.
7686 * reg-stack.c (convert_regs): Use it.
7688 * gcse.c (insert_insn_end_bb): Handle trapping insns.
7690 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
7692 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
7694 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
7695 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
7696 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
7697 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
7698 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
7699 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
7700 unless x and y could be infinite.
7701 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
7702 Check that the common type of both arguments is a real, even for
7703 targets without unordered comparisons. Allow an integer argument
7704 to be compared against a real.
7705 (expand_tree_builtin): Use expand_unordered_cmp.
7706 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
7707 * cse.c (fold_rtx): Likewise. Fix indentation.
7708 * fold-const.c (fold_real_zero_addition_p): New.
7709 (fold): Use it, and the new HONOR_... macros.
7710 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
7711 * jump.c (reversed_comparison_code_parts): After searching for
7712 the true comparison mode, use HONOR_NANS to decide whether it
7713 can be safely reversed.
7714 (reverse_condition_maybe_unordered): Remove IEEE check.
7715 * simplify-rtx.c (simplify_binary_operation): Use the new macros
7716 to decide which simplifications are valid. Allow the following
7717 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
7718 and (a - -b) to (a + b).
7719 (simplify_relational_operation): Use HONOR_NANS.
7720 * doc/tm.texi: Document the MODE_HAS_... macros.
7722 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7724 * combine.c (simplify_comparison): If simplifying a logical shift
7725 right and compare with constant, force the comparison to unsigned.
7727 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
7729 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
7731 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
7733 (alt_reg_names): Remove % for vrsave.
7735 2002-03-06 Richard Henderson <rth@redhat.com>
7737 PR optimization/5844
7738 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
7739 if used indicates we've already emitted one copy of an operand.
7740 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
7741 (gen_split): Supply a non-null used.
7743 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
7745 * reload1.c (reload): Unshare all rtl after reload is done.
7747 * simplify-rtx.c (simplify_plus_minus): Do not abort,
7748 but simply fail if the expression is too complex to simplify.
7749 (simplify_gen_binary): Handle simplify_plus_minus failures.
7751 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
7753 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
7754 consistently call delete_trivially_dead_insns after CSE and GCSE;
7755 fix DFI_life dumping; do jump threading after liveness; do crossjumping
7756 after liveness2; update comment in last crossjumping.
7757 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
7759 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
7761 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
7762 after completing fast dead code elimination.
7764 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
7767 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
7769 * version.c: Fix misplaced leading blanks on first line.
7771 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
7773 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
7775 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
7777 * cfgcleanup.c (mentions_nonequal_regs): New function.
7778 (thread_jump): Use it.
7779 * toplev.c (rest_of_compilation): Run jump threading after
7782 2002-03-06 Jakub Jelinek <jakub@redhat.com>
7784 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
7787 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
7789 * predict.c (estimate_bb_frequencies): Do not reload the
7790 frequencies from notes.
7792 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
7794 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
7795 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
7797 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
7798 delete_noop_moves): Return indeger.
7799 * flow.c (ndead): New variable.
7800 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
7801 BB argument; update callers.
7802 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
7803 (life_analysis): Do not call purge_all_dead_edges.
7804 (update_life_info): Return number of deleted insns; print statistics.
7805 (update_life_info_in_dirty_blocks): likewise.
7806 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
7807 return number of insns deleted.
7809 * cse.c: Include timevar.h
7810 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
7811 iterate until stabilizes; print statistics; return number of killed
7813 * Makefile.in: (cse.o): Add timevar.h dependency
7814 * rtl.h (delete_trivially_dead_insns): New.
7815 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
7816 * toplev.c (rest_of_compilation): Update callers.
7818 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
7819 (try_optimize_cfg): Do not update liveness.
7820 (cleanup-cfg): Loop until try_optimize_cfg and dead code
7821 removal stabilizes; use delete_trivially_dead_insns.
7823 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
7825 2002-03-05 Zack Weinberg <zack@codesourcery.com>
7827 * cppmain.c (setup_callbacks): Disable #pragma and #ident
7828 callbacks when processing assembly language.
7830 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
7832 * pa.h (ASM_FILE_END): Define.
7833 * som.h (ASM_FILE_END): Delete.
7835 * pa.c (function_arg): Don't pass floats in general registers in
7836 indirect calls if TARGET_ELF32.
7838 2002-03-05 Richard Henderson <rth@redhat.com>
7840 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
7842 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
7844 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
7846 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7848 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
7849 -r command line. Don't hide any symbols if not building
7852 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
7854 * cfg.c (dump_flow_info): Warn about profile mismatches.
7855 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
7856 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
7858 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7860 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
7861 wide volatile memory by parts.
7863 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7865 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
7868 2002-03-05 Richard Henderson <rth@redhat.com>
7870 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
7872 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
7874 * toplev.c (documented_lang_options): Document more
7875 language-specific options.
7876 * doc/invoke.texi (Warning Options): Correct documentation for
7877 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
7878 * c-decl.c (c_decode_option): Use a table to handle warning options.
7880 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
7882 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
7883 parameter to mmix_encode_section_info.
7884 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
7885 relocatably. Always produce ELF, not mmo if linking relocatably.
7886 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
7887 first is non-zero, don't add symbol prefix.
7888 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
7889 prototype accordingly.
7891 2002-03-04 Krister Walfridsson <cato@df.lth.se>
7893 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
7895 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
7897 * configure.in: Increase required makeinfo version to 4.1.
7898 * configure: Regenerate.
7900 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
7902 * .cvsignore: Remove *.info* and genrtl*; these files are generated
7905 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
7907 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
7908 * doc/invoke.texi: Fix @math uses.
7910 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
7912 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
7915 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
7917 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
7918 (powerpc-*-eabisimaltivec*): Same.
7920 * config/rs6000/t-ppcendian: New.
7922 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7924 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
7925 nonimmediate_src_operand and nonimmediate_lsrc_operand to
7926 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
7928 2002-03-03 Richard Henderson <rth@redhat.com>
7930 * toplev.c (rest_of_decl_compilation): Revert last two changes.
7932 2002-03-03 Zack Weinberg <zack@codesourcery.com>
7934 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
7935 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
7936 tree.c, config/m68k/m68k.c:
7937 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
7938 REAL_ARITHMETIC blocks unconditional. Delete some further
7939 #ifdef blocks predicated on REAL_ARITHMETIC.
7940 * flags.h, toplev.c: Delete remaining references to
7943 * doc/invoke.texi: Remove documentation of -fpretend-float.
7944 * doc/tm.texi: Describe the various REAL_* macros as provided by
7945 real.h, not by the target configuration files.
7947 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
7948 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
7949 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
7950 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
7951 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
7952 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
7953 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
7954 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
7955 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
7956 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
7957 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
7958 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
7959 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
7960 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
7961 config/xtensa/xtensa.h:
7962 Do not define, undefine, or mention in comments any of
7963 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
7964 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
7965 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
7966 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
7967 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
7968 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
7969 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
7970 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
7971 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
7973 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7975 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
7976 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
7977 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
7978 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
7979 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
7980 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
7982 * defaults.h (BITS_PER_WORD): Define.
7983 * doc/tm.texi (BITS_PER_WORD): Document default value.
7985 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
7986 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
7987 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
7989 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7991 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
7992 lieu of explicit sizeof/sizeof.
7993 * i386.c (override_options, ix86_init_mmx_sse_builtins,
7994 ix86_expand_builtin): Likewise.
7995 * mips.c (mips_add_gc_roots): Likewise.
7996 * mmix.c (mmix_output_condition): Likewise.
7997 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
7998 altivec_init_builtins): Likewise.
7999 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
8000 * cppexp.c (Nsuff, parse_number): Likewise.
8001 * cppinit.c (builtin_array_end): Likewise.
8002 * gcc.c (n_default_compilers, process_command): Likewise.
8003 * genpreds.c (output_predicate_decls): Likewise.
8004 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
8005 * lcm.c (N_ENTITIES): Likewise.
8006 * stor-layout.c (set_sizetype): Likewise.
8008 2002-03-03 Richard Henderson <rth@redhat.com>
8010 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
8011 for types or labels.
8013 2002-03-03 Richard Henderson <rth@redhat.com>
8015 * c-decl.c (start_decl): Initialized variables are not common.
8017 2002-03-02 Per Bothner <per@bothner.com>
8019 * gcc.c (option_map): Suport new --bootclasspath option.
8020 --CLASSPATH is now just an alias for --classpath.
8022 2002-03-02 Richard Henderson <rth@redhat.com>
8024 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
8025 load if "internal" visibility.
8026 * doc/extend.texi: Document visibility meanings.
8028 2002-03-02 Richard Henderson <rth@redhat.com>
8030 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
8031 to functions as well.
8033 2002-03-02 Richard Henderson <rth@redhat.com>
8035 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
8036 (handle_visibility_attribute): Don't call assemble_visibility.
8037 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
8038 without asmspec. Invoke assemble_alias when needed.
8039 * varasm.c (maybe_assemble_visibility): New.
8040 (assemble_start_function, assemble_variable, assemble_alias): Use it.
8042 2002-03-02 Richard Henderson <rth@redhat.com>
8044 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
8045 invoke ENCODE_SECTION_INFO with first call flag.
8047 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8048 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8049 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
8050 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
8051 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
8052 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
8053 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
8054 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
8055 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
8056 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
8057 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
8058 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
8059 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
8060 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
8061 config/mcore/mcore-protos.h, config/mcore/mcore.c,
8062 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
8063 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
8064 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
8065 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
8066 config/sh/sh.h, config/sparc/sparc.h,
8067 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
8068 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
8069 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
8070 FIRST argument. As needed, examine it and do nothing.
8072 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
8073 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8074 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
8076 * config/arm/t-pe (pe.o): Add dependencies.
8078 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8080 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
8081 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
8082 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
8083 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
8084 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
8085 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
8086 * defaults.h (BITS_PER_UNIT): Define.
8087 * doc/tm.texi (BITS_PER_UNIT): Document default value.
8089 2002-03-02 Kazu Hirata <kazu@hxi.com>
8091 * config/h8300/h8300-protos.h: Add a prototype for
8092 compute_a_shift_length.
8093 * config/h8300/h8300.c (h8300_asm_insn_count): New.
8094 (compute_a_shift_length): Likewise.
8095 (h8300_adjust_insn_length): Do not adjust insn length of shift
8097 * config/h8300/h8300.md (anonymous shift patterns): Use
8098 compute_a_shift_length.
8100 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8102 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
8105 * emit-rtl.c (offset_address): Call update_temp_slot_address.
8107 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8109 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
8110 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
8111 * flags.h (flag_zero_initialized_in_bss): Declare.
8112 * toplev.c (flag_zero_initialized_in_bss): New flag.
8113 (lang_independent_options): Add flag_zero_initialized_in_bss.
8114 * tree.c (initializer_zerop): New function.
8115 * tree.h (initializer_zerop): Declare.
8116 * varasm.c (assemble_variable): If we can emit bss, put zero
8117 initializers in the bss section.
8119 2002-03-02 Alan Modra <amodra@bigpond.net.au>
8121 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
8122 like more than one symbol per .weak directive.
8124 2002-03-01 Richard Henderson <rth@redhat.com>
8126 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
8127 adjust argument_pointer by pretend_args_size.
8128 (ia64_va_start): Adjust va_start address by -pretend_args_size.
8130 2002-03-01 Kazu Hirata <kazu@hxi.com>
8132 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
8134 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
8136 * toplev.c (rest_of_compilation): Delete dead jumptables before
8138 * flow.c (delete_dead_jumptables): Make global.
8139 * rtl.h (delete_dead_jumptables): Declare.
8141 2002-03-01 David Edelsohn <edelsohn@gnu.org>
8143 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
8144 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
8145 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
8147 2002-03-01 Kazu Hirata <kazu@hxi.com>
8149 * config/h8300/h8300-protos.h: Fix formatting.
8150 * config/h8300/h8300.c: Likewise.
8151 * config/h8300/h8300.h: Likewise.
8153 2002-03-01 Kazu Hirata <kazu@hxi.com>
8155 * config/h8300/h8300.c (print_operand): Support 16-bit
8157 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
8159 2002-02-28 Richard Henderson <rth@redhat.com>
8161 * expmed.c (store_bit_field): Prevent generation of CONCATs;
8162 pun complex values as integers; use gen_lowpart instead of
8164 (extract_bit_field): Likewise.
8166 2002-03-01 Alan Modra <amodra@bigpond.net.au>
8167 David Edelsohn <edelsohn@gnu.org>
8169 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
8170 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
8171 (SUPPORTS_WEAK): Likewise.
8172 * output.h (add_weak): Add tree param.
8173 * varasm.c (add_weak): Likewise. Save decl.
8174 (struct weak_syms): Add decl field.
8175 (mark_weak_decls): New function.
8176 (init_varasm_once): ggc_add_root mark_weak_decls.
8177 (assemble_start_function): Use ASM_WEAKEN_DECL.
8178 (assemble_variable): Likewise.
8179 (assemble_alias): Likewise.
8180 (declare_weak): Pass decl to add_weak.
8181 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
8182 (remove_from_pending_weak_list): Declare and define for
8184 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
8185 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
8186 * defaults.h (SUPPORTS_WEAK): Likewise.
8187 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8188 .weak for code sym. Do emit .size for descriptor sym.
8189 (ASM_DECLARE_FUNCTION_SIZE): Define.
8190 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
8191 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
8192 .lglobl unless TARGET_XCOFF. Formatting fixes.
8193 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8195 (HANDLE_PRAGMA_WEAK): Remove.
8196 (ASM_WEAKEN_LABEL): Remove.
8197 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
8199 2002-03-01 Jason Merrill <jason@redhat.com>
8201 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
8202 (TARGET_EXPR_CLEANUP): New macro.
8204 2002-02-28 Steve Ellcey <sje@cup.hp.com>
8206 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
8207 to take ptr_extend into account as third type of extension.
8208 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
8209 fields used by SUBREG_PROMOTED_UNSIGNED_P.
8210 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
8211 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
8212 * calls.c (precompute_arguments): Use new macro.
8213 (expand_call): Ditto.
8214 * combine.c (nonzero_bits): Ditto.
8215 (record_promoted_value): Ditto.
8216 * expr.c (store_expr): Ditto.
8217 (expand_expr): Ditto.
8218 * function.c (assign_parms): Ditto.
8220 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
8222 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
8223 override -shared and -shared-libgcc.
8225 2002-02-28 David O'Brien <obrien@FreeBSD.org>
8227 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
8229 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
8232 2002-02-28 Richard Henderson <rth@redhat.com>
8234 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
8235 4 cycle latency from MM producers.
8236 (ia64_internal_sched_reorder): Likewise with pipeline flush.
8238 2002-02-28 Jakub Jelinek <jakub@redhat.com>
8240 * mklibgcc.in: Don't use GNU make extension.
8242 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
8244 * c-parse.in (STATIC): New terminal.
8245 (scspec): New non-terminal. Update productions accordingly.
8246 (program): Remove bogus ifc / end ifc.
8247 (array_declarator): Simplify production using STATIC.
8249 2002-02-28 Jim Meyering <meyering@lucent.com>
8251 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
8252 \a still means TARGET_BELL.
8254 2002-02-28 Richard Henderson <rth@redhat.com>
8256 * haifa-sched.c (sched_emit_insn): New.
8257 (schedule_block): Use last_scheduled_insn to track last insn.
8258 * sched-int.h (sched_emit_insn): Prototype.
8259 * config/ia64/ia64.c (last_issued): Remove.
8260 (ia64_variable_issue): Don't set it.
8261 (nop_cycles_until): Use sched_emit_insn.
8263 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
8265 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
8268 2002-02-28 Kazu Hirata <kazu@hxi.com>
8270 * config/h8300/h8300.c: Fix formatting.
8271 * config/h8300/h8300.h: Likewise.
8273 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
8275 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
8276 which may overwrite the high byte of the frame pointer.
8278 2002-02-28 Bo Thorsen <bo@suse.de>
8280 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
8281 (STARTFILE_SPEC): Add 64 bit files.
8282 (ENDFILE_SPEC): Likewise.
8284 2002-02-28 Jason Merrill <jason@redhat.com>
8286 * c-decl.c (finish_function): Only warn about missing return
8287 statement with -Wreturn-type.
8289 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
8291 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
8293 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
8294 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
8296 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
8298 * basic-block.h (BB_REACHABLE): Renumber.
8299 (BB_DIRTY, BB_NEW): New flags.
8300 (clear_bb_flags): Declare.
8301 (update_life_info_in_dirty_blocks): Declare.
8302 * cfg.c (clear_bb_flags): New function.
8303 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
8304 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
8305 reorder_insns, emit_insn_after): Mark block as dirty.
8306 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
8307 (update_life_info_in_dirty_blocks): New function.
8308 * recog.c (apply_change_group): Dirtify block.
8310 * cse.c (cse_insn): Reorder emitting of jump insn to keep
8312 * gcse.c (delete_null_pointer_checks): Likewise.
8314 * toplev.c (dump_file_index): Move cse2 after bp,
8316 (dump_file_info): Similary.
8317 (rest_of_compilation): Avoid most of CFG rebuilds;
8318 do first if converision after null pointer checks, do cse2
8319 after branch prediction; avoid full liveness rebuild after
8320 initializing subregs.
8321 * invoke.texi (-d options): Document -du, renumber.
8323 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
8324 (notice_new_block): Do not set BB_UPDATE_LIFE.
8325 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
8326 merge_blocks_move_successor_nojumps, merge_blocks,
8327 try_crossjump_to_edge): Likewise.
8328 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
8329 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
8330 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
8331 (merge_of_block): Do not use life_data_ok.
8332 (find_if_case_1): Do not use SET_UPDATE_LIFE.
8333 (if_convert): Use BB_DIRTY mechanizm to update life.
8334 * lcm.c (optimize_mode_switching): Update
8335 update_life_info_in_dirty_blocks
8337 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
8339 * Makefile.in (integrate.o): Update.
8340 * c-decl.c (copy_lang_decl): Rename.
8341 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8342 * integrate.c: Include langhooks.h.
8343 (copy_decl_for_inlining): Update to use langhook.
8344 * langhooks-def.h (lhd_do_nothing_t,
8345 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
8346 (LANG_HOOKS_INITIALIZER): Update.
8347 * langhooks.c (lhd_do_nothing_t): New.
8348 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
8349 * tree.h (copy_lang_decl): Remove.
8351 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8353 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
8355 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
8356 POST_DEC, and POST_MODIFY.
8358 2002-02-27 Zack Weinberg <zack@codesourcery.com>
8360 * c-typeck.c (digest_init): Remove unused parameter; all
8363 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
8365 * expmed.c (expand_shift): Correctly test for low part of a
8368 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
8370 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
8371 insn UIDs with insn addresses.
8373 2002-02-27 Zack Weinberg <zack@codesourcery.com>
8375 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
8376 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
8377 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
8378 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
8379 gcc.c, toplev.c: Delete code implementing -traditional mode.
8381 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
8382 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
8383 Document removal of -traditional mode for compilation, and
8384 remove documentation only relevant to that mode.
8386 * config/nextstep.h, config/ptx4.h, config/svr4.h,
8387 config/convex/convex.h, config/d30v/d30v.h,
8388 config/i386/dgux.h, config/i386/osf1elf.h,
8389 config/i386/osfelf.h, config/i386/osfrose.h,
8390 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
8391 config/m68k/hp310.h, config/m88k/dgux.h,
8392 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
8393 config/m88k/m88k.h, config/m88k/openbsd.h,
8394 config/mips/abi64.h, config/mips/osfrose.h,
8395 config/mips/svr4-5.h, config/mips/svr4-t.h,
8396 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8397 config/stormy16/stormy16.h: Remove all references to
8398 -traditional from target specs. Delete all mention of the
8399 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
8400 delete a couple of commented-out definitions of
8401 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
8404 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
8405 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
8407 2002-02-27 Zack Weinberg <zack@codesourcery.com>
8409 * mklibgcc.in: Don't use \n in a line subject to
8410 interpretation by echo.
8412 2002-02-27 Graham Stott <grahams@redhat.com>
8414 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
8417 * loop.c (prescan_loop): Handle PARALLEL.
8419 * unroll.c (loop_iterations): Return 0 if the add_val for
8422 * final.c (output_operand_lossage): Constify PFX_STR.
8424 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
8426 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
8428 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
8429 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
8431 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
8433 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8435 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
8437 * cpplex.c (_cpp_lex_token): Handle directives in macro
8439 * cpplib.c (_cpp_handle_directive): Save and restore state
8440 if parsing macro args when entering a directive.
8441 * cppmacro.c (collect_args): No need to handle directives
8443 (enter_macro_context, replace_args): Use the original macro
8444 definition in case it was redefined whilst collecting arguments.
8448 2002-02-26 David Edelsohn <edelsohn@gnu.org>
8450 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
8451 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
8452 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
8454 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
8455 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
8456 (load_toc_v4_PIC_2): Same.
8458 2002-02-26 Alan Modra <amodra@bigpond.net.au>
8460 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
8462 2002-02-26 Richard Henderson <rth@redhat.com>
8464 * config/alpha/alpha.md (ashldi_se): Re-enable.
8466 2002-02-26 Richard Henderson <rth@redhat.com>
8468 * config/alpha/alpha.c (alpha_encode_section_info): Examine
8469 MODULE_LOCAL_P; improve commentary.
8471 2002-02-26 Zack Weinberg <zack@codesourcery.com>
8473 * doc/cpp.texi: Clarify documentation of relationship between
8476 2002-02-26 Kazu Hirata <kazu@hxi.com>
8478 * config/h8300/h8300-protos.h: Update the prototype for
8479 compute_logical_op_length. Add the prototype for
8480 compute_logical_op_cc.
8481 * config/h8300/h8300.c (compute_logical_op_length): Figure out
8483 (compute_logical_op_cc): New.
8484 * config/h8300/h8300.md: Combine all the logical op patterns
8485 in HImode and SImode. Use compute_logical_op_cc.
8487 2002-02-26 Kelley Cook <kelleycook@comcast.net>
8489 * config/i386/i386.c (print_operand): Don't append ATT-style
8490 length suffixs to x87 opcodes when in Intel mode.
8492 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
8494 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
8495 (init_emit_once): Update calls.
8496 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
8497 (init_syntax_once): Prototype.
8499 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
8501 * pa-linux.h (LIB_SPEC): Update definition.
8502 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8504 2002-02-26 Richard Henderson <rth@redhat.com>
8506 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
8507 if we emitted a stop bit.
8509 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8511 * configure.in (libgcc_visibility): Substitute.
8512 * configure: Rebuilt.
8513 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
8514 defined symbols .hidden.
8516 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8518 * attribs.c (c_common_attribute_table): Add visibility.
8519 (handle_visibility_attribute): New function.
8520 * varasm.c (assemble_visibility): New function.
8521 * output.h (assemble_visibility): Add prototype.
8522 * tree.h (MODULE_LOCAL_P): Define.
8523 * crtstuff.c (__dso_handle): Use visibility attribute.
8524 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
8525 for MODULE_LOCAL_P symbols too.
8526 * config/ia64/ia64.c (ia64_encode_section_info): Handle
8527 MODULE_LOCAL_P symbols the same way as local symbols.
8528 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
8529 into .sdata/.sbss by the user.
8530 * doc/extend.texi (Function Attributes): Document visibility
8533 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8536 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
8537 STRING_CST initializer spanning the whole variable without
8539 If expand_expr returned MEM, don't use it.
8541 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
8543 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
8544 generate a die for the lexical block.
8546 2002-02-26 Kazu Hirata <kazu@hxi.com>
8548 * config/h8300/h8300-protos.h: Add a prototype for
8549 compute_logical_op_length.
8550 * config/h8300/h8300.c (compute_logical_op_length): New.
8551 * config/h8300/h8300.md (anonymous logical patterns): Use
8552 compute_logical_op_length for length.
8554 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8556 * dwarf2out.c (modified_type_die): Do not call type_main_variant
8558 (gen_type_die): Same.
8560 * attribs.c (handle_vector_size_attribute): Set debug information.
8562 2002-02-26 Daniel Egger <degger@fhm.edu>
8564 * config/rs6000/rs6000.md: Swap define_insn attributes to
8565 fix incorrect generation of merge high instructions instead
8568 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8570 * c-typeck.c (really_start_incremental_init): Use
8571 bitsize_zero_node for vectors.
8573 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8575 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
8576 ("*set_vrsave_internal"): Same.
8578 2002-02-25 Richard Henderson <rth@redhat.com>
8580 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
8581 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
8583 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8586 * config/i386/i386.c (ix86_return_pops_args): Only pop
8587 fake structure return argument if it was passed on the stack.
8589 2002-02-25 Jason Merrill <jason@redhat.com>
8591 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
8594 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
8596 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
8597 link with shared_name only.
8598 * doc/invoke.texi (Link Options): Document new behavior.
8600 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
8602 * c-typeck.c (push_init_level): Handle vectors.
8604 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
8606 * config/sparc/sparc.c (const64_high_operand): Zero-extend
8607 operands of SPARC_SETHI_P.
8608 (input_operand): Likewise.
8609 (sparc_emit_set_const32): Likewise.
8610 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
8611 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
8612 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
8613 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
8614 (movdi_insn_sp64_vis): Likewise.
8615 (movdi split, movdf split): Use SETHI32.
8616 * doc/md.texi: Document SPARC constraints L, M and N.
8618 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
8620 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
8621 ("*set_vrsave_internal"): use mfspr for Darwin.
8623 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
8624 gen_get_vrsave_internal.
8626 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8628 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
8630 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
8632 * cpplex.c (cpp_interpret_charconst): Get signedness or
8633 otherwise of wide character constants correct.
8634 * cppexp.c (lex): Get signedness of wide charconsts correct.
8636 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8638 * optabs.c (widen_operand): Only call convert_modes for
8639 promoted SUBREG if signedness matches.
8640 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
8642 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8644 * cpplib.c (glue_header_name): Use local buffer to build up
8647 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8649 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
8651 2002-02-23 Kazu Hirata <kazu@hxi.com>
8653 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
8654 H8/300[HS] separately.
8655 * config/h8300/h8300.md: Remove the early clobber constraint
8656 from bit field patterns.
8658 2002-02-23 Kazu Hirata <kazu@hxi.com>
8660 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
8662 (mulhisi3): Likewise.
8663 (umulqisi3): Likewise.
8664 (umulhisi3): Likewise.
8666 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8668 * cppinit.c (output_deps): Correct test for stdout output.
8669 (init_dependency_output): Cure warning.
8671 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8673 * expr.c (store_expr): When converting expression to promoted
8674 equivalent type, allow using SUBREG_REG of TARGET as the target
8675 of the expansion of EXP.
8676 * loop.c (basic_induction_var, case SUBREG): Always look inside.
8677 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
8678 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
8679 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
8680 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
8682 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
8684 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
8685 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
8686 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
8688 2002-02-23 Jakub Jelinek <jakub@redhat.com>
8690 PR optimization/5747
8691 * loop.c (scan_loop): Update reg info if move_movables created new
8694 2002-02-23 David Edelsohn <edelsohn@gnu.org>
8696 * gcc.c (init_gcc_spec): Revert last change.
8698 2002-02-23 David Edelsohn <edelsohn@gnu.org>
8700 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
8701 gpc_reg_operand constraint.
8703 2002-02-23 Alan Modra <amodra@bigpond.net.au>
8705 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
8706 Simplify comparison of `low'.
8707 (add_operand): Fix formatting.
8708 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
8709 (mask_operand): Disallow mask to wrap in 64-bit mode.
8710 (rs6000_stack_info): Remove redundant test setting push_p.
8711 (output_toc): Fix formatting.
8712 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
8713 cc_reg_not_cr0_operand constraint.
8714 (booldi3, boolcdi3 splitters): Same.
8716 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
8718 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
8720 2002-02-22 David Edelsohn <edelsohn@gnu.org>
8722 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
8723 gcc invoked with -shared-libgcc.
8725 2002-02-22 Jakub Jelinek <jakub@redhat.com>
8728 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
8729 decl if any of elements was TREE_USED.
8731 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
8733 * config/sparc/sol2.h: Don't include sys/mman.h.
8734 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
8735 (arith_4096_operand): Don't throw high bits away.
8736 (const64_operand): Take sign extension of CONST_INTs into account.
8737 (const64_high_operand, sparc_emit_set_const32): Likewise.
8738 (GEN_HIGHINT64): Likewise.
8739 (sparc_emit_set_const64_quick1): Likewise.
8740 (const64_is_2insns): Likewise.
8741 (print_operand): Use trunc_int_for_mode for sign extension.
8742 * config/sparc/sparc.h (SMALL_INT32): Likewise.
8743 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
8744 chars. Assume CONST_INT is already properly sign-extended.
8745 (movdi split): Sign-extend each SImode part.
8746 (andsi3 split): Don't mask high bits off, so that result
8747 remains properly sign-extend.
8748 (iorsi3 split): Likewise.
8749 (xorsi3 split): Likewise.
8751 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
8753 * fold-const.c (fold): Fix typo in comments.
8755 2002-02-21 Diego Novillo <dnovillo@redhat.com>
8757 * Makefile.in (langhooks.o): Update dependencies.
8759 2002-02-21 Diego Novillo <dnovillo@redhat.com>
8761 * langhooks.c: Include flags.h.
8763 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
8765 * testsuite/gcc.dg/attr-alwaysinline.c: New.
8767 * c-common.c (c_common_post_options): Set inline trees by
8770 * doc/extend.texi (Function Attributes): Document always_inline
8772 Update documentation about inlining when not optimizing.
8774 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
8776 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
8777 unless DECL_ALWAYS_INLINE.
8779 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
8780 unless DECL_ALWAYS_INLINE.
8781 (c_disregard_inline_limits): Disregard if always_inline set.
8783 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
8784 Disregard if always_inline set.
8785 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
8786 unless DECL_ALWAYS_INLINE.
8788 * attribs.c (handle_always_inline_attribute): New.
8789 (c_common_attribute_table): Add always_inline.
8791 * config/rs6000/altivec.h: Add prototypes for builtins
8792 requiring the always_inline attribute.
8794 2002-02-21 Eric Christopher <echristo@redhat.com>
8796 * expmed.c (store_bit_field): Try to simplify the subreg
8797 before generating a new one when when the mode size of
8798 value is less than maxmode.
8800 2002-02-21 Richard Henderson <rth@redhat.com>
8802 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
8803 than gen_rtx_PLUS to form the sum.
8804 * explow.c (force_reg): Rearrange to not allocate new pseudo
8805 when force_operand returns a register.
8806 * expr.c (expand_assignment): Allow offset_rtx expansion to
8807 return a sum. Do not force addresses into registers.
8808 (expand_expr): Likewise.
8809 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
8810 to canonicalize arithmetic that didn't simpify.
8811 (simplify_plus_minus): New argument force; update
8812 all callers. Don't split CONST unless we can do something with it,
8813 and wouldn't lose the constness of the operands.
8815 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
8816 that we generated earlier.
8818 2002-02-21 Tom Tromey <tromey@redhat.com>
8820 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8821 (output_line_info): Use constant `1', with a long explanatory
8823 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
8825 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
8827 * jump.c (redirect_jump): If old label has no UID, don't try to
8830 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
8832 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
8833 If input is constant, do shifts at compile time.
8835 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
8837 * doc/extend.texi: Fix some more overfull hboxes.
8839 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8841 PR optimization/4994
8842 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
8845 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8848 * expr.h (expand_and): Add mode argument.
8849 * expmed.c (expand_and): Add mode argument.
8850 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
8851 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
8852 * except.c (expand_builtin_extract_return_addr): Likewise.
8853 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
8854 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
8855 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
8856 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
8857 * config/c4x/c4x.md: Use GEN_INT (x) instead of
8858 gen_rtx (CONST_INT, VOIDmode, x).
8860 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8863 * stmt.c (warn_if_unused_value): Move side effects test once more.
8865 2002-02-20 Torbjorn Granlund <tege@swox.com>
8867 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
8868 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
8870 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
8872 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
8873 SUBREG or ZERO_EXTEND.
8875 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
8877 * sh.h (current_function_anonymous_args): Remove.
8878 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
8879 of current_function_varargs and current_function_stdarg is set.
8880 * sh.c (sh_expand_prologue): Check current_function_varargs /
8881 current_function_stdarg / TARGET_SH5 instead of
8882 current_function_anonymous_args.
8884 * sh64.h (TARGET_VERSION): Define.
8886 2002-02-20 David Edelsohn <edelsohn@gnu.org>
8888 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
8889 VRSAVE_REGNO on TARGET_ALTIVEC.
8891 2002-02-20 Alan Modra <amodra@bigpond.net.au>
8893 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
8894 bits of SImode const_int.
8895 (includes_rshift_p): Likewise.
8896 (print_operand): Call mask_operand and mask64_operand with correct
8898 (rs6000_output_function_epilogue): Pad traceback table to word.
8899 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
8900 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
8901 mask64_operand with correct mode.
8902 (FUNCTION_ARG_REGNO_P): Correct parentheses.
8904 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8907 * varasm.c (get_pool_constant_mark): New.
8908 * rtl.h (get_pool_constant_mark): Add prototype.
8909 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
8910 be represented if it has not been output.
8912 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
8914 * combine.c (do_SUBST): Sanity check substitutions of
8915 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
8916 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
8917 CONST_INT into its operand.
8918 (known_cond): Likewise, for ZERO_EXTEND.
8919 * simplify-rtx.c (simplify_unary_operation): Fix condition to
8920 allow for simplification of wide modes. Reject CONST_INTs in
8921 ZERO_EXTEND when their actual mode is not given.
8923 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
8925 * c-decl.c (pushdecl): If no global declaration is found for an
8926 extern declaration in block scope, try a limbo one.
8928 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8931 * c-common.c (pointer_int_sum): Moved from...
8932 * c-typeck.c (pointer_int_sum): ...here.
8933 * c-common.h (pointer_int_sum): Add prototype.
8935 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8938 * c-decl.c (duplicate_decls): Return 0 if issued error about
8941 2002-02-20 Roger Sayle <roger@eyesopen.com>
8942 Jakub Jelinek <jakub@redhat.com>
8945 * tree.c (host_integerp): Ensure that the constant integer is
8946 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
8947 when pos is zero or non-zero respectively. Clarify comment.
8948 * c-format.c (check_format_info_recurse): Fix host_integerp
8949 usage; the pos argument should be zero when assigning to a
8950 signed HOST_WIDE_INT.
8952 2002-02-20 Richard Henderson <rth@redhat.com>
8954 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
8955 of the operand, rather than assuming TImode.
8956 (ix86_expand_binop_builtin): Cope with commutative patterns
8957 using nonimmediate_operand for both operands.
8958 (ix86_expand_timode_binop_builtin): Likewise.
8959 (ix86_expand_store_builtin): Validate operand 1.
8960 (ix86_expand_unop1_builtin): Likewise.
8962 2002-02-20 Philip Blundell <philb@gnu.org>
8965 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
8967 2002-02-20 Richard Henderson <rth@redhat.com>
8970 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
8972 2002-02-20 Tom Tromey <tromey@redhat.com>
8974 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8975 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8976 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8977 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8978 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
8981 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
8983 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
8984 for (const_int 0) in X not just INTVAL.
8986 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
8988 * doc/extend.texi: Avoid or reduce overfull hboxes.
8990 2002-02-20 Diego Novillo <dnovillo@redhat.com>
8992 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
8993 operations if the field does not start at a mode boundary.
8995 2001-02-20 Joel Sherrill <joel@OARcorp.com>
8997 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
8998 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
8999 Also done for -Acpu and -Amachine.
9001 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
9003 * cppinit.c (init_dependency_output): Take deps output file
9004 from -o if none given with -MF. Suppress normal output.
9005 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
9006 * doc/cpp.texi, doc/invoke.texi: Update.
9008 2002-02-19 Zack Weinberg <zack@codesourcery.com>
9010 * toplev.c (output_quoted_string): Write unprintable
9011 characters with octal escapes.
9013 2002-02-19 David Edelsohn <edelsohn@gnu.org>
9015 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
9016 really_call_used[VRSAVE_REGNO] if not Altivec.
9018 2002-02-19 Alan Modra <amodra@bigpond.net.au>
9020 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
9022 (constant_pool_expr_1): Fix formatting.
9023 (rs6000_legitimize_reload_address): Likewise.
9025 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9027 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
9028 now that we have one.
9030 2002-02-19 Zack Weinberg <zack@codesourcery.com>
9032 * tree.h (struct tree_common): Remove aux. Add unused_0 at
9033 end of first block of bitfields (which was only seven bits);
9034 rename dummy to unused_1; remove comment which is no longer true.
9036 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
9038 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
9040 2002-02-19 Philip Blundell <pb@nexus.co.uk>
9043 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
9047 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
9048 arm_is_longcall_p rather than inspecting call-type cookie
9050 (call_value_insn) [TARGET_THUMB]: Likewise.
9052 2002-02-19 Graham Stott <grahams@redhat.com>
9054 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
9056 2002-02-19 David Edelsohn <edelsohn@gnu.org>
9058 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
9059 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
9060 (FP_SAVE_INLINE): Delete.
9062 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
9063 * config/rs6000/eabi.asm: Remove ABI save restore routines.
9064 * config/rs6000/t-ppccomm: Build crtsavres.o.
9065 * config/rs6000/crtsavres.asm: New file.
9067 2002-02-19 Philip Blundell <philb@gnu.org>
9069 * config/arm/arm.c (use_return_insn): Don't reject interrupt
9071 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
9072 (output_return_instruction): Allow interrupt functions to return with
9073 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
9074 (arm_expand_prologue): Subtract 4 before stacking LR in an
9077 2002-02-19 Philip Blundell <pb@nexus.co.uk>
9079 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
9080 decl, not just FUNCTION_DECL.
9081 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
9082 (arm_assemble_integer): Likewise.
9083 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
9086 2002-02-19 matthew green <mrg@eterna.com.au>
9088 * config.gcc (sparc-*-netbsdelf*): Enable target.
9089 (sparc64-*-netbsd*): New target.
9090 * config/sparc/netbsd-elf.h: New file.
9091 * config/sparc/t-netbsd64: New file.
9093 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
9095 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
9097 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
9099 * doc/invoke.texi: explicitly list the style guidelines that
9100 -Weffc++ checks for.
9102 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
9104 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
9106 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
9109 * gcc.c (cpp_unique_options): Treat -o as indicating object file
9110 only if not -E. If -E, pass -o through to the preprocessor.
9112 2002-02-19 Kazu Hirata <kazu@hxi.com>
9114 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
9115 register number with an appropriate macro.
9117 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
9119 * doc/rtl.texi (Constants): Close @code tag.
9121 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
9123 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
9124 ("mmx_uavgv4hi3"): Same.
9125 ("pmulhrwv4hi3"): Same.
9127 * tree-inline.c (walk_tree): Handle vectors.
9129 * c-common.c (constant_expression_warning): Handle vectors.
9130 (overflow_warning): Same.
9132 * sched-deps.c (sched_analyze_2): Handle vectors.
9134 * rtlanal.c (rtx_unstable_p): Handle vectors.
9135 (rtx_varies_p): Same.
9136 (count_occurrences): Same.
9137 (regs_set_between_p): Same.
9138 (modified_between_p): Same.
9139 (modified_in_p): Same.
9140 (volatile_insn_p): Same.
9141 (volatile_refs_p): Same.
9142 (side_effects_p): Same.
9144 (inequality_comparisons_p): Same.
9145 (replace_regs): Same.
9146 (computed_jump_p_1): Same.
9148 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
9150 (inner_mode_array): New.
9151 (copy_rtx): Handle vectors.
9152 (copy_most_rtx): Same.
9153 (rtx_equal_p): Same.
9154 (get_mode_alignment): Adjust for vectors.
9156 * resource.c (mark_referenced_resources): Handle vectors.
9157 (mark_set_resources): Same.
9159 * reload1.c (eliminate_regs): Handle vectors.
9160 (elimination_effects): Same.
9161 (scan_paradoxical_subregs): Same.
9163 * reload.c (subst_reg_equivs): Handle vectors.
9165 * regrename.c (scan_rtx): Handle vectors.
9167 * regclass.c (reg_scan_mark_refs): Handle vectors.
9169 * recog.c (find_single_use_1): Handle vectors.
9171 * local-alloc.c (equiv_init_varies_p): Handle vectors.
9172 (contains_replace_regs): Same.
9173 (memref_referenced_p): Same.
9175 * integrate.c (copy_rtx_and_substitute): Handle vectors.
9176 (subst_constants): Same.
9178 * genattrtab.c (attr_copy_rtx): Handle vectors.
9179 (encode_units_mask): Same.
9180 (clear_struct_flag): Same.
9181 (count_sub_rtxs): Same.
9183 * gcse.c (want_to_gcse_p): Handle vectors.
9184 (oprs_unchanged_p): Same.
9185 (hash_expr_1): Same.
9186 (oprs_not_set_p): Same.
9187 (expr_killed_p): Same.
9188 (compute_transp): Same.
9189 (store_ops_ok): Same.
9191 * function.c (purge_addressof_1): Do not allow paradoxical subregs
9193 (fixup_var_refs_1): Same.
9194 (instantiate_virtual_regs_1): Same.
9196 * fold-const.c (operand_equal_p): Handle vectors.
9198 (rtl_expr_nonnegative_p): Same.
9200 * flow.c (mark_used_regs): Handle vectors.
9202 * df.c (df_uses_record): Handle vectors.
9204 * cselib.c (cselib_subst_to_values): Handle vectors.
9205 (cselib_mem_conflict_p): Same.
9208 * cse.c (canon_reg): Handle vectors.
9210 (cse_process_notes): Same.
9211 (count_reg_usage): Same.
9214 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
9216 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
9218 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
9219 (gen_rtx): Handle CONST_VECTOR.
9220 (gen_const_vector_0): New.
9221 (copy_rtx_if_shared): CONST_VECTORs can be shared.
9222 (reset_used_flags): Same.
9223 (copy_insn_1): Same.
9224 (initializer_constant_valid_p): Handle VECTOR_CST.
9226 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
9228 * doc/rtl.texi (Constants): Document const_vector.
9229 (CONST0_RTX): Update for vectors.
9230 (RTL sharing): Same.
9232 * print-tree.c (print_node): Add case for VECTOR_CST.
9234 * tree.h (TREE_VECTOR_CST_ELTS): New.
9235 (struct tree_vector): New.
9236 (union tree_node): Add vector node.
9237 (build_vector): Add prototype.
9239 * tree.def (VECTOR_CST): New.
9241 * tree.c (build_vector): New.
9243 * expmed.c (make_tree): Handle CONST_VECTOR.
9245 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
9246 (CONST_VECTOR_ELT): New.
9247 (CONST_VECTOR_NUNITS): New.
9249 * machmode.h (GET_MODE_INNER): New.
9250 (DEF_MACHMODE): Accept 8th arg.
9252 * machmode.def: Add 8th argument for vector inner mode.
9253 Add inner vector modes for vectors.
9255 * rtl.def (VEC_CONST): Remove.
9256 (CONST_VECTOR): New.
9258 * expr.c (clear_storage): Allow vectors.
9259 (is_zeros_p): Handle VECTOR_CST.
9261 * varasm.c (output_constant_pool): Handle vectors.
9262 (rtx_const): Add veclo and vechi fields.
9263 (kind): Add RTX_VECTOR.
9264 (decode_rtx_const): Add case for vector.
9266 * config/rs6000/rs6000-protos.h: Add zero_constant.
9268 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
9269 constants. Force easy vector constants into memory.
9270 (easy_vector_constant): New.
9271 (emit_easy_vector_constant): New.
9272 (rs6000_legitimize_reload_address): Do not generate bad reloads on
9275 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
9277 ("altivec_lvxl"): Same.
9278 (altivec_lvebx): Same.
9279 (altivec_lvehx): Same.
9280 (altivec_lvewx): Same.
9281 ("*movv4si_const0"): New.
9282 ("*movv4sf_const0"): New.
9283 ("*movv8hi_const0"): New.
9284 ("*movv16qi_const0"): New.
9286 2002-02-18 Kazu Hirata <kazu@hxi.com>
9288 * config/h8300/h8300.c (notice_update_cc): Use
9291 2002-02-18 Kazu Hirata <kazu@hxi.com>
9293 * config/h8300/h8300.md (divmod patterns): Change the
9294 constraints for operands[1] to register_operand.
9296 2002-02-18 Kazu Hirata <kazu@hxi.com>
9298 * config/h8300/h8300-protos.h: Remove the prototype for
9300 * config/h8300/h8300.c (p_operand): Remove.
9301 * config/h8300/h8300.md: Replace p_operand with
9304 2002-02-18 Philip Blundell <pb@nexus.co.uk>
9306 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
9308 (output_return_instruction): Allow use of LDR to unstack
9309 return addresss even for interrupt handlers or when
9310 interworking. If compiling for ARMv5, use interworking-safe
9311 return instructions by default. Remove duplicated code and
9312 lengthy "strcat" sequences.
9314 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9316 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
9317 (LINK_EH_SPEC): Define.
9318 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
9320 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
9322 * config/s390/s390.c (s390_emit_prologue): Do not set the
9323 frame_related flag for call-clobbered registers.
9325 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
9327 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
9328 (construct_container): Fix handling of SSE operands.
9329 (ix86_expand_builtin): Fix handling of 64bit pointers.
9330 (mmx_maskmovq_rex): New pattern.
9332 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
9334 * regrename.c (kill_set_value): Handle subregs properly.
9336 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
9338 * objc/objc-act.c (handle_impent): Remove leading '*'
9339 from objc_class_name.
9341 2002-02-17 Richard Henderson <rth@redhat.com>
9343 * config/alpha/alpha.c (some_small_symbolic_operand,
9344 some_small_symbolic_operand_1, split_small_symbolic_operand,
9345 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
9346 Handle small SYMBOL_REFs anywhere, not just inside memories.
9347 * config/alpha/alpha-protos.h: Update.
9348 * config/alpha/alpha.h (PREDICATE_CODES): Update.
9349 * config/alpha/alpha.md (small symbolic operand splitter): Update.
9351 2002-02-17 Roland McGrath <roland@frob.com>
9353 * config.gcc (powerpc-*-gnu-gnualtivec*,
9354 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
9355 * config/rs6000/gnu.h: New file.
9356 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
9357 Grok "gnu" in rs6000_abi_name.
9358 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
9359 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
9360 Grok -mcall-gnu analogous to -mcall-linux et al.
9361 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9362 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
9363 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
9365 2002-02-17 Jakub Jelinek <jakub@redhat.com>
9368 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
9371 2002-02-17 Philipp Thomas <pthomas@suse.de>
9373 * config/cris/cris.h: Undefine STARTFILE_SPEC and
9374 ENDFILE_SPEC before (re)defining them.
9376 2002-02-17 Kazu Hirata <kazu@hxi.com>
9378 * config/h8300/h8300.c: Fix formatting.
9379 * config/h8300/h8300.h: Likewise.
9381 2002-02-17 Philipp Thomas <pthomas@suse.de>
9383 * doc/tm.texi: Explain why empty strings should not be
9384 marked for translation.
9386 2002-02-17 Philipp Thomas <pthomas@suse.de>
9388 * final.c (output_operand_lossage): Changed to accept
9389 printf style arguments. Change calls where necessary.
9390 * output.h (output_operand_lossage): Change declaration
9391 accordingly. Update copyright.
9392 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
9393 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
9394 Update copyright date where necessary.
9396 * config/i386/i386.c (print_operand): Likewise. Remove use of
9399 * config/cris/cris.c (cris_operand_lossage): Likewise.
9400 Rename parameter so that exgettext recognizes it as
9401 translatable message.
9402 (LOSE_AND_RETURN): Rename parameter to msgid.
9404 2002-02-17 Kazu Hirata <kazu@hxi.com>
9406 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
9407 hard coded register number with an appropriate macro.
9408 (HARD_REGNO_MODE_OK): Likewise.
9409 (ARG_POINTER_REGNUM): Likewise.
9410 (STATIC_CHAIN_REGNUM): Likewise.
9411 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
9412 * config/h8300/h8300.md (define_constants): Define more
9415 2002-02-17 Philipp Thomas <pthomas@suse.de>
9417 * config/i386/i386.h: Don't mark empty strings for translation.
9419 2002-02-16 H.J. Lu <hjl@gnu.org>
9421 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
9423 2002-02-16 Zack Weinberg <zack@codesourcery.com>
9425 * cppinit.c (merge_include_chains): Check for brack being
9426 NULL before attempting to merge it with qtail.
9428 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9430 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
9433 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
9435 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
9437 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
9439 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
9440 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
9441 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
9443 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9445 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
9446 now only if !TARGET_FIX.
9447 (*movsi_nt_vms_fix): New pattern.
9449 2002-02-16 Douglas B Rupp <rupp@gnat.com>
9451 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
9452 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
9453 (alpha_sa_mask, alpha_sa_size): Reflect above change.
9454 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
9455 (alpha_start_function, alpha_expand_epilogue): Likewise.
9456 (unicosmk_gen_dsib): Likewise.
9458 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9460 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
9462 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
9464 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
9465 check_and_change_labels, s390_final_chunkify): Delete.
9466 (s390_split_branches, s390_chunkify_pool): New functions.
9467 (s390_function_prologue): Call them.
9469 * config/s390/s390.h (S390_REL_MAX): Delete.
9470 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
9472 * config/s390/s390.md (cjump, icjump, jump): Fix length
9473 attribute calculation.
9476 2002-02-15 David Edelsohn <edelsohn@gnu.org>
9478 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
9479 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
9481 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
9483 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
9484 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
9485 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
9487 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
9489 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
9491 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
9493 * reload.c (find_dummy_reload): Check that an output register
9494 is valid for its mode.
9496 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
9498 * combine.c (known_cond): After replacing the REG of a SUBREG, try
9501 * function.c (assign_parms): Demote promoted argument passed by
9502 transparent reference.
9504 2001-02-14 Joel Sherrill <joel@OARcorp.com>
9506 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
9507 -Acpu() and -Amachine() to eliminate warnings.
9509 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
9511 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
9513 2002-02-14 Kazu Hirata <kazu@hxi.com>
9515 * config/h8300/h8300-protos.h: Update the prototype for
9517 * config/h8300/h8300.c (const_costs): Treat SET as a little
9518 more expensive operation.
9519 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
9520 reference to const_costs.
9522 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
9524 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
9526 2002-02-14 Jakub Jelinek <jakub@redhat.com>
9529 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
9530 use arguments from newtype.
9532 2002-02-13 Eric Christopher <echristo@redhat.com>
9534 * config/mips/mips.c (override_options): Add check for march/mipsX
9535 on the same command line. Fix error message in cpu processing.
9536 Remove architecture and ISA checks.
9538 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
9540 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
9542 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
9544 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
9546 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
9548 ("*movv8hi_internal1"): Same.
9549 ("*movv16qi_internal1"): Same.
9550 ("*movv4sf_internal1"): Same.
9552 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
9553 not push_reload for altivec modes.
9555 2002-02-13 Joel Sherrill <joel@OARcorp.com>
9557 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
9558 all RTEMS targets including removal of #includes from config/*/rtems*.h
9559 file and adding them to tm_file setting. Added xm_defines=POSIX to
9561 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
9562 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
9563 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
9564 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
9565 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
9566 config/m68k/rtemself.h: Ditto.
9567 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
9568 config/mips/rtems64.h: Ditto.
9569 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
9570 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
9572 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
9573 config/sparc/rtemself.h: Ditto.
9574 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
9575 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
9576 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
9578 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
9579 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
9580 target made more similar to i386-elf.
9581 * config/i386/t-rtems-i386: Added soft float support and multilibs.
9582 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
9583 be similar to config/m68k/t-m68kelf.
9584 * gthr-rtems.h: Encapsulate with extern "C" for C++.
9586 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
9588 * regmove.c (kill_value): Handle subregs.
9590 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
9592 * i386.md (mul patterns): Allow memory operand to be first;
9593 add expanders where needed; fix constraints.
9594 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
9595 Allow memory operand to be the first.
9597 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
9600 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9603 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
9606 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9608 PR optimization/5547:
9609 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
9610 all valid IA-32 address modes involving non-scaled %ebx and
9611 GOT/GOTOFF as displacement.
9613 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
9615 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
9616 after emitting ltorg insns.
9618 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
9619 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
9620 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
9621 *abssf2): Fix "op_type" attribute.
9623 2002-02-13 Douglas B Rupp <rupp@gnat.com>
9625 * mkconfig.sh: Avoid using a subshell redirect.
9626 ($output.T): Change to $(output)T.
9627 (ENABLE_NLS): Remove unneeded undef.
9629 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
9630 * config/alpha/x-vms (libsubdir): Define.
9632 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
9633 register frame procedures. Optimize retrieving context.
9635 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
9636 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
9637 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
9639 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9641 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
9642 Make same change as for find_base_value.
9644 2002-02-13 Kazu Hirata <kazu@hxi.com>
9646 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
9647 of QImode and SImode.
9649 2002-02-13 Kazu Hirata <kazu@hxi.com>
9651 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
9652 length computation of movsi.
9653 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
9655 2002-02-13 Kazu Hirata <kazu@hxi.com>
9657 * config/h8300/h8300.md (subqi3): Tighten the predicate for
9658 operands[2] to register_operand.
9660 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
9662 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
9664 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
9666 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
9667 for altivec_lvx* and altivec_stvx*.
9668 ("*movv4si_internal"): Add constraint for loading from GPRs.
9669 ("*movv8hi_internal1"): Same.
9670 ("*movv16qi_internal1"): Same.
9671 ("*movv4sf_internal1"): Same.
9673 * config/rs6000/rs6000.c (altivec_register_operand): New.
9675 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
9676 altivec_register_operand.
9678 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
9680 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
9683 2002-02-13 Stan Shebs <shebs@apple.com>
9685 * c-typeck.c (digest_init): Handle vectors.
9686 (really_start_incremental_init): Same.
9687 (pop_init_level): Same.
9688 (process_init_element): Same.
9690 * varasm.c (output_constant): Same.
9692 * expr.c (clear_storage): Same.
9693 (store_constructor): Same.
9695 2002-02-12 Eric Christopher <echristo@redhat.com>
9697 * explow.c (hard_function_value): Add comment explaining
9698 signed/unsigned comparison.
9700 2002-02-12 Jakub Jelinek <jakub@redhat.com>
9702 * jump.c (never_reached_warning): Add finish argument.
9703 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
9704 real insn after end.
9705 * rtl.h (never_reached_warning): Adjust prototype.
9706 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
9707 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
9708 never_reached_warning.
9710 2002-02-12 Graham Stott <grahams@redhat.com>
9712 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
9714 2002-02-12 Kazu Hirata <kazu@hxi.com>
9716 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
9717 logical shifts on H8/300.
9718 (shift_alg_si): Improve several shifts on H8/300.
9719 (get_shift_alg): Likewise.
9721 2002-02-12 Graham Stott <grahams@redhat.com>
9723 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
9725 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9727 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
9728 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
9730 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
9732 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
9733 non-CONST_INT through default_assemble_integer.
9734 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
9735 <case 8>: Abort for CONST_DOUBLE.
9737 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9739 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
9741 * config/pa/pa-linux.h (LIB_SPEC): Delete.
9742 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
9744 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
9746 * config/stormy16/stormy16.md (zero_extendqihi2): New.
9748 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
9750 * regrename.c (regrename_optimize): Don't accept a
9751 part-clobbered register if the replaced register is not part
9754 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
9755 take padding into account when computing the argument value.
9757 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
9759 * combine.c (try_combine): Apply substitutions in
9760 CALL_INSN_FUNCTION_USAGE too.
9762 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
9764 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
9765 __builtin_altivec_abs*.
9768 * config/rs6000/rs6000.h (rs6000_builtins): Add
9769 ALTIVEC_BUILTIN_ABS*.
9771 * config/rs6000/altivec.h: Use const char for builtins expecting
9773 (vec_abs): New versions for C and C++.
9776 2002-02-10 Kazu Hirata <kazu@hxi.com>
9778 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
9781 2002-02-10 Kazu Hirata <kazu@hxi.com>
9783 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
9784 constant definition from h8300.md.
9785 (FRAME_POINTER_REGNUM): Likewise.
9786 * config/h8300/h8300.md (define_constants): Add FP_REG.
9788 2002-02-10 Kazu Hirata <kazu@hxi.com>
9790 * config/h8300/h8300.c (print_operand): Remove redundant code.
9792 2002-02-10 Kazu Hirata <kazu@hxi.com>
9794 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
9795 * config/h8300/h8300.c (byte_reg): Make it static.
9797 2002-02-10 Richard Henderson <rth@redhat.com>
9800 * c-typeck.c (incomplete_type_error): Handle flexible array members.
9802 2002-02-10 Richard Henderson <rth@redhat.com>
9805 * tree.c (append_random_chars): Don't abort if main_input_filename
9808 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
9810 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
9812 2002-02-10 Kazu Hirata <kazu@hxi.com>
9814 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
9815 (pushhi1): Likewise.
9817 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
9819 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
9820 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
9822 2002-02-09 David O'Brien <obrien@FreeBSD.org>
9824 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
9826 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
9828 2002-02-09 Kazu Hirata <kazu@hxi.com>
9830 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
9831 a half of an SImode register on H8/300.
9833 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
9835 * i386.md (movdi_2): Add missing '!'.
9837 2002-02-09 Kazu Hirata <kazu@hxi.com>
9839 * config/h8300/h8300.h: Fix formatting. Remove commented-out
9842 2002-02-09 Kazu Hirata <kazu@hxi.com>
9844 * config/h8300/h8300.md (length): Correct the distance valid
9845 for the short branch.
9847 2002-02-09 Kazu Hirata <kazu@hxi.com>
9849 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
9851 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
9853 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
9854 registers in SImode.
9855 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
9858 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
9861 Contribute sh64-elf.
9862 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
9863 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
9864 (sh_cannot_modify_jumps_p): New function.
9865 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
9866 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
9867 (sh_ms_bitfield_layout_p): New function.
9868 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
9869 Zack Weinberg <zack@codesourcery.com>
9870 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
9871 expand_simple_binop instead of expand_binop.
9872 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
9873 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
9874 use of .quad and .uaquad.
9875 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
9876 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
9877 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9878 * config/sh/sh.md (movdi_const, movdi_const_32bit,
9879 movdi_const_16bit): Make sure all CONSTs have modes.
9880 (sym2PIC): Ditto, but by adjusting all callers.
9881 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
9882 if the prologue calls the SHmedia argument decoder or register
9884 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9885 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
9886 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
9887 (sh_expand_epilogue): Don't emit USE of return target register.
9888 (prepare_move_operands): Legitimize DImode PIC addresses.
9889 (sh_media_register_for_return): Skip tr0, used to initialize the
9891 (sh_expand_prologue): Remove explicit USE of return register.
9892 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
9893 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
9894 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
9895 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
9896 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
9898 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
9899 (MOVI_SHORI_BASE_OPERAND_P): New.
9900 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
9901 (EXTRA_CONSTRAINT_T): Define in terms of them.
9902 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
9903 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
9904 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
9905 alternatives supporting TARGET_REGS.
9906 (UNSPEC_GOTPLT): New constant.
9907 (movdi split): Move incrementing of LABEL_NUSES...
9908 (movdi_const, movdi_const_32bit): Here. Use
9909 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
9910 (movdi_const_16bit): New.
9911 (call, call_value) [flag_pic]: Use GOTPLT.
9912 (call_pop, call_value_pop): New expands.
9913 (call_pop_compact, call_pop_rettramp): New insns.
9914 (call_value_pop_compact, call_value_pop_rettramp): New insns.
9915 (sibcall) [flag_pic]: Use GOT.
9916 (builtint_setjmp_receiver): Remove bogus, unused expand.
9917 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
9918 (*pt, *ptb, ptrel): New insns.
9919 (sym2GOT): Handle DImode GOT.
9920 (sym2GOTPLT, symGOTPLT2reg): New expands.
9921 (sym2PIC): New expand.
9922 (shcompact_return_tramp): Use GOTPLT to return trampoline.
9923 (shcompact_return_tramp_i): Use return register explicitly.
9924 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
9925 disable flag_reorder_blocks.
9926 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
9927 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
9928 clobbers, for clarity.
9929 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
9930 restoring of r0 in macl as MAYBE_DEAD.
9931 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
9932 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
9933 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
9934 alter_subreg all over.
9935 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
9936 reload, instead of emitting instructions that would require
9938 (casesi_load_media): Add missing modes.
9939 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
9940 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
9941 as used if the argument decoder is called.
9942 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
9943 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
9944 Pmode, then extend it to DImode if necessary.
9945 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
9946 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
9947 constants in FPU-enabled SHmedia, let them be loaded from memory.
9948 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
9949 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
9950 Adjust whitespace in assembly output templates.
9951 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
9952 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
9953 mode of if_then_else.
9954 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
9955 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
9957 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
9958 Joern Rennecke <amylaar@redhat.com>
9959 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
9960 (SUBTARGET_CPP_PTR_SPEC): New.
9961 (SUBTARGET_CPP_SPEC): Remove.
9962 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
9963 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9964 Fix typo in previous checkin.
9965 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
9966 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
9967 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
9968 Alexandre Oliva <aoliva@redhat.com>
9969 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
9970 what single FP register can hold for SHmedia target.
9971 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
9972 Alexandre Oliva <aoliva@redhat.com>
9973 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9974 Do not split into SUBREG.
9975 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
9976 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
9977 and added new functions as specified in SH5 ABI r9.
9978 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
9979 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
9981 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
9982 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
9983 gen_consttable_4 and gen_consttable_8. Emit multiple labels
9984 and consttable_window_ends.
9985 2001-06-03 Graham Stott <grahams@redhat,com>
9986 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
9987 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
9988 * config/sh/sh.c (print_operand): Handle floating-point pair,
9989 vector and matrix registers.
9990 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
9991 vector modes into account.
9992 * config/sh/sh.md (movv2sf): Split move between registers into
9994 (movv4sf, movv16sf): Introduce insns that get split only after
9996 * config/sh/shmedia.h: Fix Copyright dates.
9997 * config/sh/ushmedia.h: Likewise. Move loop counter
9998 declarations into conditionals that uses them.
9999 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
10001 * config/sh/sshmedia.h: Fix Copyright dates.
10002 (sh_media_PUTCFG): Fix constraints.
10003 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
10004 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
10005 ptrmemfunc_vbit_in_delta for SH5.
10006 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
10007 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
10008 * invoke.texi: Likewise.
10009 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
10010 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
10011 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
10012 GCC_pop_shmedia_regs_nofpu): New global symbols.
10013 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
10014 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
10015 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
10016 compact function with nonlocal labels.
10017 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
10018 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
10019 (initial_elimination_offset): Account for their stack space.
10020 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
10021 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
10022 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
10023 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
10024 least one of the operands to be a register.
10025 (movv2sf): Likewise. Renamed to movv2sf_i.
10026 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
10027 prepare_move_operands() before emitting SHmedia insns.
10028 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
10029 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
10030 Don't save nor initialize r12. Don't mis-align the stack.
10031 Pad the code with a nop.
10032 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
10034 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
10035 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
10036 [__SHMEDIA__]: Implement.
10037 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
10038 * config/sh/sh.md: Set latency of `pt' closer to reality.
10039 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
10040 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
10041 Set move, load and store type attributes.
10042 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
10043 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
10045 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
10046 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
10047 * config/sh/sh.c (sh_media_register_for_return): New function.
10048 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
10049 branch-target register.
10050 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
10051 * config/sh/sh.md (return_media_i): Use any call-clobbered
10052 branch-target register.
10053 (return_media): If r18 wasn't copied in the prologue, copy it
10055 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
10056 Clear class FP0_REGS.
10057 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
10059 2001-03-08 DJ Delorie <dj@redhat.com>
10060 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
10061 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
10062 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
10063 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
10064 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
10065 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
10066 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
10067 return value correctly for call_cookie.
10068 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
10069 * config/sh/crt1.asm (start): Modified so as to call
10070 ___setup_argv_and_call_main.
10071 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
10072 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
10074 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
10075 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
10076 (STRIP_NAME_ENCODING): Use it.
10077 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
10078 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
10079 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
10080 prepare_scc_operands().
10081 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
10082 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
10083 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
10084 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
10085 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
10086 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
10087 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
10088 used in shcompact_incoming_args.
10089 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
10091 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
10093 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
10094 Adjust accordingly.
10095 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
10096 Simplify. Adjust. Add sanity check.
10097 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
10099 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
10101 (udivsi3, divsi3): Use them.
10102 (force_mode_for_call): New insn.
10103 (call, call_value, sibcall_value): Emit it before SHcompact
10105 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
10106 * config/sh/sh.md (call, call_value, sibcall): Make sure the
10107 call cookie is non-NULL before taking its value.
10108 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
10109 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
10110 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
10111 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
10113 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
10114 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
10115 temporary for stack adjusts. Use MACL and MACH to pass
10116 arguments to shcompact_incoming_args.
10117 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
10119 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
10120 (nested_trampoline): Load static chain address into r1.
10121 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
10122 2001-01-07 Alexandre Oliva <aoliva@redhat.com
10123 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
10124 fp_arith_reg_operand().
10125 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
10126 * config/sh/sh.md (casesi): Sign-extend the first two operands,
10127 and use signed compares for them.
10128 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
10129 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
10130 ones properly aligned.
10131 (find_barrier): Account for extra alignment needed for 8-byte wide
10133 (machine_dependent_reorg): Require a label for the second 4-byte
10134 constant after an 8-byte one.
10135 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
10137 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
10138 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
10139 last_float when switching float modes.
10140 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
10141 auto-increment for general-purpose registers.
10142 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
10144 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
10146 * config/sh/sh.c (sh_builtin_saveregs): Support using all
10147 registers for varargs.
10148 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
10149 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
10150 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
10151 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
10152 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
10153 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
10154 call_cookie accordingly.
10155 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
10156 (SHCOMPACT_BYREF): Likewise.
10157 (SHCOMPACT_FORCE_ON_STACK): New macro.
10158 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
10159 (sh_builtin_saveregs): Likewise.
10160 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10161 shcompact_incoming_args): Use new shift values. Support
10162 sequences of consecutive and non-consecutive pushes/pops.
10163 * config/sh/sh.md (return): Don't explicitly use PR_REG.
10164 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
10165 * config/sh/sh.h (TEXT_SECTION): Define.
10166 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
10167 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
10168 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
10169 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
10170 return values on FPU-enabled SHmedia.
10171 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
10172 FPU-enabled SHmedia.
10173 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
10174 value is returned in a non-FP reg and is not returned by
10176 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
10178 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
10179 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
10180 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
10181 quad-aligned to be passed by callee-copy reference.
10182 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
10183 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
10184 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
10185 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
10186 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
10187 copying low-numbered FP regs to r7 and r8.
10188 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
10189 FP regs to general-purpose regs only if the copy was passed on the
10191 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
10192 copying FP reg to r9.
10193 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
10194 copy FP regs to general-purpose regs only in outgoing calls.
10195 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
10196 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
10198 * config/sh/sh.h (struct sh_args): Document all fields.
10199 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
10200 passed partially on the stack should not consider making
10202 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
10203 stack_regs only for incoming calls. When passing FP args,
10204 make sure there are FP regs available before modifying
10206 (SHCOMPACT_BYREF): Pass double args in general-purpose
10207 registers by reference.
10208 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
10209 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
10210 attempt to generate sibcalls if the caller got any arguments
10212 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
10213 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
10214 to 8-byte boundaries.
10215 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
10216 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
10217 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
10218 stored in the stack.
10219 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
10220 for the offsets to have the ISA bit set.
10221 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
10222 invocation. Use beq instead of bgt to mark end of sequence of
10224 (shcompact_incoming_args): Fix store of r2. Use beq instead of
10225 bgt to mark end of sequence of stores.
10226 * config/sh/sh.c (arith_operand): Don't check whether
10227 CONST_OK_FOR_J for now.
10228 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
10229 instead of long for conversion.
10230 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
10231 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
10232 before passing it to fprintf.
10233 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
10234 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
10235 Call set_fpscr before reading/writing SR.
10236 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
10238 * config/sh/lib1funcs.asm: Add `.align 2' directives before
10240 (FMOVD_WORKS): Define on SH5 with FPU.
10241 (set_fpscr): Define on SH5. Remove separate _fpscr_values
10243 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
10245 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
10246 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
10248 (ia_main_table): Ditto.
10249 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
10250 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10251 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
10252 the definitions from sh.h.
10253 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
10255 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
10256 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
10257 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10258 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
10259 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
10260 Increment LABEL_NUSES.
10262 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
10264 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
10266 * config/sh/elf.h (SIZE_TYPE): Likewise.
10267 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10268 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10269 shcompact_incoming_args): Load switch table addresses using
10271 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10272 (NO_BUILTIN_SIZE_TYPE): Define.
10273 (SIZE_TYPE): Don't define.
10274 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10275 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
10276 definition of __SH5__=32 for -m5-compact-nofpu.
10277 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
10279 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
10280 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
10281 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
10282 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
10283 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
10284 (INSN_LENGTH_ALIGNMENT): Likewise.
10285 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
10286 * config/sh/sh.md (call, call_value, sibcall): Simplify
10287 copying of non-branch-target register.
10288 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
10289 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
10290 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
10291 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
10292 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
10293 floating-point values as structs.
10294 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
10295 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
10296 general-purpose register.
10297 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
10298 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
10299 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
10300 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
10301 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
10302 (ENCODE_SECTION_INFO): Enclose variables and constants in
10304 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
10305 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
10306 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
10307 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
10308 only for LABEL_REFs. For SYMBOL_REFs, prepend
10309 SH_DATALABEL_ENCODING to the symbol name.
10310 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
10312 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
10313 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
10315 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
10316 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
10317 (DATALABEL_REF_P): Don't require CONST.
10318 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
10320 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
10321 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
10323 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
10324 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
10325 Use shallow_copy_rtx and PUT_MODE to change the mode of
10326 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
10327 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
10328 on SHmedia using GENERAL_REGs.
10329 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10330 bltu_media_i): Fix reversion of conditions.
10331 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
10332 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
10333 * config/sh/sh.c (output_far_jump): Save r13 in macl.
10334 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
10335 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
10336 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
10337 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
10338 (GCC_nested_trampoline): Likewise.
10339 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
10340 * config/sh/sh.c (gen_datalabel_ref): Define.
10341 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
10342 (INITIALIZE_TRAMPOLINE): Likewise.
10343 (TRAMPOLINE_ADJUST_ADDRESS): Define.
10344 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
10345 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
10346 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
10347 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
10348 (ic_invalidate): Adjust for SH5.
10349 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
10350 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
10351 _nested_trampoline.
10352 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
10353 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
10354 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
10355 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
10356 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
10357 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
10358 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
10359 * config/sh/sh.c (target_reg_operand): Match only target-branch
10360 registers and pseudos that aren't virtual registers.
10361 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10362 Copy operands that don't match target_reg_operand to pseudos.
10363 (call_media, call_value_media, sibcall_media): Use
10364 target_reg_operand instead of target_operand.
10365 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
10366 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
10367 * config/sh/sh.c (target_reg_operand): Match hardware registers
10368 other than branch-target registers.
10369 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
10370 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
10371 (fpscr_values) [SH5 == 32]: Define.
10372 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
10373 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10374 Handle function addresses coming in SUBREGs.
10375 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
10376 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10377 shcompact_return_trampoline): Use datalabel where appropriate.
10378 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
10379 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
10380 general-purpose register to copy one branch-target register to
10382 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
10383 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
10384 SYMBOL_REFs with VOIDmode.
10385 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10386 bltu_media_i): New insns.
10387 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
10388 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
10389 (INIT_CUMULATIVE_ARGS): Likewise.
10390 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
10391 * machmode.def (V16SFmode): New mode.
10392 * c-common.c (type_for_mode): Support V2SF and V16SF.
10393 * tree.c (build_common_tree_nodes_2): Likewise.
10394 * tree.h (tree_index): Likewise.
10395 * calls.c (emit_call_1): Take args_so_far. Adjust all
10396 callers. Introduce CALL_POPS_ARGS.
10397 * tm.texi (CALL_POPS_ARGS): Document.
10398 * config/sh/crt1.asm: Implement in SHmedia mode.
10399 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
10400 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
10401 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
10402 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
10403 Implement divsi and udivsi in SHmedia mode. Introduce
10404 SHcompact trampolines.
10405 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
10407 (regno_reg_class): Rewrite.
10408 (fp_reg_names): Remove.
10409 (sh_register_names, sh_additional_register_names): New.
10410 (print_operand): Added `u'. Support SUBREGs in addresses.
10411 Add parentheses around shifted CONSTs.
10412 (output_file_start): Output .mode and .abi directives.
10413 (shiftcosts, addsubcosts, multcosts): Adjust.
10414 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
10415 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
10416 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
10417 bytes, not registers. Take into account the need for the
10418 SHcompact incoming args trampoline. Adjust all callers.
10419 (sh_expand_prologue): Take stack_regs into account. Call
10420 incoming args trampoline. Keep stack aligned as per SH5 ABI.
10421 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
10422 stack aligned as per SH5 ABI.
10423 (sh_builtin_saveregs): Support SH5 ABI.
10424 (sh_build_va_list, sh_va_start): Likewise.
10425 (initial_elimination_offset): Take alignment into account.
10426 Compute location of PR according to the SH5 stack frame.
10427 (arith_reg_operand): Reject branch-target registers.
10428 (shmedia_6bit_operand): New.
10429 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
10430 (target_reg_operand): Match DImode only. Accept SUBREGs.
10431 (target_operand): New.
10432 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
10433 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
10434 SIBCALL_REGS for SHmedia.
10435 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
10436 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
10437 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
10438 (TARGET_SWITCHES): New SH5 flags.
10439 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
10440 VALID_REGISTER_P to disable unsupported registers.
10441 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
10442 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
10443 (FUNCTION_ARG_PADDING): Define.
10444 (FASTEST_ALIGNMENT): Adjust.
10445 (SH_REGISTER_NAMES_INITIALIZER): New.
10446 (sh_register_names): Declare.
10447 (DEBUG_REGISTER_NAMES): Define.
10448 (REGISTER_NAMES): Define based on sh_register_names.
10449 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
10450 (sh_additional_register_names): Declare.
10451 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
10452 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
10453 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
10454 (REGISTER_NATURAL_MODE): Define.
10455 (FIRST_PSEUDO_REGISTER): Adjust.
10456 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
10457 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
10458 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
10459 (VECTOR_MODE_SUPPORTED_P): Define.
10460 (REG_CLASS_CONTENTS): Adjust.
10461 (SMALL_REGISTER_CLASSES): Adjust.
10462 (REG_ALLOC_ORDER): Adjust.
10463 (INDEX_REG_CLASS): Adjust.
10464 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
10465 (CONST_OK_FOR_LETTER_P): Adjust.
10466 (PREFERRED_RELOAD_CLASS): Adjust.
10467 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
10468 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
10469 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
10470 (FIRST_FP_PARM_REG): Adjust.
10471 (CALL_POPS_ARGS): Define.
10472 (FUNCTION_ARG_REGNO_P): Adjust.
10473 (struct sh_args): New fields.
10474 (GET_SH_ARG_CLASS): Adjust.
10475 (INIT_CUMULATIVE_ARGS): Adjust.
10476 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
10477 (FUNCTION_ARG_ADVANCE): Adjust.
10478 (FUNCTION_ARG): Adjust.
10479 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
10480 (FUNCTION_ARG_CALLEE_COPIES): Define.
10481 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
10482 (STRICT_ARGUMENT_NAMING): Define.
10483 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
10484 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
10485 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
10486 (SETUP_INCOMING_VARARGS): Adjust.
10487 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
10488 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
10489 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
10490 (SUBREG_OK_FOR_INDEX_P): Adjust.
10491 (EXTRA_CONSTRAINT_S): Update.
10492 (EXTRA_CONSTRAINT_T): New.
10493 (EXTRA_CONSTRAINT): Adjust.
10494 (GO_IF_LEGITIMATE_INDEX): Adjust.
10495 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
10496 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
10497 (MOVE_MAX): Adjust.
10498 (MAX_MOVE_MAX): Define.
10500 (CONST_COSTS): Adjust.
10501 (REGISTER_MOVE_COST): Adjust.
10502 (BRANCH_COST): Adjust.
10503 (TEXT_SECTION_ASM_OP): Adjust.
10504 (DBX_REGISTER_NUMBER): Adjust.
10505 (ASM_OUTPUT_DOUBLE_INT): New.
10506 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
10507 (PREDICATE_CODES): Adjust.
10508 (PROMOTE_MODE): Adjust.
10509 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
10510 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
10511 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
10512 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
10513 (DR0_REG, DR2_REG, DR4_REG): Renumber.
10514 (TR0_REG, TR1_REG, TR2_REG): New.
10515 (XD0_REG): Renumber.
10516 (UNSPEC_COMPACT_ARGS): New.
10517 (type): Added pt and ptabs.
10518 (length): Default to 4 on SHmedia. Default pt length to 12
10519 and 20 on SHmedia32 and SHmedia64, respectively.
10520 (pt): New function unit.
10521 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
10522 Add whitespace between operands of SHmedia instructions.
10524 (adddi3_media, addsi3_media): Adjust constraints.
10525 (subsi3) [SHmedia]: Force operand 1 into a register.
10526 (udivsi3_i1_media, udivsi3_i4_media): New.
10527 (udivsi3): Support SHmedia.
10528 (divsi3_i1_media, divsi3_i4_media): New.
10529 (divsi3): Support SHmedia.
10530 (anddi3, iordi3, xordi3): Adjust constraints.
10531 (zero_extendhidi2, zero_extendqidi2): New.
10532 (extendsidi2, extendhidi2, extendqidi2): New.
10533 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
10534 (pop_e, pop_fpul, pop_4): Likewise.
10535 (movsi_media): Support FP and BT registers.
10536 (movsi_media_nofpu): New. Adjust splits to DImode.
10537 (lduw, ldub): Renamed to zero_extend* above.
10538 (movqi_media): Fix typo.
10539 (movdi_media): Support FP and BT registers.
10540 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
10541 (movdi_const_32bit): New.
10542 (shori_media): Require immediate operand. Use `u' for output.
10543 (movdf_media, movsf_media): Simplified.
10544 (movdf_media_nofpu, movsf_media_nofpu): New.
10545 (movdf, movsf): Adjust
10546 (movv2sf, movv2sf, movv16sf): New.
10547 (beq_media, beq_media_i): Adjust constraints. Don't use
10548 scratch BT register.
10549 (bne_media, bne_media_i): Likewise.
10550 (bgt_media, bgt_media_i): Likewise.
10551 (bge_media, bge_media_i): Likewise.
10552 (bgtu_media, bgtu_media_i): Likewise.
10553 (bgeu_media, bgeu_media_i): Likewise.
10554 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
10555 bunordered): Emit jump insn. Force operands to registers when
10557 (jump_media, jump): Simplify.
10558 (call_compact, call_compact_rettramp): New.
10559 (call_value_compact, call_value_compact_rettramp): New.
10560 (call_media, call_value_media): Simplify.
10561 (sibcall_compact, sibcall_media): New.
10562 (call, call_value): Adjust for SHmedia and SHcompact.
10563 (sibcall, sibcall_value, untyped_call): Likewise.
10564 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
10565 (indirect_jump): Adjust for SHmedia.
10566 (casesi_jump_media): New.
10567 (nop): Re-enable for SHmedia.
10568 (call_site): Restrict to SH1.
10569 (casesi): Adjust for SHmedia.
10570 (casesi_shift_media, casesi_load_media): New.
10571 (return): Explicitly use PR register. Call return trampoline
10573 (return_i): Explicitly use PR register.
10574 (shcompact_return_tramp, shcompact_return_tramp_i): New.
10575 (return_media): Adjust.
10576 (shcompact_incoming_args): New.
10577 (epilogue): Adjust.
10578 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10579 (movstrsi): Disable on SH5.
10580 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
10581 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
10582 (subsf3, subsf3_media): Likewise.
10583 (mulsf3, mulsf3_media, mac_media): Likewise.
10584 (divsf3, divsf3_media): Likewise.
10585 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
10586 (floatsisf2, fux_truncsfsi2): Likewise.
10587 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
10589 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
10590 (cmpunsf_media, cmpsf): Likewise.
10591 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
10592 (abssf2, abssf2_media): Likewise.
10593 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
10594 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
10595 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
10596 (floatsidf2, fix_truncdfsi2): Likewise.
10597 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
10599 (cmpeqdf_media, cmpgtdf_media): Likewise.
10600 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
10601 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
10602 (absdf2, absdf2_media): Likewise.
10603 (extendsfdf2, extendsfdf2_media): Likewise.
10604 (truncsfdf2, truncsfdf2_media): Likewise.
10605 * config/sh/sh64.h: New file.
10606 * config/sh/t-sh64: New file.
10607 * config/sh/shmedia.h: New file.
10608 * config/sh/ushmedia.h: New file.
10609 * config/sh/sshmedia.h: New file.
10610 * configure.in: Added sh64-*-elf.
10611 * configure: Rebuilt.
10612 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
10613 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
10614 (reg_class_from_letter): Use `b' for TARGET_REGS.
10615 (print_operand): Support `%M', `%m', `AND' and
10616 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
10617 (andcosts): Adjust for SHmedia.
10618 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
10620 (target_reg_operand): New function.
10621 * config/sh/sh-protos.h (target_reg_operand): Declare.
10622 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
10623 FP registers on SH5.
10624 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
10626 (TARGET_REGISTER_P): New macro.
10627 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
10628 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
10629 (EXTRA_CONSTRAINT_S): New macro.
10630 (EXTRA_CONSTRAINT): Adjust.
10631 (FLOAT_TYPE_SIZE): Define to 32.
10632 (Pmode): DImode on SHmedia.
10633 (CONST_COSTS): Adjust for SHmedia literals.
10634 (PREDICATE_CODES): Added target_reg_operand.
10635 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
10636 * config/sh/sh.md: Remove all attrs from SHmedia insns.
10637 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
10638 (cmpdi): Accept SHmedia.
10639 (movdicc_false, movdicc_true): New insns.
10640 (movdicc): New expand.
10641 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
10643 (addsi3_media): Match `S' constraint.
10644 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
10645 (negdi2): Expand for SHmedia.
10646 (one_cmpldi2): New expand.
10647 (zero_extendsidi2): Change from expand to insn.
10648 (extendsidi2): Add constraints.
10649 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
10650 LD/ST address. Fix SI immediate loading split.
10651 (movhi_media, movqi_media, lduw, ldub): New insns.
10652 (movhi, movqi): Accept SHmedia.
10653 (shori_media, movdi_media): Relax input constraints. Split
10654 symbolic constants.
10655 (movdf_media, movsf_media): New insn. New split to movdi.
10656 (movdf, movsf): Match on SHmedia.
10657 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
10658 bgeu_media): New insns and splits. New insns with `_i' suffix.
10659 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
10660 (bunordered): New expand.
10661 (jump_compact): Renamed from `jump'.
10662 (jump_media): New insn.
10663 (jump): New expand.
10664 (call_media, call_value_media): New insns.
10665 (call, call_value): Adjust.
10666 (indirect_jump_compact): Renamed from `indirect_jump'.
10667 (indirect_jump_media): New insn.
10668 (indirect_jump): New expand.
10669 (untyped_call, return): Accept SHmedia.
10670 (return_media): New insn.
10671 (prologue, epilogue, blockage): Accept SHmedia.
10672 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10673 (sunordered): New expand.
10674 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
10675 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
10676 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
10677 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
10678 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
10679 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
10680 abssf2_media): New insns.
10681 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
10682 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
10683 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
10684 floatdidf2, floatsidf2_media, fix_truncdfdi2,
10685 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
10686 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
10687 absdf2_media): New insns.
10688 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
10689 (extendsfdf2_media, truncdfsf2_media): New insns.
10690 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
10691 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
10692 * config/sh/sh.h (CONST_OK_FOR_J): Document.
10693 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
10694 * config/sh/sh.md (adddi3): New expand.
10695 (adddi3_media, adddi3z_media): New insns.
10696 (adddi3_compact): Renamed from adddi3.
10697 (addsi3_media): Use add.l r63 to add constant zero.
10698 (subdi3): New expand.
10699 (subdi3_media): New insn.
10700 (subdi3_compact): Renamed from subdi3.
10701 (mulsidi3): New expand.
10702 (mulsidi3_media): New insn.
10703 (mulsidi3_compact): Renamed from mulsidi3.
10704 (umulsidi3): New expand.
10705 (umulsidi3_media): New insn.
10706 (umulsidi3_compact): Renamed from umulsidi3.
10707 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
10708 (ashlsi3, ashrsi3, lshrsi3): Use them.
10709 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
10710 (ashldi3, ashrdi3, lshrdi3): Use them.
10711 (zero_extendsidi2): New expand.
10712 (extendsidi2): New insn.
10713 (movsi_media): New insn. Split to movdi to load constants.
10714 (movsi): Enable for shmedia.
10715 (movdi_media): New insn. Use shori_media to load wide constants.
10716 (short_media): New insn.
10717 (movdi): Enable for shmedia.
10718 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
10719 * config/sh/sh.h (CPP_SPEC): Added `m5'.
10720 (SUBTARGET_CPP_SPEC): Added `!m5'.
10721 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
10722 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
10723 to all other SH variants.
10724 (TARGET_DEFAULT): Set to SH1_BIT.
10725 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
10726 (BITS_PER_WORD): Raise to 64 on shmedia.
10727 (MAX_BITS_PER_WORD): Change to 64.
10728 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
10729 (INT_TYPE_SIZE): Keep as 32.
10730 (UNITS_PER_WORD): Raise to 8 on shmedia.
10731 (MIN_UNITS_PER_WORD): Keep as 4.
10732 (POINTER_SIZE): Raise to 64 on shmedia.
10733 (CONST_OK_FOR_J): New macro.
10734 (CONST_OK_FOR_LETTER_P): Use it.
10735 (processor_type): Add PROCESSOR_SH5.
10736 * config/sh/sh.md: Conditionalize all expands, insns and
10737 splits to TARGET_SH1.
10739 (addsi3_compact): Renamed from...
10740 (addsi3): Now an expand.
10741 (addsi3_media, subsi3_media): New insns.
10742 (subsi3): Don't negate constants with SHmedia.
10744 * hooks.c: New file.
10745 * hooks.h: New file.
10746 * Makefile.in (HOOKS_H): New.
10747 (TARGET_DEF_H): Added $(HOOKS_H).
10748 (OBJS): Added hooks.o.
10749 (cfgcleanup.o, bb-reorder.o): Added target.h.
10750 (hooks.o): Added dependencies.
10751 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
10752 (TARGET_INITIALIZER): this.
10753 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
10754 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
10755 * bb-reorder.c: Include target.h.
10756 (reorder_basic_blocks): Skip if cannot modify jumps.
10757 * cfgcleanup.c: Include target.h.
10758 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
10760 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10762 * config/mips/mips.md (casesi_internal, casesi_internal_di):
10763 Protect jump delay slot instructions with .set noreorder and
10766 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10768 * config/mips/mips.md (casesi_internal_di): Calculate
10769 the index into the target offset table correctly.
10771 2002-02-08 Richard Henderson <rth@redhat.com>
10773 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
10774 * final.c (output_addr_const): Accept and discard SUBREG.
10775 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
10776 mark them unknown instead.
10777 (simplify_subtraction): Handle RTX_UNKNOWN.
10778 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
10780 2002-02-08 David Edelsohn <edelsohn@gnu.org>
10782 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
10784 2002-02-08 Richard Henderson <rth@redhat.com>
10786 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
10788 2002-02-08 Andreas Jaeger <aj@suse.de>
10790 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
10791 * config/i386/t-linux64: New file.
10793 2002-02-08 Jakub Jelinek <jakub@redhat.com>
10795 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
10796 * c-parse.in (compstmt): Clear last_expr_type.
10798 2002-02-07 Richard Henderson <rth@redhat.com>
10800 * loop.c (strength_reduce): Sink final_value when not
10803 2002-02-07 David O'Brien <obrien@FreeBSD.org>
10805 * config/sparc/freebsd.h: Fix mismatched spec {.
10807 2002-02-07 Richard Henderson <rth@redhat.com>
10809 * cfgrtl.c: Include recog.h and insn-config.h.
10810 (keep_with_call_p): Fix general_operand invocation.
10811 * Makefile.in (cfgrtl.o): Update dependencies.
10813 2002-02-07 Kazu Hirata <kazu@hxi.com>
10815 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
10816 comment. Accept HImode only if TARGET_H8300.
10818 2002-02-07 Eric Christopher <echristo@redhat.com>
10820 * config/mips/crtn.asm: Cleanup #ifdefs.
10822 2002-02-07 Eric Christopher <echristo@redhat.com>
10824 * config/mips/crti.asm: Add changes for mips16. mips16 uses
10825 register 7 as RA instead of $31.
10826 * config/mips/crtn.asm: Ditto.
10827 * config/mips/mips.c (mips_move_2words): Add case for
10828 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
10829 (compute_frame_size): Fix typo.
10830 (save_restore_insns): Ditto. Make documentation about using
10831 register $7 as return register more precise.
10832 (mips_expand_epilogue): Fix comment. Add code to work around not
10833 being able to add to the stack pointer directly.
10834 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
10835 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
10838 2002-02-07 Tom Rix <trix@redhat.com>
10840 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
10841 immediates in ldu and stdu DS opcode field.
10842 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
10843 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
10844 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
10846 2002-02-07 Jeff Sturm <jsturm@one-point.com>
10848 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
10849 offset for stack bias.
10851 2002-02-07 H.J. Lu <hjl@gnu.org>
10853 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
10855 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
10857 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
10859 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
10861 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
10862 * i386.c (x86_order_regs_for_local_alloc): New global function.
10863 * i386.h (REG_ALLOC_ORDER): CLeanup.
10864 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
10866 2002-02-07 Richard Henderson <rth@redhat.com>
10868 PR optimization/2463
10869 * alias.c (find_base_value): Recall base values for fixed hard regs.
10870 * loop.c (loop_regs_update): Don't use single_set on non-insns.
10872 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
10874 * config/mips/mips.md (define_delay) [mips16]: Adjust required
10877 2002-02-06 Richard Henderson <rth@redhat.com>
10880 * stmt.c (resolve_operand_name_1): Take more care with mixed
10881 named and unnamed operands.
10883 2002-02-06 Janis Johnson <janis187@us.ibm.com>
10884 Jan Hubicka <jh@suse.cz>
10886 * loop.c (remove_constant_addition): Avoid clobbering a shared
10889 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
10891 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
10892 * config/s390/t-linux64: New file.
10893 * config/s390/libgcc-glibc.ver: New file.
10895 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
10897 * config/s390/linux64.h: Delete file.
10898 * config/s390/s390x.h: New file.
10899 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
10900 as target header file.
10901 * config/s390/linux.h (TARGET_VERSION): Define depending on
10902 DEFAULT_TARGET_64BIT.
10903 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
10904 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
10905 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
10906 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
10907 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
10908 (EXTRA_SPEC): New define.
10909 * config/s390/s390.h (TARGET_VERSION): Define depending on
10910 DEFAULT_TARGET_64BIT.
10911 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
10913 2002-02-06 Jason Merrill <jason@redhat.com>
10915 * c-decl.c (finish_function): Warn about a non-void function with
10916 no return statement and no abnormal exit.
10917 (current_function_returns_abnormally): New variable.
10918 (start_function): Clear it.
10919 (struct c_language_function): Add returns_abnormally.
10920 (push_c_function_context): Save it.
10921 (pop_c_function_context): Restore it.
10922 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
10923 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
10924 an explicit return type.
10925 * c-tree.h: Declare current_function_returns_abnormally.
10926 (C_FUNCTION_IMPLICIT_INT): New macro.
10927 * c-typeck.c (build_function_call): Set it.
10928 (c_expand_return): Set current_function_returns_value even if the
10929 value is erroneous.
10931 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10934 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
10935 unsafe for reevaluation.
10937 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10940 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
10941 EXPR_STMT, but COMPOUND_STMT, recurse into it.
10943 2002-02-06 Richard Henderson <rth@redhat.com>
10945 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
10946 be a general_operand. Dest for function value must be a pseudo.
10948 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10950 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
10951 as SYMBOL_REFs from the constant pool.
10953 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
10955 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
10956 passed by invisible reference.
10958 2002-02-05 Richard Henderson <rth@redhat.com>
10960 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
10962 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
10964 Implement using "base addresses" in insn operands as default.
10965 * config/mmix/mmix.c (mmix_conditional_register_usage): if
10966 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
10967 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
10968 used to read the rtx value.
10969 (mmix_target_asm_function_epilogue): Fix spacing.
10970 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
10971 (mmix_legitimate_address): Ditto.
10972 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
10973 should be loaded with a GETA insn. Don't allocate needless extra
10974 char for nul termination and fix misleading comment.
10975 (mmix_print_operand_address): Handle constants if
10976 TARGET_BASE_ADDRESSES.
10977 (mmix_output_register_setting): Use base addressing if
10978 TARGET_BASE_ADDRESSES and the number of insns is 3.
10979 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
10980 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
10981 to use R as constraint, add LDA to match s.
10982 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
10983 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
10984 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
10985 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
10986 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
10987 order with other fixed registers.
10988 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
10989 other parameter/call-clobbered registers.
10990 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
10991 -mbase-addresses, -mno-base-addresses.
10992 (MMIX Options): Ditto.
10994 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10996 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
10998 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
11000 * config/rs6000/altivec.h: Change elem to _S_elem.
11002 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
11004 * config/netbsd.h (WCHAR_TYPE): Define.
11005 (WCHAR_TYPE_SIZE): Ditto.
11006 (WINT_TYPE): Ditto.
11007 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
11008 (WCHAR_UNSIGNED): Ditto.
11009 (WCHAR_TYPE_SIZE): Ditto.
11010 (WINT_TYPE): Ditto.
11011 * config/arm/netbsd.h: Likewise.
11012 * config/i386/netbsd-elf.h: Likewise.
11013 * config/i386/netbsd.h: Likewise.
11014 * config/m68k/netbsd-elf.h: Likewise.
11015 * config/m68k/netbsd.h: Likewise.
11016 * config/ns32k/netbsd.h: Likewise.
11017 * config/sparc/netbsd.h: Likewise.
11018 * config/vax/netbsd.: Likewise.
11020 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
11022 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
11023 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
11024 (TARGET_INITIALIZER): this.
11025 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
11026 (BITFIELD_NBYTES_LIMITED): Markup fix.
11027 * tree.h (default_ms_bitfield_layout_p): Declare.
11028 (record_layout_info): Added prev_field.
11029 * tree.c (default_ms_bitfield_layout_p): New fn.
11030 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
11031 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
11032 * stor-layout.c: Include target.h.
11033 (start_record_layout): Initialize prev_field.
11034 (place_field): Handle MS bit-field layout, and disregard
11035 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
11036 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
11037 * Makefile.in (stor-layout.o): Adjust dependencies.
11039 2002-02-05 Jason Merrill <jason@redhat.com>
11041 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
11043 2002-02-05 Andreas Jaeger <aj@suse.de>
11045 * crtstuff.c: Fix comments.
11047 2002-02-05 Richard Henderson <rth@redhat.com>
11050 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
11051 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
11054 * config/mips/mips.c (function_arg): Handle TImode.
11055 (function_arg_advance): Likewise.
11057 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11059 * config/rs6000/altivec.h (vec_step_help): Rename to
11062 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11064 * config/rs6000/altivec.h: Fix typos.
11066 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
11068 * config/arm/netbsd.h: Correct a comment.
11070 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11072 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
11073 building void typed builtins.
11075 * config/rs6000/altivec.h (vec_ld*): Fix typos.
11076 (vec_step): Implement for C++.
11078 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11080 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
11082 2002-02-04 Richard Henderson <rth@redhat.com>
11084 * combine.c (nonzero_bits): Re-introduce special case for
11085 sp/fp/ap wrt REGNO_POINTER_ALIGN.
11087 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11089 * doc/extend.texi: Warn about unsupported usage of altivec
11092 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
11093 (altivec_predicate_*): New.
11095 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
11096 Add C++ version of vec_*() functions.
11098 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
11099 (bdesc_2arg): Remove altivec predicates.
11100 (altivec_expand_builtin): Handle predicates.
11101 (altivec_init_builtins): Handle predicates.
11102 (altivec_expand_predicate_builtin): New.
11104 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11106 * pa.c (DO_FRAME_NOTES): Move forward.
11107 (store_reg): Revise handling of frame notes.
11108 (load_reg): Likewise.
11109 (set_reg_plus_d): Likewise.
11110 (hppa_expand_prologue): Likewise.
11111 (hppa_expand_epilogue): Likewise.
11113 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11115 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
11117 2002-02-04 Jakub Jelinek <jakub@redhat.com>
11119 PR c/4475, c++/3780:
11120 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
11121 * c-common.h (SWITCH_TYPE): Define.
11122 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
11123 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
11124 Rename spareness variable to sparseness.
11125 (expand_end_case_type): Renamed from expand_end_case, use orig_type
11126 if non-NULL instead of TREE_TYPE (orig_index).
11127 * tree.h (expand_end_case_type): Renamed from expand_end_case.
11128 (expand_end_case): Define using expand_end_case_type.
11129 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
11130 to expand_end_case_type.
11131 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
11133 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11135 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
11136 (BIGGEST_ALIGNMENT): Change to 128.
11138 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11140 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
11142 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
11144 * pa.md (call_internal_reg_64bit): Remove unused variable.
11146 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
11148 * config/arm/arm.h (machine_function): Add uses_anonymous_args
11150 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
11151 * config/arm/arm.c (current_function_anonymous_args): Delete,
11152 replace uses with cfun->machine->uses_anonymous_args.
11153 (arm_reorg): Do not reset uses_anonymous_args.
11155 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
11156 any geenral register.
11158 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
11160 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
11163 2002-02-04 Richard Henderson <rth@redhat.com>
11165 * combine.c (force_to_mode): Remove STACK_BIAS code.
11166 (nonzero_bits): Likewise. Replace sp/fp special case with
11167 REGNO_POINTER_ALIGN.
11169 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
11170 (HARD_FRAME_POINTER_REGNUM): New.
11171 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
11172 (FIXED_REGS, CALL_USED_REGS): Update.
11173 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
11174 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
11175 (HARD_REGNO_NREGS): Update for SFP.
11176 (STACK_POINTER_OFFSET): Include bias here ...
11177 (FIRST_PARM_OFFSET): ... not here.
11178 (STACK_BIAS): Remove.
11179 (INIT_EXPANDERS): New.
11180 (STARTING_FRAME_OFFSET): Do not include bias.
11181 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
11182 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
11183 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
11184 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
11185 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
11186 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
11187 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
11188 (MUST_SAVE_REGISTER): Likewise.
11189 (sparc_flat_function_prologue): Likewise.
11190 (sparc_flat_function_epilogue): Likewise.
11191 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
11192 (sparc_init_modes): SFP is GENERAL_REGS.
11193 (sparc_builtin_saveregs): SFP does not have bias applied.
11195 2002-02-04 Richard Henderson <rth@redhat.com>
11197 * config/alpha/alpha.c (current_function_is_thunk): Don't check
11198 current_function_is_thunk.
11199 (alpha_sa_mask): Distinguish between current_function_is_thunk
11200 called from ASM_OUTPUT_MI_THUNK and not.
11201 (alpha_does_function_need_gp): Thunks always need gp.
11202 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11203 (alpha_output_mi_thunk_osf): New.
11204 * config/alpha/alpha-protos.h: Update.
11205 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
11207 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
11209 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
11210 function types, not when they're taken away.
11212 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
11214 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
11215 CODE_LABEL and jump table when replacing a table jump with a
11218 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11220 * config/s390/s390-protos.h (legitimize_la_operand,
11221 s390_secondary_input_reload_class, s390_plus_operand,
11222 s390_expand_plus_operand): Add prototypes.
11224 config/s390/s390.c (s390_secondary_input_reload_class,
11225 s390_plus_operand, s390_expand_plus_operand): New functions.
11227 (struct s390_address): New member 'pointer'.
11228 (s390_decompose_address): Compute it.
11229 (legitimate_la_operand_p): Use it.
11230 (legitimize_la_operand): New function.
11231 (movti, movdi, movdf splitters): Call it.
11233 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
11234 (PREDICATE_CODES): Add s390_plus_operand.
11236 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
11237 (la_ccclobber): Allow GENERAL_REGS as output operand.
11239 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
11240 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
11241 (*la_64, *la_31, reload_indi, reload_insi): ... these.
11243 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11245 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
11246 register names for regular asm () construct.
11248 2002-02-04 Jakub Jelinek <jakub@redhat.com>
11250 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
11253 2002-02-04 Jakub Jelinek <jakub@redhat.com>
11255 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
11258 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
11260 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
11261 constant pool to be identical by string address and index.
11263 2002-02-04 Anthony Green <green@redhat.com>
11265 * output.h (SECTION_OVERRIDE): Define.
11266 * varasm.c (named_section): Obey SECTION_OVERRIDE.
11268 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
11270 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
11271 by existing arm*-*-netbsd* (a.out) target.
11272 (ns32k-*-netbsdelf*): Likewise.
11273 (sparc-*-netbsdelf*): Likewise.
11274 (vax-*-netbsdelf*): Likewise.
11276 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
11278 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
11279 headers and libobjc headers.
11281 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
11283 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
11284 (_mingw.h): Remove duplicate include.
11286 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
11288 * config.gcc: Set cpu_type to m68k for 68010, as well.
11289 (m68010-*-netbsdelf*): New...
11290 (m68k*-*-netbsdelf*): ...targets.
11291 * config/m68k/netbsd-elf.h: New file.
11293 2002-02-02 Kazu Hirata <kazu@hxi.com>
11295 * config/h8300/h8300.c (hand_list): Move inside function_arg.
11297 2002-02-02 Kazu Hirata <kazu@hxi.com>
11299 * config/h8300/h8300.c (h8_push_ops): Move inside
11301 (h8_pop_ops): Likewise.
11302 (h8_move_ops): Likewise.
11304 2002-02-02 Kazu Hirata <kazu@hxi.com>
11306 * config/h8300/h8300.c (os_task): Make it static.
11307 (monitor): Likewise.
11308 (pragma_saveall): Likewise.
11310 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
11312 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
11313 constant is a valid sign-extension for Pmode.
11315 2002-02-02 Kazu Hirata <kazu@hxi.com>
11317 * config/h8300/h8300.c: Fix formatting.
11319 2002-02-02 Kazu Hirata <kazu@hxi.com>
11321 * config/h8300/h8300.md: Fix formatting.
11323 2002-02-02 Kazu Hirata <kazu@hxi.com>
11325 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
11326 predicates of operands[1]. Split the patterns for each
11329 2002-02-02 Kazu Hirata <kazu@hxi.com>
11331 * config/h8300/h8300.md (xor patterns): Tighten the predicates
11332 of operands[1] to register_operand.
11334 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
11336 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
11337 * cpphash.c (_cpp_init_hashtable): Similarly.
11338 * cppinit.c (cpp_create_reader): Default the signed_char flag.
11339 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
11340 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
11341 (cpp_handle_option): Handle the new options.
11342 * cpplex.c (cpp_interpret_charconst): Use new flag.
11343 * cpplib.h (struct cpp_options): New member signed_char.
11344 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
11345 (cpp_options): Handle -fsigned-char and -funsigned-char.
11346 (static_specs): Remove signed_char_spec.
11347 (do_spec1): Don't handle %c.
11348 * system.h: Poison SIGNED_CHAR_SPEC.
11349 * tradcif.y (yylex): Use flag_signed_char.
11350 * tradcpp.h (flag_signed_char): New.
11351 * tradcpp.c (flag_signed_char): New.
11352 (main): Handle new command-line options.
11353 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
11355 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
11356 * avr/avr.h: Remove old comments.
11357 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
11358 (CC1_SPEC): Pass -fsigned-char if -mic*.
11359 (SIGNED_CHAR_SPEC): Remove.
11361 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
11363 2002-02-01 Eric Christopher <echristo@redhat.com>
11365 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
11366 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
11367 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
11368 (ASM_OUTPUT_REG_POP): Ditto.
11370 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
11372 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
11375 2002-02-02 Jakub Jelinek <jakub@redhat.com>
11377 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
11379 2002-02-02 Jakub Jelinek <jakub@redhat.com>
11382 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
11385 2002-02-01 Janis Johnson <janis187@us.ibm.com>
11387 * cfganal.c: Include tm_p.h.
11388 (keep_with_call_p): Fix the test that determines if a register holds
11389 the return value of a call.
11391 2002-02-01 DJ Delorie <dj@redhat.com>
11393 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
11394 we are given conflicting registers, switch to the other one we
11395 had allocated for us.
11396 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
11397 as TImode so we know when the "other" register is available.
11399 2002-02-01 David O'Brien <obrien@FreeBSD.org>
11401 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
11404 2002-02-01 Janis Johnson <janis187@us.ibm.com>
11406 * cfganal.c (keep_with_call_p): New function.
11407 (flow_call_edges_add): Prevent splitting a block between a call and
11408 a single-set instruction that should be kept in the same block.
11410 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
11412 * doc/install.texi (avr): Update outdated URL.
11414 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
11416 * config/stormy16/stormy16.md (pushqi): New.
11420 (movhi): Remove stack operands.
11422 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
11423 nonimmediate_nonstack_operand.
11424 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
11426 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
11429 2002-01-31 Jason Merrill <jason@redhat.com>
11431 * Makefile.in (c-parse.c): Handle .output file.
11432 * objc/Make-lang.in (objc-parse.c): Likewise.
11434 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
11436 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
11437 the -me[lb] option is given. Don't output the default flag
11440 2002-01-31 Zack Weinberg <zack@codesourcery.com>
11442 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
11443 the primary source file; this has not been done yet.
11444 * c-decl.c (c_expand_body): Reset input_filename from
11445 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
11447 2002-01-31 Kazu Hirata <kazu@hxi.com>
11449 * rtlanal.c (subreg_regno_offset): Do not use
11450 SUBREG_REGNO_OFFSET.
11451 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
11452 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
11454 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
11456 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
11457 version rather than GNATS version in --version output.
11459 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
11461 * ifcvt.c (noce_process_if_block): Make a copy of the destination
11462 when copying back from a temporary.
11464 2002-01-30 Richard Henderson <rth@redhat.com>
11466 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
11467 and new_dest are the same.
11469 2002-01-30 Richard Henderson <rth@redhat.com>
11472 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
11473 * rtl.c (note_insn_name): Update.
11474 * emit-rtl.c (remove_unnecessary_notes): Kill it.
11475 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
11476 to perform loop rotation.
11477 (expand_exit_loop_top_cond): New.
11478 * tree.h (expand_exit_loop_top_cond): Declare it.
11479 * c-semantics.c (genrtl_while_stmt): Use it.
11480 (genrtl_for_stmt): Likewise.
11482 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
11484 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
11485 arguments to 64-bit boundaries on 64-bit ABIs.
11487 2002-01-30 Steve Ellcey <sje@cup.hp.com>
11489 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
11491 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
11493 * c-decl.c (grokdeclarator): Handle type being a typedef for an
11496 2002-01-30 David O'Brien <obrien@FreeBSD.org>
11498 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
11499 * config/sparc/sparc_bi.h: Remove file.
11500 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
11502 2002-01-30 Richard Henderson <rth@redhat.com>
11504 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
11506 2002-01-30 Zack Weinberg <zack@codesourcery.com>
11508 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
11510 2002-01-30 Jason Merrill <jason@redhat.com>
11512 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
11513 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
11514 (reg_save): Use DW_CFA_offset_extended_sf instead.
11516 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
11518 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11520 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
11523 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
11525 * rs6000.md ("*call_value_local32"): Remove constraints.
11526 ("*call_value_local64"): Same.
11527 ("*call_value_indirect_nonlocal_aix32"): Same.
11528 ("*call_value_nonlocal_aix32"): Same.
11529 ("*call_value_indirect_nonlocal_aix64"): Same.
11530 ("*call_value_nonlocal_aix64"): Same.
11531 ("*call_value_nonlocal_sysv"): Same.
11533 2002-01-29 Richard Henderson <rth@redhat.com>
11535 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
11537 2002-01-29 Richard Henderson <rth@redhat.com>
11539 * expr.c (force_operand): Ignore flag_pic for detecting pic
11541 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
11542 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
11543 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
11544 instead of open-coded loop.
11545 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
11546 be fixed when in use.
11548 2002-01-29 Richard Henderson <rth@redhat.com>
11550 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
11551 * sched-rgn.c (propagate_deps): Update them.
11552 * sched-deps.c (sched_analyze_insn): Update them. Flush the
11553 clobbers list when either gets too long.
11555 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11557 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
11558 and INDEX_REGS the same as GENERAL_REGS.
11559 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
11561 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
11563 * tree.c (build_nonstandard_integer_type): Correct prototype.
11565 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
11567 * config/s390/s390.md (movstrsico, movstrdix_64,
11568 movstrsix_31): Remove, replace by ...
11569 (movstrdi_short, movstrsi_short, movstrdi_long,
11570 movstrsi_long): ... these. New.
11571 (movstrdi, movstrsi): Adapt.
11573 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
11574 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
11575 Remove unnecessary CC clobber.
11576 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
11577 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
11579 (divmoddi4): Don't partially initialize TImode register.
11581 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
11583 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
11585 2002-01-29 Richard Henderson <rth@redhat.com>
11587 * flow.c (print_rtl_and_abort): Remove.
11588 (print_rtl_and_abort_fcn): Remove.
11589 (verify_local_live_at_start): Use dump_bb instead.
11590 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
11591 (verify_wide_reg_1): Return 2 on mode test failure.
11593 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
11595 PR c/3325, c/3326, c/2511, c/3347
11596 * c-decl.c (enum_decl_context): Remove BITFIELD.
11597 (grokdeclarator): Take bitfield width as an input.
11598 Ensure bitfields are given the correct type. Perform
11599 bitfield width validation with build_bitfield_integer_type
11600 rather than waiting for finish_struct.
11601 (grok_typename, grok_typename_in_parm_context, start_decl,
11602 push_parmdecl, grokfield, start_function): Update calls to
11604 (build_bitfield_integer_type): New function.
11605 (finish_struct): Move bitfield validation to grokdeclarator
11606 and build_bitfield_integer_type.
11607 * tree.c (build_nonstandard_integer_type): New function.
11608 * tree.h (build_nonstandard_integer_type): New prototype.
11610 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
11612 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11615 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
11616 don't ignore unrecognized -W* options.
11617 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
11618 * cpplib.h (cpp_handle_option): Adjust prototype.
11619 * c-decl.c (c_decode_options): Pass 0 as last argument to
11623 * gcc.c (cpp_unique_options): Split from cpp_options.
11624 (cpp_options): Source cpp_unique_options.
11625 (default_compilers): Use cpp_unique_options instead of cpp_options
11626 when used together with cc1_options.
11627 (static_specs): Add cpp_unique_options.
11628 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
11629 when used together with cc1_options.
11631 2002-01-29 Kazu Hirata <kazu@hxi.com>
11633 * config/h8300/h8300-protos.h: Update the prototype of
11635 * config/h8300/h8300.c (output_a_shift): Remove an unused
11636 argument 'insn'. Remove redundant code.
11637 * config/h8300/h8300.md: Adust to the new prototype of
11640 2002-01-29 Kazu Hirata <kazu@hxi.com>
11642 * config/h8300/h8300-protos.h: Update the prototypes of
11643 emit_a_rotate and expand_a_rotate.
11644 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
11645 first argument to 'enum rtx_code'.
11646 (expand_a_rotate): Likewise.
11648 2002-01-28 Kazu Hirata <kazu@hxi.com>
11650 * config/h8300/h8300-protos.h: Update the prototype of
11652 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
11654 * config/h8300/h8300.md: Adjust to the new prototype.
11656 2002-01-28 Kazu Hirata <kazu@hxi.com>
11658 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
11661 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
11663 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
11664 is a fixed register before returning pic_offset_table_rtx.
11665 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
11666 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
11668 2002-01-28 Jason Merrill <jason@redhat.com>
11670 * dwarf2.h: Sync with src version.
11672 2002-01-28 Paul Koning <pkoning@equallogic.com>
11674 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
11675 BT_FN_VOID_PTR_VAR.
11676 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
11677 * doc/extend.texi (__builtin_prefetch): Update documentation:
11678 first argument is now const void ptr.
11680 2002-01-28 Kazu Hirata <kazu@hxi.com>
11682 * config/h8300/h8300-protos.h: Remove an unused prototype.
11684 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
11686 * toplev.c (lang_independent_init): Round up identifier size.
11688 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
11690 * config.gcc: Revert previous change.
11692 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
11694 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
11696 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
11698 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
11699 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
11700 other non-elf netbsd config frags.
11701 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
11702 collect2 will does that.
11703 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
11704 shared-lib frobbing will work.
11706 2002-01-28 Kazu Hirata <kazu@hxi.com>
11708 * config/h8300/h8300.h: Fix formatting.
11709 * config/h8300/h8300.md: Likewise.
11711 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
11713 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
11714 the old, removed AAA_standards fix.
11715 * fixinc/fixincl.x: Rebuilt.
11717 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
11719 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
11720 atexit call in crtbegin, hooked in after call to frame_dummy;
11721 register EH before registering __fini__start.
11723 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
11725 * config/rs6000/altivec.h: Remove spurious semicolons.
11727 2002-01-27 Kazu Hirata <kazu@hxi.com>
11729 * config/h8300/h8300.md: Replace dead bit extraction patterns
11730 with ones that work.
11732 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11734 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
11735 if not STRICT_ALIGNMENT.
11736 * rtl.h (MEM_ALIGN): Likewise.
11738 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
11740 * doc/invoke.texi (-fdump-translation-unit): Revert this
11741 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
11743 2002-01-27 Kazu Hirata <kazu@hxi.com>
11745 * config/h8300/h8300.md (define_constants): New.
11746 (anonymous patterns) Use defined constants appropriately.
11748 2002-01-27 Kazu Hirata <kazu@hxi.com>
11750 * config/h8300/h8300.c (function_arg): Remove redundant code.
11752 2002-01-26 Richard Henderson <rth@redhat.com>
11754 * sched-deps.c (reg_pending_uses_head): New.
11755 (reg_pending_barrier): Rename from reg_pending_sets_all.
11756 (find_insn_list): Don't mark inline.
11757 (find_insn_mem_list): Remove.
11758 (add_dependence_list, add_dependence_list_and_free): New.
11759 (flush_pending_lists): Replace only_write param with separate
11760 for_read and for_write parameters. Update all callers. Use
11761 add_dependence_list_and_free.
11762 (sched_analyze_1): Do not add reg dependencies here; just set
11763 the pending bits. Use add_dependence_list.
11764 (sched_analyze_2): Likewise.
11765 (sched_analyze_insn): Replace schedule_barrier_found with
11766 reg_pending_barrier. Add all dependencies for pending reg
11767 uses, sets, and clobbers.
11768 (sched_analyze): Don't add reg dependencies for calls, just
11769 set pending bits. Use regs_invalidated_by_call. Treat
11770 sched_before_next_call as a normal list, not a fake insn.
11771 (init_deps): No funny init for sched_before_next_call.
11772 (free_deps): Free pending mems lists. Don't zero reg_last.
11773 (init_deps_global): Init reg_pending_uses.
11774 (finish_deps_global): Free it.
11775 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
11776 (find_insn_mem_list): Remove.
11777 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
11778 (propagate_deps): Use them. Zero temp mem lists.
11780 2002-01-26 Richard Henderson <rth@redhat.com>
11782 * Makefile.in (CRTSTUFF_CFLAGS): New.
11783 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
11784 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
11785 crtstuff.c instead of alpha assembly version.
11786 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
11787 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
11788 not FORCE_{INIT,FINI}_SECTION_ALIGN.
11789 (__do_global_dtors_aux): Mark used.
11790 (frame_dummy, __do_global_ctors_aux): Mark used.
11791 (fini_dummy, init_dummy): Remove.
11793 * config/alpha/crtbegin.asm: Remove file.
11794 * config/alpha/crtend.asm: Remove file.
11795 * config/alpha/t-crtbe: Remove file.
11796 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
11797 (LINK_EH_SPEC): New.
11799 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
11800 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
11801 calling constructors.
11802 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
11804 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
11805 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
11806 CRT_END_INIT_DUMMY hack.
11807 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
11808 FORCE_{INIT,FINI}_SECTION_ALIGN.
11810 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
11811 FORCE_{INIT,FINI}_SECTION_ALIGN.
11813 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
11814 invocation sequence.
11815 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
11817 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
11818 (FORCE_CODE_SECTION_ALIGN): New.
11820 2002-01-26 Richard Henderson <rth@redhat.com>
11822 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
11824 2002-01-26 Richard Henderson <rth@redhat.com>
11826 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
11827 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
11829 2002-01-26 Kazu Hirata <kazu@hxi.com>
11831 * config/h8300/h8300.md: Remove bit extraction patterns that
11832 cannot be triggered.
11833 Restrict each bit extraction pattern to a variant on which the
11836 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
11838 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
11840 2002-01-26 Kazu Hirata <kazu@hxi.com>
11842 * config/h8300/h8300.md: Remove bit test patterns that cannot
11844 Restrict each bit test pattern to a variant on which the
11847 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11849 * builtins.c (expand_builtin_strncat): Remove redundant check for
11852 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11854 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
11856 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
11859 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11861 * dbxout.c (dbxout_init): Use assemble_name rather than just
11862 stripping off the first character.
11863 (dbxout_source_file): Likewise.
11865 2002-01-25 DJ Delorie <dj@redhat.com>
11867 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
11868 using rtx_equal_p, not by comparing pointers.
11870 2002-01-25 Steve Ellcey <sje@cup.hp.com>
11872 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
11873 for PIC_OFFSET_TABLE_REGNUM.
11874 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
11876 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11878 * config.gcc (x86_64-*-freebsd*): New target.
11879 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
11881 (i[34567]86-*-freebsd*): Don't include svr4.h.
11882 * config/i386/freebsd64.h: New file.
11884 2002-01-25 Douglas B Rupp <rupp@gnat.com>
11886 * config/alpha/x-vms (version): Make static.
11888 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
11889 in previous checkin.
11891 * Makefile.in (install-headers-cp): New target.
11892 * config.gcc (alpha-dec-*vms*): Install headers with
11895 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
11897 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
11900 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11902 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
11903 of compare_tree_int.
11904 (expand_builtin_strncat): Likewise.
11905 * c-decl.c (finish_struct): Use tree_low_cst.
11906 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
11907 * tree.c (compare_tree_int): Likewise.
11909 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
11911 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
11912 adjustments even if they are implemented by more than two insns.
11914 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
11916 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
11917 * df.h (struct ref): Kill B.
11918 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
11920 * basic-block.h (PROP_EQUAL_NOTES): New flag.
11921 * flow.c (propagate_one_insn): Use it.
11922 (mark_used_regs): Handle NIL.
11924 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11926 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
11929 2002-01-25 David Edelsohn <edelsohn@gnu.org>
11931 * rs6000.md (prefetch): Make address V4SI mode so that the address
11932 is restricted to legitimate form for instruction.
11934 2002-01-25 Bob Wilson <bob.wilson@acm.org>
11936 * doc/install.texi (xtensa-*-elf): New target.
11937 (xtensa-*-linux*): New target.
11938 * doc/contrib.texi: Add myself.
11940 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
11942 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
11943 purpose register to hold an SImode (or smaller) value.
11945 2002-01-25 Jakub Jelinek <jakub@redhat.com>
11947 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
11949 * crtstuff.c: Likewise.
11951 2002-01-25 Kazu Hirata <kazu@hxi.com>
11953 * config/h8300/h8300.md (negation patterns): Tighten
11954 predicates to register_operand.
11956 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
11958 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
11961 * builtins.c (expand_builtin_prefetch): Same.
11963 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11965 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
11968 2002-01-24 Kazu Hirata <kazu@hxi.com>
11970 * config/h8300/h8300.c (print_operand): Remove support for
11971 operand character 'A'.
11972 * config/h8300/h8300.md (three anonymous patterns): Replace
11973 operand character 'A' with either 'T' or 'S'.
11975 2002-01-24 Kazu Hirata <kazu@hxi.com>
11977 * config/h8300/h8300.c (print_operand): Remove support for
11978 operand character 'U'.
11980 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
11982 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
11984 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
11986 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
11987 values to be assigned to the stack pointer.
11989 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
11991 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
11992 to const_double needs to be done right for big-endian systems.
11994 2002-01-24 Jason Merrill <jason@redhat.com>
11997 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
11998 to can_throw_internal.
12000 2002-01-23 Richard Henderson <rth@redhat.com>
12002 * fold-const.c (fold): Change UINT_MAX test to check vs precision
12003 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
12005 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12007 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
12008 (symGOT2reg): Use them, then set as GOT value as unchanging.
12009 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
12010 as a temporary, if possible.
12011 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
12012 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
12014 2002-01-23 Kazu Hirata <kazu@hxi.com>
12016 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
12017 accept to accept 0x80 as operands[2].
12019 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12021 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
12023 2002-01-23 Richard Henderson <rth@redhat.com>
12025 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
12027 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
12029 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
12030 (parmlist_or_identifiers_1): Verify that only a parmlist follows
12033 2002-01-23 Richard Henderson <rth@redhat.com>
12035 * expr.c (move_by_pieces_1): Extend size before negation.
12037 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
12038 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
12039 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
12040 * config/m68k/t-m68kelf: Likewise.
12042 2002-01-23 Bob Wilson <bob.wilson@acm.org>
12044 * config/xtensa/elf.h: New file.
12045 * config/xtensa/lib1funcs.asm: New file.
12046 * config/xtensa/lib2funcs.S: New file.
12047 * config/xtensa/linux.h: New file.
12048 * config/xtensa/t-xtensa: New file.
12049 * config/xtensa/xtensa-config.h: New file.
12050 * config/xtensa/xtensa-protos.h: New file.
12051 * config/xtensa/xtensa.c: New file.
12052 * config/xtensa/xtensa.h: New file.
12053 * config/xtensa/xtensa.md: New file.
12054 * config.gcc (xtensa-*-elf*): New target.
12055 (xtensa-*-linux*): New target.
12056 * cse.c (canon_hash): Compare rtx pointers instead of register
12057 numbers. This is required for the Xtensa port.
12058 * integrate.c (copy_insn_list): Handle case where the static
12059 chain is in memory and the memory address has to be copied to
12061 * doc/invoke.texi (Option Summary): Add Xtensa options.
12062 (Xtensa Options): New node.
12063 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
12065 2002-01-23 Zack Weinberg <zack@codesourcery.com>
12067 * diagnostic.c (internal_error): Do ICE suppression only
12068 when ENABLE_CHECKING is not defined.
12070 * c-typeck.c (require_complete_type): Return error_mark_node
12071 if type is error_mark_node.
12073 2002-01-23 Janis Johnson <janis187@us.ibm.com>
12075 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
12076 -Os and issue a warning.
12078 2002-01-23 Zack Weinberg <zack@codesourcery.com>
12080 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
12081 current (lack of) need for host configuration by hand.
12083 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
12084 references. Documentation of some target macros moved from
12085 hostconfig.texi to tm.texi.
12087 2002-01-23 Will Cohen <wcohen@redhat.com>
12089 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
12092 2002-01-23 Kazu Hirata <kazu@hxi.com>
12094 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
12097 2002-01-23 Jason Merrill <jason@redhat.com>
12099 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
12101 * function.c (assign_parms): Don't put args of inline functions
12102 into registers when not optimizing.
12104 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
12106 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
12107 (prologue_use): New pattern.
12108 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
12109 preference to gen_rtx_USE.
12110 (thumb_expand_prologue): Use gen_prologue_use in preference to
12112 (thumb_expand_epilogue): Use gen_prologue_use in preference to
12115 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
12117 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
12119 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
12122 * doc/extend.texi: Correct documentation of __alignof__.
12124 2002-01-22 Zack Weinberg <zack@codesourcery.com>
12126 * params.h: Rename arguments of DEFPARAM so that it will be
12127 recognized as a translation keyword.
12129 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12131 * extend.texi: Document altivec functions.
12132 Fix N-bit adjectives in X86 builtin documentation.
12134 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
12136 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
12137 auto_inc_dec values.
12139 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
12141 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
12143 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
12145 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
12147 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
12149 2002-01-22 Richard Henderson <rth@redhat.com>
12151 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
12152 copy_insn not copy_rtx.
12154 2002-01-23 Alan Modra <amodra@bigpond.net.au>
12156 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
12157 "nonzero" as that might add "1" bits. Ensure "constop" is
12158 properly sign extened.
12159 (force_to_mode): Tweak for sign extended constop.
12161 2002-01-22 Richard Henderson <rth@redhat.com>
12163 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
12164 for_each_rtx instead of assuming we're already looking at the MEM.
12165 (split_small_symbolic_mem_operand): Likewise.
12166 * config/alpha/alpha.h (PREDICATE_CODES): Update.
12167 * config/alpha/alpha.md (small symbolic memory splitters): Update.
12169 2002-01-22 Richard Henderson <rth@redhat.com>
12171 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
12172 sequence number for the literal.
12173 (divmoddi_internal_er): Likewise.
12175 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
12178 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
12179 in LIBICONV variable.
12180 * configure: Regenerated.
12182 2002-01-22 Krister Walfridsson <cato@df.lth.se>
12184 * dependence.c (build_def_use): Remove array_idx.
12186 * dwarfout.c (last_filename): Remove.
12187 (output_compile_unit_die): Remove last_filename.
12189 2002-01-22 Roger Sayle <roger@eyesopen.com>
12190 Richard Henderson <rth@redhat.com>
12193 * fold-const.c (fold): Optimize unsigned comparisons against
12194 UINT_MAX (and similar unsigned constants).
12196 2002-01-22 Janis Johnson <janis187@us.ibm.com>
12198 * Makefile.in (loop.o): Depend on OPTABS_H.
12199 * loop.c (emit_prefetch_instructions): Check the prefetch operand
12200 against the predicate.
12203 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
12204 for the address operand.
12206 2002-01-22 Richard Henderson <rth@redhat.com>
12208 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
12210 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
12213 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
12214 preprocessor flags.
12216 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
12218 * config.gcc (x86_64-*-netbsd*): New target.
12219 * config/i386/netbsd64.h: New file.
12221 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12223 * regrename.c (kill_value): Fix typo.
12225 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
12227 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
12229 * config/rs6000/rs6000.h: Same.
12231 * function.c (instantiate_virtual_regs): Remove
12232 STARTING_FRAME_PHASE.
12233 (assign_stack_local_1): Same.
12234 Calculate frame phase.
12236 2002-01-22 Nick Clifton <nickc@redhat.com>
12238 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
12239 variable declaration to outer scope in order to simplify
12241 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
12242 arm_hard_regno_mode_ok.
12243 * config/arm/arm-protos.h: Add a prototype for
12244 arm_hard_regno_mode_ok.
12245 * config/arm/arm.c (soft_df_operand): Remove now redundant
12246 check for DImode values using IP_REGNUM.
12247 (nonimmediate_soft_df_operand): Remove now redundant check for
12248 DImode values using IP_REGNUM.
12249 (arm_hard_regno_mode_ok): New function. New check: make sure
12250 that DImode values are not stored in IP_REGNUM.
12252 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
12254 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
12256 2002-01-22 Jason Merrill <jason@redhat.com>
12258 * c-semantics.c (genrtl_compound_stmt): Only check nesting
12259 consistency if this COMPOUND_STMT is scoped.
12261 2002-01-22 Kazu Hirata <kazu@hxi.com>
12263 * predict.c: Fix formatting.
12264 * print-tree.c: Likewise.
12265 * protoize.c: Likewise.
12266 * real.h: Likewise.
12268 * sbitmap.h: Likewise.
12269 * scan.c: Likewise.
12270 * sched-deps.c: Likewise.
12271 * sched-vis.c: Likewise.
12272 * sdbout.c: Likewise.
12273 * sibcall.c: Likewise.
12275 * ssa-ccp.c: Likewise.
12276 * ssa-dce.c: Likewise.
12277 * stmt.c: Likewise.
12278 * stor-layout.c: Likewise.
12279 * system.h: Likewise.
12281 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12283 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
12284 if fits in bounds of base type.
12286 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
12287 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
12288 (add_bound_info, default): If can't find a context, make a
12290 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
12292 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
12294 * c-typeck.c (parser_build_binary_op): If result from
12295 build_binary_op is ERROR_MARK just return error_mark_node without
12296 further processing.
12298 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
12300 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
12301 Split a.out-specific bits into...
12302 * config/netbsd-aout.h: ...this.
12303 * config/netbsd-elf.h: New file.
12304 * config/alpha/netbsd-elf.h: Remove.
12305 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
12306 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
12307 (STARTFILE_SPEC): Remove redundant definition.
12308 (ENDFILE_SPEC): Likewise.
12309 (LINK_SPEC): Likewise.
12310 (CPP_SPEC): Likewise.
12311 (ASM_SPEC): Likewise.
12312 (LIB_SPEC): Likewise.
12313 (SWITCH_TAKES_ARG): Likewise.
12314 (TARGET_MEM_FUNCTIONS): Likewise.
12315 (CPP_PREDEFINES): Redefine.
12316 (ASM_FINAL_SPEC): Remove redefinition.
12317 (ASM_COMMENT_START): Redefine.
12318 (FUNCTION_PROFILER): Define.
12319 (TARGET_VERSION): Redefine.
12320 Comment and formatting cleanup.
12321 * config/i386/netbsd.h: Include <netbsd-aout.h>.
12322 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
12323 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
12324 big- or little-endian.
12325 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
12326 * config.gcc (*-*-netbsd*): Add definitions common to all
12328 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
12329 gnu_ld definitions. Add netbsd-elf.h to and remove
12330 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
12331 tmake_file, and don't lose previous tmake_file contents.
12332 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
12333 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
12334 gnu_ld definitions. Add netbsd-elf.h to tm_file.
12335 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
12336 (mipsel-*-netbsd*): Rename this to...
12337 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
12338 mips/little.h to tm_file for mips*el-*.
12339 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
12340 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
12341 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
12343 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
12345 * pa-protos.h (reg_before_reload_operand): New function prototype.
12346 * pa.c (reg_before_reload_operand): New function implementation.
12347 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
12348 contraints to "*m".
12350 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12352 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
12354 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
12356 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
12357 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
12358 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
12359 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
12360 (ENDFILE_SPEC): Undefine.
12361 (STARTFILE_SPEC): Redefine for PA.
12363 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12365 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
12367 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
12369 * config.gcc: Add entries to supported PowerPC --with-cpu
12372 2002-01-21 Jakub Jelinek <jakub@redhat.com>
12374 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
12375 true for 64-bit mode only SSE registers in 32-bit mode.
12377 2002-01-21 Kazu Hirata <kazu@hxi.com>
12379 * unwind-dw2.c: Fix formatting.
12380 * unwind-dw2-fde.c: Likewise.
12381 * unwind-dw2-fde.h: Likewise.
12382 * unwind-pe.h: Likewise.
12383 * varasm.c: Likewise.
12384 * varray.h: Likewise.
12386 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
12388 Remove workaround for register stack overwrite bug in mmix.
12389 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
12390 support for TARGET_REG_STACK_FILL_BUG.
12391 * config/mmix/mmix.h: Remove member has_call_without_parameters.
12392 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
12394 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
12395 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
12396 -mno-reg-stack-fill-bug-workaround.
12397 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
12398 machine member has_call_without_parameters.
12399 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
12400 -mreg-stack-fill-bug-workaround and
12401 -mno-reg-stack-fill-bug-workaround.
12402 (MMIX Options): Ditto.
12404 2002-01-21 Kazu Hirata <kazu@hxi.com>
12406 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
12408 Remove redundant code.
12410 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
12412 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
12413 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12414 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12415 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
12416 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
12417 out target macro definitions and non-target-specific comments
12418 mostly taken from old versions of the manual.
12420 2002-01-20 Kazu Hirata <kazu@hxi.com>
12422 * config/h8300/h8300.h: Fix comment formatting.
12423 * config/ia64/aix.h: Likewise.
12424 * config/ia64/ia64-protos.h: Likewise.
12425 * config/ia64/ia64.c: Likewise.
12426 * config/ia64/ia64.h: Likewise.
12427 * config/ia64/ia64intrin.h: Likewise.
12428 * config/ia64/linux.h: Likewise.
12429 * config/ia64/unwind-aix.c: Likewise.
12430 * config/ia64/unwind-ia64.c: Likewise.
12432 2002-01-20 Kazu Hirata <kazu@hxi.com>
12434 * config/h8300/h8300.c: Revise comments about shift code.
12436 2002-01-20 Kazu Hirata <kazu@hxi.com>
12438 * config/h8300/h8300.c (function_arg): Update a comment.
12440 2002-01-20 Kazu Hirata <kazu@hxi.com>
12442 * config/h8300/h8300.md: Update the comments at the beginning
12445 2002-01-20 Kazu Hirata <kazu@hxi.com>
12447 * config/i370/i370.c: Fix comment formatting.
12448 * config/i370/i370.h: Likewise.
12449 * config/i370/i370.md: Likewise.
12450 * config/i370/linux.h: Likewise.
12452 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12454 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
12456 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
12457 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
12458 in incomplete case.
12460 2002-01-20 Graham Stott <grahams@redhat.com>
12462 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
12464 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
12466 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
12468 2002-01-19 Tom Rix <trix@redhat.com>
12470 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
12472 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
12474 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
12476 * function.c (assign_stack_local_1): Adjust x_frame_offset with
12477 STARTING_FRAME_PHASE.
12478 (STARTING_FRAME_PHASE): New.
12479 (instantiate_virtual_regs): Check saneness of
12480 STARTING_FRAME_PHASE.
12482 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
12484 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12486 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
12488 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
12490 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
12491 be used for bootstrapping GCC 3.0.
12493 2002-01-18 Kazu Hirata <kazu@hxi.com>
12495 * config/h8300/h8300.md: Fix an insn length.
12497 2002-01-18 Kazu Hirata <kazu@hxi.com>
12499 * bitmap.h: Fix comment formatting.
12500 * combine.c: Likewise.
12501 * cppfiles.c: Likewise.
12502 * c-pragma.h: Likewise.
12503 * c-typeck.c: Likewise.
12505 * dwarf2out.c: Likewise.
12506 * function.c: Likewise.
12508 * genattrtab.c: Likewise.
12509 * gthr-win32.h: Likewise.
12510 * haifa-sched.c: Likewise.
12511 * predict.c: Likewise.
12512 * rtlanal.c: Likewise.
12514 * unwind-dw2-fde.h: Likewise.
12515 * unwind-pe.h: Likewise.
12516 * vmsdbgout.c: Likewise.
12518 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12520 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
12521 if type_required and passed decl.
12523 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
12525 * config.gcc (cpu_type): Include altivec.h in powerpc
12529 * config/rs6000/altivec.h: New.
12531 2002-01-17 David Edelsohn <edelsohn@gnu.org>
12533 * doc/install.texi (*-ibm-aix*): Update assembler and exception
12534 handling information.
12535 * doc/trouble.texi (Interoperation): Add libstdc++ information
12537 (Misunderstandings): Add template instantiation and static template
12538 member information for AIX.
12540 2002-01-17 Jason Merrill <jason@redhat.com>
12542 * dbxout.c (dbxout_type): Support const and volatile.
12544 * except.c (add_partial_entry): Remove backwards compatibility code.
12545 (end_protect_partials): Likewise.
12547 2002-01-17 Jakub Jelinek <jakub@redhat.com>
12549 * config/ia64/ia64.md (prologue_use): New.
12550 * config/ia64/ia64.c (ia64_expand_prologue): Use
12551 gen_prologue_use instead of gen_rtx_USE.
12552 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
12553 as CODE_FOR_pred_rel_mutex.
12554 (ia64_sched_reorder2): Likewise.
12556 2002-01-16 Eric Christopher <echristo@redhat.com>
12558 * config/mips/r3900.h: Reformat.
12559 (SUBTARGET_CPP_SIZE_SPEC): Remove.
12560 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
12561 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
12562 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
12563 * config/mips/t-elf: Remove mips3 multilib.
12565 2002-01-16 H.J. Lu <hjl@gnu.org>
12567 * config/mips/linux.h: Include "mips/abi64.h".
12569 2002-01-16 H.J. Lu <hjl@gnu.org>
12571 * config/mips/t-linux: New.
12573 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
12575 * config/mips/linux.h: Don't include "gofast.h".
12576 (INIT_SUBTARGET_OPTABS): Removed.
12578 2002-01-16 Kazu Hirata <kazu@hxi.com>
12580 * config/h8300/h8300-protos.h: Replace emit_a_shift with
12582 * config/h8300/h8300.c: Likewise.
12583 * config/h8300/h8300.md: Likewise.
12585 2002-01-16 Kazu Hirata <kazu@hxi.com>
12587 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
12588 spaces after an opcode name.
12589 (pushqi1_h8300hs): Likewise.
12590 (pushhi1_h8300hs): Likewise.
12592 2002-01-16 Kazu Hirata <kazu@hxi.com>
12594 * doc/extend.texi: Replace "option" with "attribute"
12597 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12599 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
12600 (and:DI () (const_int -8)).
12601 (split_small_symbolic_mem_operand): Split
12602 (mem (and:DI () (const_int -8)).
12604 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12607 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
12608 same way as TYPE_IMUL.
12609 (ultrasparc_sched_reorder): Likewise.
12610 * config/sparc/sparc.md (type): Add comment to update
12611 ultrasparc_sched_reorder when making changes.
12613 2002-01-16 Kazu Hirata <kazu@hxi.com>
12615 * doc/invoke.texi: Change the dump file name of block
12616 reordering pass from 28.bbro to 29.bbro.
12617 Mention -dk option.
12619 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
12621 * i386.md (minsf splitter): Fix pasto.
12623 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
12625 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
12626 to frame pointer initialisation instruction.
12627 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
12628 initialisation instruction.
12629 (soft_df_operand): Do not accept the IP register.
12630 (nonimmediate_soft_df_operand): Do not accept the IP register.
12632 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12635 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
12636 MASK_V8 being both set.
12638 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
12640 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
12641 insn for GOT register; add REG_MAYBE_DEAD notes instead.
12642 config/s390/s390.md (call, call_value): Add GOT register to
12643 CALL_INSN_FUNCTION_USAGE where needed.
12644 (call_exp, call_value_exp): New.
12646 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
12648 * config/arm/arm.c: General formatting tidy up.
12650 2002-01-16 Graham Stott <grahams@redhat.com>
12652 * calls.c (try_to_integrate): Use "(size_t)" intermediate
12653 cast and when casting an integer literal to "rtx" pointer.
12654 (expand_call): Likewise.
12655 * flow.c (try_pre_increment): Likewise.
12656 (find_use_as_address): Likewise.
12657 * integrate.c (expand_iline_function): Likewise.
12658 * regmove.c (try_auto_increment): Likewise.
12660 2002-01-16 Graham Stott <grahams@redhat.com>
12662 * sched-rgn.c (passed): Use sbitmap_free.
12663 (header): Likewise.
12665 (in_queue): Likewise.
12666 (in_stack): Likewise.
12668 2002-01-15 Eric Christopher <echristo@redhat.com>
12670 * flow.c (propagate_one_insn): Change to use fatal_insn.
12672 2002-01-15 Kazu Hirata <kazu@hxi.com>
12674 * expmed.c (extract_fixed_bit_field): Remove unused code.
12675 * system.h: Poison SLOW_ZERO_EXTEND.
12676 * doc/tm.texi: Remove.
12677 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
12678 * config/arm/arm.h: Likewise.
12679 * config/avr/avr.h: Likewise.
12680 * config/clipper/clipper.h: Likewise.
12681 * config/convex/convex.h: Likewise.
12682 * config/d30v/d30v.h: Likewise.
12683 * config/dsp16xx/dsp16xx.h: Likewise.
12684 * config/elxsi/elxsi.h: Likewise.
12685 * config/fr30/fr30.h: Likewise.
12686 * config/h8300/h8300.h: Likewise.
12687 * config/i370/i370.h: Likewise.
12688 * config/i386/i386.h: Likewise.
12689 * config/m68k/m68k.h: Likewise.
12690 * config/mips/mips.h: Likewise.
12691 * config/ns32k/ns32k.h: Likewise.
12692 * config/pdp11/pdp11.h: Likewise.
12693 * config/pj/pj.h: Likewise.
12694 * config/s390/s390.h: Likewise.
12695 * config/sh/sh.h: Likewise.
12696 * config/stormy16/stormy16.h: Likewise.
12697 * config/v850/v850.h: Likewise.
12698 * config/vax/vax.h: Likewise.
12699 * config/we32k/we32k.h: Likewise.
12701 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
12703 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
12704 (altivec_lvsl): Change constraint to b.
12705 (altivec_lvsr): Same.
12706 (altivec_lvebx): Same.
12707 (altivec_lvehx): Same.
12708 (altivec_lvewx): Same.
12709 (altivec_lvxl): Same.
12710 (altivec_lvx): Same.
12711 (altivec_stvx): Add parallel.
12712 (altivec_stvxl): Same.
12713 (altivec_stvehx): Same.
12714 (altivec_stvebx): Same.
12715 (altivec_stvebx): Same.
12717 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
12719 * config.gcc: Change altivec.h to altivec-defs.h.
12721 * config/rs6000/altivec.h: Delete.
12723 * config/rs6000/altivec-defs.h: Add.
12725 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
12727 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
12730 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
12731 less than or equal to eight bytes.
12733 * vax.md (andsi3): Remove constraints and change SET destination
12734 operand type to nonimmediate_operand.
12735 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
12736 when it is a CONST_INT.
12738 2002-01-15 Jason Merrill <jason@redhat.com>
12740 * c-common.def (FILE_STMT): New code.
12741 * c-common.c (statement_code_p): It's a statement.
12742 * c-common.h (stmt_tree_s): Add x_last_filename.
12743 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
12744 (last_expr_filename): New macro.
12745 * c-semantics.c (begin_stmt_tree): Initialize it.
12746 (add_stmt): If the filename changed, also insert a
12748 (expand_stmt): Handle seeing one.
12750 2002-01-15 Eric Christopher <echristo@redhat.com>
12752 * flow.c (propagate_one_insn): Add error message and print out
12753 insn for debugging.
12755 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
12757 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
12758 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
12759 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
12760 TRAMPOLINE_ALIGNMENT.
12761 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
12763 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
12764 PCC_BITFIELD_TYPE_MATTERS.
12765 * config/interix.h (STDC_VALUE): Remove. Use
12766 STDC_0_IN_SYSTEM_HEADERS.
12767 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
12768 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
12769 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
12771 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
12773 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
12774 not work on this platform currently.
12776 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
12778 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
12779 readonly_warning in _().
12781 2002-01-15 Douglas B Rupp <rupp@gnat.com>
12783 * gcc.c (delete_if_ordinary): Backout previous change.
12785 2002-01-15 Kazu Hirata <kazu@hxi.com>
12787 * config/h8300/h8300.c (print_operand): Remove support for
12788 unused operand characters.
12790 * read-rtl.c: Fix formatting.
12791 * real.c: Likewise.
12792 * recog.c: Likewise.
12793 * regclass.c: Likewise.
12794 * regmove.c: Likewise.
12795 * reg-stack.c: Likewise.
12796 * reload1.c: Likewise.
12797 * rtlanal.c: Likewise.
12799 2002-01-15 Kazu Hirata <kazu@hxi.com>
12801 * config/i386/i386.c: Fix formatting.
12803 2002-01-15 Jakub Jelinek <jakub@redhat.com>
12805 * c-typeck.c (process_init_element): Don't save_expr
12806 COMPOUND_LITERAL_EXPR if just its initializer will be used.
12808 2002-01-15 David Edelsohn <edelsohn@gnu.org>
12810 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
12811 emit optional traceback table if optimize_size or TARGET_ELF.
12812 * config/rs6000/rs6000.md (prefetch): New.
12814 2002-01-15 Andreas Jaeger <aj@suse.de>
12816 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
12818 2002-01-15 Kazu Hirata <kazu@hxi.com>
12820 * mips-tfile.c: Fix formatting.
12822 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
12824 * unroll.c (final_reg_note_copy): Fix previous commit.
12826 2002-01-14 Kazu Hirata <kazu@hxi.com>
12828 * config/h8300/h8300-protos.h: Remove the prototype for
12830 * config/h8300/h8300.c (eq_operator): Remove.
12832 2002-01-14 Richard Henderson <rth@redhat.com>
12834 * config/i386/i386.md (prefetch): Tidy.
12835 (prefetch_3dnow): Fix locality operand.
12837 2002-01-14 Richard Henderson <rth@redhat.com>
12839 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
12840 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
12842 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
12844 * reload1.c (reload_combine): Pass reg_sum replacement through
12845 copy_rtx in loop performing multiple changes.
12847 2002-01-14 Jakub Jelinek <jakub@redhat.com>
12849 * except.c (remove_unreachable_regions): New.
12850 (free_eh_status): Clear exception_handler_labels.
12851 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
12852 (find_exception_handler_labels): Don't add the same label more than
12854 (remove_exception_handler_label): Don't die if
12855 find_exception_handler_labels hasn't been called for the current
12858 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
12860 * toplev.c (rest_of_compilation): Rebuild jump labels after
12863 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
12865 * doc/extend.texi: Move documentation of X86 built-in functions
12867 * doc/invoke.texi: From here.
12868 * doc/sourcebuild.texi: Document location of documentation for
12869 machine built-in functions.
12871 2002-01-13 Christopher Faylor <cgf@redhat.com>
12873 * cppfiles.c (TEST_THRESHOLD): New macro.
12874 (SHOULD_MMAP): Ditto.
12875 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
12878 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
12880 * unroll.c (final_reg_note_copy): Properly handle
12882 (unroll_loops): Fix LOOP_CONDITION heuristics.
12884 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
12886 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
12887 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
12889 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
12891 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
12894 2002-01-14 Tom Rix <trix@redhat.com>
12896 * config/rs6000/rs6000.md: Fix typo with sradi.
12898 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
12900 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
12901 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
12902 (clrstrdi, clrstrsi): Adapt callers.
12904 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
12906 (movti splitter): Never use register 0 as base register.
12908 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
12910 * combine.c (simplify_shift_const): Always generate new rtx
12911 for shift expression instead of reusing given expression.
12913 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12915 * config/alpha/alpha.c (alpha_expand_mov): Don't call
12916 alpha_legitimize_address unless mode is Pmode.
12918 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
12920 * doc/md.texi (Modifiers): Document the '*' constraint for the
12923 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
12924 * doc/extend.texi (Function Attributes): 'interrupt' is valid
12927 2002-01-13 Richard Henderson <rth@redhat.com>
12929 * reload.c (find_reloads): Use a hard reg destination as reload reg
12930 for an input reload of the source.
12932 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12934 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
12937 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
12939 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12940 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12942 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
12944 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12946 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
12948 2002-01-12 Tom Rix <trix@redhat.com>
12950 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
12953 2002-01-12 Richard Henderson <rth@redhat.com>
12955 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
12957 * doc/invoke.texi: Update Alpha options.
12959 * doc/invoke.texi: Update i386 built-in function lists.
12961 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
12963 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
12964 referencing outside.
12966 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12968 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
12969 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
12970 offsets, and change line folding.
12971 * optabs.c (expand_binop): Remove warnings.
12972 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
12974 2002-01-12 Graham Stott <grahams@redhat.com>
12976 * attribs.c (handle_deprecated_attribute): constify WHAT.
12977 * diagnostic.c (warn_deprecated_use): Add braces, fixes
12978 dangling else warning and constify WHAT.
12979 * except.h (struct function, struct inline_remap): Move
12980 struct tag forward defs before all prototypes.
12981 (duplicate_eh_regions): Whitespace.
12983 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
12985 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12986 MODE_BASE_REG_CLASS.
12987 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
12989 2002-01-12 Richard Henderson <rth@redhat.com>
12991 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
12992 (ix86_expand_vector_move): New.
12993 (bdesc_2arg): Remove andps, andnps, orps, xorps.
12994 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
12995 Remove old prefetch builtins. Special case the logicals removed above.
12996 (ix86_expand_builtin): Likewise.
12997 (safe_vector_operand): Use V4SFmode, not TImode.
12998 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
12999 (ix86_expand_timode_binop_builtin): New.
13000 * config/i386/i386-protos.h: Update.
13001 * config/i386/i386.h (enum ix86_builtins): Update.
13002 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
13003 Use ix86_expand_vector_move in vector move expanders.
13004 (movti_internal, movti_rex64): Add xorps alternative.
13005 (sse_clrv4sf): Rename and adjust from sse_clrti.
13006 (prefetch): Don't work so hard.
13007 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
13008 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
13009 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
13011 2002-01-11 Richard Henderson <rth@redhat.com>
13013 * config/i386/mmintrin.h: New file.
13014 * config/i386/xmmintrin.h: New file.
13015 * config.gcc (i?86-*-*): Add extra_headers.
13016 * simplify-rtx.c (simplify_unary_operation): Handle saturating
13018 (simplify_binary_operation): Handle saturating arithmetic codes.
13019 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
13020 not the lowpart subreg.
13021 (ix86_expand_builtin): Return a TImode dummy register instead of 0
13023 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
13025 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13027 * conflict.c (conflict_graph_compute): Free regsets when finished.
13028 * ssa.c (compute_coalesced_reg_partition): Likewise.
13030 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13032 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
13033 every where we allocate a register.
13035 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13037 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
13038 * lcm.c (compute_earliest, compute_farthest): Likewise.
13040 2002-01-11 Janis Johnson <janis187@us.ibm.com>
13042 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
13044 2002-01-11 Janis Johnson <janis187@us.ibm.com>
13046 * doc/rtl.texi (Insns): Fix 2 typos.
13048 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
13050 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
13051 options. Use @table @gcctabopt for MMIX options. Add index
13052 entries for MMIX options. Start new paragraph with first
13053 heading of the machine-dependent options.
13055 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
13058 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
13059 * combine.c (force_to_mode): Same.
13060 * reload1.c (clear_reload_reg_in_use): Same.
13062 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
13064 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
13067 2002-01-11 Andreas Jaeger <aj@suse.de>,
13068 Brad Lucier <lucier@math.purdue.edu>
13070 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
13073 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
13075 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
13076 Protect with IN_LIBGCC.
13077 (LINK_EH_SPEC): Add required trailing space.
13079 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
13081 * c-tree.h: Move function declarations so that they are listed
13082 under the filename which contains them.
13083 (check_identifier, finish_decl_top_level,
13084 lookup_name_current_level_global, shadow_record_fields): Remove.
13086 2002-01-11 Andreas Jaeger <aj@suse.de>
13088 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
13091 2002-01-10 Richard Henderson <rth@redhat.com>
13093 * config/alpha/alpha.c (print_operand): Add 'J'.
13094 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
13095 new operand with the sequence number for the lituse. When splitting
13096 the insns, use gen_movdi_er_high_g and generate a sequence number.
13097 (gen_movdi_er_high_g): Print the sequence number if non-zero.
13099 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
13101 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
13102 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
13104 (altivec_expand_builtin): Same.
13105 (altivec_expand_stv_builtin): New.
13107 * config/rs6000/rs6000.h (rs6000_builtins): Same.
13109 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
13110 ("altivec_lvehx"): New.
13111 ("altivec_lvewx"): New.
13112 ("altivec_lvxl"): New.
13113 ("altivec_lvx"): New.
13114 ("altivec_stvx"): New.
13115 ("altivec_stvebx"): New.
13116 ("altivec_stvehx"): New.
13117 ("altivec_stvewx"): New.
13118 ("altivec_stvxl"): New.
13120 2002-01-10 Richard Henderson <rth@redhat.com>
13122 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
13123 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
13124 care not to delete instructions twice.
13126 2002-01-10 Zack Weinberg <zack@codesourcery.com>
13128 * toplev.c: Don't declare environ (it's not used anywhere).
13129 * configure.in: Don't check for declaration of environ.
13130 * config/i386/xm-mingw32.h: Don't #define environ.
13131 * config.in, configure: Regenerate.
13133 2002-01-10 Zack Weinberg <zack@codesourcery.com>
13135 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
13136 * configure: Regenerate.
13138 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
13139 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
13140 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
13142 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
13143 LIMITS_H_TEST here, not in m68k/x-next.
13144 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
13145 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
13147 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
13148 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
13149 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
13151 * config/i386/x-djgpp: Renamed i386/t-djgpp.
13152 * config/m88k/x-dolph: Renamed m88k/t-dolph.
13153 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
13154 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
13155 replacement of quadlib.asm with quadlib.c.
13157 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
13158 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
13159 config/rs6000/xm-beos.h: Delete file.
13161 * config.gcc: Update to match above changes.
13163 2002-01-10 Kazu Hirata <kazu@hxi.com>
13165 * config/h8300/h8300.h: Fix comment typos.
13166 * config/h8300/h8300.md: Likewise.
13167 * config/h8300/lib1funcs.asm: Likewise.
13169 2002-01-10 Dale Johannesen <dalej@apple.com>
13171 PR optimization/5269
13172 * unroll.c (precondition_loop_p): Make *increment be the correct
13173 sign when n_iterations known, to avoid confusing caller.
13175 2002-01-10 Kazu Hirata <kazu@hxi.com>
13177 * doc/extend.texi (deprecated): Fix a typo.
13179 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
13181 * basic-block.h (update_br_prob_note): Declare.
13182 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
13183 (try_forward_edges): Care negative frequencies and update note.
13184 (outgoing_edges_match): Tweek conditional merging heuristics.
13185 (try_crossjump_to_edge): use update_br_prob_note.
13186 * cfglayout.c (fixup_reorder_chain): Likewise.
13187 * cfrtl.c (update_br_prob_note): New.
13188 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
13190 * i386.c (ix86_decompose_address): Return -1 if address contains
13192 (legitimate_address_p): Require ix86_decompose_address to return 1.
13194 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
13195 (cprop_insn): Likewise.
13197 2002-01-10 Kazu Hirata <kazu@hxi.com>
13199 * toplev.c: Fix formatting.
13200 * tree.c: Likewise.
13201 * tree-dump.c: Likewise.
13202 * unroll.c: Likewise.
13203 * unwind-dw2.c: Likewise.
13204 * unwind-dw2-fde.c: Likewise.
13205 * unwind-dw2-fde-glibc.c: Likewise.
13206 * unwind-sjlj.c: Likewise.
13208 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
13210 * doc/invoke.texi: Document PDP-11 options.
13212 2002-01-10 Kazu Hirata <kazu@hxi.com>
13214 * config/h8300/h8300.h: Fix formatting.
13216 2002-01-10 Ira Ruben <ira@apple.com>
13218 Add __attribute__ ((deprecated)).
13219 * extend.texi: Document __attribute__ ((deprecated)).
13220 * invoke.texi: Document -Wno-deprecated-declarations.
13221 * testsuite/g++.dg/other/deprecated.C: New C++ test.
13222 * testsuite/gcc.dg/deprecated.c: New C test.
13223 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
13224 (c_common_attribute_table): Add "deprecated" entry.
13225 (handle_deprecated_attribute): New function.
13226 * c-decl.c (deprecated_states): New enum.
13227 deprecated_state: State of "deprecated" handling.
13228 (start_decl): Set deprecated_state based on attributes.
13229 (grokdeclarator): Test for deprecated uses, propagate attribute.
13230 * c-typeck.c (build_component_ref): Test for deprecated fields.
13231 (build_external_ref): Test for deprecated primaries.
13232 * diagnostic.c (warn_deprecated_use) New function to issue
13233 warnings about __attribute__ ((depricated)) references.
13234 * flags.h (warn_deprecated_decl): Extern declared for
13235 -W[no-]deprecated-declarations option.
13236 * print-tree.c (print_node): Show deprecated flag status.
13237 * toplev.c (warn_deprecated_decl): Defined.
13238 (W_options): Added "deprecated-declaration".
13239 * toplev.h (warn_deprecated_use): Extern declared.
13240 * tree.h (struct tree_common): Define deprecated_flag.
13241 (TREE_DEPRECATED): New macro to access flag.
13242 * cp/call.c (build_call): Test for deprecated calls.
13243 * cp/class.c (add_implicitly_declared_members): Set global
13244 flag to tell grokdeclarator to not issue deprecated warnings.
13245 * cp/cp-tree.h: Add extern for adding_implicit_members.
13246 * cp/decl.c (deprecated_states): New enum.
13247 (start_decl): Set deprecated_state based on attributes.
13248 (grokdeclarator): Test for deprecated uses, propagate attribute.
13249 * cp/lex.c (do_identifier): Test for deprecated primaries.
13250 * cp/typeck.c (build_component_ref): Test for deprecated fields.
13252 2002-01-10 Ira Ruben <ira@apple.com>
13254 Fix to assign attributes to inline member functions.
13255 * cp/decl.c (start_method): Handle attrlist.
13257 2002-01-10 Kazu Hirata <kazu@hxi.com>
13259 * combine.c (expand_field_assignment): Use subreg_lsb().
13261 2002-01-10 David Edelsohn <edelsohn@gnu.org>
13263 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
13264 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
13265 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
13266 Recurse for any operand of AND as long as constant is non-zero.
13268 2002-01-10 Kazu Hirata <kazu@hxi.com>
13270 * config/h8300/h8300.md: Remove constraints from expanders.
13272 2002-01-10 Kazu Hirata <kazu@hxi.com>
13274 * varasm.c: Fix formatting.
13275 * varray.c: Likewise.
13276 * vmsdbgout.c: Likewise.
13277 * xcoffout.c: Likewise.
13279 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
13281 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
13282 update edge probabilities to match.
13284 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
13286 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
13288 * doc/languages.texi, doc/sourcebuild.texi: New files.
13289 * doc/configfiles.texi: Make a subsubsection. Update.
13290 * doc/configterms.texi: Add @node. Remove warning that this isn't
13291 instructions for building GCC.
13292 * doc/makefile.texi: Make a subsection.
13293 * doc/gccint.texi: Update.
13295 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
13297 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
13299 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
13301 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
13303 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
13305 * optabs.c (expand_fix): Look for wider integer modes first.
13307 * i386.md (mov?f): Avoid the fake const double trick for medium
13309 (min?f*/max?f*): Prohibit memory operands for i387 variant.
13310 (fop_df_4): Disable for SSE compilation.
13312 2002-01-10 Graham Stott <grahams@redhat.com>
13314 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
13315 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
13317 2002-01-10 Richard Henderson <rth@redhat.com>
13319 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
13321 2002-01-10 Richard Henderson <rth@redhat.com>
13323 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
13324 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
13326 2002-01-10 Kazu Hirata <kazu@hxi.com>
13328 * combine.c (can_combine_p): Fix a comment typo.
13330 2002-01-09 Zack Weinberg <zack@codesourcery.com>
13332 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
13333 empty list correctly. Change loop index $t to $f for
13334 consistency with rest of Makefile.
13336 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
13338 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
13339 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13341 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
13342 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
13343 (altivec_init_builtins): Same.
13344 (altivec_expand_unop_builtin): Return NULL_RTX on error.
13345 (altivec_expand_binop_builtin): Same.
13346 (altivec_expand_ternop_builtin): Same.
13349 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
13350 ("altivec_vctuxs"): Fix typo.
13351 ("altivec_vnmsubfp"): Same.
13352 ("altivec_dssall"): New.
13353 ("altivec_mfvscr"): New.
13354 ("altivec_dss"): New.
13355 ("altivec_lvsl"): New.
13356 ("altivec_lvsr"): New.
13357 ("altivec_dstt"): New.
13358 ("altivec_dstst"): New.
13359 ("altivec_dststt"): New.
13360 ("altivec_dst"): New.
13362 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
13363 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13365 2002-01-09 Richard Henderson <rth@redhat.com>
13367 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
13369 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
13371 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
13373 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
13375 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
13377 2002-01-09 Kazu Hirata <kazu@hxi.com>
13379 * read-rtl.c: Fix formatting.
13380 * real.c: Likewise.
13381 * regclass.c: Likewise.
13382 * regrename.c: Likewise.
13383 * reg-stack.c: Likewise.
13384 * reload1.c: Likewise.
13385 * reload.c: Likewise.
13388 2002-01-09 Kazu Hirata <kazu@hxi.com>
13390 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
13391 to extract items in the expr_list chain.
13393 2002-01-09 Richard Henderson <rth@redhat.com>
13395 * config/vax/vax.c (vax_rtx_cost): Never abort.
13397 * config/vax/vax.h (REAL_ARITHMETIC): Define.
13399 2002-01-09 Jan Hubicka <jh@suse.cz>
13401 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
13403 2002-01-09 Richard Henderson <rth@redhat.com>
13405 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
13406 Unify code from various alternatives.
13408 2002-01-09 Richard Henderson <rth@redhat.com>
13410 * regrename.c (copy_value): Ignore the copy if the source register
13411 is present in the value chain with a narrower mode.
13413 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13415 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
13416 for the c4x target. Also improve layout.
13418 2002-01-09 Richard Henderson <rth@redhat.com>
13420 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
13421 * config/m32r/m32r.md (and ior xor splitters): Swap operands
13422 to match insn patterns.
13424 2002-01-09 Richard Henderson <rth@redhat.com>
13426 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
13427 (copyprop_hardreg_forward_1): Likewise.
13429 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
13431 * pa.md (decrement_and_branch_until_zero): Change predicate for
13432 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
13434 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
13436 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
13437 gets undefined. For Darwin.
13439 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13441 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
13443 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13445 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
13447 2002-01-08 Richard Henderson <rth@redhat.com>
13449 * regrename.c (copy_value): Ignore overlapping copies.
13451 2002-01-08 Richard Henderson <rth@redhat.com>
13453 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
13454 as needed to avoid shared structure.
13456 2002-01-08 Kazu Hirata <kazu@hxi.com>
13458 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
13461 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13463 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
13464 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
13465 documentation of obsolete macros.
13466 * system.h: Poison these macros.
13467 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
13468 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
13469 config/c4x/c4x.h, config/clipper/clipper.h,
13470 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
13471 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
13472 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
13473 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
13474 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
13475 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
13476 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
13477 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
13478 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
13479 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
13480 config/sparc/sparc.h, config/stormy16/stormy16.h,
13481 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
13482 definitions and commented out definitions of obsolete macros.
13483 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
13484 of MAX_INT_TYPE_SIZE.
13486 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
13488 * config/s390/s390.c (s390_preferred_reload_class): Never
13489 return ADDR_REGS if it isn't a subset of the given class.
13490 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
13491 FP_REGS, but all superclasses as well.
13493 * config/s390/s390.c (s390_function_profiler): Fix thinko.
13495 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
13496 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
13497 must not be a const_int.
13499 2002-01-08 Richard Henderson <rth@redhat.com>
13501 * Makefile.in (toplev.o): Depend on options.h.
13502 (gcc.o): Depend on specs.h.
13504 2002-01-08 Jakub Jelinek <jakub@redhat.com>
13506 * expr.c (store_expr): Convert VOIDmode constants back to target's
13509 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13511 * doc/invoke.texi: Markup gcc as @command. Refer to
13512 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
13513 of http://gcc.gnu.org/thanks.html.
13515 2002-01-08 Dale Johannesen <dalej@apple.com>
13517 * config/rs6000/rs6000.md: Add missing int register
13518 target case to movdf_low.
13520 2002-01-08 Zack Weinberg <zack@codesourcery.com>
13522 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
13523 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
13524 (cppinit.o): Depend on except.h.
13525 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
13526 s-specs): New rules.
13528 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
13529 Don't create specs.h/options.h/gencheck.h here. Remove
13530 unnecessary variable settings from last argument of AC_OUTPUT.
13531 * config.in, configure: Regenerate.
13532 * intl.c: Hardcode package name as "gcc".
13534 * cppinit.c: Include except.h.
13535 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
13537 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
13538 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
13539 (!)USING_SJLJ_EXCEPTIONS.
13540 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
13542 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13544 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
13545 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
13546 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
13547 documentation of obsolete macros.
13548 * system.h: Poison these macros.
13549 * config/d30v/d30v.h, config/ns32k/encore.h,
13550 config/stormy16/stormy16.h: Remove definitions and commented out
13551 definitions of obsolete macros.
13553 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
13555 * objc/objc-act.c (handle_class_ref): Mark the declaration of
13556 %sobjc_class_ref_%s as used - to prevent unwanted compiler
13559 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
13561 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
13562 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
13563 to insn adjusting stack/frame pointer.
13564 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
13565 accept operands that cause the insn to be non-splittable.
13567 2002-01-08 Graham Stott <grahams@redhat.com>
13569 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
13570 (C_TYPE_FIELDS_VOLATILE): Likewise.
13571 (C_TYPE_BEING_DEFINED): Likewise.
13572 (C_IS_RESERVED_WORD): Likewise.
13573 (C_TYPE_VARIABLE_SIZE): Likewise.
13574 (C_DECL_VARIABLE_SIZE): Likewise.
13575 (C_MISSING_PROTOTYPE_WARNED): Likewise.
13576 (C_SET_EXP_ORIGINAL_CODE): Likewise.
13577 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
13579 (C_DECL_ANTICIPATED): Likewise.
13580 (c_build_type_variant): Add parenthesis.
13582 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13584 * gcc.c (option_map): Remove --version.
13585 (process_command): Handle -fversion following the GNU Coding
13586 Standards. Partially addresses PR other/704.
13588 2002-01-08 Graham Stott <grahams@redhat.com>
13590 * combine.c (combine_instructions): Fix typo.
13592 2002-01-08 Graham Stott <grahams@redhat.com>
13594 * debug.h: Use "tree" and "rtx" throughout.
13596 * debug.c: Likewise.
13598 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
13600 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
13601 constant pool, use the pool's version of the symbol instead.
13603 2002-01-07 Richard Henderson <rth@redhat.com>
13605 * regrename.c (find_oldest_value_reg): Ignore the value chain if
13606 the original register was copied in a mode with a fewer number of
13607 hard registers than the desired mode.
13608 (copyprop_hardreg_forward_1): Likewise.
13609 (debug_value_data): Fix loop test.
13610 * toplev.c (parse_options_and_default_flags): Reenable
13611 -fcprop-registers at -O1.
13613 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13615 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
13616 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
13618 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
13621 * config/rs6000/rs6000.md: Add altivec predicate patterns.
13623 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
13625 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
13626 (pa_output_function_prologue): Output local label at the beginning of
13627 the prologue when profiling.
13628 (hppa_profile_hook): Use the local label rather than the function label.
13629 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
13631 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13633 * config/rs6000/rs6000.c (print_operand): Remove extra space.
13634 (altivec_expand_unop_builtin): Fix thinko.
13635 (altivec_expand_binop_builtin): Same.
13636 (altivec_expand_ternop_builtin): Same.
13637 (altivec_expand_builtin): Same.
13639 2002-01-07 Richard Henderson <rth@redhat.com>
13641 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
13643 2002-01-07 Jason Merrill <jason@redhat.com>
13645 * unwind-dw2.c (execute_cfa_program): Use < again.
13647 2002-01-07 Jakub Jelinek <jakub@redhat.com>
13649 * predict.c (combine_predictions_for_insn): Avoid division by zero.
13651 2002-01-07 Jakub Jelinek <jakub@redhat.com>
13653 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
13654 Don't allow -1 - x -> ~x simplifications in the first pass.
13656 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13658 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
13660 (altivec_expand_binop_builtin): Same.
13661 (altivec_expand_unop_builtin): Same.
13662 (print_operand): Fix typo.
13663 (bdesc_1arg): Add vupk* variants.
13665 * rs6000.h (rs6000_builtins): Add vupk* enums.
13667 * rs6000.md: Add altivec_vupk* variants.
13669 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
13671 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
13672 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
13673 and last update dates.
13675 2002-01-07 Janis Johnson <janis187@us.ibm.com>
13677 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
13679 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
13681 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
13682 * config/avr/avr.h (CPP_SPEC): Likewise.
13683 (LINK_SPEC): Likewise.
13684 (CRT_BINUTILS_SPECS): Likewise.
13685 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13686 * doc/invoke.texi (AVR Options): Document them.
13688 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
13690 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
13693 2002-01-07 Graham Stott <grahams@redhat.com>
13695 * config/i386/i386.h: Update copyright date.
13696 (HALF_PIC_PTR): Add parenthesis.
13697 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
13698 (CONSTANT_ALIGNMENT): Add parenthesis.
13699 (DATA_ALIGNMENT): Likewise.
13700 (LOCAL_ALIGNMENT): Likewise.
13701 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
13702 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
13703 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
13704 (HARD_REGNO_NREGS): Add paranethesis.
13705 (VALID_SSE_REG_MODE): Whitespace.
13706 (VALID_MMX_REG_MODE): Whitespace.
13707 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
13708 (ix86_hard_regno_mode_ok): Add parenthesis.
13709 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
13710 (RETURN_IN_MEMORY): Whitespace.
13711 (N_REG_CLASSES): Add parenthesis.
13712 (INTEGER_CLASS_P): Add parenthesis and wrap.
13713 (FLOAT_CLASS_P): Likewise.
13714 (SSE_CLASS_P): Likewise.
13715 (MMX_CLASS_P): Likewise.
13716 (MAYBE_INTEGER_CLASS_P): Likewise.
13717 (MAYBE_FLOAT_CLASS_P): Likewise.
13718 (MAYBE_SSE_CLASS_P): Likewise.
13719 (MAYBE_MMX_CLASS_P): Likewise.
13720 (Q_CLASS_P): Likewise.
13721 (GENERAL_REGNO_P): Uppercase macro parameter.
13722 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
13723 (FP_REGNO_P): Likewise.
13724 (ANY_FP_REGNO_P): Uppercase macro parameter.
13725 (SSE_REGNO_P): Likewise.
13726 (SSE_REGNO): Likewise.
13727 (SSE_REG_P): Likewise.
13728 (SSE_FLOAT_MODE_P): Likewise.
13729 (MMX_REGNO_P): Likewise.
13730 (MMX_REG_P):Likewise.
13731 (STACK_REG_P): Likewise.
13732 (NON_STACK_REG_P): Likewise.
13733 (STACK_TOP_P): Likewise.
13734 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
13735 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
13736 (SECONDARY_MEMORY_NEEDED): Likewise.
13737 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
13738 (MD_ASM_CLOBBERS): Whitespace and wrap.
13739 (MUST_PASS_IN_STACK): Whitespace and wrap.
13740 (RETURN_POPS_ARGS): Add parenthesis.
13741 (INIT_CUMULATIVE_ARGS): Likewise.
13742 (FUNCTION_ARG): Likewise.
13743 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
13744 (SETUP_INCOMING_VARARGS): Likewise.
13745 (BUILD_VA_LIST_TYPE): Add parenthesis.
13746 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
13748 (EXPAND_BUILTIN_VA_ARG): Likewise.
13749 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
13750 (INITIALIZE_TRAMPOLINE): Add parenthesis.
13751 (INITIAL_ELIMINATION_OFFSET): Likewise.
13752 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
13753 (REGNO_OK_FOR_BASE_P): Likewise.
13754 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
13755 (REGNO_OK_FOR_DIREG_P): Likewise.
13756 (REG_OK_FOR_INDEX_P): Whitespace.
13757 (REG_OK_FOR_BASE_P): Whitespace.
13758 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
13760 (FIND_BASE_TERM): Fix typo.
13761 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
13762 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
13763 (SYMBOLIC_CONST; Whitespace.
13764 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
13765 (ENCODE_SECTION_INFO): Whitespace.
13766 (FINALIZE_PIC): Remove do { ... } while (0).
13767 (PROMOTE_MODE): Wrap in do { ... } while (0).
13768 (CONST_COSTS): Whitespace.
13769 (RTX_COSTS): Add paramethesis, whitespace and wrap.
13770 (REGISTER_MOVE_COST): Add parenthesis.
13771 (MEMORY_MOVE_COST): Likewise.
13772 (EXTRA_CC_MODES): Whitespace.
13773 (SELECT_CC_MODE): Add parenthesis and whitespace.
13774 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
13775 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
13776 (ASM_OUTPUT_LABEL): Add paramethesis.
13777 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
13778 (ASM_OUTPUT_REG_POP): Likewise.
13779 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
13780 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13782 * config/i386/i386.c: Update copyright.
13783 (CHECK_STACK_LIMIT): Add parenthesis.
13784 (AT_BP): Uppercase macro parameter.
13785 (x86_64_int_parameter_registers): Constify.
13786 (x86_64_int_return_registers): Likewise.
13787 (ix86_compare_op0): Use rtx.
13788 (construct_container): Constify INTREG parameter.
13789 (function_arg): Use rtx.
13791 * diagnostic.h: Update copyright date.
13792 (output_buffer_state): Add parenthesis.
13793 (output_buffer_format_args): Likewise.
13795 * combine.c (combine_instructions): Replace XEXP (links, 0)
13798 2002-01-06 H.J. Lu <hjl@gnu.org>
13800 * cfgcleanup.c (thread_jump): Fix 2 typos.
13802 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
13804 * config.gcc: Add support for --enable-altivec.
13806 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13808 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
13810 2002-01-06 Jakub Jelinek <jakub@redhat.com>
13812 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
13813 __objc_class_name_*.
13815 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13817 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
13819 2002-01-06 Richard Henderson <rth@redhat.com>
13821 * reorg.c (emit_delay_sequence): Remove death notes, not merely
13822 nop them out. Increment label reference count for REG_LABEL.
13823 (fill_slots_from_thread): Frob label reference count around
13824 delete_related_insns.
13826 2002-01-05 Richard Henderson <rth@redhat.com>
13828 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
13831 2002-01-05 Richard Henderson <rth@redhat.com>
13833 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
13834 * integrate.c (output_inline_function): Likewise.
13835 * toplev.c (rest_of_compilation): Do it here instead. Move call
13836 to remove_unnecessary_notes after emitting abstract instance.
13837 Force an emitted nested function to have its parent emited as well.
13838 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
13840 (rtl_for_decl_location): Do not look at reload data structures
13841 before reload has run.
13843 2002-01-05 Kazu Hirata <kazu@hxi.com>
13845 * cse.c: Fix formatting.
13846 * dwarf2asm.c: Likewise.
13847 * dwarf2out.c: Likewise.
13848 * explow.c: Likewise.
13849 * expmed.c: Likewise.
13850 * function.c: Likewise.
13851 * gcov.c: Likewise.
13852 * gencheck.c: Likewise.
13853 * genrecog.c: Likewise.
13854 * ggc-common.c: Likewise.
13855 * ggc-page.c: Likewise.
13856 * global.c: Likewise.
13858 2002-01-05 Kazu Hirata <kazu@hxi.com>
13860 * combine.c: Fix formatting.
13862 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
13865 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
13867 2002-01-05 David Edelsohn <edelsohn@gnu.org>
13869 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
13870 as 1 for __powerpc64__ as well.
13872 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
13874 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
13877 2002-01-05 Daniel Berlin <dan@dberlin.org>
13879 * lcm.c: Revert change, due to performance regression it causes on
13880 SPEC because it's slightly more conservative (sigh, I hate
13883 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
13885 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
13887 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
13889 * doc/cppinternals.texi: Update.
13891 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
13893 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
13894 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
13896 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
13897 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
13898 kludge for pre-october-14th mmix versions to handle new-found bug
13899 with PUSHJ/PUSHGO and the register stack.
13900 * config/mmix/mmix.h (struct machine_function): Rename member
13901 has_call_value_without_parameters to has_call_without_parameters.
13902 All referers changed.
13903 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
13904 TARGET_MASK_BRANCH_PREDICT): New macros.
13905 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
13906 -mno-reg-stack-fill-bug-workaround.
13907 * config/mmix/mmix.md ("call"): Set struct machine member
13908 has_call_without_parameters.
13910 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
13912 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
13914 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
13916 * cfgcleanup.c: Include tm_p.h
13917 (mark_effect): Fix handling of hard register; fix handling of SET
13919 2002-01-04 Kazu Hirata <kazu@hxi.com>
13921 * config/h8300/h8300.md (anonymous patterns): Check that
13922 operands are registers before using REGNO on them.
13924 2002-01-03 Roland McGrath <roland@frob.com>
13926 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
13928 2002-01-04 Jakub Jelinek <jakub@redhat.com>
13930 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
13931 * c-common.h (genrtl_expr_stmt_value): Likewise.
13932 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
13933 (expand_expr_stmt_value): Add maybe_last argument.
13934 Don't warn about statement with no effect if it is the last statement
13935 in expression statement.
13936 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
13937 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
13938 expand_expr_stmt_value.
13939 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
13940 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
13941 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
13942 as maybe_last to expand_expr_stmt_value.
13944 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
13946 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
13947 be passed in, do not build it.
13948 (c_begin_if_stmt): New function.
13949 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13950 * c-common.h (c_expand_start_cond): Update prototype.
13951 (c_begin_if_stmt): Prototype new function.
13952 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13953 * c-parse.in (if_prefix): Use c_begin_if_stmt,
13954 c_begin_while_stmt and c_finish_while_stmt_cond.
13956 2002-01-04 William Cohen <wcohen@redhat.com>
13958 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
13959 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
13960 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
13961 * config/pa/som.h (ASM_FILE_START): Likewise.
13963 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
13965 * lcm.c: Include df.h.
13966 Add available_transfer_function prototype.
13967 (compute_available): Rework to use iterative dataflow framework.
13968 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
13969 with bb_info in df.h
13970 (available_transfer_function): New function.
13972 * Makefile.in (lcm.o): add df.h to dependencies.
13974 2002-01-04 Richard Henderson <rth@redhat.com>
13976 * config/alpha/alpha.c (some_operand): Accept HIGH.
13977 (input_operand): Likewise; accept simple references to globals.
13978 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
13979 (alpha_const_double_ok_for_letter_p): Likewise.
13980 (alpha_extra_constraint): Likewise.
13981 (alpha_preferred_reload_class): Likewise. Do not force
13982 symbolic constants to memory.
13983 (alpha_legitimate_address_p): Accept simple references
13984 to small_symbolic_operand.
13985 (alpha_legitimize_address): New arg scratch. Be prepared to be
13986 called when no_new_pseudos. Emit simple symbolic references.
13987 Split integers into low, high, and rest.
13988 (alpha_expand_mov): Use alpha_legitimize_address.
13989 (some_small_symbolic_mem_operand): New.
13990 (split_small_symbolic_mem_operand): New.
13991 * config/alpha/alpha-protos.h: Update.
13992 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
13993 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
13994 (EXTRA_CONSTRAINT): Likewise.
13995 (PREFERRED_RELOAD_CLASS): Likewise.
13996 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
13997 (PREDICATE_CODES): Update.
13998 * config/alpha/alpha.md: New post-reload splitters to convert
13999 simplfied symbolic operands to the form that references $29.
14000 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
14001 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
14003 2002-01-03 Richard Henderson <rth@redhat.com>
14005 * local-alloc.c (function_invariant_p): Update commentary.
14007 2002-01-04 H.J. Lu <hjl@gnu.org>
14009 * toplev.c (rest_of_compilation): Fix a typo when calling
14012 2002-01-03 Kazu Hirata <kazu@hxi.com>
14014 * c-common.c: Fix formatting.
14015 * diagnostic.c: Likewise.
14016 * doloop.c: Likewise.
14017 * dwarf2out.c: Likewise.
14019 2002-01-03 Kazu Hirata <kazu@hxi.com>
14021 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
14022 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
14024 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
14026 * cpperror.c: Update comments and copyright.
14027 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
14028 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
14030 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
14032 * collect2.c (main): Use strcmp when testing for "-shared".
14034 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
14036 * cppmacro.c: Don't include intl.h. Update comments.
14037 (new_number_token): Allocate enough buffer for 64-bit unsigned
14038 integers; update prototype.
14039 * cppmain.c: Update comments.
14041 2002-01-03 William Cohen <wcohen@redhat.com>
14043 * function.h (struct function): Add profile.
14044 (current_function_profile): New.
14045 doc/extend.texi: Update documentation.
14046 * final.c (final_start_function): Use current_function_profile
14047 instead of profile_flag.
14048 (profile_after_prologue): Likewise.
14049 * function.c (expand_function_start): Likewise.
14050 (expand_function_start): Likewise.
14051 * config/alpha/alpha.c (direct_call_operand):
14052 (alpha_does_function_need_gp): Likewise.
14053 (alpha_expand_prologue): Likewise.
14054 * config/arm/arm.c (arm_expand_prologue): Likewise.
14055 thumb_expand_prologue: Likewise.
14056 * config/d30v/d30v.c (d30v_stack_info): Likewise.
14057 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
14058 (fr30_expand_prologue): Likewise.
14059 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
14060 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
14061 * config/i386/i386.h (FINALIZE_PIC): Likewise.
14062 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
14063 * config/i960/i960.c (i960_output_function_prologue): Likewise.
14064 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14065 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
14066 (m32r_expand_prologue): Likewise.
14067 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
14068 (m88k_expand_prologue): Likewise.
14069 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
14070 * config/mips/mips.c (compute_frame_size): Likewise.
14071 (mips_expand_prologue): Likewise.
14072 (mips_can_use_return_insn): Likewise.
14073 * config/pa/elf.h (ASM_FILE_START): Likewise.
14074 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14075 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14076 * config/pa/som.h (ASM_FILE_START): Likewise.
14077 * config/romp/romp.c (romp_using_r14): Likewise.
14078 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
14079 (rs6000_stack_info): Likewise.
14080 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14081 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
14082 * config/v850/v850.c (compute_register_save_size): Likewise.
14084 2002-01-03 Jakub Jelinek <jakub@redhat.com>
14086 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
14087 gen_lowpart_common fails, use gen_lowpart_SUBREG.
14089 2002-01-03 Turly O'Connor <turly@apple.com>
14091 * darwin.c (machopic_output_possible_stub_label): Don't generate
14092 stub routines for pseudo-stubs which we've just defined.
14094 2002-01-03 Kazu Hirata <kazu@hxi.com>
14096 * builtins.c: Fix formatting.
14097 * c-typeck.c: Likewise.
14098 * combine.c: Likewise.
14099 * expr.c: Likewise.
14100 * loop.c: Likewise.
14102 2002-01-03 Andreas Schwab <schwab@suse.de>
14104 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
14105 and return true if _cpp_push_next_buffer pushed a new include
14107 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
14108 _cpp_pop_file_buffer did not push a new file.
14109 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
14111 2002-01-02 Eric Christopher <echristo@redhat.com>
14113 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
14114 FIND_REG_INC_NOTE call. Update copyright.
14115 * loop.c (canonicalize_condition): Ditto.
14116 * reorg.c (delete_scheduled_jump): Ditto.
14118 2002-01-03 Kazu Hirata <kazu@hxi.com>
14120 * gcse.c: Fix formatting.
14122 2002-01-03 Graham Stott <grahams@redhat.com>
14124 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
14125 forward defs for struct tags rtx_def, union_tree, rtvec_def
14126 also output corresponding typedefs for rtx, tree, and rtvec.
14128 * system.h: Move forward defs for struct tags rtx_def, union_tree,
14129 rtvec_def along with corresponding typedefs for rtx, tree, and
14130 rtvec to config.h, hconfig.h, tconfig.h.
14132 2002-01-03 Graham Stott <grahams@redhat.com>
14134 * tree.h: Update copyright date.
14135 (IS_EXPR_CODE_CLASS): Add parenthesis.
14136 (TREE_SET_CODE): Add whitespace.
14137 (TREE_CHECK): Add parenthesis.
14138 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
14139 (CST_OR_CONSTRUCTOR_CHECK):
14140 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
14141 (TREE_SYMBOL_REFERENCED): Whitespace.
14142 (INT_CST_LT): Likewise.
14143 (INT_CST_LT_UNSIGNED): Likewise.
14144 (tree_real_cst): Unwrap comment.
14145 (tree_string): Likewise.
14146 (tree_complex): Likewise.
14147 (IDENTIFIER_POINTER): correct cast.
14148 (SAVE_EXPR_CONTEXT): Whitespace.
14149 (EXPR_WFL_FILENAME_NODE): Likewise.
14150 (EXPR_WFL_FILENAME): Remove parenthesis.
14151 (DECL_ORIGIN): Add parenthesis.
14152 (DECL_FROM_INLINE): Use NULL_TREE.
14153 (build_int_2): Whitespace.
14154 (build_type_variant): Add parenthesis.
14156 * gcc/jcf-parse.c: Update copyright date.
14157 (yyparse): Constify resource_filename.
14159 2002-01-03 Graham Stott <grahams@redhat.com>
14161 * rtl.h: Update copyright date.
14162 (RTL_CHECK1): Wrap long line.
14163 (RTL_CHECK2): Likewise.
14164 (RTL_CHECKC1): Wrap long line and whitespace.
14165 (RTL_CHECKC2): Likewise.
14166 (XWINT): Whitespace.
14172 (XBITMAP): Likewise.
14174 (XBBDEF): Likewise.
14176 (X0WINT): Likewise.
14178 (X0UINT): Likewise.
14182 (X0MODE): Likewise.
14183 (X0BITMAP): Likewise.
14184 (X0TREE): Likewise.
14185 (X0BBDEF): Likewise.
14186 (X0ADVFLAGS): Likewise.
14187 (X0CSELIB): Likewise.
14188 (X0MEMATTR): Likewise.
14189 (XCWINT): Likewise.
14191 (XCUINT): Likewise.
14195 (XCMODE): Likewise.
14196 (XCBITMAP): Likewise.
14197 (XCTREE): Likewise.
14198 (XCBBDEF): Likewise.
14199 (XCADVFLAGS): Likewise.
14200 (XCCSELIB): Likewise.
14201 (XC2EXP): Likewise.
14202 (INSN_UID): Likewise.
14203 (PREV_INSN): Likewise.
14204 (PATTERN): Likewise.
14205 (INSN_CODE): Likewise.
14206 (PUT_REG_NOTE_KIND): Likewise.
14207 (CODE_LABEL_NUMBER): Likewise.
14208 (NOTE_SOURCE_FILE): Likewise.
14209 (NOTE_BLOCK): Likewise.
14210 (NOTE_EH_HANDLER): Likewise.
14211 (NOTE_RANGE_INFO): Likewise.
14212 (NOTE_LIVE_INFO): Likewise.
14213 (NOTE_BASIC_BLOCK): Likewise.
14214 (NOTE_EXPECTED_VALUE): Likewise.
14215 (NOTE_LINE_NUMBER): Likewise.
14216 (LABEL_NAME): Likewise.
14217 (LABEL_NUSES): Likewise.
14218 (LABEL_ALTERNATE_NAME): Likewise.
14219 (ADDRESSOF_DECL): Likewise.
14220 (JUMP_LABEL): Likewise.
14221 (LABEL_NEXTREF): Likewise.
14223 (ORIGINAL_REGNO: Likewise.
14224 (HARD_REGISTER_NUM_P): Add parenthesis.
14225 (SUBREG_REG): Whitespace.
14226 (SUBREG_BYTE): Likewise.
14227 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
14228 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
14229 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
14230 (ASM_OPERANDS_INPUT_VEC): Likewise.
14231 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
14232 (ASM_OPERANDS_INPUT): Likewise.
14233 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
14234 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
14235 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
14236 (ASM_OPERANDS_INPUT_MODE): Likewise.
14237 (ASM_OPERANDS_SOURCE_FILE): Likewise.
14238 (ASM_OPERANDS_SOURCE_LINE): Likewise.
14239 (MEM_SET_IN_STRUCT_P): Minor reformat.
14240 (TRAP_CONDITION): Whitespace.
14241 (TRAP_CODE): Likewise.
14242 (COND_EXEC_TEST): Likewise.
14243 (COND_EXEC_CODE): Likewise.
14244 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
14245 (PHI_NODE_P): Add parenthesis.
14246 (plus_constant): Whitespace and add parenthesis.
14248 2002-01-03 Kazu Hirata <kazu@hxi.com>
14250 * config/avr/avr.c: Fix comment typos.
14251 * config/c4x/c4x.md: Likewise.
14252 * config/dsp16xx/dsp16xx.h: Likewise.
14253 * config/dsp16xx/dsp16xx.md: Likewise.
14254 * config/i386/i386.md: Likewise.
14255 * config/ia64/ia64.c: Likewise.
14256 * config/m32r/m32r.h: Likewise.
14257 * config/m68hc11/m68hc11.md: Likewise.
14258 * config/mmix/mmix.c: Likewise.
14259 * config/mn10200/mn10200.c: Likewise.
14260 * config/romp/romp.c: Likewise.
14261 * config/sh/sh.c: Likewise.
14262 * config/stormy16/stormy16.c: Likewise.
14263 * config/stormy16/stormy16.h: Likewise.
14264 * config/stormy16/stormy16.md: Likewise.
14266 2002-01-03 Graham Stott <grahams@redhat.com>
14268 * loop.h: Update copyright date.
14269 (LOOP_MOVABLES): Fix typo.
14270 (LOOP_REGS): Likewise.
14271 (LOOP_IVS): Likewise.
14273 2002-01-03 Graham Stott <grahams@redhat.com>
14275 * cppinit.c: Update copyright date.
14276 Don't include output.h
14277 * Makefile.in: Update copyright date.
14280 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
14283 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
14284 (-pthread) Add to RS/6000 options.
14286 2002-01-02 Kazu Hirata <kazu@hxi.com>
14288 * except.c: Fix comment typos.
14289 * loop.c: Likewise.
14290 * varasm.c: Likewise.
14291 * doc/tm.texi: Fix a typo.
14293 2002-01-02 Jakub Jelinek <jakub@redhat.com>
14295 * c-typeck.c (output_init_element): Allow initializing static storage
14296 duration objects with compound literals.
14298 2002-01-02 Richard Henderson <rth@redhat.com>
14300 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
14303 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14305 * gcc.c (default_compilers): Const-ify.
14306 * mips-tdump.c (stab_names): Likewise.
14307 * mips-tfile.c (map_coff_types, map_coff_storage,
14308 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
14309 pseudo_ops_t, pseudo_ops): Likewise.
14310 * protoize.c (default_include): Likewise
14312 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
14313 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
14314 Add array size in declaration.
14315 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
14316 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
14317 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
14318 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
14319 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
14320 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
14321 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
14322 emtens, make_nan): Const-ify.
14323 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
14324 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
14326 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
14328 * config.gcc (ia64-*-*): Set extra_headers.
14329 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
14330 * config/alpha/t-osf: Remove.
14331 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
14333 2002-01-02 David Edelsohn <edelsohn@gnu.org>
14335 * config/rs6000/t-aix43: Revert previous change.
14337 2002-01-02 Jason Merrill <jason@redhat.com>
14339 * c-decl.c (c_expand_body): Call outlining_inline_function when
14340 emitting an inline function out of line.
14342 2002-01-02 Richard Henderson <rth@redhat.com>
14344 * dwarf2out.c (limbo_die_node): Add created_for member.
14345 (new_die): New argument created_for. Update all callers.
14346 (mark_limbo_die_list): New.
14347 (dwarf2out_init): Register limbo_die_list as a root.
14348 (dwarf2out_finish): Force insert limbo dies into their function
14351 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
14354 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
14356 2002-01-02 Kazu Hirata <kazu@hxi.com>
14358 * config/h8300/fixunssfsi.c: Update copyright.
14361 * config/h8300/h8300.c: Update copyright.
14362 Eliminate warnings.
14364 2002-01-02 Kazu Hirata <kazu@hxi.com>
14366 * config/romp/romp.c: Fix comment formatting.
14367 * config/romp/romp.h: Likewise.
14368 * config/romp/romp.md: Likewise.
14369 * config/s390/s390.c: Likewise.
14370 * config/stormy16/stormy16.c: Likewise.
14371 * config/stormy16/stormy16.h: Likewise.
14373 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
14375 * c-common.h (genrtl_expr_stmt_value): Declare.
14376 * c-semantics.c (genrtl_goto_stmt): Redirect to...
14377 (genrtl_goto_stmt_value): ... this new function. Pass new
14378 argument down to expand_expr_stmt_value, taking
14379 TREE_ADDRESSABLE into account.
14380 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
14381 STMT_EXPR as addressable, i.e., one whose result we want.
14382 * expr.c (expand_expr): Don't save expression statement value
14383 of labeled_blocks or loop_exprs.
14384 * stmt.c (expand_expr_stmt): Redirect to...
14385 (expand_expr_stmt_value): ... this new function. Use new
14386 argument to tell whether to save expression value.
14387 (expand_end_stmt_expr): Reset last_expr_type and
14388 last_expr_value if we don't have either.
14389 * tree-inline.c (declare_return_variable): Mark its use
14390 statement as addressable.
14391 * tree.h: Document new use of TREE_ADDRESSABLE.
14392 (expand_expr_stmt_value): Declare.
14394 2002-01-01 Tom Rix <trix@redhat.com>
14396 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
14397 rs6000_emit_allocate_stack.
14399 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
14401 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
14402 ${srcdir}/ginclude/ to every entry in extra_headers.
14403 * configure: Regenerate.
14404 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
14405 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
14406 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
14407 * ginclude/proto.h: Rename to config/convex/proto.h.
14409 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14411 * attribs.c (handle_vector_size_attribute): Use host_integerp
14412 and tree_int_cst; remove warnings.
14413 * caller-save.c (insert_restore): Add cast to get rid of warning.
14414 (insert_save): Likewise.
14415 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
14416 * regmove.c (find_matches): Add temporary var to kill a warning.
14418 2002-01-01 Douglas B Rupp <rupp@gnat.com>
14420 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
14421 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
14422 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
14423 (vms-dwarf2eh.o): Add Makefile rule.
14424 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
14425 * config/alpha/vms-dwarf2eh.asm: New file.
14427 * gcc.c (delete_if_ordinary): Delete all versions.
14429 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
14431 * config/mmix/mmix.md: Update FIXME to not mention
14433 (MMIX_rJ_REGNUM): New define_constants constant.
14434 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
14435 "*movdicc_real"): Adjust contraints formatting.
14436 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
14437 for branch prediction.
14438 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
14440 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
14441 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
14442 number. Delete related FIXMEs.
14443 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
14444 from number to MMIX_rJ_REGNUM.
14445 (TARGET_MASK_BRANCH_PREDICT): New.
14446 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
14447 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
14448 value. Add -mbranch-predict and -mno-branch-predict.
14449 (TARGET_VERSION): Drop date.
14450 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
14451 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
14452 for finding out global symbols.
14453 (mmix_asm_output_labelref): Revert condition for global symbol.
14454 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
14455 (mmix_print_operand_punct_valid_p): A '+' is valid.
14457 See ChangeLog.6 for earlier changes.